git-story-workflow 0.9.0 → 0.9.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: b60723c83440d9be9775bebc731dacd51d746e0e4637a805b4b1f346a4f75ba2
4
- data.tar.gz: ece49a56673c38568b3f03280628e95a8bba1117a84fc61c674043b40246479d
3
+ metadata.gz: 185a2bb9b40aaff164f563078676e7c2bce9353670b12ffc4af60a956e08726d
4
+ data.tar.gz: e3a4b1116c879e0b5f465c614bc1419be1da52c0bbfac42961fe837f823349bc
5
5
  SHA512:
6
- metadata.gz: dc17c056874f7b5895bf5c2c9dfdbd5e73b128721a98c1087bfcea748a1c6031c1e28fb3c4f67013a0b9d219729896d94e2163df8308aa7e4c5128d5790e74e6
7
- data.tar.gz: 8c16b14a5676e369e4a34249446f896fca136ed344dbc9f862861d0f88432d6d21e0ee420cb5b5aae34298e1e918e699a6f9b181f26f9562c8ca7c9f9d9bc2c3
6
+ metadata.gz: b1c2890964000f121d6d7c7380cd5b7ad3955e0fc90da84875bf4e4923b96e3e3c0ed611b2ad31bd1a17353b544c19062c8194de52a92fbf97b9cf5dba3c6ce5
7
+ data.tar.gz: da7eb390763e029c544f38a7262146ca658ddc07bda8e6680822ffc9406b643627e47430001217b5b1e2b6425ed19e1f9708eb6c0abfca002d68d66487edd0ef
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.0
1
+ 0.9.1
@@ -1,9 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: git-story-workflow 0.9.0 ruby lib
2
+ # stub: git-story-workflow 0.9.1 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "git-story-workflow".freeze
6
- s.version = "0.9.0"
6
+ s.version = "0.9.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]
data/lib/git/story/app.rb CHANGED
@@ -242,6 +242,7 @@ class Git::Story::App
242
242
 
243
243
  command doc: '[REF] output log of changes since last production deploy tag'
244
244
  def deploy_log(ref = default_ref, rest: [])
245
+ ref = build_ref_range(ref)
245
246
  fetch_commits
246
247
  fetch_tags
247
248
  opts = ([
@@ -253,6 +254,7 @@ class Git::Story::App
253
254
 
254
255
  command doc: '[REF] List all stories scheduled for next deploy'
255
256
  def deploy_stories(ref = default_ref, rest: [])
257
+ ref = build_ref_range(ref)
256
258
  fetch_commits
257
259
  fetch_tags
258
260
  opts = ([
@@ -267,6 +269,7 @@ class Git::Story::App
267
269
 
268
270
  command doc: '[REF] output diff since last production deploy tag'
269
271
  def deploy_diff(ref = default_ref, rest: [])
272
+ ref = build_ref_range(ref)
270
273
  fetch_commits
271
274
  opts = (%w[ --color -u ] | rest) * ' '
272
275
  capture("git diff #{opts} #{ref}")
@@ -274,6 +277,7 @@ class Git::Story::App
274
277
 
275
278
  command doc: '[REF] output migration diff since last production deploy tag'
276
279
  def deploy_migrate_diff(ref = default_ref, rest: [])
280
+ ref = build_ref_range(ref)
277
281
  fetch_commits
278
282
  opts = (%w[ --color -u ] | rest) * ' '
279
283
  capture("git diff #{opts} #{ref} -- db/migrate")
@@ -342,7 +346,15 @@ class Git::Story::App
342
346
  private
343
347
 
344
348
  def default_ref
345
- "#{deploy_tags.last}.."
349
+ deploy_tags.last
350
+ end
351
+
352
+ def build_ref_range(ref)
353
+ if ref.include?('..')
354
+ ref
355
+ else
356
+ "#{ref}.."
357
+ end
346
358
  end
347
359
 
348
360
  def tags
@@ -1,6 +1,6 @@
1
1
  module Git::Story
2
2
  # Git::Story version
3
- VERSION = '0.9.0'
3
+ VERSION = '0.9.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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-story-workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank