git-story-workflow 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 501c8f58d6c85c4f34c1f5f0cd7cdd200ad8b1d135285da61fba72865a722961
4
- data.tar.gz: cb0226468f0429b5ea254bd53ce484b6dae86c9f81216ba7c777de62608ca346
3
+ metadata.gz: c7844efbe4b522c8415e7271f9d5c341b9598bb26f17a3558926486398b000bf
4
+ data.tar.gz: a8369ff5809c912f2664f84fd53cd1a0088adb7b61c1706dd21f6dc136d7fe92
5
5
  SHA512:
6
- metadata.gz: 1e7bd5c7782c4be548b3d6e4dfe86feaca10bae1a7a295e68006e7dd4b3c6a1a0f85d51c7b8da97e5ea4d71b4fa092945c25556f317c85c95f189b84518b2c27
7
- data.tar.gz: '032783b699edaebd42dbc83248a7918e1b37f8efcf8a9eef20344b8f497b1a95818f70804aa9a0f51e59e170978d72b585dff1356c58852fae6cf850aa9976d7'
6
+ metadata.gz: 25491084ebb086cad3d8230a6d184438e908681edd145f201450eea0a4d854df81e31310eac7b4bffba67b72b112d860a3811bdaba73e101692ad99c0951b493
7
+ data.tar.gz: b7056ccdbc760f516e9c73583a1bd9cf75ef1131e264ab1733edfac8d8722c83fd76e6f0cb35615e67b72f089abc14678b4b74c4f262ad5301690b2dacb1565e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: git-story-workflow 0.6.1 ruby lib
2
+ # stub: git-story-workflow 0.6.2 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "git-story-workflow".freeze
6
- s.version = "0.6.1"
6
+ s.version = "0.6.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-12-13"
11
+ s.date = "2019-02-06"
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]
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.homepage = "http://flori.github.com/git-story-workflow".freeze
18
18
  s.licenses = ["Apache-2.0".freeze]
19
19
  s.rdoc_options = ["--title".freeze, "Git-story-workflow".freeze, "--main".freeze, "README.md".freeze]
20
- s.rubygems_version = "2.7.8".freeze
20
+ s.rubygems_version = "3.0.1".freeze
21
21
  s.summary = "Gem abstracting a git workflow".freeze
22
22
  s.test_files = ["spec/git/story/app_spec.rb".freeze, "spec/spec_helper.rb".freeze]
23
23
 
data/lib/git/story/app.rb CHANGED
@@ -231,9 +231,7 @@ class Git::Story::App
231
231
  command doc: 'list all production deploy tags'
232
232
  def deploy_tags
233
233
  fetch_tags
234
- capture(
235
- "git tag | grep ^#{complex_config.story.deploy_tag_prefix} | sort"
236
- ).lines.map(&:chomp)
234
+ capture(tags).lines.map(&:chomp)
237
235
  end
238
236
 
239
237
  command doc: 'output the times of all production deploys'
@@ -338,6 +336,14 @@ class Git::Story::App
338
336
 
339
337
  private
340
338
 
339
+ def tags
340
+ if command = complex_config.story.deploy_tag_command?
341
+ command
342
+ else
343
+ "git tag | grep ^#{complex_config.story.deploy_tag_prefix} | sort"
344
+ end
345
+ end
346
+
341
347
  def watch(&block)
342
348
  if seconds = @opts[?n]&.to_i and !@watching
343
349
  @watching = true
@@ -456,8 +462,9 @@ class Git::Story::App
456
462
  end
457
463
 
458
464
  def tag_time(tag)
459
- if tag =~ /\d{4}_\d{2}_\d{2}-\d{2}_\d{2}/
460
- time = Time.strptime($&, '%Y_%m_%d-%H_%M')
465
+ case tag
466
+ when /\d{4}_\d{2}_\d{2}-\d{2}_\d{2}/
467
+ Time.strptime($&, '%Y_%m_%d-%H_%M')
461
468
  end
462
469
  end
463
470
 
@@ -470,6 +477,8 @@ class Git::Story::App
470
477
  tag.to_s.yellow,
471
478
  "was #{Tins::Duration.new((Time.now - time).floor)} ago".green,
472
479
  ]
480
+ else
481
+ tag
473
482
  end
474
483
  end
475
484
 
@@ -1,6 +1,6 @@
1
1
  module Git::Story
2
2
  # Git::Story version
3
- VERSION = '0.6.1'
3
+ VERSION = '0.6.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.6.1
4
+ version: 0.6.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-12-13 00:00:00.000000000 Z
11
+ date: 2019-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -191,8 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  - !ruby/object:Gem::Version
192
192
  version: '0'
193
193
  requirements: []
194
- rubyforge_project:
195
- rubygems_version: 2.7.8
194
+ rubygems_version: 3.0.1
196
195
  signing_key:
197
196
  specification_version: 4
198
197
  summary: Gem abstracting a git workflow