pivotal-tracker 0.5.10 → 0.5.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZTAzM2M0NWNhYTg5Njg4MjBiZDE5NWY0MmEyZDY1YWZkZTAyMDg4OQ==
5
+ data.tar.gz: !binary |-
6
+ YWQyNjc2NTcxNTk3NmNhYjE0ZjNhYTJmOGIwMDM2OGFhMmYwMzhiMg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ZTI1MzRkNzdiNDE4YjQ1NmVlZWYwM2UwMWIyY2EyOWFlNDVlYmM4MmMzOTgw
10
+ N2I4NGI5ZDUxYjcxYjA5MmI5ZGU4YjRiZGI0ZTA2NDRmZjc0MDFhZjA5MDcz
11
+ OGJkNWE3YThjYWY5YjMzMmI2MGU5MzUyNzdmN2EwOTM5YWY0NmY=
12
+ data.tar.gz: !binary |-
13
+ NDdkMDM1YzkzMmMxOGQyZmRjMzI3MzQyNDc3MDY1NzM3MWFkMzJiZmY4NTYx
14
+ NDQ0OTBkZjQ2NDhiNGE3MTIxZDEzMzc5OTQ5YTg3YWU4NTM1NzIzYWNhMTQ0
15
+ MWVmMDY5NWM3ZjlkNDU5N2QzNmFjNDg4N2VhNDJkODQyNWZhYjE=
@@ -3,3 +3,4 @@ rvm:
3
3
  - 1.8.7
4
4
  - 1.9.2
5
5
  - 1.9.3
6
+ - 2.0.0
@@ -1,7 +1,7 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- ZenTest (4.8.2)
4
+ ZenTest (4.9.3)
5
5
  activesupport (3.2.9)
6
6
  i18n (~> 0.6)
7
7
  multi_json (~> 1.0)
@@ -3,6 +3,7 @@
3
3
  Ruby wrapper for Pivotal Tracker API, no frameworks required. Simply Ruby.
4
4
 
5
5
  {<img src="https://secure.travis-ci.org/jsmestad/pivotal-tracker.png" />}[http://travis-ci.org/jsmestad/pivotal-tracker]
6
+ {<img src="https://badge.fury.io/rb/pivotal-tracker.png" alt="Gem Version" />}[http://rubygems.org/gems/pivotal-tracker]
6
7
 
7
8
  == Features
8
9
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.10
1
+ 0.5.12
@@ -7,7 +7,7 @@ module PivotalTracker
7
7
  params = PivotalTracker.encode_options(options)
8
8
  parse(Client.connection["/projects/#{project.id}/iterations#{params}"].get)
9
9
  end
10
-
10
+
11
11
  def current(project)
12
12
  array = parse(Client.connection["projects/#{project.id}/iterations/current"].get)
13
13
  array.first if array
@@ -22,19 +22,19 @@ module PivotalTracker
22
22
  params = PivotalTracker.encode_options(options)
23
23
  parse(Client.connection["/projects/#{project.id}/iterations/backlog#{params}"].get)
24
24
  end
25
-
25
+
26
26
  def current_backlog(project, options={})
27
27
  params = PivotalTracker.encode_options(options)
28
28
  parse(Client.connection["/projects/#{project.id}/iterations/current_backlog#{params}"].get)
29
- end
29
+ end
30
30
  end
31
-
31
+
32
32
  element :id, Integer
33
33
  element :number, Integer
34
34
  element :start, DateTime
35
35
  element :finish, DateTime
36
36
  element :team_strength, Float
37
- has_many :stories, Story
37
+ has_many :stories, Story, :xpath => './/stories'
38
38
 
39
39
  end
40
40
  end
@@ -39,7 +39,9 @@ module PivotalTracker
39
39
  element :labels, String
40
40
  element :jira_id, Integer
41
41
  element :jira_url, String
42
- element :other_id, Integer
42
+ element :other_id, String
43
+ element :zendesk_id, Integer
44
+ element :zendesk_url, String
43
45
  element :integration_id, Integer
44
46
  element :deadline, DateTime # Only available for Release stories
45
47
 
@@ -65,7 +67,7 @@ module PivotalTracker
65
67
  response = Client.connection["/projects/#{project_id}/stories/#{id}"].put(self.to_xml, :content_type => 'application/xml')
66
68
  return Story.parse(response)
67
69
  end
68
-
70
+
69
71
  def move(position, story)
70
72
  raise ArgumentError, "Can only move :before or :after" unless [:before, :after].include? position
71
73
  Story.parse(Client.connection["/projects/#{project_id}/stories/#{id}/moves?move\[move\]=#{position}&move\[target\]=#{story.id}"].post(''))
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "pivotal-tracker"
8
- s.version = "0.5.10"
8
+ s.version = "0.5.12"
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 = "2012-11-25"
12
+ s.date = "2013-09-04"
13
13
  s.email = "justin.smestad@gmail.com"
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -71,17 +71,16 @@ Gem::Specification.new do |s|
71
71
  "spec/pivotal-tracker/project_spec.rb",
72
72
  "spec/pivotal-tracker/story_spec.rb",
73
73
  "spec/pivotal-tracker/task_spec.rb",
74
- "spec/spec.opts",
75
74
  "spec/spec_helper.rb",
76
75
  "spec/support/stale_fish_fixtures.rb"
77
76
  ]
78
77
  s.homepage = "http://github.com/jsmestad/pivotal-tracker"
79
78
  s.require_paths = ["lib"]
80
- s.rubygems_version = "1.8.24"
79
+ s.rubygems_version = "2.0.7"
81
80
  s.summary = "Ruby wrapper for the Pivotal Tracker API"
82
81
 
83
82
  if s.respond_to? :specification_version then
84
- s.specification_version = 3
83
+ s.specification_version = 4
85
84
 
86
85
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
87
86
  s.add_runtime_dependency(%q<rest-client>, ["~> 1.6.0"])
@@ -48,7 +48,7 @@ describe PivotalTracker::Iteration do
48
48
  @iterations.first.should be_a(PivotalTracker::Iteration)
49
49
  end
50
50
  end
51
-
51
+
52
52
  describe ".current_backlog" do
53
53
  before do
54
54
  @iterations = PivotalTracker::Iteration.current_backlog(@project)
@@ -59,18 +59,47 @@ describe PivotalTracker::Iteration do
59
59
  @iterations.first.should be_a(PivotalTracker::Iteration)
60
60
  end
61
61
  end
62
-
62
+
63
63
  describe ".team_strength" do
64
64
  before do
65
65
  @iteration = PivotalTracker::Iteration.current(@project)
66
66
  end
67
-
67
+
68
68
  it "should return a Float" do
69
69
  @iteration.should respond_to(:team_strength)
70
70
  @iteration.team_strength.should be_a(Float)
71
71
  end
72
72
  end
73
-
73
+
74
+ describe ".stories" do
75
+ context "for the current iteration" do
76
+ before do
77
+ @iteration = PivotalTracker::Iteration.current(@project)
78
+ end
79
+
80
+ it "should include one story" do
81
+ @iteration.stories.should be_a(Array)
82
+ @iteration.stories.length.should eq(1)
83
+ @iteration.stories.first.description.should eq("Generic description")
84
+ @iteration.stories.first.estimate.should eq (2)
85
+ end
86
+ end
87
+
88
+ context "with multiple iterations" do
89
+ before do
90
+ @iteration1 = PivotalTracker::Iteration.current(@project)
91
+ @iteration2 = PivotalTracker::Iteration.backlog(@project).first
92
+ end
93
+
94
+ it "should include the correct stories in each iteration" do
95
+ @iteration1.stories.count.should eq(1)
96
+ @iteration1.stories.first.name.should eq('Tasks Test')
97
+ @iteration2.stories.count.should eq(1)
98
+ @iteration2.stories.first.name.should eq('This is for comments')
99
+ end
100
+ end
101
+ end
102
+
74
103
 
75
104
  end
76
105
 
@@ -185,8 +185,13 @@ describe PivotalTracker::Story do
185
185
  story_for(:labels => "abc")["labels"].should == "abc"
186
186
  end
187
187
 
188
- it "should include other_id" do
189
- story_for(:other_id => 10)["other_id"].should == "10"
188
+ describe "should include other_id" do
189
+ it "when passed a string" do
190
+ story_for(:other_id => "aa10bb")["other_id"].should == "aa10bb"
191
+ end
192
+ it "when passed an integer" do
193
+ story_for(:other_id => 10)["other_id"].should == "10"
194
+ end
190
195
  end
191
196
 
192
197
  it "should include integration_id" do
@@ -30,6 +30,10 @@ Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].e
30
30
 
31
31
 
32
32
  RSpec.configure do |config|
33
+ # Allow focus on a specific test if specified
34
+ config.filter_run :focus => true
35
+ config.run_all_when_everything_filtered = true
36
+
33
37
  # Give StaleFish temporary file which is ignored by git
34
38
  org_stale_fish_config = File.join(File.dirname(__FILE__), 'fixtures', 'stale_fish.yml')
35
39
  tmp_stale_fish_config = File.join(File.dirname(__FILE__), 'fixtures', 'stale_fish-tmp.yml')
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotal-tracker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.10
5
- prerelease:
4
+ version: 0.5.12
6
5
  platform: ruby
7
6
  authors:
8
7
  - Justin Smestad
@@ -11,12 +10,11 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2012-11-25 00:00:00.000000000 Z
13
+ date: 2013-09-04 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: rest-client
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
19
  - - ~>
22
20
  - !ruby/object:Gem::Version
@@ -24,7 +22,6 @@ dependencies:
24
22
  type: :runtime
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
26
  - - ~>
30
27
  - !ruby/object:Gem::Version
@@ -32,7 +29,6 @@ dependencies:
32
29
  - !ruby/object:Gem::Dependency
33
30
  name: nokogiri-happymapper
34
31
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
32
  requirements:
37
33
  - - ! '>='
38
34
  - !ruby/object:Gem::Version
@@ -40,7 +36,6 @@ dependencies:
40
36
  type: :runtime
41
37
  prerelease: false
42
38
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
39
  requirements:
45
40
  - - ! '>='
46
41
  - !ruby/object:Gem::Version
@@ -48,7 +43,6 @@ dependencies:
48
43
  - !ruby/object:Gem::Dependency
49
44
  name: builder
50
45
  requirement: !ruby/object:Gem::Requirement
51
- none: false
52
46
  requirements:
53
47
  - - ! '>='
54
48
  - !ruby/object:Gem::Version
@@ -56,7 +50,6 @@ dependencies:
56
50
  type: :runtime
57
51
  prerelease: false
58
52
  version_requirements: !ruby/object:Gem::Requirement
59
- none: false
60
53
  requirements:
61
54
  - - ! '>='
62
55
  - !ruby/object:Gem::Version
@@ -64,7 +57,6 @@ dependencies:
64
57
  - !ruby/object:Gem::Dependency
65
58
  name: nokogiri
66
59
  requirement: !ruby/object:Gem::Requirement
67
- none: false
68
60
  requirements:
69
61
  - - ! '>='
70
62
  - !ruby/object:Gem::Version
@@ -72,7 +64,6 @@ dependencies:
72
64
  type: :runtime
73
65
  prerelease: false
74
66
  version_requirements: !ruby/object:Gem::Requirement
75
- none: false
76
67
  requirements:
77
68
  - - ! '>='
78
69
  - !ruby/object:Gem::Version
@@ -80,7 +71,6 @@ dependencies:
80
71
  - !ruby/object:Gem::Dependency
81
72
  name: crack
82
73
  requirement: !ruby/object:Gem::Requirement
83
- none: false
84
74
  requirements:
85
75
  - - ! '>='
86
76
  - !ruby/object:Gem::Version
@@ -88,7 +78,6 @@ dependencies:
88
78
  type: :runtime
89
79
  prerelease: false
90
80
  version_requirements: !ruby/object:Gem::Requirement
91
- none: false
92
81
  requirements:
93
82
  - - ! '>='
94
83
  - !ruby/object:Gem::Version
@@ -96,7 +85,6 @@ dependencies:
96
85
  - !ruby/object:Gem::Dependency
97
86
  name: rest-client
98
87
  requirement: !ruby/object:Gem::Requirement
99
- none: false
100
88
  requirements:
101
89
  - - ~>
102
90
  - !ruby/object:Gem::Version
@@ -104,7 +92,6 @@ dependencies:
104
92
  type: :runtime
105
93
  prerelease: false
106
94
  version_requirements: !ruby/object:Gem::Requirement
107
- none: false
108
95
  requirements:
109
96
  - - ~>
110
97
  - !ruby/object:Gem::Version
@@ -112,7 +99,6 @@ dependencies:
112
99
  - !ruby/object:Gem::Dependency
113
100
  name: happymapper
114
101
  requirement: !ruby/object:Gem::Requirement
115
- none: false
116
102
  requirements:
117
103
  - - ! '>='
118
104
  - !ruby/object:Gem::Version
@@ -120,7 +106,6 @@ dependencies:
120
106
  type: :runtime
121
107
  prerelease: false
122
108
  version_requirements: !ruby/object:Gem::Requirement
123
- none: false
124
109
  requirements:
125
110
  - - ! '>='
126
111
  - !ruby/object:Gem::Version
@@ -128,7 +113,6 @@ dependencies:
128
113
  - !ruby/object:Gem::Dependency
129
114
  name: builder
130
115
  requirement: !ruby/object:Gem::Requirement
131
- none: false
132
116
  requirements:
133
117
  - - ! '>='
134
118
  - !ruby/object:Gem::Version
@@ -136,7 +120,6 @@ dependencies:
136
120
  type: :runtime
137
121
  prerelease: false
138
122
  version_requirements: !ruby/object:Gem::Requirement
139
- none: false
140
123
  requirements:
141
124
  - - ! '>='
142
125
  - !ruby/object:Gem::Version
@@ -144,7 +127,6 @@ dependencies:
144
127
  - !ruby/object:Gem::Dependency
145
128
  name: nokogiri
146
129
  requirement: !ruby/object:Gem::Requirement
147
- none: false
148
130
  requirements:
149
131
  - - ! '>='
150
132
  - !ruby/object:Gem::Version
@@ -152,7 +134,6 @@ dependencies:
152
134
  type: :runtime
153
135
  prerelease: false
154
136
  version_requirements: !ruby/object:Gem::Requirement
155
- none: false
156
137
  requirements:
157
138
  - - ! '>='
158
139
  - !ruby/object:Gem::Version
@@ -160,7 +141,6 @@ dependencies:
160
141
  - !ruby/object:Gem::Dependency
161
142
  name: rspec
162
143
  requirement: !ruby/object:Gem::Requirement
163
- none: false
164
144
  requirements:
165
145
  - - ! '>='
166
146
  - !ruby/object:Gem::Version
@@ -168,7 +148,6 @@ dependencies:
168
148
  type: :development
169
149
  prerelease: false
170
150
  version_requirements: !ruby/object:Gem::Requirement
171
- none: false
172
151
  requirements:
173
152
  - - ! '>='
174
153
  - !ruby/object:Gem::Version
@@ -176,7 +155,6 @@ dependencies:
176
155
  - !ruby/object:Gem::Dependency
177
156
  name: bundler
178
157
  requirement: !ruby/object:Gem::Requirement
179
- none: false
180
158
  requirements:
181
159
  - - ~>
182
160
  - !ruby/object:Gem::Version
@@ -184,7 +162,6 @@ dependencies:
184
162
  type: :development
185
163
  prerelease: false
186
164
  version_requirements: !ruby/object:Gem::Requirement
187
- none: false
188
165
  requirements:
189
166
  - - ~>
190
167
  - !ruby/object:Gem::Version
@@ -192,7 +169,6 @@ dependencies:
192
169
  - !ruby/object:Gem::Dependency
193
170
  name: jeweler
194
171
  requirement: !ruby/object:Gem::Requirement
195
- none: false
196
172
  requirements:
197
173
  - - ! '>='
198
174
  - !ruby/object:Gem::Version
@@ -200,7 +176,6 @@ dependencies:
200
176
  type: :development
201
177
  prerelease: false
202
178
  version_requirements: !ruby/object:Gem::Requirement
203
- none: false
204
179
  requirements:
205
180
  - - ! '>='
206
181
  - !ruby/object:Gem::Version
@@ -208,7 +183,6 @@ dependencies:
208
183
  - !ruby/object:Gem::Dependency
209
184
  name: stale_fish
210
185
  requirement: !ruby/object:Gem::Requirement
211
- none: false
212
186
  requirements:
213
187
  - - ~>
214
188
  - !ruby/object:Gem::Version
@@ -216,7 +190,6 @@ dependencies:
216
190
  type: :development
217
191
  prerelease: false
218
192
  version_requirements: !ruby/object:Gem::Requirement
219
- none: false
220
193
  requirements:
221
194
  - - ~>
222
195
  - !ruby/object:Gem::Version
@@ -284,34 +257,29 @@ files:
284
257
  - spec/pivotal-tracker/project_spec.rb
285
258
  - spec/pivotal-tracker/story_spec.rb
286
259
  - spec/pivotal-tracker/task_spec.rb
287
- - spec/spec.opts
288
260
  - spec/spec_helper.rb
289
261
  - spec/support/stale_fish_fixtures.rb
290
262
  homepage: http://github.com/jsmestad/pivotal-tracker
291
263
  licenses: []
264
+ metadata: {}
292
265
  post_install_message:
293
266
  rdoc_options: []
294
267
  require_paths:
295
268
  - lib
296
269
  required_ruby_version: !ruby/object:Gem::Requirement
297
- none: false
298
270
  requirements:
299
271
  - - ! '>='
300
272
  - !ruby/object:Gem::Version
301
273
  version: '0'
302
- segments:
303
- - 0
304
- hash: -2929160008321520250
305
274
  required_rubygems_version: !ruby/object:Gem::Requirement
306
- none: false
307
275
  requirements:
308
276
  - - ! '>='
309
277
  - !ruby/object:Gem::Version
310
278
  version: '0'
311
279
  requirements: []
312
280
  rubyforge_project:
313
- rubygems_version: 1.8.24
281
+ rubygems_version: 2.0.7
314
282
  signing_key:
315
- specification_version: 3
283
+ specification_version: 4
316
284
  summary: Ruby wrapper for the Pivotal Tracker API
317
285
  test_files: []
@@ -1 +0,0 @@
1
- --color