git-story-workflow 0.6.0 → 0.6.1
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 +4 -4
- data/.gitignore +1 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/git-story-workflow.gemspec +4 -4
- data/lib/git/story/app.rb +14 -4
- data/lib/git/story/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 501c8f58d6c85c4f34c1f5f0cd7cdd200ad8b1d135285da61fba72865a722961
|
4
|
+
data.tar.gz: cb0226468f0429b5ea254bd53ce484b6dae86c9f81216ba7c777de62608ca346
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz: '
|
6
|
+
metadata.gz: 1e7bd5c7782c4be548b3d6e4dfe86feaca10bae1a7a295e68006e7dd4b3c6a1a0f85d51c7b8da97e5ea4d71b4fa092945c25556f317c85c95f189b84518b2c27
|
7
|
+
data.tar.gz: '032783b699edaebd42dbc83248a7918e1b37f8efcf8a9eef20344b8f497b1a95818f70804aa9a0f51e59e170978d72b585dff1356c58852fae6cf850aa9976d7'
|
data/.gitignore
CHANGED
data/Rakefile
CHANGED
@@ -12,7 +12,7 @@ GemHadar do
|
|
12
12
|
description "#{summary}…"
|
13
13
|
test_dir 'spec'
|
14
14
|
ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', 'coverage', '.rvmrc',
|
15
|
-
'.AppleDouble', 'tags', '.byebug_history', 'errors.lst'
|
15
|
+
'.AppleDouble', 'tags', '.byebug_history', 'errors.lst', '.DS_Store'
|
16
16
|
readme 'README.md'
|
17
17
|
title name.camelize
|
18
18
|
executables << 'git-story'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.1
|
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.1 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.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 = "2018-
|
11
|
+
s.date = "2018-12-13"
|
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.
|
20
|
+
s.rubygems_version = "2.7.8".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
@@ -238,7 +238,7 @@ class Git::Story::App
|
|
238
238
|
|
239
239
|
command doc: 'output the times of all production deploys'
|
240
240
|
def deploy_list
|
241
|
-
deploy_tags.map { |t|
|
241
|
+
deploy_tags.map { |t| format_tag(t) }
|
242
242
|
end
|
243
243
|
|
244
244
|
command doc: 'output the last production deploy tag'
|
@@ -249,7 +249,7 @@ class Git::Story::App
|
|
249
249
|
command doc: 'output the time of the last production deploy'
|
250
250
|
def deploy_last
|
251
251
|
tag = deploy_tags_last
|
252
|
-
|
252
|
+
format_tag(tag)
|
253
253
|
end
|
254
254
|
|
255
255
|
command doc: 'output log of changes since last production deploy tag'
|
@@ -455,11 +455,21 @@ class Git::Story::App
|
|
455
455
|
end
|
456
456
|
end
|
457
457
|
|
458
|
-
def
|
458
|
+
def tag_time(tag)
|
459
459
|
if tag =~ /\d{4}_\d{2}_\d{2}-\d{2}_\d{2}/
|
460
460
|
time = Time.strptime($&, '%Y_%m_%d-%H_%M')
|
461
|
+
end
|
462
|
+
end
|
463
|
+
|
464
|
+
def format_tag(tag)
|
465
|
+
if time = tag_time(tag)
|
461
466
|
day = Time::RFC2822_DAY_NAME[time.wday]
|
462
|
-
"
|
467
|
+
"%s %s %s %s" % [
|
468
|
+
time.iso8601.green,
|
469
|
+
day.green,
|
470
|
+
tag.to_s.yellow,
|
471
|
+
"was #{Tins::Duration.new((Time.now - time).floor)} ago".green,
|
472
|
+
]
|
463
473
|
end
|
464
474
|
end
|
465
475
|
|
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.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: 2018-
|
11
|
+
date: 2018-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
192
|
version: '0'
|
193
193
|
requirements: []
|
194
194
|
rubyforge_project:
|
195
|
-
rubygems_version: 2.7.
|
195
|
+
rubygems_version: 2.7.8
|
196
196
|
signing_key:
|
197
197
|
specification_version: 4
|
198
198
|
summary: Gem abstracting a git workflow
|