• Stars
    star
    352
  • Rank 120,622 (Top 3 %)
  • Language
    Ruby
  • License
    MIT License
  • Created almost 16 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Ruby gem that provides an AR-style interface for the Pivotal Tracker API

pivotal-tracker.rb - the original ruby gem

Build Status Gem Version

NOTICE

I am currently re-writing this gem to address the biggest feature requests that are long overdue:

  • Gem is thread-safe
  • Support Pivotal Tracker APIv5 and dropping V3 support
  • Overhauled spec suite

This will become the v1.x release.

Original README (for v0.x releases)

Features

  • Compatible with Pivotal Tracker API version 3
  • ActiveRecord-style Wrapper API
  • Support for SSL protected repositories

Overview

PivotalTracker::Client.token('[email protected]', 'secretpassword')        # Automatically fetch API Token
PivotalTracker::Client.token = 'jkfduisj97823974j2kl24899234'                 # Manually set API Token

PivotalTracker::Client.timeout = 50                                           # Set timeout on the connection with pivotal. Default is 60 seconds

@projects = PivotalTracker::Project.all                                       # return all projects
@a_project = PivotalTracker::Project.find(84739)                              # find project with a given ID

@a_project.stories.all                                                        # return all stories for "a_project"
@a_project.stories.all(:label => 'overdue', :story_type => ['bug', 'chore'])  # return all stories that match the passed filters
@a_project.stories.find(847762630)                                            # find story with a given ID

@a_project.stories.create(:name => 'My Story', :story_type => 'feature')      # create a story for this project

# all tracker defined filters are allowed, as well as :limit & :offset for pagination

# The below pattern below is planned to be added to the final release:

@a_project.stories << PivotalTracker::Story.new(84739, :name => 'Ur Story')   # same as earlier story creation, useful for copying/cloning from proj


@story = @a_project.stories.find(847762630)
@story.notes.all                                                              # return all notes (comments) for a story
@story.notes.create(:text => 'A new comment', :noted_at => '06/29/2010 05:00 EST')  # add a new note

@story.tasks.all                                                              # return all tasks for a story
@story.tasks.create(:description => 'Task Description')  # add a new task


@story.attachments                                                            # return an array of all attachment items (data only, not the files)
@story.upload_attachment(file_path)                                           # add a file attachment to @story that can be found at file_path


# All 4 examples below return a PivotalTracker::Story from the new project, with the same story ID

@story.move_to_project(123456)                                                # move @story to the project with ID 123456
@story.move_to_project('123456')                                              # same as above
@story.move_to_project(@project)                                              # move @story to @project
@story.move_to_project(@another_story)                                        # move @story into the same project as @another_story


# Connect to custom API endpoint
PivotalTracker::Client.tracker_host = 'www.my-pivotal-tracker.com'

The API is based on the following this gist: http://gist.github.com/283120

Additional Information

Contributors along the way

More Repositories

1

jsonapi-consumer

Client framework for consuming JSONAPI services in Ruby
Ruby
94
star
2

delorean.js

Time-Series graphing library utilizing Raphael.js
JavaScript
78
star
3

doom-todo-ivy

Display all TODO and FIXME entries for a project or buffer in ivy. Extracted from doom-emacs.
Emacs Lisp
32
star
4

stale_fish

manage test fixtures by keep them updated and accurate
Ruby
28
star
5

sinatra_autoload

stop requiring additional files with sinatra. use autoload.
Ruby
15
star
6

refactorme

Ruby
9
star
7

mongo_bench

Benchmark MongoDB instances (inspired by ab)
Ruby
8
star
8

spacemacs-langtool

A spacemacs layer for LanguageTool integration
Emacs Lisp
5
star
9

merb_forum

Forum written entirely using merb, datamapper, jquery.
Ruby
5
star
10

rocket_shorts

Because RocketPants needs another clothing option.
Ruby
4
star
11

shipt

ship to S3
Ruby
4
star
12

reusable

Modules that I have used across projects. Bundled into a single gem.
Ruby
4
star
13

warden_extensions

Modules built on-top of warden (lets call it Devise-light)
Ruby
3
star
14

flame

Elixir wrapper for Firebase Authentication & Google Identity APIs
Elixir
3
star
15

boxicons_elixir

Use Boxicons inside HEEx and Phoenix Components
Elixir
3
star
16

ruby-complexity

flog score in emacs
Emacs Lisp
2
star
17

emacs_latest

my emacs config, based off defunkt's setup.
Emacs Lisp
2
star
18

.pair.io

Personal dotfiles for use when pairing or using pair.io servers
Vim Script
2
star
19

jellybeans-plus-theme

An emacs replica of nanotech/jellybeans.vim for emacs
Emacs Lisp
2
star
20

sinatra-documentation

Ruby
2
star
21

ueberauth_slack_v2

Slack OAuth V2 Überauth strategy that supports Bot and User tokens
Elixir
2
star
22

story_tracker

Ruby
2
star
23

rarwe

Ember app built from Rock and Roll with Ember.JS
JavaScript
1
star
24

brewery

a homebrew
Ruby
1
star
25

colored_logger

output something useful with the rails logger
Ruby
1
star
26

pangea

1
star
27

dotfiles

Vim Script
1
star
28

slate-emacs

Emacs port of the excellent MacVim slate color theme
Emacs Lisp
1
star
29

to_delorean.js

Set of Ruby Modules that convert data into delorean.js compatible format
Ruby
1
star
30

middleman-webpack-scss

Ruby
1
star
31

chargified

Ruby wrapper for the Chargify XML API
Ruby
1
star
32

rack_tracker

1
star
33

deprecation_alert

TODO: one-line summary of your gem
Ruby
1
star
34

omniauth-google-authenticator

An omniauth strategy for supporting Google Authenticator TOTP
Ruby
1
star
35

overstolen

Ruby
1
star
36

gripht

a sinatra app providing visibility for multiple Pivotal Tracker projects.
Ruby
1
star
37

documentation-rails

Ruby
1
star
38

flexbox-grid-mixin

πŸš€ Flexbox grid SASS/SCSS mixin-based inspired by neat
HTML
1
star