track-r 1.5.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.0
1
+ 1.6.1
@@ -102,7 +102,12 @@ class Project
102
102
 
103
103
  # Builds an array containing the project's stories for a given iteration
104
104
  def get_stories_by_iteration(name)
105
- api_url = "http://www.pivotaltracker.com/services/v2/projects/#{@id}/iterations/#{name}"
105
+ case name
106
+ when "icebox"
107
+ api_url = "http://www.pivotaltracker.com/services/v2/projects/#{@id}/stories?filter=current_state%3Aunscheduled"
108
+ else
109
+ api_url = "http://www.pivotaltracker.com/services/v2/projects/#{@id}/iterations/#{name}"
110
+ end
106
111
  @stories = (Hpricot(open(api_url, {"X-TrackerToken" => @token.to_s}))/:story).map {|story| Story.new(:story => story, :project_id => @id, :token => @token)}
107
112
  end
108
113
 
data/track-r.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{track-r}
5
- s.version = "1.5.0"
5
+ s.version = "1.6.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jose Felix Gomez"]
9
- s.date = %q{2009-10-02}
9
+ s.date = %q{2009-10-14}
10
10
  s.description = %q{track-r is a library that provides wrapper classes and methods for accessing PivotalTracker's public API.}
11
11
  s.email = %q{jfgomez86@gmail.com}
12
12
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: track-r
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Felix Gomez
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-02 00:00:00 -05:00
12
+ date: 2009-10-14 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15