git-story-workflow 0.6.0 → 0.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: f051c084b13ff9adfe54646e03a41df9866a182298fc77a507cd5535c936ff82
4
- data.tar.gz: a522c43ff824e0ed757d5a3a7a7c602696e84c62d1f1f3d60974f726716f7def
3
+ metadata.gz: 501c8f58d6c85c4f34c1f5f0cd7cdd200ad8b1d135285da61fba72865a722961
4
+ data.tar.gz: cb0226468f0429b5ea254bd53ce484b6dae86c9f81216ba7c777de62608ca346
5
5
  SHA512:
6
- metadata.gz: fda7276dd59d69a127858d43d011e07906ef3f6054f988b6f038f2772823f2af06f9118fa699a3fe2f357810fde36de0f56a4d42c0ce09816656627cea3b8dbf
7
- data.tar.gz: '05822b553b342f8c7ae211e461c07c3591f160a26508a0f568bac71c08c9d6cfbfc54ce5d4edcd46d95556b4df7eaa7cca24073ac1912c71fb371e7d19b4db62'
6
+ metadata.gz: 1e7bd5c7782c4be548b3d6e4dfe86feaca10bae1a7a295e68006e7dd4b3c6a1a0f85d51c7b8da97e5ea4d71b4fa092945c25556f317c85c95f189b84518b2c27
7
+ data.tar.gz: '032783b699edaebd42dbc83248a7918e1b37f8efcf8a9eef20344b8f497b1a95818f70804aa9a0f51e59e170978d72b585dff1356c58852fae6cf850aa9976d7'
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
1
  .*.sw[pon]
2
2
  .AppleDouble
3
+ .DS_Store
3
4
  .byebug_history
4
5
  .rvmrc
5
6
  Gemfile.lock
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.0
1
+ 0.6.1
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: git-story-workflow 0.6.0 ruby lib
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.0"
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-06"
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.7".freeze
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
 
@@ -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| format_tag_time(t).green + " #{t.yellow}" }
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
- format_tag_time(tag).green + " #{tag.yellow}"
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 format_tag_time(tag)
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
- "#{time.iso8601} #{day}"
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
 
@@ -1,6 +1,6 @@
1
1
  module Git::Story
2
2
  # Git::Story version
3
- VERSION = '0.6.0'
3
+ VERSION = '0.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: 0.6.0
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-06 00:00:00.000000000 Z
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.7
195
+ rubygems_version: 2.7.8
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Gem abstracting a git workflow