git-story-workflow 0.9.1 → 0.9.2

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: 185a2bb9b40aaff164f563078676e7c2bce9353670b12ffc4af60a956e08726d
4
- data.tar.gz: e3a4b1116c879e0b5f465c614bc1419be1da52c0bbfac42961fe837f823349bc
3
+ metadata.gz: 42af1ab5635c2f1a428ff42d7e53e4e0614e7da89bd80c7c7e15834f633f968f
4
+ data.tar.gz: 70f14ff51ce09f2212aa5bd65faaffebbbbc88b0c33ce4508054326935472a3c
5
5
  SHA512:
6
- metadata.gz: b1c2890964000f121d6d7c7380cd5b7ad3955e0fc90da84875bf4e4923b96e3e3c0ed611b2ad31bd1a17353b544c19062c8194de52a92fbf97b9cf5dba3c6ce5
7
- data.tar.gz: da7eb390763e029c544f38a7262146ca658ddc07bda8e6680822ffc9406b643627e47430001217b5b1e2b6425ed19e1f9708eb6c0abfca002d68d66487edd0ef
6
+ metadata.gz: 503f952dd24b5e5e02e709c212f6d680e663c40fb5cc67cde2c5acc90ce7afa8a590bcc460fee58b23f438ca378d6ec3447eabd89ceadb8859850a944f63520f
7
+ data.tar.gz: 6b4792e63cca71fbfcdb2e59807f05f8d0d526c41707fd1cbeaaa2b0158f01130e66666f79e34ca73d228c624a7cf36fde1182a7d6b8a9ff1ba7c8af7a1f5e86
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.1
1
+ 0.9.2
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: git-story-workflow 0.9.1 ruby lib
2
+ # stub: git-story-workflow 0.9.2 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "git-story-workflow".freeze
6
- s.version = "0.9.1"
6
+ s.version = "0.9.2"
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-08"
11
+ s.date = "2019-05-14"
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]
@@ -2,6 +2,7 @@ require 'time'
2
2
  require 'open-uri'
3
3
  require 'tins/go'
4
4
  require 'set'
5
+ require 'infobar'
5
6
 
6
7
  class Git::Story::App
7
8
  class ::String
@@ -264,7 +265,19 @@ class Git::Story::App
264
265
  output = capture("git log #{opts} #{ref}")
265
266
  pivotal_ids = SortedSet[]
266
267
  output.scan(/\[\s*#\s*(\d+)\s*\]/) { pivotal_ids << $1.to_i }
267
- pivotal_ids.map { |pid| status(pid) } * (?┄ * Tins::Terminal.cols << ?\n)
268
+ fetch_statuses(pivotal_ids) * (?┄ * Tins::Terminal.cols << ?\n)
269
+ end
270
+
271
+ def fetch_statuses(pivotal_ids)
272
+ tg = ThreadGroup.new
273
+ pivotal_ids.each do |pid|
274
+ tg.add Thread.new { Thread.current[:status] = status(pid) }
275
+ end
276
+ tg.list.with_infobar(label: 'Story').map do |t|
277
+ +infobar
278
+ t.join
279
+ t[:status]
280
+ end
268
281
  end
269
282
 
270
283
  command doc: '[REF] output diff since last production deploy tag'
@@ -1,6 +1,6 @@
1
1
  module Git::Story
2
2
  # Git::Story version
3
- VERSION = '0.9.1'
3
+ VERSION = '0.9.2'
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.1
4
+ version: 0.9.2
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-08 00:00:00.000000000 Z
11
+ date: 2019-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar