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 +5 -5
- data/Gemfile +2 -2
- data/Gemfile.lock +129 -107
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/git-storyid.gemspec +12 -12
- data/lib/git_storyid.rb +9 -9
- data/spec/spec_helper.rb +1 -1
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bc54e25bc8d5baee1ad92cd40a911de1bc2182eb1b3295ada65d6590b8d0c081
|
4
|
+
data.tar.gz: d0c1b93785bd05d31bcafa88fe4224bbf159d195231f2778d867c904e6b87511
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 "
|
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 "
|
11
|
+
gem "juwelier", github: 'flajann2/juwelier'
|
12
12
|
gem "hashie"
|
13
13
|
gem "pry-byebug", require: false
|
14
14
|
gem "http_logger"
|
data/Gemfile.lock
CHANGED
@@ -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 (
|
21
|
+
activesupport (6.0.3.2)
|
5
22
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
6
|
-
i18n (
|
23
|
+
i18n (>= 0.7, < 2)
|
7
24
|
minitest (~> 5.1)
|
8
25
|
tzinfo (~> 1.1)
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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.
|
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.
|
27
|
-
|
28
|
-
|
29
|
-
faraday (0.
|
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
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
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.
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
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.
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
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
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
rspec (3.
|
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.
|
117
|
-
rspec-mocks (3.
|
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.
|
120
|
-
rspec-support (3.
|
121
|
-
safe_yaml (1.0.
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
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
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
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.
|
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 '
|
15
|
-
|
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
|
-
|
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.
|
1
|
+
0.5.0
|
data/git-storyid.gemspec
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
# Generated by
|
1
|
+
# Generated by juwelier
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit
|
3
|
+
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: git-storyid 0.
|
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.
|
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 = "
|
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 = "
|
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<
|
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<
|
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<
|
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<
|
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<
|
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<
|
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"])
|
data/lib/git_storyid.rb
CHANGED
@@ -246,9 +246,8 @@ class GitStoryid
|
|
246
246
|
class PivotalConfiguration < Configuration
|
247
247
|
|
248
248
|
def setup_api_client
|
249
|
-
require "
|
250
|
-
|
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
|
260
|
-
:
|
261
|
-
:
|
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(
|
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 ||=
|
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],
|
data/spec/spec_helper.rb
CHANGED
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
|
+
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:
|
11
|
+
date: 2020-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
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:
|
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
|
-
|
197
|
-
|
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: []
|