jfgomez86-track-r 1.2.0 → 1.3.0
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/story.rb +4 -3
- data/track-r.gemspec +2 -2
- metadata +4 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.3.0
|
data/lib/track-r/story.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
# TODO: Documentation ☻
|
1
|
+
#Typhoon TODO: Documentation ☻
|
2
2
|
class Story
|
3
3
|
attr_accessor :story_type, :estimate, :current_state,
|
4
4
|
:description, :name, :requested_by, :owned_by, :created_at, :accepted_at,
|
5
|
-
:labels
|
5
|
+
:labels, :project_id
|
6
6
|
|
7
7
|
attr_reader :id, :url
|
8
8
|
|
@@ -26,7 +26,7 @@ class Story
|
|
26
26
|
def build_story
|
27
27
|
@id ||= @story.at('id').inner_html
|
28
28
|
@url ||= "http://www.pivotaltracker.com/story/show/#{@id}"
|
29
|
-
@api_url ||= "http://www.pivotaltracker.com/services/v2/projects/#{@project_id}/stories/#{@id}"
|
29
|
+
@api_url ||= "http://www.pivotaltracker.com/services/v2/projects/#{@project_id}/stories/#{@id}"
|
30
30
|
@story_type = @story.at('story_type').inner_html unless @story.at('story_type').nil?
|
31
31
|
@estimate = @story.at('estimate').inner_html unless @story.at('estimate').nil?
|
32
32
|
@current_state = @story.at('current_state').inner_html unless @story.at('current_state').nil?
|
@@ -39,6 +39,7 @@ class Story
|
|
39
39
|
@labels = @story.at('labels').inner_html unless @story.at('labels').nil?
|
40
40
|
end
|
41
41
|
|
42
|
+
# TODO: Test this method
|
42
43
|
def update(attrs = {})
|
43
44
|
unless attrs.empty?
|
44
45
|
if validate_attributes(attrs)
|
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.3.0"
|
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-07
|
9
|
+
s.date = %q{2009-09-07}
|
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: jfgomez86-track-r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
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-07
|
12
|
+
date: 2009-09-07 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -45,6 +45,7 @@ files:
|
|
45
45
|
- vendor/install-gems/install-gems.rb
|
46
46
|
has_rdoc: false
|
47
47
|
homepage: http://github.com/jfgomez86/Track-R
|
48
|
+
licenses:
|
48
49
|
post_install_message:
|
49
50
|
rdoc_options:
|
50
51
|
- --charset=UTF-8
|
@@ -65,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
66
|
requirements: []
|
66
67
|
|
67
68
|
rubyforge_project:
|
68
|
-
rubygems_version: 1.
|
69
|
+
rubygems_version: 1.3.5
|
69
70
|
signing_key:
|
70
71
|
specification_version: 3
|
71
72
|
summary: A wrapper library for pivotal tracker's API
|