git-story-workflow 0.11.0 → 0.11.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 +12 -4
- 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: fa0887c8fd640da56c1578e69a70043e614c1863c8dd2f62c07e2add8e0abfd8
|
4
|
+
data.tar.gz: d08fcf94e5dab825e8cc38b204db3f2ff432ce981344fbde787a754f067904ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4c7211fb8ba03d5867e6523e93d3824b3a69853a939bbbd71299d31e1f9e99992efd124a877897324ccaa0e11a8faeb353ef9b43d13c9d1baca25c4547f9ac6
|
7
|
+
data.tar.gz: 5766e372298ad30fce87ad884d0f81a95c79c3e0af55d7240762f8e917139eee538c376c74cca0684f5101aa6dac23a30b1c1953085a22d3e2ab31bbfcda7226
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.11.
|
1
|
+
0.11.1
|
data/git-story-workflow.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: git-story-workflow 0.11.
|
2
|
+
# stub: git-story-workflow 0.11.1 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "git-story-workflow".freeze
|
6
|
-
s.version = "0.11.
|
6
|
+
s.version = "0.11.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 = "2020-02
|
11
|
+
s.date = "2020-03-02"
|
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
@@ -37,7 +37,12 @@ class Git::Story::App
|
|
37
37
|
@rest_argv = (sep = argv.index('--')) ? argv.slice!(sep..-1).tap(&:shift) : []
|
38
38
|
@argv = argv
|
39
39
|
@opts = go 'n:', @argv
|
40
|
-
|
40
|
+
if @argv.empty?
|
41
|
+
@command = nil
|
42
|
+
else
|
43
|
+
@command = (@argv * ?_).to_sym
|
44
|
+
@argv.clear
|
45
|
+
end
|
41
46
|
@debug = debug
|
42
47
|
end
|
43
48
|
|
@@ -50,8 +55,11 @@ class Git::Story::App
|
|
50
55
|
puts __send__(@command, *@argv)
|
51
56
|
end
|
52
57
|
else
|
53
|
-
|
54
|
-
|
58
|
+
if @command
|
59
|
+
@command = @command.inspect
|
60
|
+
else
|
61
|
+
@command = 'n/a'
|
62
|
+
end
|
55
63
|
STDERR.puts "Unknown command #{@command}\n\n#{help.join(?\n)}"
|
56
64
|
exit 1
|
57
65
|
end
|
@@ -64,7 +72,7 @@ class Git::Story::App
|
|
64
72
|
longest = command_annotations.keys.map(&:size).max
|
65
73
|
result.concat(
|
66
74
|
command_annotations.map { |name, a|
|
67
|
-
"#{name.to_s.ljust(longest)} #{a[:doc]}"
|
75
|
+
"#{name.to_s.gsub(?_, ' ').ljust(longest)} #{a[:doc]}"
|
68
76
|
}
|
69
77
|
)
|
70
78
|
end
|
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.11.
|
4
|
+
version: 0.11.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: 2020-02
|
11
|
+
date: 2020-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|