git-story-workflow 0.4.1 → 0.4.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: c85cad12dd3041cbd5bb5f39e8f141f534ac4884ab1cf57ca82971f347a4218b
4
- data.tar.gz: 56e7c1e274a629c3c7d9d9f1e64a8c9f16c9763303174e57a0499bbc2b730829
3
+ metadata.gz: a59013fb08e6b4782e2a0c9639d0743d33d80a616134caffd1b0a8cbbefad0ac
4
+ data.tar.gz: 9f0aa8fed701287a779f033ef7e17b3e37139104c6e3ff113b0966f4567bcc03
5
5
  SHA512:
6
- metadata.gz: 2d452cbb533225e24e0ee25679289a09409ac3ea91eec5374b491cf07dc11e4cc091ed2da2af39ad046a97c3c1b2acbd1594778b07393c5d53c2b7f38a116fb0
7
- data.tar.gz: 0130fdec323527c3e46d754ce8da4cb222dcfc5f7676e447b638315a983c17bd1a13918a767ffdcd8bc2720719de0e161c1184af2f2aafe58365269428907c35
6
+ metadata.gz: 89032b278d2faf60ef6eb40bf22dd472584cd7b52bc9ffc34ed83008e1a55924277cd709f461d68300f91c180f2d2888144c6651ec0f0683cc72336043c2cc2a
7
+ data.tar.gz: 0ff7fc99a9f59fbdc5cc8afd1368780030be99a81a962899434303e38d012d38c1d4a58fd6f2fc04bc58eb6a74656e9ef65512c5551422963b1b070671806bd8
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: git-story-workflow 0.4.1 ruby lib
2
+ # stub: git-story-workflow 0.4.2 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "git-story-workflow".freeze
6
- s.version = "0.4.1"
6
+ s.version = "0.4.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 = "2018-07-02"
11
+ s.date = "2018-07-12"
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]
@@ -100,9 +100,16 @@ class Git::Story::SemaphoreResponse < JSON::GenericObject
100
100
  "#{entity_name} ##{sha1} in state #{result}".blue
101
101
  end
102
102
  r = StringIO.new(r)
103
+ duration_seconds = duration.to_f.to_i
104
+ total_seconds =
105
+ if passed? || failed?
106
+ [ estimated_duration.to_i, duration_seconds ].min
107
+ else
108
+ estimated_duration.to_i
109
+ end
103
110
  Infobar(
104
- current: duration.to_f.to_i,
105
- total: estimated_duration.to_i,
111
+ current: duration_seconds,
112
+ total: total_seconds,
106
113
  message: ' %l %c/%t seconds ',
107
114
  output: r
108
115
  ).update
@@ -1,6 +1,6 @@
1
1
  module Git::Story
2
2
  # Git::Story version
3
- VERSION = '0.4.1'
3
+ VERSION = '0.4.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.4.1
4
+ version: 0.4.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: 2018-07-02 00:00:00.000000000 Z
11
+ date: 2018-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar