git-story-workflow 0.11.2 → 0.11.3

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: 4a5852b0c0264a98b1226a365f521660f4ed029ce63f80c90c4dbf0239435bbe
4
- data.tar.gz: 0c1baa5341c956f70ff0cb92a939fe1a9e1cdb3758dfc3796bdeed0444bed3db
3
+ metadata.gz: 594fee5ac595ddfe8ae4802bfc3bf4bef2c0f7c7b2e9f3ccbf76a9cbc7d8bd12
4
+ data.tar.gz: 2b2c6dace41b40c654dcfe7be680d22bf978696976d59de42abd27bdb68e071f
5
5
  SHA512:
6
- metadata.gz: 73116e3fe72979c23c4b1a468875f77b6530cff2c8fb10505b64e6515ad0d7a6dd5bc60394e8e316fffc52b4d228d262f8e0b2374c4126a7d84f5954dcaec707
7
- data.tar.gz: cbd6792e673c13b3b07f392d796cf5c478253d6cf866d6602068d5326ab20a535d0bf89afd95e51a5a268b516e04425076ee35ac008a7b4fe4f5e8743c156656
6
+ metadata.gz: cf31372ba982c29af6e018ec82136bd2d254f0c728567d2ee0d1e4ccc38fe57442aafa38ad0634bc5bbc22910740113509074684dd83a024b99d509add46dc15
7
+ data.tar.gz: 600489c9074d8f73f57d8156ca440fe69332e25dc80470a736ad763bfe647b4845d580338791b59e116520d0207d2b3e976dae39ef338a726894834f25a1c2ad
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.11.2
1
+ 0.11.3
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: git-story-workflow 0.11.2 ruby lib
2
+ # stub: git-story-workflow 0.11.3 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "git-story-workflow".freeze
6
- s.version = "0.11.2"
6
+ s.version = "0.11.3"
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-04-14"
11
+ s.date = "2020-07-20"
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]
@@ -38,12 +38,7 @@ class Git::Story::App
38
38
  @argv = argv
39
39
  @opts = go 'n:', @argv
40
40
  @debug = debug
41
- c, @command = [], nil
42
- until @argv.empty?
43
- c << @argv.shift
44
- @command = c.join(?_).to_sym
45
- break if command_of(@command)
46
- end
41
+ determine_command
47
42
  end
48
43
 
49
44
  def run
@@ -363,6 +358,23 @@ class Git::Story::App
363
358
 
364
359
  private
365
360
 
361
+ def determine_command
362
+ c, command = [], nil
363
+ possible_commands = []
364
+ until @argv.empty?
365
+ c << @argv.shift
366
+ command = c.join(?_).to_sym
367
+ if command_of(command)
368
+ possible_commands << [ command, @argv.dup ]
369
+ end
370
+ end
371
+ unless possible_commands.empty?
372
+ @command, argv = possible_commands.last
373
+ @argv.replace(argv)
374
+ end
375
+ self
376
+ end
377
+
366
378
  def pick_branch(prompt:, symbol: ?⏻)
367
379
  ss = stories.map(&:story_base_name)
368
380
  branch = Search.new(
@@ -1,6 +1,6 @@
1
1
  module Git::Story
2
2
  # Git::Story version
3
- VERSION = '0.11.2'
3
+ VERSION = '0.11.3'
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.2
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-14 00:00:00.000000000 Z
11
+ date: 2020-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -186,7 +186,7 @@ homepage: http://flori.github.com/git-story-workflow
186
186
  licenses:
187
187
  - Apache-2.0
188
188
  metadata: {}
189
- post_install_message:
189
+ post_install_message:
190
190
  rdoc_options:
191
191
  - "--title"
192
192
  - Git-story-workflow
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
206
  version: '0'
207
207
  requirements: []
208
208
  rubygems_version: 3.1.2
209
- signing_key:
209
+ signing_key:
210
210
  specification_version: 4
211
211
  summary: Gem abstracting a git workflow
212
212
  test_files: