git-story-workflow 0.1.2 → 0.1.3

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: f951c92818b846216fec44268904a65a28036ea8cfca137d184ba19ef582c6c1
4
- data.tar.gz: 8144ac99dc2f5f1c1edf1d08251554311899d3b2be885355276889527edd9fbf
3
+ metadata.gz: 4e9c0e5209e46016ff1be18d3f51713bf3e2d39ba7cbd60a40f6ab07946688d2
4
+ data.tar.gz: '0186163afc2c28f3b22e529261032b59fd28278a031a2e34e07aca7191f344cf'
5
5
  SHA512:
6
- metadata.gz: 2975e20d2ba5ea649a3290115afd6e080053387065c20e26f17c1e8d8402bf3fe04e9fbb8b0150fabb93298e0948c03d9b38e226e6133a50d58f41913a274f63
7
- data.tar.gz: 69806245ea9f0147f0df2a2b6f7adff468770208426385e6967a3bdc358c621f6c447d0c1128586a8cc12cb2210a58ae37d8ea9ba2c28d2f9c880ad95189b9f7
6
+ metadata.gz: c6f91055b4685f6975c6716b120f27a0f4b87b82a9df68a3c72ddcb2c4c3d09e5a4344f94c2dde2a59a1a59f7394b598a591cfbfd71bdf034c4cd84c647633ae
7
+ data.tar.gz: 6b7e5f7d3788bc81065c2f65bc879d5a3fd784add6b166bfac44195840171cff4702c014e0e2169cbedb52f4860e15dc9400a91e69a68d929ef9d533d16b63bb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: git-story-workflow 0.1.2 ruby lib
2
+ # stub: git-story-workflow 0.1.3 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "git-story-workflow".freeze
6
- s.version = "0.1.2"
6
+ s.version = "0.1.3"
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 = "2017-12-11"
11
+ s.date = "2017-12-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]
data/lib/git/story/app.rb CHANGED
@@ -142,7 +142,7 @@ class Git::Story::App
142
142
  end
143
143
 
144
144
  command doc: 'output the times of all production deploys'
145
- def deploys
145
+ def deploy_list
146
146
  deploy_tags.map { |t| format_tag_time(t).green + " #{t.yellow}" }
147
147
  end
148
148
 
@@ -152,16 +152,16 @@ class Git::Story::App
152
152
  end
153
153
 
154
154
  command doc: 'output the time of the last production deploy'
155
- def deploys_last
155
+ def deploy_last
156
156
  tag = deploy_tags_last
157
157
  format_tag_time(tag).green + " #{tag.yellow}"
158
158
  end
159
159
 
160
160
  command doc: 'output log of changes since last production deploy tag'
161
- def deploy_log
161
+ def deploy_log(ref = deploy_tags.last, last_ref = nil)
162
162
  fetch_tags
163
163
  opts = '--pretty=tformat:"%C(yellow)%h%Creset %C(green)%ci%Creset %s (%Cred%an <%ae>%Creset)"'
164
- capture("git log #{opts} #{deploy_tags.last}..")
164
+ capture("git log #{opts} #{ref}..#{last_ref}")
165
165
  end
166
166
 
167
167
  command doc: '[REF] output diff since last production deploy tag'
@@ -1,6 +1,6 @@
1
1
  module Git::Story
2
2
  # Git::Story version
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
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.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-11 00:00:00.000000000 Z
11
+ date: 2017-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar