topprospect-pivotal-tracker 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/.gitignore +9 -0
  2. data/Gemfile +15 -0
  3. data/Gemfile.lock +40 -0
  4. data/LICENSE +20 -0
  5. data/README.rdoc +77 -0
  6. data/Rakefile +49 -0
  7. data/VERSION +1 -0
  8. data/lib/pivotal-tracker.rb +38 -0
  9. data/lib/pivotal-tracker/activity.rb +45 -0
  10. data/lib/pivotal-tracker/attachment.rb +16 -0
  11. data/lib/pivotal-tracker/client.rb +35 -0
  12. data/lib/pivotal-tracker/extensions.rb +11 -0
  13. data/lib/pivotal-tracker/iteration.rb +34 -0
  14. data/lib/pivotal-tracker/membership.rb +20 -0
  15. data/lib/pivotal-tracker/note.rb +58 -0
  16. data/lib/pivotal-tracker/project.rb +58 -0
  17. data/lib/pivotal-tracker/proxy.rb +66 -0
  18. data/lib/pivotal-tracker/story.rb +149 -0
  19. data/lib/pivotal-tracker/task.rb +53 -0
  20. data/lib/pivotal-tracker/validation.rb +68 -0
  21. data/lib/pivotal_tracker.rb +2 -0
  22. data/pivotal-tracker.gemspec +120 -0
  23. data/spec/fixtures/activity.xml +177 -0
  24. data/spec/fixtures/created_note.xml +14 -0
  25. data/spec/fixtures/created_story.xml +14 -0
  26. data/spec/fixtures/iterations_all.xml +237 -0
  27. data/spec/fixtures/iterations_backlog.xml +163 -0
  28. data/spec/fixtures/iterations_current.xml +47 -0
  29. data/spec/fixtures/iterations_done.xml +33 -0
  30. data/spec/fixtures/memberships.xml +42 -0
  31. data/spec/fixtures/notes.xml +33 -0
  32. data/spec/fixtures/project.xml +51 -0
  33. data/spec/fixtures/project_activity.xml +177 -0
  34. data/spec/fixtures/projects.xml +103 -0
  35. data/spec/fixtures/stale_fish.yml +100 -0
  36. data/spec/fixtures/stories.xml +293 -0
  37. data/spec/fixtures/tasks.xml +24 -0
  38. data/spec/spec.opts +1 -0
  39. data/spec/spec_helper.rb +31 -0
  40. data/spec/support/stale_fish_fixtures.rb +67 -0
  41. data/spec/unit/pivotal-tracker/activity_spec.rb +23 -0
  42. data/spec/unit/pivotal-tracker/attachment_spec.rb +62 -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 +246 -0
@@ -0,0 +1,47 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <iterations type="array">
3
+ <iteration>
4
+ <id type="integer">3</id>
5
+ <number type="integer">3</number>
6
+ <start type="datetime">2010/07/26 05:00:00 UTC</start>
7
+ <finish type="datetime">2010/08/02 05:00:00 UTC</finish>
8
+ <stories type="array">
9
+ <story>
10
+ <id type="integer">4459994</id>
11
+ <project_id type="integer">102622</project_id>
12
+ <story_type>feature</story_type>
13
+ <url>http://www.pivotaltracker.com/story/show/4459994</url>
14
+ <estimate type="integer">2</estimate>
15
+ <current_state>unstarted</current_state>
16
+ <description>Generic description</description>
17
+ <name>Tasks Test</name>
18
+ <requested_by>Jon Mischo</requested_by>
19
+ <created_at type="datetime">2010/07/27 21:51:01 UTC</created_at>
20
+ <updated_at type="datetime">2010/07/27 22:20:46 UTC</updated_at>
21
+ <tasks type="array">
22
+ <task>
23
+ <id type="integer">468113</id>
24
+ <description>Task number 1</description>
25
+ <position>1</position>
26
+ <complete>false</complete>
27
+ <created_at type="datetime">2010/07/27 21:51:28 UTC</created_at>
28
+ </task>
29
+ <task>
30
+ <id type="integer">468114</id>
31
+ <description>Number 2 Task</description>
32
+ <position>2</position>
33
+ <complete>false</complete>
34
+ <created_at type="datetime">2010/07/27 21:51:32 UTC</created_at>
35
+ </task>
36
+ <task>
37
+ <id type="integer">468117</id>
38
+ <description>3rd task is a charm</description>
39
+ <position>3</position>
40
+ <complete>true</complete>
41
+ <created_at type="datetime">2010/07/27 21:51:42 UTC</created_at>
42
+ </task>
43
+ </tasks>
44
+ </story>
45
+ </stories>
46
+ </iteration>
47
+ </iterations>
@@ -0,0 +1,33 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <iterations type="array">
3
+ <iteration>
4
+ <id type="integer">1</id>
5
+ <number type="integer">1</number>
6
+ <start type="datetime">2010/07/12 05:00:00 UTC</start>
7
+ <finish type="datetime">2010/07/19 05:00:00 UTC</finish>
8
+ <stories type="array">
9
+ <story>
10
+ <id type="integer">4460116</id>
11
+ <project_id type="integer">102622</project_id>
12
+ <story_type>feature</story_type>
13
+ <url>http://www.pivotaltracker.com/story/show/4460116</url>
14
+ <estimate type="integer">0</estimate>
15
+ <current_state>accepted</current_state>
16
+ <description>This is a story that's finished.</description>
17
+ <name>Old, accepted story</name>
18
+ <requested_by>Jon Mischo</requested_by>
19
+ <created_at type="datetime">2010/07/27 21:58:28 UTC</created_at>
20
+ <updated_at type="datetime">2010/07/27 22:21:17 UTC</updated_at>
21
+ <accepted_at type="datetime">2010/07/18 17:00:00 UTC</accepted_at>
22
+ </story>
23
+ </stories>
24
+ </iteration>
25
+ <iteration>
26
+ <id type="integer">2</id>
27
+ <number type="integer">2</number>
28
+ <start type="datetime">2010/07/19 05:00:00 UTC</start>
29
+ <finish type="datetime">2010/07/26 05:00:00 UTC</finish>
30
+ <stories type="array">
31
+ </stories>
32
+ </iteration>
33
+ </iterations>
@@ -0,0 +1,42 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <memberships type="array">
3
+ <membership>
4
+ <id>331822</id>
5
+ <person>
6
+ <email>jmischo@sittercity.com</email>
7
+ <name>Jon</name>
8
+ <initials>JM</initials>
9
+ </person>
10
+ <role>Owner</role>
11
+ <project>
12
+ <id>102622</id>
13
+ <name>Pivotal Tracker API Gem</name>
14
+ </project>
15
+ </membership>
16
+ <membership>
17
+ <id>331823</id>
18
+ <person>
19
+ <email>jmischo@quagility.com</email>
20
+ <name>Jon Mischo</name>
21
+ <initials>JM</initials>
22
+ </person>
23
+ <role>Owner</role>
24
+ <project>
25
+ <id>102622</id>
26
+ <name>Pivotal Tracker API Gem</name>
27
+ </project>
28
+ </membership>
29
+ <membership>
30
+ <id>331832</id>
31
+ <person>
32
+ <email>pivotal-tracker-api-gem@quagility.com</email>
33
+ <name>Test Suite Access</name>
34
+ <initials>TEST</initials>
35
+ </person>
36
+ <role>Member</role>
37
+ <project>
38
+ <id>102622</id>
39
+ <name>Pivotal Tracker API Gem</name>
40
+ </project>
41
+ </membership>
42
+ </memberships>
@@ -0,0 +1,33 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <notes type="array">
3
+ <note>
4
+ <id type="integer">2111593</id>
5
+ <text>This is a comment...whee!</text>
6
+ <author>Jon</author>
7
+ <noted_at type="datetime">2010/07/27 22:15:48 UTC</noted_at>
8
+ </note>
9
+ <note>
10
+ <id type="integer">2128955</id>
11
+ <text>Test note</text>
12
+ <author>Test Suite Access</author>
13
+ <noted_at type="datetime">2010/07/29 18:15:09 UTC</noted_at>
14
+ </note>
15
+ <note>
16
+ <id type="integer">2128959</id>
17
+ <text>Test note</text>
18
+ <author>Test Suite Access</author>
19
+ <noted_at type="datetime">2010/07/29 18:16:12 UTC</noted_at>
20
+ </note>
21
+ <note>
22
+ <id type="integer">2129077</id>
23
+ <text>Test note</text>
24
+ <author>Test Suite Access</author>
25
+ <noted_at type="datetime">2010/07/29 18:22:26 UTC</noted_at>
26
+ </note>
27
+ <note>
28
+ <id type="integer">2129374</id>
29
+ <text>Test note</text>
30
+ <author>Test Suite Access</author>
31
+ <noted_at type="datetime">2010/07/29 18:55:44 UTC</noted_at>
32
+ </note>
33
+ </notes>
@@ -0,0 +1,51 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project>
3
+ <id>102622</id>
4
+ <name>Pivotal Tracker API Gem</name>
5
+ <iteration_length type="integer">1</iteration_length>
6
+ <week_start_day>Monday</week_start_day>
7
+ <point_scale>0,1,2,3</point_scale>
8
+ <account>Jon</account>
9
+ <velocity_scheme>Average of 3 iterations</velocity_scheme>
10
+ <current_velocity>2</current_velocity>
11
+ <initial_velocity>2</initial_velocity>
12
+ <number_of_done_iterations_to_show>12</number_of_done_iterations_to_show>
13
+ <labels></labels>
14
+ <last_activity_at type="datetime">2010/07/29 19:13:13 UTC</last_activity_at>
15
+ <allow_attachments>true</allow_attachments>
16
+ <public>true</public>
17
+ <use_https>false</use_https>
18
+ <bugs_and_chores_are_estimatable>true</bugs_and_chores_are_estimatable>
19
+ <commit_mode>true</commit_mode>
20
+ <memberships>
21
+ <membership>
22
+ <id>331822</id>
23
+ <person>
24
+ <email>jmischo@sittercity.com</email>
25
+ <name>Jon</name>
26
+ <initials>JM</initials>
27
+ </person>
28
+ <role>Owner</role>
29
+ </membership>
30
+ <membership>
31
+ <id>331823</id>
32
+ <person>
33
+ <email>jmischo@quagility.com</email>
34
+ <name>Jon Mischo</name>
35
+ <initials>JM</initials>
36
+ </person>
37
+ <role>Owner</role>
38
+ </membership>
39
+ <membership>
40
+ <id>331832</id>
41
+ <person>
42
+ <email>pivotal-tracker-api-gem@quagility.com</email>
43
+ <name>Test Suite Access</name>
44
+ <initials>TEST</initials>
45
+ </person>
46
+ <role>Member</role>
47
+ </membership>
48
+ </memberships>
49
+ <integrations>
50
+ </integrations>
51
+ </project>
@@ -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>