git-story-workflow 0.6.1 → 0.6.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 +4 -4
- data/lib/git/story/app.rb +14 -5
- data/lib/git/story/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7844efbe4b522c8415e7271f9d5c341b9598bb26f17a3558926486398b000bf
|
4
|
+
data.tar.gz: a8369ff5809c912f2664f84fd53cd1a0088adb7b61c1706dd21f6dc136d7fe92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25491084ebb086cad3d8230a6d184438e908681edd145f201450eea0a4d854df81e31310eac7b4bffba67b72b112d860a3811bdaba73e101692ad99c0951b493
|
7
|
+
data.tar.gz: b7056ccdbc760f516e9c73583a1bd9cf75ef1131e264ab1733edfac8d8722c83fd76e6f0cb35615e67b72f089abc14678b4b74c4f262ad5301690b2dacb1565e
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.2
|
data/git-story-workflow.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: git-story-workflow 0.6.
|
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.
|
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 = "
|
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 = "
|
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
|
-
|
460
|
-
|
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
|
|
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.6.
|
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:
|
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
|
-
|
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
|