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 +4 -4
- data/VERSION +1 -1
- data/git-story-workflow.gemspec +2 -2
- data/lib/git/story/app.rb +13 -1
- data/lib/git/story/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 185a2bb9b40aaff164f563078676e7c2bce9353670b12ffc4af60a956e08726d
|
4
|
+
data.tar.gz: e3a4b1116c879e0b5f465c614bc1419be1da52c0bbfac42961fe837f823349bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1c2890964000f121d6d7c7380cd5b7ad3955e0fc90da84875bf4e4923b96e3e3c0ed611b2ad31bd1a17353b544c19062c8194de52a92fbf97b9cf5dba3c6ce5
|
7
|
+
data.tar.gz: da7eb390763e029c544f38a7262146ca658ddc07bda8e6680822ffc9406b643627e47430001217b5b1e2b6425ed19e1f9708eb6c0abfca002d68d66487edd0ef
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.1
|
data/git-story-workflow.gemspec
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: git-story-workflow 0.9.
|
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.
|
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
|
-
|
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
|
data/lib/git/story/version.rb
CHANGED