git-story-workflow 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/git-story-workflow.gemspec +3 -3
- data/lib/git/story/app.rb +9 -3
- data/lib/git/story/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d879d55774c0017ed1b27b37402ca2d8fdcc88deecb0d992ada852d1f12be1bb
|
4
|
+
data.tar.gz: 6c91afab8ddb404d99e8c678f98714175b2bebcb4356f6d9c88ffdd18b48a45c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74cf6b57e5bee32ff6fb232f7d8e63a4235fc59a8be4111091d938d7cd43eee8d9398a4405384042f8bdce93b0e951a4712d4042e006bba3e7b7d6a07475c7fb
|
7
|
+
data.tar.gz: 114372135cc5be479b62c39b22c9ad39db4a3ec544ed1c16f5899ea16bff6c6c8c9e3de2e9d19a5bcca1cdf3ae87a201613c279ab2107dcffc1683a16e763c74
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.3
|
data/git-story-workflow.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: git-story-workflow 0.9.
|
2
|
+
# stub: git-story-workflow 0.9.3 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "git-story-workflow".freeze
|
6
|
-
s.version = "0.9.
|
6
|
+
s.version = "0.9.3"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|
10
10
|
s.authors = ["Florian Frank".freeze]
|
11
|
-
s.date = "2019-05-
|
11
|
+
s.date = "2019-05-15"
|
12
12
|
s.description = "Gem abstracting a git workflow\u2026".freeze
|
13
13
|
s.email = "flori@ping.de".freeze
|
14
14
|
s.executables = ["git-story".freeze]
|
data/lib/git/story/app.rb
CHANGED
@@ -182,18 +182,20 @@ class Git::Story::App
|
|
182
182
|
else
|
183
183
|
t
|
184
184
|
end
|
185
|
+
owners = fetch_story_owners(story_id).map { |o| "#{o.name} <#{o.email}>" }
|
185
186
|
result = <<~end
|
186
187
|
Id: #{(?# + story.id.to_s).green}
|
187
188
|
Name: #{story.name.inspect.bold}
|
188
189
|
Type: #{color_type}
|
189
|
-
Estimate: #{story.estimate.to_s.yellow.bold}
|
190
|
+
Estimate: #{story.estimate.to_s.full? { |e| e.yellow.bold } || 'n/a'}
|
190
191
|
State: #{color_state}
|
191
192
|
Branch: #{current_branch_checked?&.color('#ff5f00')}
|
192
193
|
Labels: #{story.labels.map(&:name).join(' ').on_color(91)}
|
193
|
-
|
194
|
+
Owners: #{owners.join(', ').yellow}
|
195
|
+
Pivotal: #{story.url.color(33)}
|
194
196
|
end
|
195
197
|
if url = github_url(current_branch_checked?)
|
196
|
-
result << "Github: #{url}\n"
|
198
|
+
result << "Github: #{url.color(33)}\n"
|
197
199
|
end
|
198
200
|
result
|
199
201
|
end
|
@@ -438,6 +440,10 @@ class Git::Story::App
|
|
438
440
|
pivotal_get("projects/#{pivotal_project}/stories/#{story_id}").full?
|
439
441
|
end
|
440
442
|
|
443
|
+
def fetch_story_owners(story_id)
|
444
|
+
pivotal_get("projects/#{pivotal_project}/stories/#{story_id}/owners").full?
|
445
|
+
end
|
446
|
+
|
441
447
|
def pivotal_get(path)
|
442
448
|
path = path.sub(/\A\/*/, '')
|
443
449
|
url = "https://www.pivotaltracker.com/services/v5/#{path}"
|
data/lib/git/story/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-story-workflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Frank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|