pivotal-tracker 0.0.9.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.9.1
1
+ 0.1.0
@@ -7,13 +7,17 @@ module PivotalTracker
7
7
  params = PivotalTracker.encode_options(options)
8
8
  parse(Client.connection["/projects/#{project.id}/iterations#{params}"].get)
9
9
  end
10
+
11
+ def current(project)
12
+ array = parse(Client.connection["projects/#{project.id}/iterations/current"].get)
13
+ array.first if array
14
+ end
10
15
  end
11
16
 
12
17
  element :id, Integer
13
18
  element :number, Integer
14
19
  element :start, DateTime
15
20
  element :finish, DateTime
16
-
17
21
  has_many :stories, Story
18
22
 
19
23
  end
@@ -18,9 +18,14 @@ module PivotalTracker
18
18
 
19
19
  element :id, Integer
20
20
  element :name, String
21
- element :iteration_length, Integer
22
21
  element :week_start_day, String
23
22
  element :point_scale, String
23
+ element :week_start_day, String
24
+ element :velocity_scheme, String
25
+ element :iteration_length, Integer
26
+ element :initial_velocity, Integer
27
+ element :current_velocity, Integer
28
+ element :last_activity_at, DateTime
24
29
 
25
30
  def activities
26
31
  @activities ||= Proxy.new(self, Activity)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pivotal-tracker}
8
- s.version = "0.0.9.1"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin Smestad", "Josh Nichols", "Terence Lee"]
12
- s.date = %q{2010-03-30}
12
+ s.date = %q{2010-04-01}
13
13
  s.email = %q{justin.smestad@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -37,6 +37,8 @@ Gem::Specification.new do |s|
37
37
  "pivotal-tracker.gemspec",
38
38
  "spec/fixtures/activity.xml",
39
39
  "spec/fixtures/created_story.xml",
40
+ "spec/fixtures/iterations_all.xml",
41
+ "spec/fixtures/iterations_current.xml",
40
42
  "spec/fixtures/memberships.xml",
41
43
  "spec/fixtures/project.xml",
42
44
  "spec/fixtures/project_activity.xml",
@@ -1,175 +1,187 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <activities type="array">
3
3
  <activity>
4
- <id type="integer">13699571</id>
5
- <version type="integer">18</version>
6
- <event_type>story_update</event_type>
7
- <occurred_at type="datetime">2010/02/25 11:55:44 MST</occurred_at>
4
+ <id type="integer">15848489</id>
5
+ <version type="integer">17402</version>
6
+ <event_type>note_create</event_type>
7
+ <occurred_at type="datetime">2010/04/01 10:37:49 MDT</occurred_at>
8
8
  <author>Justin Smestad</author>
9
- <project_id type="integer">59022</project_id>
10
- <description>Justin Smestad edited &quot;some gem&quot;</description>
9
+ <project_id type="integer">4165</project_id>
10
+ <description>Justin Smestad added comment: &quot;Brought this question to the dealer team, awaiting response.&quot;</description>
11
11
  <stories>
12
12
  <story>
13
- <id type="integer">2524689</id>
14
- <url>http://www.pivotaltracker.com/services/v3/projects/59022/stories/2524689</url>
15
- <labels>test_dependent</labels>
13
+ <id type="integer">2969568</id>
14
+ <url>http://www.pivotaltracker.com/services/v3/projects/4165/stories/2969568</url>
15
+ <notes>
16
+ <note>
17
+ <id type="integer">1402707</id>
18
+ <text>Brought this question to the dealer team, awaiting response.</text>
19
+ </note>
20
+ </notes>
16
21
  </story>
17
22
  </stories>
18
23
  </activity>
19
24
  <activity>
20
- <id type="integer">13699560</id>
21
- <version type="integer">17</version>
22
- <event_type>story_update</event_type>
23
- <occurred_at type="datetime">2010/02/25 11:55:40 MST</occurred_at>
24
- <author>Justin Smestad</author>
25
- <project_id type="integer">59022</project_id>
26
- <description>Justin Smestad edited &quot;another gem&quot;</description>
25
+ <id type="integer">15848307</id>
26
+ <version type="integer">17401</version>
27
+ <event_type>note_create</event_type>
28
+ <occurred_at type="datetime">2010/04/01 10:35:17 MDT</occurred_at>
29
+ <author>Michael Tully</author>
30
+ <project_id type="integer">4165</project_id>
31
+ <description>Michael Tully added comment: &quot;Here is a link to a form that is behaving as described above:
32
+ http://www.audiusa.com/us/p_409D14/home/find...&quot;</description>
27
33
  <stories>
28
34
  <story>
29
- <id type="integer">2524690</id>
30
- <url>http://www.pivotaltracker.com/services/v3/projects/59022/stories/2524690</url>
31
- <labels>test_dependent</labels>
35
+ <id type="integer">2992729</id>
36
+ <url>http://www.pivotaltracker.com/services/v3/projects/4165/stories/2992729</url>
37
+ <notes>
38
+ <note>
39
+ <id type="integer">1402689</id>
40
+ <text>Here is a link to a form that is behaving as described above:
41
+ http://www.audiusa.com/us/p_409D14/home/find_your_audi/request_a_quote.html</text>
42
+ </note>
43
+ </notes>
32
44
  </story>
33
45
  </stories>
34
46
  </activity>
35
47
  <activity>
36
- <id type="integer">13699547</id>
37
- <version type="integer">16</version>
38
- <event_type>story_update</event_type>
39
- <occurred_at type="datetime">2010/02/25 11:55:30 MST</occurred_at>
48
+ <id type="integer">15832038</id>
49
+ <version type="integer">26</version>
50
+ <event_type>story_create</event_type>
51
+ <occurred_at type="datetime">2010/04/01 06:59:26 MDT</occurred_at>
40
52
  <author>Justin Smestad</author>
41
53
  <project_id type="integer">59022</project_id>
42
- <description>Justin Smestad edited &quot;Tasks Test&quot;</description>
54
+ <description>Justin Smestad added &quot;Create stuff&quot;</description>
43
55
  <stories>
44
56
  <story>
45
- <id type="integer">2606200</id>
46
- <url>http://www.pivotaltracker.com/services/v3/projects/59022/stories/2606200</url>
47
- <current_state>unstarted</current_state>
57
+ <id type="integer">3014429</id>
58
+ <url>http://www.pivotaltracker.com/services/v3/projects/59022/stories/3014429</url>
59
+ <name>Create stuff</name>
60
+ <story_type>feature</story_type>
61
+ <current_state>unscheduled</current_state>
48
62
  </story>
49
63
  </stories>
50
64
  </activity>
51
65
  <activity>
52
- <id type="integer">13699540</id>
53
- <version type="integer">15</version>
54
- <event_type>story_update</event_type>
55
- <occurred_at type="datetime">2010/02/25 11:55:22 MST</occurred_at>
66
+ <id type="integer">15831002</id>
67
+ <version type="integer">25</version>
68
+ <event_type>story_create</event_type>
69
+ <occurred_at type="datetime">2010/04/01 06:36:05 MDT</occurred_at>
56
70
  <author>Justin Smestad</author>
57
71
  <project_id type="integer">59022</project_id>
58
- <description>Justin Smestad started &quot;Tasks Test&quot;</description>
72
+ <description>Justin Smestad added &quot;Create stuff&quot;</description>
59
73
  <stories>
60
74
  <story>
61
- <id type="integer">2606200</id>
62
- <url>http://www.pivotaltracker.com/services/v3/projects/59022/stories/2606200</url>
63
- <current_state>started</current_state>
75
+ <id type="integer">3014248</id>
76
+ <url>http://www.pivotaltracker.com/services/v3/projects/59022/stories/3014248</url>
77
+ <name>Create stuff</name>
78
+ <story_type>feature</story_type>
79
+ <current_state>unscheduled</current_state>
64
80
  </story>
65
81
  </stories>
66
82
  </activity>
67
83
  <activity>
68
- <id type="integer">13699533</id>
69
- <version type="integer">14</version>
70
- <event_type>story_update</event_type>
71
- <occurred_at type="datetime">2010/02/25 11:55:19 MST</occurred_at>
84
+ <id type="integer">15830699</id>
85
+ <version type="integer">24</version>
86
+ <event_type>story_create</event_type>
87
+ <occurred_at type="datetime">2010/04/01 06:30:29 MDT</occurred_at>
72
88
  <author>Justin Smestad</author>
73
89
  <project_id type="integer">59022</project_id>
74
- <description>Justin Smestad edited &quot;Tasks Test&quot;</description>
90
+ <description>Justin Smestad added &quot;Create stuff&quot;</description>
75
91
  <stories>
76
92
  <story>
77
- <id type="integer">2606200</id>
78
- <url>http://www.pivotaltracker.com/services/v3/projects/59022/stories/2606200</url>
79
- <current_state>unstarted</current_state>
93
+ <id type="integer">3014199</id>
94
+ <url>http://www.pivotaltracker.com/services/v3/projects/59022/stories/3014199</url>
95
+ <name>Create stuff</name>
96
+ <story_type>feature</story_type>
97
+ <current_state>unscheduled</current_state>
80
98
  </story>
81
99
  </stories>
82
100
  </activity>
83
101
  <activity>
84
- <id type="integer">13699498</id>
85
- <version type="integer">9</version>
86
- <event_type>story_create</event_type>
87
- <occurred_at type="datetime">2010/02/25 11:54:51 MST</occurred_at>
102
+ <id type="integer">15815235</id>
103
+ <version type="integer">17399</version>
104
+ <event_type>story_update</event_type>
105
+ <occurred_at type="datetime">2010/03/31 23:11:37 MDT</occurred_at>
88
106
  <author>Justin Smestad</author>
89
- <project_id type="integer">59022</project_id>
90
- <description>Justin Smestad added &quot;Tasks Test&quot;</description>
107
+ <project_id type="integer">4165</project_id>
108
+ <description>Justin Smestad edited &quot;West Covina (422A25) CPO/Used Images Missing&quot;</description>
91
109
  <stories>
92
110
  <story>
93
- <id type="integer">2606200</id>
94
- <url>http://www.pivotaltracker.com/services/v3/projects/59022/stories/2606200</url>
95
- <name>Tasks Test</name>
96
- <story_type>feature</story_type>
97
- <description>This is just some description.</description>
98
- <estimate type="integer">2</estimate>
99
- <labels>test_dependent</labels>
100
- <current_state>unscheduled</current_state>
101
- <owned_by>Terence Lee</owned_by>
102
- <requested_by>Justin Smestad</requested_by>
111
+ <id type="integer">2861827</id>
112
+ <url>http://www.pivotaltracker.com/services/v3/projects/4165/stories/2861827</url>
113
+ <labels>dealer</labels>
103
114
  </story>
104
115
  </stories>
105
116
  </activity>
106
117
  <activity>
107
- <id type="integer">13692763</id>
108
- <version type="integer">16482</version>
109
- <event_type>story_create</event_type>
110
- <occurred_at type="datetime">2010/02/25 10:25:08 MST</occurred_at>
111
- <author>Michael Tully</author>
118
+ <id type="integer">15813265</id>
119
+ <version type="integer">17397</version>
120
+ <event_type>story_update</event_type>
121
+ <occurred_at type="datetime">2010/03/31 22:00:28 MDT</occurred_at>
122
+ <author>Parker Fleming</author>
112
123
  <project_id type="integer">4165</project_id>
113
- <description>Michael Tully added &quot;Importing Tender stories into Tracker&quot;</description>
124
+ <description>Parker Fleming edited &quot;Form submission confirmation doesn't appear &quot;</description>
114
125
  <stories>
115
126
  <story>
116
- <id type="integer">2605110</id>
117
- <url>http://www.pivotaltracker.com/services/v3/projects/4165/stories/2605110</url>
118
- <name>Importing Tender stories into Tracker</name>
119
- <story_type>feature</story_type>
120
- <description>The Dealer Services team are wanting for stories received in Tender to be imported into Tracker to aid with client visibility</description>
121
- <current_state>unscheduled</current_state>
127
+ <id type="integer">2992729</id>
128
+ <url>http://www.pivotaltracker.com/services/v3/projects/4165/stories/2992729</url>
129
+ <current_state>unstarted</current_state>
122
130
  </story>
123
131
  </stories>
124
132
  </activity>
125
133
  <activity>
126
- <id type="integer">13688278</id>
127
- <version type="integer">16480</version>
128
- <event_type>story_update</event_type>
129
- <occurred_at type="datetime">2010/02/25 09:26:39 MST</occurred_at>
130
- <author>Justin Smestad</author>
134
+ <id type="integer">15813089</id>
135
+ <version type="integer">17396</version>
136
+ <event_type>note_create</event_type>
137
+ <occurred_at type="datetime">2010/03/31 21:53:48 MDT</occurred_at>
138
+ <author>Michael Tully</author>
131
139
  <project_id type="integer">4165</project_id>
132
- <description>Justin Smestad started &quot;Send emails on rejection/submission for approval&quot;</description>
140
+ <description>Michael Tully added comment: &quot;Parker to follow up on 4/1/2010&quot;</description>
133
141
  <stories>
134
142
  <story>
135
- <id type="integer">2499055</id>
136
- <url>http://www.pivotaltracker.com/services/v3/projects/4165/stories/2499055</url>
137
- <current_state>started</current_state>
143
+ <id type="integer">2992729</id>
144
+ <url>http://www.pivotaltracker.com/services/v3/projects/4165/stories/2992729</url>
145
+ <notes>
146
+ <note>
147
+ <id type="integer">1399800</id>
148
+ <text>Parker to follow up on 4/1/2010</text>
149
+ </note>
150
+ </notes>
138
151
  </story>
139
152
  </stories>
140
153
  </activity>
141
154
  <activity>
142
- <id type="integer">13662270</id>
143
- <version type="integer">16479</version>
144
- <event_type>story_create</event_type>
145
- <occurred_at type="datetime">2010/02/24 22:55:11 MST</occurred_at>
155
+ <id type="integer">15803073</id>
156
+ <version type="integer">17395</version>
157
+ <event_type>story_update</event_type>
158
+ <occurred_at type="datetime">2010/03/31 17:29:27 MDT</occurred_at>
146
159
  <author>Jay Zeschin</author>
147
160
  <project_id type="integer">4165</project_id>
148
- <description>Jay Zeschin added &quot;Migrate queue_daemon functionality to DJ/resque&quot;</description>
161
+ <description>Jay Zeschin edited &quot;IMS Brainstorm :: Session notes&quot;</description>
149
162
  <stories>
150
163
  <story>
151
- <id type="integer">2599397</id>
152
- <url>http://www.pivotaltracker.com/services/v3/projects/4165/stories/2599397</url>
153
- <name>Migrate queue_daemon functionality to DJ/resque</name>
154
- <story_type>feature</story_type>
155
- <current_state>unscheduled</current_state>
164
+ <id type="integer">2939417</id>
165
+ <url>http://www.pivotaltracker.com/services/v3/projects/4165/stories/2939417</url>
166
+ <labels>brainstorm</labels>
156
167
  </story>
157
168
  </stories>
158
169
  </activity>
159
170
  <activity>
160
- <id type="integer">13650970</id>
161
- <version type="integer">16478</version>
162
- <event_type>story_update</event_type>
163
- <occurred_at type="datetime">2010/02/24 16:59:35 MST</occurred_at>
164
- <author>Justin Smestad</author>
171
+ <id type="integer">15803042</id>
172
+ <version type="integer">17393</version>
173
+ <event_type>story_create</event_type>
174
+ <occurred_at type="datetime">2010/03/31 17:28:44 MDT</occurred_at>
175
+ <author>Jay Zeschin</author>
165
176
  <project_id type="integer">4165</project_id>
166
- <description>Justin Smestad accepted &quot;Embed proper offer details URL's for each dealer&quot;</description>
177
+ <description>Jay Zeschin added &quot;Social sharing (facebook, twitter)&quot;</description>
167
178
  <stories>
168
179
  <story>
169
- <id type="integer">2455221</id>
170
- <url>http://www.pivotaltracker.com/services/v3/projects/4165/stories/2455221</url>
171
- <accepted_at type="datetime">2010/02/24 23:59:35 UTC</accepted_at>
172
- <current_state>accepted</current_state>
180
+ <id type="integer">3008813</id>
181
+ <url>http://www.pivotaltracker.com/services/v3/projects/4165/stories/3008813</url>
182
+ <name>Social sharing (facebook, twitter)</name>
183
+ <story_type>feature</story_type>
184
+ <current_state>unscheduled</current_state>
173
185
  </story>
174
186
  </stories>
175
187
  </activity>
@@ -1,14 +1,14 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <story>
3
- <id type="integer">2746766</id>
3
+ <id type="integer">3017712</id>
4
4
  <project_id type="integer">59022</project_id>
5
5
  <story_type>feature</story_type>
6
- <url>http://www.pivotaltracker.com/story/show/2746766</url>
6
+ <url>http://www.pivotaltracker.com/story/show/3017712</url>
7
7
  <estimate type="integer">-1</estimate>
8
8
  <current_state>unscheduled</current_state>
9
9
  <description></description>
10
10
  <name>Create stuff</name>
11
11
  <requested_by>Justin Smestad</requested_by>
12
- <created_at type="datetime">2010/03/10 11:40:33 MST</created_at>
13
- <updated_at type="datetime">2010/03/10 11:40:33 MST</updated_at>
12
+ <created_at type="datetime">2010/04/01 11:06:18 MDT</created_at>
13
+ <updated_at type="datetime">2010/04/01 11:06:18 MDT</updated_at>
14
14
  </story>
@@ -0,0 +1,92 @@
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/03/29 00:00:00 MDT</start>
7
+ <finish type="datetime">2010/04/05 00:00:00 MDT</finish>
8
+ <stories type="array">
9
+ <story>
10
+ <id type="integer">2606200</id>
11
+ <project_id type="integer">59022</project_id>
12
+ <story_type>feature</story_type>
13
+ <url>http://www.pivotaltracker.com/story/show/2606200</url>
14
+ <estimate type="integer">2</estimate>
15
+ <current_state>unstarted</current_state>
16
+ <description>This is just some description.</description>
17
+ <name>Tasks Test</name>
18
+ <requested_by>Justin Smestad</requested_by>
19
+ <owned_by>Terence Lee</owned_by>
20
+ <created_at type="datetime">2010/02/25 11:54:51 MST</created_at>
21
+ <updated_at type="datetime">2010/02/25 11:55:30 MST</updated_at>
22
+ <labels>test_dependent</labels>
23
+ <tasks type="array">
24
+ <task>
25
+ <id type="integer">179024</id>
26
+ <description>Task number 1</description>
27
+ <position>1</position>
28
+ <complete>false</complete>
29
+ <created_at type="datetime">2010/02/25 11:55:00 MST</created_at>
30
+ </task>
31
+ <task>
32
+ <id type="integer">179025</id>
33
+ <description>Number 2 Task</description>
34
+ <position>2</position>
35
+ <complete>false</complete>
36
+ <created_at type="datetime">2010/02/25 11:55:04 MST</created_at>
37
+ </task>
38
+ <task>
39
+ <id type="integer">179026</id>
40
+ <description>3rd task is a charm</description>
41
+ <position>3</position>
42
+ <complete>true</complete>
43
+ <created_at type="datetime">2010/02/25 11:55:09 MST</created_at>
44
+ </task>
45
+ </tasks>
46
+ </story>
47
+ <story>
48
+ <id type="integer">2524690</id>
49
+ <project_id type="integer">59022</project_id>
50
+ <story_type>feature</story_type>
51
+ <url>http://www.pivotaltracker.com/story/show/2524690</url>
52
+ <estimate type="integer">3</estimate>
53
+ <current_state>unstarted</current_state>
54
+ <description></description>
55
+ <name>another gem</name>
56
+ <requested_by>Justin Smestad</requested_by>
57
+ <created_at type="datetime">2010/02/17 15:42:58 MST</created_at>
58
+ <updated_at type="datetime">2010/02/17 15:43:07 MST</updated_at>
59
+ <labels>test_dependent</labels>
60
+ </story>
61
+ <story>
62
+ <id type="integer">2524689</id>
63
+ <project_id type="integer">59022</project_id>
64
+ <story_type>feature</story_type>
65
+ <url>http://www.pivotaltracker.com/story/show/2524689</url>
66
+ <estimate type="integer">2</estimate>
67
+ <current_state>unstarted</current_state>
68
+ <description></description>
69
+ <name>some gem</name>
70
+ <requested_by>Justin Smestad</requested_by>
71
+ <created_at type="datetime">2010/02/17 15:42:52 MST</created_at>
72
+ <updated_at type="datetime">2010/02/17 15:43:06 MST</updated_at>
73
+ <labels>test_dependent</labels>
74
+ </story>
75
+ <story>
76
+ <id type="integer">2641089</id>
77
+ <project_id type="integer">59022</project_id>
78
+ <story_type>feature</story_type>
79
+ <url>http://www.pivotaltracker.com/story/show/2641089</url>
80
+ <estimate type="integer">2</estimate>
81
+ <current_state>unstarted</current_state>
82
+ <description>This is just some description.</description>
83
+ <name>Tasks Test</name>
84
+ <requested_by>Justin Smestad</requested_by>
85
+ <owned_by>Terence Lee</owned_by>
86
+ <created_at type="datetime">2010/03/01 15:51:05 MST</created_at>
87
+ <updated_at type="datetime">2010/03/01 15:51:05 MST</updated_at>
88
+ <labels>test_dependent</labels>
89
+ </story>
90
+ </stories>
91
+ </iteration>
92
+ </iterations>