tsenart-pivotal-tracker 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/Gemfile +16 -0
  2. data/Gemfile.lock +48 -0
  3. data/LICENSE +20 -0
  4. data/README.rdoc +77 -0
  5. data/Rakefile +50 -0
  6. data/VERSION +1 -0
  7. data/lib/pivotal-tracker/activity.rb +46 -0
  8. data/lib/pivotal-tracker/attachment.rb +16 -0
  9. data/lib/pivotal-tracker/client.rb +41 -0
  10. data/lib/pivotal-tracker/extensions.rb +11 -0
  11. data/lib/pivotal-tracker/iteration.rb +34 -0
  12. data/lib/pivotal-tracker/membership.rb +20 -0
  13. data/lib/pivotal-tracker/note.rb +58 -0
  14. data/lib/pivotal-tracker/project.rb +58 -0
  15. data/lib/pivotal-tracker/proxy.rb +66 -0
  16. data/lib/pivotal-tracker/story.rb +148 -0
  17. data/lib/pivotal-tracker/task.rb +53 -0
  18. data/lib/pivotal-tracker/validation.rb +68 -0
  19. data/lib/pivotal-tracker.rb +40 -0
  20. data/lib/pivotal_tracker.rb +2 -0
  21. data/pivotal-tracker.gemspec +121 -0
  22. data/spec/fixtures/activity.xml +177 -0
  23. data/spec/fixtures/created_note.xml +14 -0
  24. data/spec/fixtures/created_story.xml +14 -0
  25. data/spec/fixtures/iterations_all.xml +237 -0
  26. data/spec/fixtures/iterations_backlog.xml +163 -0
  27. data/spec/fixtures/iterations_current.xml +47 -0
  28. data/spec/fixtures/iterations_done.xml +33 -0
  29. data/spec/fixtures/memberships.xml +42 -0
  30. data/spec/fixtures/notes.xml +33 -0
  31. data/spec/fixtures/project.xml +51 -0
  32. data/spec/fixtures/project_activity.xml +177 -0
  33. data/spec/fixtures/projects.xml +103 -0
  34. data/spec/fixtures/stale_fish.yml +100 -0
  35. data/spec/fixtures/stories.xml +293 -0
  36. data/spec/fixtures/tasks.xml +24 -0
  37. data/spec/spec.opts +1 -0
  38. data/spec/spec_helper.rb +31 -0
  39. data/spec/support/stale_fish_fixtures.rb +67 -0
  40. data/spec/unit/pivotal-tracker/activity_spec.rb +32 -0
  41. data/spec/unit/pivotal-tracker/attachment_spec.rb +62 -0
  42. data/spec/unit/pivotal-tracker/client_spec.rb +87 -0
  43. data/spec/unit/pivotal-tracker/iteration_spec.rb +52 -0
  44. data/spec/unit/pivotal-tracker/membership_spec.rb +20 -0
  45. data/spec/unit/pivotal-tracker/note_spec.rb +61 -0
  46. data/spec/unit/pivotal-tracker/project_spec.rb +55 -0
  47. data/spec/unit/pivotal-tracker/story_spec.rb +185 -0
  48. data/spec/unit/pivotal-tracker/task_spec.rb +21 -0
  49. metadata +236 -0
@@ -0,0 +1,177 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <activities type="array">
3
+ <activity>
4
+ <id type="integer">24492385</id>
5
+ <version type="integer">206</version>
6
+ <event_type>story_create</event_type>
7
+ <occurred_at type="datetime">2010/07/29 19:13:04 UTC</occurred_at>
8
+ <author>Test Suite Access</author>
9
+ <project_id type="integer">102622</project_id>
10
+ <description>Test Suite Access added &quot;Create stuff&quot;</description>
11
+ <stories>
12
+ <story>
13
+ <id type="integer">4492080</id>
14
+ <url>http://www.pivotaltracker.com/services/v3/projects/102622/stories/4492080</url>
15
+ <name>Create stuff</name>
16
+ <story_type>feature</story_type>
17
+ <current_state>unscheduled</current_state>
18
+ </story>
19
+ </stories>
20
+ </activity>
21
+ <activity>
22
+ <id type="integer">24492375</id>
23
+ <version type="integer">205</version>
24
+ <event_type>story_create</event_type>
25
+ <occurred_at type="datetime">2010/07/29 19:13:01 UTC</occurred_at>
26
+ <author>Test Suite Access</author>
27
+ <project_id type="integer">102622</project_id>
28
+ <description>Test Suite Access added &quot;Create stuff&quot;</description>
29
+ <stories>
30
+ <story>
31
+ <id type="integer">4492078</id>
32
+ <url>http://www.pivotaltracker.com/services/v3/projects/102622/stories/4492078</url>
33
+ <name>Create stuff</name>
34
+ <story_type>feature</story_type>
35
+ <current_state>unscheduled</current_state>
36
+ </story>
37
+ </stories>
38
+ </activity>
39
+ <activity>
40
+ <id type="integer">24492239</id>
41
+ <version type="integer">200</version>
42
+ <event_type>story_create</event_type>
43
+ <occurred_at type="datetime">2010/07/29 19:11:43 UTC</occurred_at>
44
+ <author>Test Suite Access</author>
45
+ <project_id type="integer">102622</project_id>
46
+ <description>Test Suite Access added &quot;Create stuff&quot;</description>
47
+ <stories>
48
+ <story>
49
+ <id type="integer">4492060</id>
50
+ <url>http://www.pivotaltracker.com/services/v3/projects/102622/stories/4492060</url>
51
+ <name>Create stuff</name>
52
+ <story_type>feature</story_type>
53
+ <current_state>unscheduled</current_state>
54
+ </story>
55
+ </stories>
56
+ </activity>
57
+ <activity>
58
+ <id type="integer">24492220</id>
59
+ <version type="integer">199</version>
60
+ <event_type>story_create</event_type>
61
+ <occurred_at type="datetime">2010/07/29 19:11:38 UTC</occurred_at>
62
+ <author>Test Suite Access</author>
63
+ <project_id type="integer">102622</project_id>
64
+ <description>Test Suite Access added &quot;Create stuff&quot;</description>
65
+ <stories>
66
+ <story>
67
+ <id type="integer">4492059</id>
68
+ <url>http://www.pivotaltracker.com/services/v3/projects/102622/stories/4492059</url>
69
+ <name>Create stuff</name>
70
+ <story_type>feature</story_type>
71
+ <current_state>unscheduled</current_state>
72
+ </story>
73
+ </stories>
74
+ </activity>
75
+ <activity>
76
+ <id type="integer">24491968</id>
77
+ <version type="integer">194</version>
78
+ <event_type>story_create</event_type>
79
+ <occurred_at type="datetime">2010/07/29 19:09:26 UTC</occurred_at>
80
+ <author>Test Suite Access</author>
81
+ <project_id type="integer">102622</project_id>
82
+ <description>Test Suite Access added &quot;Create stuff&quot;</description>
83
+ <stories>
84
+ <story>
85
+ <id type="integer">4491973</id>
86
+ <url>http://www.pivotaltracker.com/services/v3/projects/102622/stories/4491973</url>
87
+ <name>Create stuff</name>
88
+ <story_type>feature</story_type>
89
+ <current_state>unscheduled</current_state>
90
+ </story>
91
+ </stories>
92
+ </activity>
93
+ <activity>
94
+ <id type="integer">24491959</id>
95
+ <version type="integer">193</version>
96
+ <event_type>story_create</event_type>
97
+ <occurred_at type="datetime">2010/07/29 19:09:24 UTC</occurred_at>
98
+ <author>Test Suite Access</author>
99
+ <project_id type="integer">102622</project_id>
100
+ <description>Test Suite Access added &quot;Create stuff&quot;</description>
101
+ <stories>
102
+ <story>
103
+ <id type="integer">4491971</id>
104
+ <url>http://www.pivotaltracker.com/services/v3/projects/102622/stories/4491971</url>
105
+ <name>Create stuff</name>
106
+ <story_type>feature</story_type>
107
+ <current_state>unscheduled</current_state>
108
+ </story>
109
+ </stories>
110
+ </activity>
111
+ <activity>
112
+ <id type="integer">24491880</id>
113
+ <version type="integer">192</version>
114
+ <event_type>story_update</event_type>
115
+ <occurred_at type="datetime">2010/07/29 19:08:43 UTC</occurred_at>
116
+ <author>Jon</author>
117
+ <project_id type="integer">102622</project_id>
118
+ <description>Jon edited &quot;Movable Story&quot;</description>
119
+ <stories>
120
+ <story>
121
+ <id type="integer">4490874</id>
122
+ <url>http://www.pivotaltracker.com/services/v3/projects/102622/stories/4490874</url>
123
+ <estimate type="integer">0</estimate>
124
+ </story>
125
+ </stories>
126
+ </activity>
127
+ <activity>
128
+ <id type="integer">24491859</id>
129
+ <version type="integer">191</version>
130
+ <event_type>story_update</event_type>
131
+ <occurred_at type="datetime">2010/07/29 19:08:36 UTC</occurred_at>
132
+ <author>Jon</author>
133
+ <project_id type="integer">102622</project_id>
134
+ <description>Jon edited &quot;Movable Story&quot;</description>
135
+ <stories>
136
+ <story>
137
+ <id type="integer">4490874</id>
138
+ <url>http://www.pivotaltracker.com/services/v3/projects/102622/stories/4490874</url>
139
+ <current_state>unstarted</current_state>
140
+ </story>
141
+ </stories>
142
+ </activity>
143
+ <activity>
144
+ <id type="integer">24491236</id>
145
+ <version type="integer">158</version>
146
+ <event_type>story_update</event_type>
147
+ <occurred_at type="datetime">2010/07/29 19:04:29 UTC</occurred_at>
148
+ <author>Jon</author>
149
+ <project_id type="integer">102622</project_id>
150
+ <description>Jon edited &quot;Movable Story&quot;</description>
151
+ <stories>
152
+ <story>
153
+ <id type="integer">4490874</id>
154
+ <url>http://www.pivotaltracker.com/services/v3/projects/102622/stories/4490874</url>
155
+ <name>Movable Story</name>
156
+ </story>
157
+ </stories>
158
+ </activity>
159
+ <activity>
160
+ <id type="integer">24490623</id>
161
+ <version type="integer">153</version>
162
+ <event_type>story_create</event_type>
163
+ <occurred_at type="datetime">2010/07/29 18:58:45 UTC</occurred_at>
164
+ <author>Test Suite Access</author>
165
+ <project_id type="integer">102622</project_id>
166
+ <description>Test Suite Access added &quot;Create stuff&quot;</description>
167
+ <stories>
168
+ <story>
169
+ <id type="integer">4491800</id>
170
+ <url>http://www.pivotaltracker.com/services/v3/projects/102622/stories/4491800</url>
171
+ <name>Create stuff</name>
172
+ <story_type>feature</story_type>
173
+ <current_state>unscheduled</current_state>
174
+ </story>
175
+ </stories>
176
+ </activity>
177
+ </activities>
@@ -0,0 +1,103 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <projects type="array">
3
+ <project>
4
+ <id>102622</id>
5
+ <name>Pivotal Tracker API Gem</name>
6
+ <iteration_length type="integer">1</iteration_length>
7
+ <week_start_day>Monday</week_start_day>
8
+ <point_scale>0,1,2,3</point_scale>
9
+ <account>Jon</account>
10
+ <velocity_scheme>Average of 3 iterations</velocity_scheme>
11
+ <current_velocity>2</current_velocity>
12
+ <initial_velocity>2</initial_velocity>
13
+ <number_of_done_iterations_to_show>12</number_of_done_iterations_to_show>
14
+ <labels></labels>
15
+ <last_activity_at type="datetime">2010/07/29 19:13:13 UTC</last_activity_at>
16
+ <allow_attachments>true</allow_attachments>
17
+ <public>true</public>
18
+ <use_https>false</use_https>
19
+ <bugs_and_chores_are_estimatable>true</bugs_and_chores_are_estimatable>
20
+ <commit_mode>true</commit_mode>
21
+ <memberships>
22
+ <membership>
23
+ <id>331822</id>
24
+ <person>
25
+ <email>jmischo@sittercity.com</email>
26
+ <name>Jon</name>
27
+ <initials>JM</initials>
28
+ </person>
29
+ <role>Owner</role>
30
+ </membership>
31
+ <membership>
32
+ <id>331823</id>
33
+ <person>
34
+ <email>jmischo@quagility.com</email>
35
+ <name>Jon Mischo</name>
36
+ <initials>JM</initials>
37
+ </person>
38
+ <role>Owner</role>
39
+ </membership>
40
+ <membership>
41
+ <id>331832</id>
42
+ <person>
43
+ <email>pivotal-tracker-api-gem@quagility.com</email>
44
+ <name>Test Suite Access</name>
45
+ <initials>TEST</initials>
46
+ </person>
47
+ <role>Member</role>
48
+ </membership>
49
+ </memberships>
50
+ <integrations>
51
+ </integrations>
52
+ </project>
53
+ <project>
54
+ <id>103014</id>
55
+ <name>Pivotal Tracker API Gem Target Project</name>
56
+ <iteration_length type="integer">1</iteration_length>
57
+ <week_start_day>Monday</week_start_day>
58
+ <point_scale>0,1,2,3</point_scale>
59
+ <account>Jon</account>
60
+ <velocity_scheme>Average of 3 iterations</velocity_scheme>
61
+ <current_velocity>10</current_velocity>
62
+ <initial_velocity>10</initial_velocity>
63
+ <number_of_done_iterations_to_show>12</number_of_done_iterations_to_show>
64
+ <labels></labels>
65
+ <last_activity_at type="datetime">2010/07/29 19:13:12 UTC</last_activity_at>
66
+ <allow_attachments>true</allow_attachments>
67
+ <public>false</public>
68
+ <use_https>false</use_https>
69
+ <bugs_and_chores_are_estimatable>false</bugs_and_chores_are_estimatable>
70
+ <commit_mode>false</commit_mode>
71
+ <memberships>
72
+ <membership>
73
+ <id>333170</id>
74
+ <person>
75
+ <email>jmischo@sittercity.com</email>
76
+ <name>Jon</name>
77
+ <initials>JM</initials>
78
+ </person>
79
+ <role>Owner</role>
80
+ </membership>
81
+ <membership>
82
+ <id>333172</id>
83
+ <person>
84
+ <email>pivotal-tracker-api-gem@quagility.com</email>
85
+ <name>Test Suite Access</name>
86
+ <initials>TEST</initials>
87
+ </person>
88
+ <role>Member</role>
89
+ </membership>
90
+ <membership>
91
+ <id>333173</id>
92
+ <person>
93
+ <email>jmischo@quagility.com</email>
94
+ <name>Jon Mischo</name>
95
+ <initials>JM</initials>
96
+ </person>
97
+ <role>Owner</role>
98
+ </membership>
99
+ </memberships>
100
+ <integrations>
101
+ </integrations>
102
+ </project>
103
+ </projects>
@@ -0,0 +1,100 @@
1
+ --- !omap
2
+ - stale:
3
+ - memberships:
4
+ file: 'memberships.xml'
5
+ update_interval: 2.weeks
6
+ check_against: http://www.pivotaltracker.com/services/v3/projects/102622/memberships
7
+ request_type: GET
8
+ update_method: StaleFishFixtures.update_memberships_fixture
9
+ last_updated_at: 2010-07-29T20:15:09+01:00
10
+ - projects:
11
+ file: 'projects.xml'
12
+ update_interval: 2.weeks
13
+ check_against: http://www.pivotaltracker.com/services/v3/projects
14
+ request_type: GET
15
+ update_method: StaleFishFixtures.update_projects_fixture
16
+ last_updated_at: 2010-07-29T20:15:09+01:00
17
+ - tasks:
18
+ file: 'tasks.xml'
19
+ update_interval: 2.weeks
20
+ check_against: http://www.pivotaltracker.com/services/v3/projects/102622/stories/4459994/tasks
21
+ request_type: GET
22
+ update_method: StaleFishFixtures.update_tasks_fixture
23
+ last_updated_at: 2010-07-29T20:15:10+01:00
24
+ - project:
25
+ file: 'project.xml'
26
+ update_interval: 2.weeks
27
+ check_against: http://www.pivotaltracker.com/services/v3/projects/102622
28
+ request_type: GET
29
+ update_method: StaleFishFixtures.update_project_fixture
30
+ last_updated_at: 2010-07-29T20:15:11+01:00
31
+ - activity:
32
+ file: 'activity.xml'
33
+ update_interval: 2.weeks
34
+ check_against: http://www.pivotaltracker.com/services/v3/activities
35
+ request_type: GET
36
+ update_method: StaleFishFixtures.update_activity_fixture
37
+ last_updated_at: 2010-07-29T20:15:11+01:00
38
+ - stories:
39
+ file: 'stories.xml'
40
+ update_interval: 2.weeks
41
+ check_against: http://www.pivotaltracker.com/services/v3/projects/102622/stories
42
+ request_type: GET
43
+ update_method: StaleFishFixtures.update_stories_fixture
44
+ last_updated_at: 2010-07-29T20:15:12+01:00
45
+ - project_activity:
46
+ file: 'project_activity.xml'
47
+ update_interval: 2.weeks
48
+ check_against: http://www.pivotaltracker.com/services/v3/projects/102622/activities
49
+ request_type: GET
50
+ update_method: StaleFishFixtures.update_project_activity_fixture
51
+ last_updated_at: 2010-07-29T20:15:13+01:00
52
+ - create_story:
53
+ file: 'created_story.xml'
54
+ update_interval: 2.weeks
55
+ check_against: http://www.pivotaltracker.com/services/v3/projects/102622/stories
56
+ request_type: POST
57
+ update_method: StaleFishFixtures.create_new_story
58
+ last_updated_at: 2010-07-29T20:15:14+01:00
59
+ - iterations_current:
60
+ file: 'iterations_current.xml'
61
+ update_interval: 2.weeks
62
+ check_against: http://www.pivotaltracker.com/services/v3/projects/102622/iterations/current
63
+ request_type: GET
64
+ update_method: StaleFishFixtures.update_iterations_current_fixture
65
+ last_updated_at: 2010-07-29T20:15:14+01:00
66
+ - iterations_done:
67
+ file: 'iterations_done.xml'
68
+ update_interval: 2.weeks
69
+ check_against: http://www.pivotaltracker.com/services/v3/projects/102622/iterations/done
70
+ request_type: GET
71
+ update_method: StaleFishFixtures.update_iterations_done_fixture
72
+ last_updated_at: 2010-07-29T20:15:14+01:00
73
+ - iterations_backlog:
74
+ file: 'iterations_backlog.xml'
75
+ update_interval: 2.weeks
76
+ check_against: http://www.pivotaltracker.com/services/v3/projects/102622/iterations/backlog
77
+ request_type: GET
78
+ update_method: StaleFishFixtures.update_iterations_backlog_fixture
79
+ last_updated_at: 2010-07-29T20:15:15+01:00
80
+ - iterations_all:
81
+ file: 'iterations_all.xml'
82
+ update_interval: 2.weeks
83
+ check_against: http://www.pivotaltracker.com/services/v3/projects/102622/iterations
84
+ request_type: GET
85
+ update_method: StaleFishFixtures.update_iterations_all_fixture
86
+ last_updated_at: 2010-07-29T20:15:16+01:00
87
+ - notes:
88
+ file: 'notes.xml'
89
+ update_interval: 2.weeks
90
+ check_against: http://www.pivotaltracker.com/services/v3/projects/102622/stories/4460038/notes
91
+ request_type: GET
92
+ update_method: StaleFishFixtures.update_notes_fixture
93
+ last_updated_at: 2010-07-29T20:15:16+01:00
94
+ - create_note:
95
+ file: 'created_note.xml'
96
+ update_interval: 2.weeks
97
+ check_against: http://www.pivotaltracker.com/services/v3/projects/102622/stories/4460038/notes
98
+ request_type: POST
99
+ update_method: StaleFishFixtures.create_new_story
100
+ last_updated_at: 2010-07-29T20:15:17+01:00