git-storyid 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 56549fea6495f60b2c872b7decff12ced0a7b3be
4
- data.tar.gz: ca961d3da3235eaaa74efac733dcb4cb00e3c24e
2
+ SHA256:
3
+ metadata.gz: bc54e25bc8d5baee1ad92cd40a911de1bc2182eb1b3295ada65d6590b8d0c081
4
+ data.tar.gz: d0c1b93785bd05d31bcafa88fe4224bbf159d195231f2778d867c904e6b87511
5
5
  SHA512:
6
- metadata.gz: 9079a32c507af4e585b03377658b01809f44d74bf30f6ecc9cfbdc055787ade41b70b72def15b0d969697379d96bef69ef0438b5b3f7c7ac28278e2bf31196c4
7
- data.tar.gz: 3de0ae28685b01233941147a85ceae06c8d04ea8e78c5841ce22efc91b8dc8cf1070758e83bee3c7b212479d2509826f8fe92827cca312b615fc43230ae7b2cb
6
+ metadata.gz: bce50d473b0d9ac819576ce6d502c86b5c699ca5d567189e06f80cae4d0d81a9973f532e47b103f4b5c5ce450544ee6851cf4c9907d43f089f0b85ca6b4e89be
7
+ data.tar.gz: cf3213b24382d62e1398e6b26021aed52a253970c6b440de3f181e9267d7583372235cd474c102772bc49362cd1e49a911901c9a6faece991c521d51fea3fcfe
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "pivotal-tracker"
3
+ gem "tracker_api"
4
4
  gem "jira-ruby"
5
5
 
6
6
  group :development do
@@ -8,7 +8,7 @@ group :development do
8
8
  gem "debugger", :platform => "ruby_19"
9
9
  gem "mocha"
10
10
  gem "rspec"
11
- gem "jeweler"
11
+ gem "juwelier", github: 'flajann2/juwelier'
12
12
  gem "hashie"
13
13
  gem "pry-byebug", require: false
14
14
  gem "http_logger"
@@ -1,18 +1,44 @@
1
+ GIT
2
+ remote: git://github.com/flajann2/juwelier.git
3
+ revision: de59d5a2ddea00c1f18957ab62129c1c141acce1
4
+ specs:
5
+ juwelier (2.4.9)
6
+ builder
7
+ bundler
8
+ git
9
+ github_api
10
+ highline
11
+ kamelcase (~> 0)
12
+ nokogiri
13
+ psych
14
+ rake
15
+ rdoc
16
+ semver2
17
+
1
18
  GEM
2
19
  remote: http://rubygems.org/
3
20
  specs:
4
- activesupport (5.0.1)
21
+ activesupport (6.0.3.2)
5
22
  concurrent-ruby (~> 1.0, >= 1.0.2)
6
- i18n (~> 0.7)
23
+ i18n (>= 0.7, < 2)
7
24
  minitest (~> 5.1)
8
25
  tzinfo (~> 1.1)
9
- addressable (2.5.0)
10
- public_suffix (~> 2.0, >= 2.0.2)
11
- builder (3.2.2)
12
- byebug (9.0.5)
13
- coderay (1.1.1)
26
+ zeitwerk (~> 2.2, >= 2.2.2)
27
+ addressable (2.7.0)
28
+ public_suffix (>= 2.0.2, < 5.0)
29
+ atlassian-jwt (0.2.0)
30
+ jwt (~> 2.1.0)
31
+ axiom-types (0.1.1)
32
+ descendants_tracker (~> 0.0.4)
33
+ ice_nine (~> 0.11.0)
34
+ thread_safe (~> 0.3, >= 0.3.1)
35
+ builder (3.2.4)
36
+ byebug (11.1.3)
37
+ coderay (1.1.3)
38
+ coercible (1.0.0)
39
+ descendants_tracker (~> 0.0.1)
14
40
  columnize (0.9.0)
15
- concurrent-ruby (1.0.3)
41
+ concurrent-ruby (1.1.7)
16
42
  crack (0.4.3)
17
43
  safe_yaml (~> 1.0.0)
18
44
  debugger (1.6.8)
@@ -21,116 +47,112 @@ GEM
21
47
  debugger-ruby_core_source (~> 1.3.5)
22
48
  debugger-linecache (1.2.0)
23
49
  debugger-ruby_core_source (1.3.8)
50
+ declarative (0.0.20)
51
+ declarative-option (0.1.0)
24
52
  descendants_tracker (0.0.4)
25
53
  thread_safe (~> 0.3, >= 0.3.1)
26
- diff-lcs (1.2.5)
27
- domain_name (0.5.20161129)
28
- unf (>= 0.0.5, < 1.0.0)
29
- faraday (0.9.2)
54
+ diff-lcs (1.4.4)
55
+ equalizer (0.0.11)
56
+ excon (0.76.0)
57
+ faraday (1.0.1)
30
58
  multipart-post (>= 1.2, < 3)
31
- git (1.3.0)
32
- github_api (0.11.3)
33
- addressable (~> 2.3)
34
- descendants_tracker (~> 0.0.1)
35
- faraday (~> 0.8, < 0.10)
36
- hashie (>= 1.2)
37
- multi_json (>= 1.7.5, < 2.0)
38
- nokogiri (~> 1.6.0)
39
- oauth2
40
- hashdiff (0.3.1)
41
- hashie (3.4.6)
42
- highline (1.7.8)
43
- http-cookie (1.0.3)
44
- domain_name (~> 0.5)
45
- http_logger (0.5.1)
46
- i18n (0.7.0)
47
- jeweler (2.3.1)
48
- builder
49
- bundler (>= 1.0)
50
- git (>= 1.2.5)
51
- github_api (~> 0.11.0)
52
- highline (>= 1.6.15)
53
- nokogiri (>= 1.5.10)
54
- psych (~> 2.2)
55
- rake
56
- rdoc
57
- semver
58
- jira-ruby (1.1.3)
59
+ faraday_middleware (1.0.0)
60
+ faraday (~> 1.0)
61
+ git (1.7.0)
62
+ rchardet (~> 1.8)
63
+ github_api (0.19.0)
64
+ addressable (~> 2.4)
65
+ descendants_tracker (~> 0.0.4)
66
+ faraday (>= 0.8, < 2)
67
+ hashie (~> 3.5, >= 3.5.2)
68
+ oauth2 (~> 1.0)
69
+ hashdiff (1.0.1)
70
+ hashie (3.6.0)
71
+ highline (2.0.3)
72
+ http_logger (0.6.0)
73
+ i18n (1.8.5)
74
+ concurrent-ruby (~> 1.0)
75
+ ice_nine (0.11.2)
76
+ jira-ruby (2.1.3)
59
77
  activesupport
78
+ atlassian-jwt
79
+ multipart-post
60
80
  oauth (~> 0.5, >= 0.5.0)
61
- jwt (1.5.6)
62
- metaclass (0.0.4)
63
- method_source (0.8.2)
64
- mime-types (3.1)
65
- mime-types-data (~> 3.2015)
66
- mime-types-data (3.2016.0521)
67
- mini_portile2 (2.1.0)
68
- minitest (5.10.1)
69
- mocha (1.2.1)
70
- metaclass (~> 0.0.1)
71
- multi_json (1.12.1)
81
+ jwt (2.1.0)
82
+ kamelcase (0.0.2)
83
+ semver2 (~> 3)
84
+ method_source (1.0.0)
85
+ mimemagic (0.3.5)
86
+ mini_portile2 (2.4.0)
87
+ minitest (5.14.1)
88
+ mocha (1.11.2)
89
+ multi_json (1.15.0)
72
90
  multi_xml (0.6.0)
73
- multipart-post (2.0.0)
74
- netrc (0.11.0)
75
- nokogiri (1.6.8.1)
76
- mini_portile2 (~> 2.1.0)
77
- nokogiri-happymapper (0.5.9)
78
- nokogiri (~> 1.5)
79
- oauth (0.5.1)
80
- oauth2 (1.2.0)
81
- faraday (>= 0.8, < 0.10)
82
- jwt (~> 1.0)
91
+ multipart-post (2.1.1)
92
+ nokogiri (1.10.10)
93
+ mini_portile2 (~> 2.4.0)
94
+ oauth (0.5.4)
95
+ oauth2 (1.4.4)
96
+ faraday (>= 0.8, < 2.0)
97
+ jwt (>= 1.0, < 3.0)
83
98
  multi_json (~> 1.3)
84
99
  multi_xml (~> 0.5)
85
100
  rack (>= 1.2, < 3)
86
- pivotal-tracker (0.5.13)
87
- builder
88
- crack
89
- nokogiri (>= 1.5.5)
90
- nokogiri-happymapper (>= 0.5.4)
91
- rest-client (>= 1.8.0)
92
- pry (0.10.4)
93
- coderay (~> 1.1.0)
94
- method_source (~> 0.8.1)
95
- slop (~> 3.4)
96
- pry-byebug (3.4.0)
97
- byebug (~> 9.0)
98
- pry (~> 0.10)
99
- psych (2.2.2)
100
- public_suffix (2.0.4)
101
- rack (2.0.1)
102
- rake (12.0.0)
103
- rdoc (5.0.0)
104
- rest-client (2.0.0)
105
- http-cookie (>= 1.0.2, < 2.0)
106
- mime-types (>= 1.16, < 4.0)
107
- netrc (~> 0.8)
108
- rspec (3.5.0)
109
- rspec-core (~> 3.5.0)
110
- rspec-expectations (~> 3.5.0)
111
- rspec-mocks (~> 3.5.0)
112
- rspec-core (3.5.4)
113
- rspec-support (~> 3.5.0)
114
- rspec-expectations (3.5.0)
101
+ pry (0.13.1)
102
+ coderay (~> 1.1)
103
+ method_source (~> 1.0)
104
+ pry-byebug (3.9.0)
105
+ byebug (~> 11.0)
106
+ pry (~> 0.13.0)
107
+ psych (3.2.0)
108
+ public_suffix (4.0.5)
109
+ rack (2.2.3)
110
+ rake (13.0.1)
111
+ rchardet (1.8.0)
112
+ rdoc (6.2.1)
113
+ representable (3.0.4)
114
+ declarative (< 0.1.0)
115
+ declarative-option (< 0.2.0)
116
+ uber (< 0.2.0)
117
+ rspec (3.9.0)
118
+ rspec-core (~> 3.9.0)
119
+ rspec-expectations (~> 3.9.0)
120
+ rspec-mocks (~> 3.9.0)
121
+ rspec-core (3.9.2)
122
+ rspec-support (~> 3.9.3)
123
+ rspec-expectations (3.9.2)
115
124
  diff-lcs (>= 1.2.0, < 2.0)
116
- rspec-support (~> 3.5.0)
117
- rspec-mocks (3.5.0)
125
+ rspec-support (~> 3.9.0)
126
+ rspec-mocks (3.9.1)
118
127
  diff-lcs (>= 1.2.0, < 2.0)
119
- rspec-support (~> 3.5.0)
120
- rspec-support (3.5.0)
121
- safe_yaml (1.0.4)
122
- semver (1.0.1)
123
- slop (3.6.0)
124
- thread_safe (0.3.5)
125
- tzinfo (1.2.2)
128
+ rspec-support (~> 3.9.0)
129
+ rspec-support (3.9.3)
130
+ safe_yaml (1.0.5)
131
+ semver2 (3.4.2)
132
+ thread_safe (0.3.6)
133
+ tracker_api (1.11.0)
134
+ addressable
135
+ equalizer
136
+ excon
137
+ faraday
138
+ faraday_middleware
139
+ mimemagic
140
+ multi_json
141
+ representable
142
+ virtus
143
+ tzinfo (1.2.7)
126
144
  thread_safe (~> 0.1)
127
- unf (0.1.4)
128
- unf_ext
129
- unf_ext (0.0.7.2)
130
- webmock (2.3.1)
145
+ uber (0.1.0)
146
+ virtus (1.0.5)
147
+ axiom-types (~> 0.1)
148
+ coercible (~> 1.0)
149
+ descendants_tracker (~> 0.0, >= 0.0.3)
150
+ equalizer (~> 0.0, >= 0.0.9)
151
+ webmock (3.8.3)
131
152
  addressable (>= 2.3.6)
132
153
  crack (>= 0.3.2)
133
- hashdiff
154
+ hashdiff (>= 0.4.0, < 2.0.0)
155
+ zeitwerk (2.4.0)
134
156
 
135
157
  PLATFORMS
136
158
  ruby
@@ -139,13 +161,13 @@ DEPENDENCIES
139
161
  debugger
140
162
  hashie
141
163
  http_logger
142
- jeweler
143
164
  jira-ruby
165
+ juwelier!
144
166
  mocha
145
- pivotal-tracker
146
167
  pry-byebug
147
168
  rspec
169
+ tracker_api
148
170
  webmock
149
171
 
150
172
  BUNDLED WITH
151
- 1.13.3
173
+ 1.17.3
data/Rakefile CHANGED
@@ -11,8 +11,8 @@ rescue Bundler::BundlerError => e
11
11
  end
12
12
  require 'rake'
13
13
 
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
14
+ require 'juwelier'
15
+ Juwelier::Tasks.new do |gem|
16
16
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
17
  gem.name = "git-storyid"
18
18
  gem.executables = ['git-storyid']
@@ -24,7 +24,7 @@ Jeweler::Tasks.new do |gem|
24
24
  gem.authors = ["Bogdan Gusiev"]
25
25
  # dependencies defined in Gemfile
26
26
  end
27
- Jeweler::RubygemsDotOrgTasks.new
27
+ Juwelier::RubygemsDotOrgTasks.new
28
28
 
29
29
  require 'rspec/core'
30
30
  require 'rspec/core/rake_task'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.5.0
@@ -1,17 +1,17 @@
1
- # Generated by jeweler
1
+ # Generated by juwelier
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
3
+ # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: git-storyid 0.4.0 ruby lib
5
+ # stub: git-storyid 0.5.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "git-storyid".freeze
9
- s.version = "0.4.0"
9
+ s.version = "0.5.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Bogdan Gusiev".freeze]
14
- s.date = "2017-01-11"
14
+ s.date = "2020-08-31"
15
15
  s.description = "Helps include pivotal story id and description in commit".freeze
16
16
  s.email = "agresso@gmail.com".freeze
17
17
  s.executables = ["git-storyid".freeze]
@@ -38,43 +38,43 @@ Gem::Specification.new do |s|
38
38
  ]
39
39
  s.homepage = "http://github.com/bogdan/git-storyid".freeze
40
40
  s.licenses = ["MIT".freeze]
41
- s.rubygems_version = "2.6.7".freeze
41
+ s.rubygems_version = "3.0.8".freeze
42
42
  s.summary = "Attach commits to pivotal stories".freeze
43
43
 
44
44
  if s.respond_to? :specification_version then
45
45
  s.specification_version = 4
46
46
 
47
47
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
48
- s.add_runtime_dependency(%q<pivotal-tracker>.freeze, [">= 0"])
48
+ s.add_runtime_dependency(%q<tracker_api>.freeze, [">= 0"])
49
49
  s.add_runtime_dependency(%q<jira-ruby>.freeze, [">= 0"])
50
50
  s.add_development_dependency(%q<webmock>.freeze, [">= 0"])
51
51
  s.add_development_dependency(%q<debugger>.freeze, [">= 0"])
52
52
  s.add_development_dependency(%q<mocha>.freeze, [">= 0"])
53
53
  s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
54
- s.add_development_dependency(%q<jeweler>.freeze, [">= 0"])
54
+ s.add_development_dependency(%q<juwelier>.freeze, [">= 0"])
55
55
  s.add_development_dependency(%q<hashie>.freeze, [">= 0"])
56
56
  s.add_development_dependency(%q<pry-byebug>.freeze, [">= 0"])
57
57
  s.add_development_dependency(%q<http_logger>.freeze, [">= 0"])
58
58
  else
59
- s.add_dependency(%q<pivotal-tracker>.freeze, [">= 0"])
59
+ s.add_dependency(%q<tracker_api>.freeze, [">= 0"])
60
60
  s.add_dependency(%q<jira-ruby>.freeze, [">= 0"])
61
61
  s.add_dependency(%q<webmock>.freeze, [">= 0"])
62
62
  s.add_dependency(%q<debugger>.freeze, [">= 0"])
63
63
  s.add_dependency(%q<mocha>.freeze, [">= 0"])
64
64
  s.add_dependency(%q<rspec>.freeze, [">= 0"])
65
- s.add_dependency(%q<jeweler>.freeze, [">= 0"])
65
+ s.add_dependency(%q<juwelier>.freeze, [">= 0"])
66
66
  s.add_dependency(%q<hashie>.freeze, [">= 0"])
67
67
  s.add_dependency(%q<pry-byebug>.freeze, [">= 0"])
68
68
  s.add_dependency(%q<http_logger>.freeze, [">= 0"])
69
69
  end
70
70
  else
71
- s.add_dependency(%q<pivotal-tracker>.freeze, [">= 0"])
71
+ s.add_dependency(%q<tracker_api>.freeze, [">= 0"])
72
72
  s.add_dependency(%q<jira-ruby>.freeze, [">= 0"])
73
73
  s.add_dependency(%q<webmock>.freeze, [">= 0"])
74
74
  s.add_dependency(%q<debugger>.freeze, [">= 0"])
75
75
  s.add_dependency(%q<mocha>.freeze, [">= 0"])
76
76
  s.add_dependency(%q<rspec>.freeze, [">= 0"])
77
- s.add_dependency(%q<jeweler>.freeze, [">= 0"])
77
+ s.add_dependency(%q<juwelier>.freeze, [">= 0"])
78
78
  s.add_dependency(%q<hashie>.freeze, [">= 0"])
79
79
  s.add_dependency(%q<pry-byebug>.freeze, [">= 0"])
80
80
  s.add_dependency(%q<http_logger>.freeze, [">= 0"])
@@ -246,9 +246,8 @@ class GitStoryid
246
246
  class PivotalConfiguration < Configuration
247
247
 
248
248
  def setup_api_client
249
- require "pivotal_tracker"
250
- PivotalTracker::Client.token = @config['api_token']
251
- PivotalTracker::Client.use_ssl = true
249
+ require "tracker_api"
250
+ @client ||= TrackerApi::Client.new(token: @config[:api_token])
252
251
  end
253
252
 
254
253
  def me
@@ -256,15 +255,16 @@ class GitStoryid
256
255
  end
257
256
 
258
257
  def fetch_all_stories
259
- project.stories.all(
260
- :owner => me,
261
- :state => %w(started finished delivered),
258
+ project.stories(
259
+ filter: "mywork:#{me} state:started,finished,delivered",
260
+ # :owner => me,
261
+ # :with_state => %w(started finished delivered),
262
262
  :limit => 30
263
263
  )
264
264
  end
265
265
 
266
266
  def find_story_by_id(id)
267
- serialize_issue(@tracker.project.stories.find(id))
267
+ serialize_issue(project.story(id))
268
268
  end
269
269
 
270
270
  def serialize_issue(issue)
@@ -273,7 +273,7 @@ class GitStoryid
273
273
 
274
274
  protected
275
275
  def project
276
- @project ||= PivotalTracker::Project.find(@config['project_id'])
276
+ @project ||= @client.project(@config['project_id'])
277
277
  end
278
278
 
279
279
  end
@@ -286,7 +286,7 @@ class GitStoryid
286
286
  end
287
287
 
288
288
  def setup_api_client
289
- require 'jira'
289
+ require 'jira-ruby'
290
290
  @client ||= JIRA::Client.new(
291
291
  :username => username,
292
292
  :password => @config[:password],
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
3
  require 'rspec'
4
4
  require "webmock"
5
5
  require "hashie"
6
- require "pivotal_tracker"
6
+ require "tracker_api"
7
7
  require 'jira-ruby'
8
8
  require 'git-storyid'
9
9
 
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-storyid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bogdan Gusiev
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-11 00:00:00.000000000 Z
11
+ date: 2020-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: pivotal-tracker
14
+ name: tracker_api
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: jeweler
98
+ name: juwelier
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -178,7 +178,7 @@ homepage: http://github.com/bogdan/git-storyid
178
178
  licenses:
179
179
  - MIT
180
180
  metadata: {}
181
- post_install_message:
181
+ post_install_message:
182
182
  rdoc_options: []
183
183
  require_paths:
184
184
  - lib
@@ -193,9 +193,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  requirements: []
196
- rubyforge_project:
197
- rubygems_version: 2.6.7
198
- signing_key:
196
+ rubygems_version: 3.0.8
197
+ signing_key:
199
198
  specification_version: 4
200
199
  summary: Attach commits to pivotal stories
201
200
  test_files: []