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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71a678629ab94d345b9362db3a9632978eecccf4a0b42074b8926a8caa8e7793
4
- data.tar.gz: c709d15f03f8a751ec2c61626210ec240fbd5ab1e89b4cd314d9548499ab3284
3
+ metadata.gz: b2d8278e31abf927d6a9621efe9be58361e75b6edc02ca47015d97bbf61f2674
4
+ data.tar.gz: b6a82b12b583966eaf6fb10ea2c6e1f24aa3e0fd79db83aca76c2ee37494e7e0
5
5
  SHA512:
6
- metadata.gz: c1b06bbac8125456cb8095081affae06ee3105f3d157ae2b5f24f970d92072cac0b5aa129d6abde397fdf8d91e7040232673dbb43c55e46aebf30b8cddf66fc4
7
- data.tar.gz: 03b2db927c695b5c16b1c0503ff26dbd570e4fe1e12317cf4dd69e3332c2329b2c8fe6c75709b8c4738bd6a4eec68b8dc71bf60c15728e9a163837f09457c734
6
+ metadata.gz: cc21f4fa064f87add0afbef50b7c53d807107f040f89e3a0309bf34b3ba9da289abfd1b1901dedb422aa058eb78feb685643fc1331542902885cc3de4bdbe240
7
+ data.tar.gz: 0b6860587a49c17bc15143415bb12e5d29622b24cf3bf8095f7c606675090aa5b44951e9a62d05267ae68520330673d67237934127b443c0a334ba944a551e3c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.0
1
+ 1.6.1
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: git-story-workflow 1.6.0 ruby lib
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.0"
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-15"
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
- story.owners = Array((fetch_story_owners(story_id) if with_owner))
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
- tg.add Thread.new { Thread.current[:result] = block.(pid) }
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)
@@ -1,6 +1,6 @@
1
1
  module Git::Story
2
2
  # Git::Story version
3
- VERSION = '1.6.0'
3
+ VERSION = '1.6.1'
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: 1.6.0
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-15 00:00:00.000000000 Z
11
+ date: 2021-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar