track-r 1.5.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/track-r/project.rb +6 -1
- data/track-r.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.6.1
|
data/lib/track-r/project.rb
CHANGED
|
@@ -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
|
-
|
|
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
|
+
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-
|
|
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.
|
|
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-
|
|
12
|
+
date: 2009-10-14 00:00:00 -05:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|