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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c437719bf4e7298ee339477a48e37e6652a028876c7c1ef524953a24792b4099
4
- data.tar.gz: 2dfe54728f5d8ad1d0655ad6e9c1706e905ae952af8678812002bb2fc6b20f46
3
+ metadata.gz: fa0887c8fd640da56c1578e69a70043e614c1863c8dd2f62c07e2add8e0abfd8
4
+ data.tar.gz: d08fcf94e5dab825e8cc38b204db3f2ff432ce981344fbde787a754f067904ea
5
5
  SHA512:
6
- metadata.gz: d32bb92036c60fbea1492caa8c79fc211d96aa60adc389386d9e8ed585d3613c8a3abf8562c19fafdf68450a6a21a3b4ff297a0df94ac111ff7a5317aa3b1942
7
- data.tar.gz: 571614a5c236d81ea10bbe3628ff5bbf2812d6d1b2f68b479fcb2c0d02c6b2c55d54cbb367e3b3bf49592c8ef4e5b03cbc58f8098df6e7f276d018716135b85c
6
+ metadata.gz: b4c7211fb8ba03d5867e6523e93d3824b3a69853a939bbbd71299d31e1f9e99992efd124a877897324ccaa0e11a8faeb353ef9b43d13c9d1baca25c4547f9ac6
7
+ data.tar.gz: 5766e372298ad30fce87ad884d0f81a95c79c3e0af55d7240762f8e917139eee538c376c74cca0684f5101aa6dac23a30b1c1953085a22d3e2ab31bbfcda7226
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.11.0
1
+ 0.11.1
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: git-story-workflow 0.11.0 ruby lib
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.0"
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-28"
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]
@@ -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
- @command = @argv.shift&.to_sym
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
- @command and @command = @command.inspect
54
- @command ||= 'n/a'
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
@@ -1,6 +1,6 @@
1
1
  module Git::Story
2
2
  # Git::Story version
3
- VERSION = '0.11.0'
3
+ VERSION = '0.11.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,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.0
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-28 00:00:00.000000000 Z
11
+ date: 2020-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar