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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42af1ab5635c2f1a428ff42d7e53e4e0614e7da89bd80c7c7e15834f633f968f
4
- data.tar.gz: 70f14ff51ce09f2212aa5bd65faaffebbbbc88b0c33ce4508054326935472a3c
3
+ metadata.gz: d879d55774c0017ed1b27b37402ca2d8fdcc88deecb0d992ada852d1f12be1bb
4
+ data.tar.gz: 6c91afab8ddb404d99e8c678f98714175b2bebcb4356f6d9c88ffdd18b48a45c
5
5
  SHA512:
6
- metadata.gz: 503f952dd24b5e5e02e709c212f6d680e663c40fb5cc67cde2c5acc90ce7afa8a590bcc460fee58b23f438ca378d6ec3447eabd89ceadb8859850a944f63520f
7
- data.tar.gz: 6b4792e63cca71fbfcdb2e59807f05f8d0d526c41707fd1cbeaaa2b0158f01130e66666f79e34ca73d228c624a7cf36fde1182a7d6b8a9ff1ba7c8af7a1f5e86
6
+ metadata.gz: 74cf6b57e5bee32ff6fb232f7d8e63a4235fc59a8be4111091d938d7cd43eee8d9398a4405384042f8bdce93b0e951a4712d4042e006bba3e7b7d6a07475c7fb
7
+ data.tar.gz: 114372135cc5be479b62c39b22c9ad39db4a3ec544ed1c16f5899ea16bff6c6c8c9e3de2e9d19a5bcca1cdf3ae87a201613c279ab2107dcffc1683a16e763c74
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.2
1
+ 0.9.3
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: git-story-workflow 0.9.2 ruby lib
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.2"
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-14"
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]
@@ -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
- Pivotal: #{story.url}
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}"
@@ -1,6 +1,6 @@
1
1
  module Git::Story
2
2
  # Git::Story version
3
- VERSION = '0.9.2'
3
+ VERSION = '0.9.3'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
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.2
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-14 00:00:00.000000000 Z
11
+ date: 2019-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar