pivotal-tracker 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -13,14 +13,14 @@ module PivotalTracker
13
13
  array.first if array
14
14
  end
15
15
 
16
- def done(project)
17
- array = parse(Client.connection["projects/#{project.id}/iterations/done"].get)
18
- array.first if array
16
+ def done(project, options={})
17
+ params = PivotalTracker.encode_options(options)
18
+ parse(Client.connection["/projects/#{project.id}/iterations/done#{params}"].get)
19
19
  end
20
20
 
21
- def backlog(project)
22
- array = parse(Client.connection["projects/#{project.id}/iterations/backlog"].get)
23
- array.first if array
21
+ def backlog(project, options={})
22
+ params = PivotalTracker.encode_options(options)
23
+ parse(Client.connection["/projects/#{project.id}/iterations/backlog#{params}"].get)
24
24
  end
25
25
  end
26
26
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pivotal-tracker}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
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-04-28}
12
+ s.date = %q{2010-05-09}
13
13
  s.email = %q{justin.smestad@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -21,28 +21,30 @@ describe PivotalTracker::Iteration do
21
21
  @iteration = PivotalTracker::Iteration.current(@project)
22
22
  end
23
23
 
24
- it "should return an array of Iterations for the given Project" do
24
+ it "should return a single Iteration" do
25
25
  @iteration.should be_a(PivotalTracker::Iteration)
26
26
  end
27
27
  end
28
28
 
29
29
  describe ".backlog" do
30
30
  before do
31
- @iteration = PivotalTracker::Iteration.backlog(@project)
31
+ @iterations = PivotalTracker::Iteration.backlog(@project)
32
32
  end
33
33
 
34
34
  it "should return an array of Iterations for the given Project" do
35
- @iteration.should be_a(PivotalTracker::Iteration)
35
+ @iterations.should be_a(Array)
36
+ @iterations.first.should be_a(PivotalTracker::Iteration)
36
37
  end
37
38
  end
38
39
 
39
40
  describe ".done" do
40
41
  before do
41
- @iteration = PivotalTracker::Iteration.backlog(@project)
42
+ @iterations = PivotalTracker::Iteration.done(@project)
42
43
  end
43
44
 
44
45
  it "should return an array of Iterations for the given Project" do
45
- @iteration.should be_a(PivotalTracker::Iteration)
46
+ @iterations.should be_a(Array)
47
+ @iterations.first.should be_a(PivotalTracker::Iteration)
46
48
  end
47
49
  end
48
50
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Justin Smestad
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-04-28 00:00:00 -06:00
19
+ date: 2010-05-09 00:00:00 -06:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency