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 +4 -4
- data/VERSION +1 -1
- data/git-story-workflow.gemspec +3 -3
- data/lib/git/story/app.rb +14 -1
- 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: 42af1ab5635c2f1a428ff42d7e53e4e0614e7da89bd80c7c7e15834f633f968f
|
4
|
+
data.tar.gz: 70f14ff51ce09f2212aa5bd65faaffebbbbc88b0c33ce4508054326935472a3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 503f952dd24b5e5e02e709c212f6d680e663c40fb5cc67cde2c5acc90ce7afa8a590bcc460fee58b23f438ca378d6ec3447eabd89ceadb8859850a944f63520f
|
7
|
+
data.tar.gz: 6b4792e63cca71fbfcdb2e59807f05f8d0d526c41707fd1cbeaaa2b0158f01130e66666f79e34ca73d228c624a7cf36fde1182a7d6b8a9ff1ba7c8af7a1f5e86
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.2
|
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.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.
|
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-
|
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]
|
data/lib/git/story/app.rb
CHANGED
@@ -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
|
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'
|
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.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-
|
11
|
+
date: 2019-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|