pt-flow 0.2 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/.gitignore +1 -0
  2. data/Rakefile +5 -0
  3. data/lib/pt-flow/ui.rb +21 -13
  4. data/lib/pt-flow/version.rb +1 -1
  5. data/pt-flow.gemspec +1 -0
  6. data/spec/fixtures/activity.xml +177 -0
  7. data/spec/fixtures/backup_stories.xml +270 -0
  8. data/spec/fixtures/bugs.xml +279 -0
  9. data/spec/fixtures/created_note.xml +14 -0
  10. data/spec/fixtures/created_story.xml +14 -0
  11. data/spec/fixtures/features.xml +293 -0
  12. data/spec/fixtures/global_config.yml +1 -1
  13. data/spec/fixtures/iterations_all.xml +243 -0
  14. data/spec/fixtures/iterations_backlog.xml +166 -0
  15. data/spec/fixtures/iterations_current.xml +48 -0
  16. data/spec/fixtures/iterations_current_backlog.xml +211 -0
  17. data/spec/fixtures/iterations_done.xml +34 -0
  18. data/spec/fixtures/local_config.yml +5 -5
  19. data/spec/fixtures/memberships.xml +42 -0
  20. data/spec/fixtures/notes.xml +33 -0
  21. data/spec/fixtures/project.xml +53 -0
  22. data/spec/fixtures/project_activity.xml +177 -0
  23. data/spec/fixtures/projects.xml +107 -0
  24. data/spec/fixtures/stories.xml +270 -0
  25. data/spec/fixtures/story-4459994.xml +14 -0
  26. data/spec/fixtures/story-4460038.xml +46 -0
  27. data/spec/fixtures/story-4460598.xml +32 -0
  28. data/spec/fixtures/story-4473735.xml +48 -0
  29. data/spec/fixtures/story.xml +14 -0
  30. data/spec/fixtures/tasks.xml +24 -0
  31. data/spec/fixtures/update_tasks.xml +8 -0
  32. data/spec/lib/pt-flow/ui_spec.rb +79 -28
  33. data/spec/spec_helper.rb +2 -1
  34. data/spec/support/dummy.rb +14 -0
  35. data/spec/support/fixture_macros.rb +13 -0
  36. data/spec/support/git_macros.rb +9 -0
  37. data/spec/support/webmock.rb +5 -0
  38. metadata +104 -12
@@ -0,0 +1,243 @@
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
+ <team_strength type="float">1</team_strength>
9
+ <stories type="array">
10
+ <story>
11
+ <id type="integer">4460116</id>
12
+ <project_id type="integer">102622</project_id>
13
+ <story_type>feature</story_type>
14
+ <url>http://www.pivotaltracker.com/story/show/4460116</url>
15
+ <estimate type="integer">0</estimate>
16
+ <current_state>accepted</current_state>
17
+ <description>This is a story that's finished.</description>
18
+ <name>Old, accepted story</name>
19
+ <requested_by>Jon Mischo</requested_by>
20
+ <created_at type="datetime">2010/07/27 21:58:28 UTC</created_at>
21
+ <updated_at type="datetime">2010/07/27 22:21:17 UTC</updated_at>
22
+ <accepted_at type="datetime">2010/07/18 17:00:00 UTC</accepted_at>
23
+ </story>
24
+ </stories>
25
+ </iteration>
26
+ <iteration>
27
+ <id type="integer">2</id>
28
+ <number type="integer">2</number>
29
+ <start type="datetime">2010/07/19 05:00:00 UTC</start>
30
+ <finish type="datetime">2010/07/26 05:00:00 UTC</finish>
31
+ <team_strength type="float">1</team_strength>
32
+ <stories type="array">
33
+ </stories>
34
+ </iteration>
35
+ <iteration>
36
+ <id type="integer">3</id>
37
+ <number type="integer">3</number>
38
+ <start type="datetime">2010/07/26 05:00:00 UTC</start>
39
+ <finish type="datetime">2010/08/02 05:00:00 UTC</finish>
40
+ <team_strength type="float">1</team_strength>
41
+ <stories type="array">
42
+ <story>
43
+ <id type="integer">4459994</id>
44
+ <project_id type="integer">102622</project_id>
45
+ <story_type>feature</story_type>
46
+ <url>http://www.pivotaltracker.com/story/show/4459994</url>
47
+ <estimate type="integer">2</estimate>
48
+ <current_state>unstarted</current_state>
49
+ <description>Generic description</description>
50
+ <name>Tasks Test</name>
51
+ <requested_by>Jon Mischo</requested_by>
52
+ <created_at type="datetime">2010/07/27 21:51:01 UTC</created_at>
53
+ <updated_at type="datetime">2010/07/27 22:20:46 UTC</updated_at>
54
+ <tasks type="array">
55
+ <task>
56
+ <id type="integer">468113</id>
57
+ <description>Task number 1</description>
58
+ <position>1</position>
59
+ <complete>false</complete>
60
+ <created_at type="datetime">2010/07/27 21:51:28 UTC</created_at>
61
+ </task>
62
+ <task>
63
+ <id type="integer">468114</id>
64
+ <description>Number 2 Task</description>
65
+ <position>2</position>
66
+ <complete>false</complete>
67
+ <created_at type="datetime">2010/07/27 21:51:32 UTC</created_at>
68
+ </task>
69
+ <task>
70
+ <id type="integer">468117</id>
71
+ <description>3rd task is a charm</description>
72
+ <position>3</position>
73
+ <complete>true</complete>
74
+ <created_at type="datetime">2010/07/27 21:51:42 UTC</created_at>
75
+ </task>
76
+ </tasks>
77
+ </story>
78
+ </stories>
79
+ </iteration>
80
+ <iteration>
81
+ <id type="integer">4</id>
82
+ <number type="integer">4</number>
83
+ <start type="datetime">2010/08/02 05:00:00 UTC</start>
84
+ <finish type="datetime">2010/08/09 05:00:00 UTC</finish>
85
+ <team_strength type="float">1</team_strength>
86
+ <stories type="array">
87
+ <story>
88
+ <id type="integer">4460038</id>
89
+ <project_id type="integer">102622</project_id>
90
+ <story_type>feature</story_type>
91
+ <url>http://www.pivotaltracker.com/story/show/4460038</url>
92
+ <estimate type="integer">1</estimate>
93
+ <current_state>unstarted</current_state>
94
+ <description>This is a story that has comments.</description>
95
+ <name>This is for comments</name>
96
+ <requested_by>Jon Mischo</requested_by>
97
+ <created_at type="datetime">2010/07/27 21:53:16 UTC</created_at>
98
+ <updated_at type="datetime">2010/07/27 22:20:48 UTC</updated_at>
99
+ <notes type="array">
100
+ <note>
101
+ <id type="integer">2111593</id>
102
+ <text>This is a comment...whee!</text>
103
+ <author>Jon</author>
104
+ <noted_at type="datetime">2010/07/27 22:15:48 UTC</noted_at>
105
+ </note>
106
+ <note>
107
+ <id type="integer">2128955</id>
108
+ <text>Test note</text>
109
+ <author>Test Suite Access</author>
110
+ <noted_at type="datetime">2010/07/29 18:15:09 UTC</noted_at>
111
+ </note>
112
+ <note>
113
+ <id type="integer">2128959</id>
114
+ <text>Test note</text>
115
+ <author>Test Suite Access</author>
116
+ <noted_at type="datetime">2010/07/29 18:16:12 UTC</noted_at>
117
+ </note>
118
+ <note>
119
+ <id type="integer">2129077</id>
120
+ <text>Test note</text>
121
+ <author>Test Suite Access</author>
122
+ <noted_at type="datetime">2010/07/29 18:22:26 UTC</noted_at>
123
+ </note>
124
+ <note>
125
+ <id type="integer">2129374</id>
126
+ <text>Test note</text>
127
+ <author>Test Suite Access</author>
128
+ <noted_at type="datetime">2010/07/29 18:55:44 UTC</noted_at>
129
+ </note>
130
+ </notes>
131
+ </story>
132
+ </stories>
133
+ </iteration>
134
+ <iteration>
135
+ <id type="integer">5</id>
136
+ <number type="integer">5</number>
137
+ <start type="datetime">2010/08/09 05:00:00 UTC</start>
138
+ <finish type="datetime">2010/08/16 05:00:00 UTC</finish>
139
+ <team_strength type="float">1</team_strength>
140
+ <stories type="array">
141
+ <story>
142
+ <id type="integer">4460598</id>
143
+ <project_id type="integer">102622</project_id>
144
+ <story_type>feature</story_type>
145
+ <url>http://www.pivotaltracker.com/story/show/4460598</url>
146
+ <estimate type="integer">3</estimate>
147
+ <current_state>unstarted</current_state>
148
+ <description>This story has attachments.</description>
149
+ <name>Story with attachments</name>
150
+ <requested_by>Jon Mischo</requested_by>
151
+ <created_at type="datetime">2010/07/27 22:33:13 UTC</created_at>
152
+ <updated_at type="datetime">2010/07/27 22:33:28 UTC</updated_at>
153
+ <attachments type="array">
154
+ <attachment>
155
+ <id type="integer">491576</id>
156
+ <filename>LICENSE</filename>
157
+ <description></description>
158
+ <uploaded_by>Jon</uploaded_by>
159
+ <uploaded_at type="datetime">2010/07/27 22:34:23 UTC</uploaded_at>
160
+ <url>http://www.pivotaltracker.com/resource/download/491576</url>
161
+ </attachment>
162
+ <attachment>
163
+ <id type="integer">493019</id>
164
+ <filename>README.rdoc</filename>
165
+ <description>README file from api gem</description>
166
+ <uploaded_by>Jon</uploaded_by>
167
+ <uploaded_at type="datetime">2010/07/28 15:16:18 UTC</uploaded_at>
168
+ <url>http://www.pivotaltracker.com/resource/download/493019</url>
169
+ </attachment>
170
+ </attachments>
171
+ </story>
172
+ </stories>
173
+ </iteration>
174
+ <iteration>
175
+ <id type="integer">6</id>
176
+ <number type="integer">6</number>
177
+ <start type="datetime">2010/08/16 05:00:00 UTC</start>
178
+ <finish type="datetime">2010/08/23 05:00:00 UTC</finish>
179
+ <team_strength type="float">1</team_strength>
180
+ <stories type="array">
181
+ <story>
182
+ <id type="integer">4473735</id>
183
+ <project_id type="integer">102622</project_id>
184
+ <story_type>feature</story_type>
185
+ <url>http://www.pivotaltracker.com/story/show/4473735</url>
186
+ <estimate type="integer">1</estimate>
187
+ <current_state>unstarted</current_state>
188
+ <description></description>
189
+ <name>Attachment upload test story</name>
190
+ <requested_by>Jon</requested_by>
191
+ <created_at type="datetime">2010/07/28 18:17:33 UTC</created_at>
192
+ <updated_at type="datetime">2010/07/28 18:17:44 UTC</updated_at>
193
+ <attachments type="array">
194
+ <attachment>
195
+ <id type="integer">495851</id>
196
+ <filename>LICENSE</filename>
197
+ <description></description>
198
+ <uploaded_by>Test Suite Access</uploaded_by>
199
+ <uploaded_at type="datetime">2010/07/29 19:07:19 UTC</uploaded_at>
200
+ <url>http://www.pivotaltracker.com/resource/download/495851</url>
201
+ </attachment>
202
+ <attachment>
203
+ <id type="integer">495856</id>
204
+ <filename>LICENSE</filename>
205
+ <description></description>
206
+ <uploaded_by>Test Suite Access</uploaded_by>
207
+ <uploaded_at type="datetime">2010/07/29 19:09:27 UTC</uploaded_at>
208
+ <url>http://www.pivotaltracker.com/resource/download/495856</url>
209
+ </attachment>
210
+ <attachment>
211
+ <id type="integer">495858</id>
212
+ <filename>LICENSE</filename>
213
+ <description></description>
214
+ <uploaded_by>Test Suite Access</uploaded_by>
215
+ <uploaded_at type="datetime">2010/07/29 19:11:44 UTC</uploaded_at>
216
+ <url>http://www.pivotaltracker.com/resource/download/495858</url>
217
+ </attachment>
218
+ <attachment>
219
+ <id type="integer">495863</id>
220
+ <filename>LICENSE</filename>
221
+ <description></description>
222
+ <uploaded_by>Test Suite Access</uploaded_by>
223
+ <uploaded_at type="datetime">2010/07/29 19:13:06 UTC</uploaded_at>
224
+ <url>http://www.pivotaltracker.com/resource/download/495863</url>
225
+ </attachment>
226
+ </attachments>
227
+ </story>
228
+ <story>
229
+ <id type="integer">4490874</id>
230
+ <project_id type="integer">102622</project_id>
231
+ <story_type>feature</story_type>
232
+ <url>http://www.pivotaltracker.com/story/show/4490874</url>
233
+ <estimate type="integer">0</estimate>
234
+ <current_state>unstarted</current_state>
235
+ <description></description>
236
+ <name>Movable Story</name>
237
+ <requested_by>Test Suite Access</requested_by>
238
+ <created_at type="datetime">2010/07/29 18:12:31 UTC</created_at>
239
+ <updated_at type="datetime">2010/07/29 19:13:12 UTC</updated_at>
240
+ </story>
241
+ </stories>
242
+ </iteration>
243
+ </iterations>
@@ -0,0 +1,166 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <iterations type="array">
3
+ <iteration>
4
+ <id type="integer">4</id>
5
+ <number type="integer">4</number>
6
+ <start type="datetime">2010/08/02 05:00:00 UTC</start>
7
+ <finish type="datetime">2010/08/09 05:00:00 UTC</finish>
8
+ <team_strength type="float">1</team_strength>
9
+ <stories type="array">
10
+ <story>
11
+ <id type="integer">4460038</id>
12
+ <project_id type="integer">102622</project_id>
13
+ <story_type>feature</story_type>
14
+ <url>http://www.pivotaltracker.com/story/show/4460038</url>
15
+ <estimate type="integer">1</estimate>
16
+ <current_state>unstarted</current_state>
17
+ <description>This is a story that has comments.</description>
18
+ <name>This is for comments</name>
19
+ <requested_by>Jon Mischo</requested_by>
20
+ <created_at type="datetime">2010/07/27 21:53:16 UTC</created_at>
21
+ <updated_at type="datetime">2010/07/27 22:20:48 UTC</updated_at>
22
+ <notes type="array">
23
+ <note>
24
+ <id type="integer">2111593</id>
25
+ <text>This is a comment...whee!</text>
26
+ <author>Jon</author>
27
+ <noted_at type="datetime">2010/07/27 22:15:48 UTC</noted_at>
28
+ </note>
29
+ <note>
30
+ <id type="integer">2128955</id>
31
+ <text>Test note</text>
32
+ <author>Test Suite Access</author>
33
+ <noted_at type="datetime">2010/07/29 18:15:09 UTC</noted_at>
34
+ </note>
35
+ <note>
36
+ <id type="integer">2128959</id>
37
+ <text>Test note</text>
38
+ <author>Test Suite Access</author>
39
+ <noted_at type="datetime">2010/07/29 18:16:12 UTC</noted_at>
40
+ </note>
41
+ <note>
42
+ <id type="integer">2129077</id>
43
+ <text>Test note</text>
44
+ <author>Test Suite Access</author>
45
+ <noted_at type="datetime">2010/07/29 18:22:26 UTC</noted_at>
46
+ </note>
47
+ <note>
48
+ <id type="integer">2129374</id>
49
+ <text>Test note</text>
50
+ <author>Test Suite Access</author>
51
+ <noted_at type="datetime">2010/07/29 18:55:44 UTC</noted_at>
52
+ </note>
53
+ </notes>
54
+ </story>
55
+ </stories>
56
+ </iteration>
57
+ <iteration>
58
+ <id type="integer">5</id>
59
+ <number type="integer">5</number>
60
+ <start type="datetime">2010/08/09 05:00:00 UTC</start>
61
+ <finish type="datetime">2010/08/16 05:00:00 UTC</finish>
62
+ <team_strength type="float">1</team_strength>
63
+ <stories type="array">
64
+ <story>
65
+ <id type="integer">4460598</id>
66
+ <project_id type="integer">102622</project_id>
67
+ <story_type>feature</story_type>
68
+ <url>http://www.pivotaltracker.com/story/show/4460598</url>
69
+ <estimate type="integer">3</estimate>
70
+ <current_state>unstarted</current_state>
71
+ <description>This story has attachments.</description>
72
+ <name>Story with attachments</name>
73
+ <requested_by>Jon Mischo</requested_by>
74
+ <created_at type="datetime">2010/07/27 22:33:13 UTC</created_at>
75
+ <updated_at type="datetime">2010/07/27 22:33:28 UTC</updated_at>
76
+ <attachments type="array">
77
+ <attachment>
78
+ <id type="integer">491576</id>
79
+ <filename>LICENSE</filename>
80
+ <description></description>
81
+ <uploaded_by>Jon</uploaded_by>
82
+ <uploaded_at type="datetime">2010/07/27 22:34:23 UTC</uploaded_at>
83
+ <url>http://www.pivotaltracker.com/resource/download/491576</url>
84
+ </attachment>
85
+ <attachment>
86
+ <id type="integer">493019</id>
87
+ <filename>README.rdoc</filename>
88
+ <description>README file from api gem</description>
89
+ <uploaded_by>Jon</uploaded_by>
90
+ <uploaded_at type="datetime">2010/07/28 15:16:18 UTC</uploaded_at>
91
+ <url>http://www.pivotaltracker.com/resource/download/493019</url>
92
+ </attachment>
93
+ </attachments>
94
+ </story>
95
+ </stories>
96
+ </iteration>
97
+ <iteration>
98
+ <id type="integer">6</id>
99
+ <number type="integer">6</number>
100
+ <start type="datetime">2010/08/16 05:00:00 UTC</start>
101
+ <finish type="datetime">2010/08/23 05:00:00 UTC</finish>
102
+ <team_strength type="float">1</team_strength>
103
+ <stories type="array">
104
+ <story>
105
+ <id type="integer">4473735</id>
106
+ <project_id type="integer">102622</project_id>
107
+ <story_type>feature</story_type>
108
+ <url>http://www.pivotaltracker.com/story/show/4473735</url>
109
+ <estimate type="integer">1</estimate>
110
+ <current_state>unstarted</current_state>
111
+ <description></description>
112
+ <name>Attachment upload test story</name>
113
+ <requested_by>Jon</requested_by>
114
+ <created_at type="datetime">2010/07/28 18:17:33 UTC</created_at>
115
+ <updated_at type="datetime">2010/07/28 18:17:44 UTC</updated_at>
116
+ <attachments type="array">
117
+ <attachment>
118
+ <id type="integer">495851</id>
119
+ <filename>LICENSE</filename>
120
+ <description></description>
121
+ <uploaded_by>Test Suite Access</uploaded_by>
122
+ <uploaded_at type="datetime">2010/07/29 19:07:19 UTC</uploaded_at>
123
+ <url>http://www.pivotaltracker.com/resource/download/495851</url>
124
+ </attachment>
125
+ <attachment>
126
+ <id type="integer">495856</id>
127
+ <filename>LICENSE</filename>
128
+ <description></description>
129
+ <uploaded_by>Test Suite Access</uploaded_by>
130
+ <uploaded_at type="datetime">2010/07/29 19:09:27 UTC</uploaded_at>
131
+ <url>http://www.pivotaltracker.com/resource/download/495856</url>
132
+ </attachment>
133
+ <attachment>
134
+ <id type="integer">495858</id>
135
+ <filename>LICENSE</filename>
136
+ <description></description>
137
+ <uploaded_by>Test Suite Access</uploaded_by>
138
+ <uploaded_at type="datetime">2010/07/29 19:11:44 UTC</uploaded_at>
139
+ <url>http://www.pivotaltracker.com/resource/download/495858</url>
140
+ </attachment>
141
+ <attachment>
142
+ <id type="integer">495863</id>
143
+ <filename>LICENSE</filename>
144
+ <description></description>
145
+ <uploaded_by>Test Suite Access</uploaded_by>
146
+ <uploaded_at type="datetime">2010/07/29 19:13:06 UTC</uploaded_at>
147
+ <url>http://www.pivotaltracker.com/resource/download/495863</url>
148
+ </attachment>
149
+ </attachments>
150
+ </story>
151
+ <story>
152
+ <id type="integer">4490874</id>
153
+ <project_id type="integer">102622</project_id>
154
+ <story_type>feature</story_type>
155
+ <url>http://www.pivotaltracker.com/story/show/4490874</url>
156
+ <estimate type="integer">0</estimate>
157
+ <current_state>unstarted</current_state>
158
+ <description></description>
159
+ <name>Movable Story</name>
160
+ <requested_by>Test Suite Access</requested_by>
161
+ <created_at type="datetime">2010/07/29 18:12:31 UTC</created_at>
162
+ <updated_at type="datetime">2010/07/29 19:13:12 UTC</updated_at>
163
+ </story>
164
+ </stories>
165
+ </iteration>
166
+ </iterations>
@@ -0,0 +1,48 @@
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
+ <team_strength type="float">0.75</team_strength>
9
+ <stories type="array">
10
+ <story>
11
+ <id type="integer">4459994</id>
12
+ <project_id type="integer">102622</project_id>
13
+ <story_type>feature</story_type>
14
+ <url>http://www.pivotaltracker.com/story/show/4459994</url>
15
+ <estimate type="integer">2</estimate>
16
+ <current_state>unstarted</current_state>
17
+ <description>Generic description</description>
18
+ <name>Tasks Test</name>
19
+ <requested_by>Jon Mischo</requested_by>
20
+ <created_at type="datetime">2010/07/27 21:51:01 UTC</created_at>
21
+ <updated_at type="datetime">2010/07/27 22:20:46 UTC</updated_at>
22
+ <tasks type="array">
23
+ <task>
24
+ <id type="integer">468113</id>
25
+ <description>Task number 1</description>
26
+ <position>1</position>
27
+ <complete>false</complete>
28
+ <created_at type="datetime">2010/07/27 21:51:28 UTC</created_at>
29
+ </task>
30
+ <task>
31
+ <id type="integer">468114</id>
32
+ <description>Number 2 Task</description>
33
+ <position>2</position>
34
+ <complete>false</complete>
35
+ <created_at type="datetime">2010/07/27 21:51:32 UTC</created_at>
36
+ </task>
37
+ <task>
38
+ <id type="integer">468117</id>
39
+ <description>3rd task is a charm</description>
40
+ <position>3</position>
41
+ <complete>true</complete>
42
+ <created_at type="datetime">2010/07/27 21:51:42 UTC</created_at>
43
+ </task>
44
+ </tasks>
45
+ </story>
46
+ </stories>
47
+ </iteration>
48
+ </iterations>