git-story-workflow 1.6.0 → 1.6.1
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 +12 -6
- 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: b2d8278e31abf927d6a9621efe9be58361e75b6edc02ca47015d97bbf61f2674
|
4
|
+
data.tar.gz: b6a82b12b583966eaf6fb10ea2c6e1f24aa3e0fd79db83aca76c2ee37494e7e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc21f4fa064f87add0afbef50b7c53d807107f040f89e3a0309bf34b3ba9da289abfd1b1901dedb422aa058eb78feb685643fc1331542902885cc3de4bdbe240
|
7
|
+
data.tar.gz: 0b6860587a49c17bc15143415bb12e5d29622b24cf3bf8095f7c606675090aa5b44951e9a62d05267ae68520330673d67237934127b443c0a334ba944a551e3c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.1
|
data/git-story-workflow.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: git-story-workflow 1.6.
|
2
|
+
# stub: git-story-workflow 1.6.1 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "git-story-workflow".freeze
|
6
|
-
s.version = "1.6.
|
6
|
+
s.version = "1.6.1"
|
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 = "2021-
|
11
|
+
s.date = "2021-12-08"
|
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
@@ -205,7 +205,8 @@ class Git::Story::App
|
|
205
205
|
fetch_tags
|
206
206
|
opts = ([
|
207
207
|
'--color=never',
|
208
|
-
'--pretty=%B'
|
208
|
+
'--pretty=%B',
|
209
|
+
'--reverse',
|
209
210
|
] | rest) * ' '
|
210
211
|
output = capture("git log #{opts} #{ref}")
|
211
212
|
pivotal_ids = SortedSet[]
|
@@ -493,8 +494,9 @@ class Git::Story::App
|
|
493
494
|
end
|
494
495
|
|
495
496
|
def fetch_story(story_id, with_owner: false)
|
496
|
-
story = pivotal_get("projects/#{pivotal_project}/stories/#{story_id}").full?
|
497
|
-
|
497
|
+
if story = pivotal_get("projects/#{pivotal_project}/stories/#{story_id}").full?
|
498
|
+
story.owners = Array((fetch_story_owners(story_id) if with_owner))
|
499
|
+
end
|
498
500
|
story
|
499
501
|
end
|
500
502
|
|
@@ -615,13 +617,17 @@ class Git::Story::App
|
|
615
617
|
block or raise ArgumentError, '&block parameter is required'
|
616
618
|
tg = ThreadGroup.new
|
617
619
|
pivotal_ids.each do |pid|
|
618
|
-
|
620
|
+
order = 0
|
621
|
+
tg.add Thread.new {
|
622
|
+
Thread.current[:order] = order
|
623
|
+
Thread.current[:result] = block.(pid)
|
624
|
+
}
|
619
625
|
end
|
620
626
|
tg.list.with_infobar(label: 'Story').map do |t|
|
621
627
|
t.join
|
622
628
|
+infobar
|
623
|
-
t[:result]
|
624
|
-
end
|
629
|
+
[ t[:order], t[:result] ]
|
630
|
+
end.sort_by(&:first).transpose[1]
|
625
631
|
end
|
626
632
|
|
627
633
|
def fetch_statuses(pivotal_ids)
|
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: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Frank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|