git-story-workflow 0.7.0 → 0.7.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 +3 -3
- data/lib/git/story/app.rb +11 -5
- data/lib/git/story/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbd2f324c2fcd22807e724f7edb4088d010a45c2174bc6798e192687ce4cefcb
|
4
|
+
data.tar.gz: ef9ccc0e85caf7e887e5d2bb3f4b06070398beee7945d7f3a3a97d544b8486ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 481f565b395cec0641abd6449225944e2a06772c0a1cd53dd62a98d3b99264b54368c34abc656a5904f996ff7b9bf6b79640a5e9e99f51367ab8a5b509337776
|
7
|
+
data.tar.gz: b96a6015f925ee525fad3c17ff1f6f1571ba4fa510c7c7b7fe914b7e85a6a51e6f40a08fb48d30fffb4f720b777b9334ee4f59a8b8d52f3f4e4bc72a36edfb89
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.1
|
data/git-story-workflow.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: git-story-workflow 0.7.
|
2
|
+
# stub: git-story-workflow 0.7.1 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "git-story-workflow".freeze
|
6
|
-
s.version = "0.7.
|
6
|
+
s.version = "0.7.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 = "2019-04-
|
11
|
+
s.date = "2019-04-26"
|
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
@@ -215,7 +215,6 @@ class Git::Story::App
|
|
215
215
|
|
216
216
|
command doc: 'list all production deploy tags'
|
217
217
|
def deploy_tags
|
218
|
-
fetch_tags
|
219
218
|
capture(tags).lines.map(&:chomp)
|
220
219
|
end
|
221
220
|
|
@@ -237,6 +236,7 @@ class Git::Story::App
|
|
237
236
|
|
238
237
|
command doc: 'output log of changes since last production deploy tag'
|
239
238
|
def deploy_log(ref = deploy_tags.last, last_ref = nil, rest: [])
|
239
|
+
fetch_commits
|
240
240
|
fetch_tags
|
241
241
|
opts = ([
|
242
242
|
'--color',
|
@@ -247,21 +247,21 @@ class Git::Story::App
|
|
247
247
|
|
248
248
|
command doc: '[REF] output diff since last production deploy tag'
|
249
249
|
def deploy_diff(ref = nil, rest: [])
|
250
|
-
|
250
|
+
fetch_commits
|
251
251
|
opts = (%w[ --color -u ] | rest) * ' '
|
252
252
|
capture("git diff #{opts} #{ref} #{deploy_tags.last}")
|
253
253
|
end
|
254
254
|
|
255
255
|
command doc: '[REF] output migration diff since last production deploy tag'
|
256
256
|
def deploy_migrate_diff(ref = nil, rest: [])
|
257
|
-
|
257
|
+
fetch_commits
|
258
258
|
opts = (%w[ --color -u ] | rest) * ' '
|
259
259
|
capture("git diff #{opts} #{deploy_tags.last} #{ref} -- db/migrate")
|
260
260
|
end
|
261
261
|
|
262
262
|
command doc: '[STORYID] create a story for story STORYID'
|
263
263
|
def create(story_id = nil)
|
264
|
-
|
264
|
+
fetch_commits
|
265
265
|
name = provide_name(story_id) or
|
266
266
|
error "Cannot provide a new story name for story ##{story_id}: #{@reason.inspect}"
|
267
267
|
if old_story = stories.find { |s| s.story_id == @story_id }
|
@@ -275,7 +275,7 @@ class Git::Story::App
|
|
275
275
|
|
276
276
|
command doc: '[PATTERN] switch to story matching PATTERN'
|
277
277
|
def switch(pattern = nil)
|
278
|
-
|
278
|
+
fetch_commits
|
279
279
|
ss = stories.map(&:story_base_name)
|
280
280
|
if pattern.present?
|
281
281
|
b = apply_pattern(pattern, ss)
|
@@ -322,6 +322,7 @@ class Git::Story::App
|
|
322
322
|
private
|
323
323
|
|
324
324
|
def tags
|
325
|
+
fetch_tags
|
325
326
|
if command = complex_config.story.deploy_tag_command?
|
326
327
|
command
|
327
328
|
else
|
@@ -409,6 +410,11 @@ class Git::Story::App
|
|
409
410
|
sh 'git fetch --tags'
|
410
411
|
end
|
411
412
|
|
413
|
+
memoize method:
|
414
|
+
def fetch_commits
|
415
|
+
sh 'git fetch'
|
416
|
+
end
|
417
|
+
|
412
418
|
def apply_story_accessors(ref)
|
413
419
|
branch = ref[0]
|
414
420
|
branch =~ BRANCH_NAME_REGEX or return
|
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.7.
|
4
|
+
version: 0.7.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: 2019-04-
|
11
|
+
date: 2019-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|