stories_sync 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/pivotal.rb CHANGED
@@ -11,4 +11,9 @@ end
11
11
  class Story < ActiveResource::Base
12
12
  self.site = "http://www.pivotaltracker.com/services/v2/projects/#{PIVOTAL_CONFIG[:project][:id]}"
13
13
  headers['X-TrackerToken'] = PIVOTAL_CONFIG[:user][:token]
14
+
15
+ def label
16
+ labels
17
+ rescue; "unlabeled"
18
+ end
14
19
  end
data/lib/stories_sync.rb CHANGED
@@ -80,11 +80,11 @@ private
80
80
  # Returns {"label_1" => [story_1, story_2, ..], "label_2" => [story_1, story_2, ..]}
81
81
  def fetch_stories
82
82
  Iteration.find(:last).stories.inject({}) do |result, story|
83
- result[story.labels] ||= []
84
- result[story.labels] << story.name
83
+ result[story.label] ||= []
84
+ result[story.label] << story.name
85
85
  result
86
86
  end
87
- rescue NoMethodError; []
87
+ rescue NoMethodError; {}
88
88
  end
89
89
 
90
90
  def fetch_token(user = PIVOTAL_CONFIG[:user][:name], pass = PIVOTAL_CONFIG[:user][:pass])
data/stories_sync.gemspec CHANGED
@@ -1,16 +1,20 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "stories_sync"
3
- s.version = "0.0.5"
3
+ s.version = "0.0.6"
4
4
  s.summary = "Stories Sync"
5
5
  s.description = "Manage and syncrhonize your UATs with Pivotal Tracker."
6
6
  s.authors = ["Evelin Garcia", "Lucas Nasif"]
7
7
  s.email = ["ehqhvm@gmail.com"]
8
+ s.homepage = "http://github.com/Evelin/stories_sync"
8
9
 
9
10
  s.executables << "stories"
10
11
 
11
12
  s.rubyforge_project = "stories_sync"
12
13
 
13
14
  s.add_dependency("thor", "~> 0.11")
15
+ s.add_dependency("activeresource", "~> 2.3.3")
16
+ s.add_dependency("rest-client", "~> 1.0.3")
17
+
14
18
 
15
19
  s.files = ["README.markdown", "lib/pivotal.rb", "bin/stories", "lib/stories_sync.rb", "stories_sync.gemspec", "LICENSE", "test/test_helper.rb", "test/stories_sync_test.rb", "templates/config/pivotal.yml", "templates/test/stories/label_1_test.rb", "templates/test/stories/label_1_test_template.rb", "templates/test/stories/label_2_test.rb", "templates/test/stories/label_2_test.rb"]
16
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stories_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evelin Garcia
@@ -23,6 +23,26 @@ dependencies:
23
23
  - !ruby/object:Gem::Version
24
24
  version: "0.11"
25
25
  version:
26
+ - !ruby/object:Gem::Dependency
27
+ name: activeresource
28
+ type: :runtime
29
+ version_requirement:
30
+ version_requirements: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ~>
33
+ - !ruby/object:Gem::Version
34
+ version: 2.3.3
35
+ version:
36
+ - !ruby/object:Gem::Dependency
37
+ name: rest-client
38
+ type: :runtime
39
+ version_requirement:
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ version: 1.0.3
45
+ version:
26
46
  description: Manage and syncrhonize your UATs with Pivotal Tracker.
27
47
  email:
28
48
  - ehqhvm@gmail.com
@@ -46,7 +66,7 @@ files:
46
66
  - templates/test/stories/label_1_test_template.rb
47
67
  - templates/test/stories/label_2_test.rb
48
68
  has_rdoc: true
49
- homepage:
69
+ homepage: http://github.com/Evelin/stories_sync
50
70
  licenses: []
51
71
 
52
72
  post_install_message: