thor-addons 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bd656f336a408fa69a9cda65493fb7d9c3d8b3bba39d01c28af7c82a565a04d
4
- data.tar.gz: 67638ae62b9ae368c9d97a3c929dab7600bf4b28e6a9da2d70ef4f53573666c2
3
+ metadata.gz: 15cd4142c87a84b239bea7b27f3a7d4c7068c9beff197c978bf67fc4dc4e9912
4
+ data.tar.gz: bf9904642158e141df6456bc21d28d3e361a8ac69a413a08d38f7171fd734065
5
5
  SHA512:
6
- metadata.gz: 207fdff2a961cdeba426b9906f547adf02d5e7ce9122464c2c4be337721fa003335925b6c6fcfef2aa787346d17c58c6043344d08136ad5a6569ecaf52f8a48d
7
- data.tar.gz: a6f49a41898b3323cba5fd15d89eff699723eb9166760f1af9235fc79dcfbc206bc8ac2dd04f4ff5e73c7832326954fc0f619a7ca5eb1a7db59a85cd06425fcb
6
+ metadata.gz: 7e87239537bd4255bb16911f084ca121eb9206f16ffa128ec1cf64ce9691d474ad035191604c8c6d06bd1268211b98add3553e142e8960c53cd68b562eb38408
7
+ data.tar.gz: 2de8c4e84413d8c0ffe8e2e9f453e233954763c979dbbe279b0d46b203f868a02fb1e3dc8f06b332066a5bd0c545975d0f53c67645881eb179e4da6fa6c44cef
@@ -1,3 +1,9 @@
1
+ 1.0.4 (10/05/2018)
2
+
3
+ BUG FIXES:
4
+
5
+ * Fix config parsing rejecting globals if command not in config ([#20](https://github.com/eredi93/thor-addons/pull/21))
6
+
1
7
  1.0.3 (22/04/2018)
2
8
 
3
9
  BUG FIXES:
@@ -21,10 +21,12 @@ module ThorAddons
21
21
  global_options, cmd_options = extract_command_data(data, commands.shift)
22
22
 
23
23
  commands.each do |cmd|
24
- break if cmd_options[cmd].nil?
24
+ should_break = cmd_options[cmd].nil?
25
25
 
26
26
  global, cmd_options = extract_command_data(cmd_options, cmd)
27
27
  global_options.merge!(global)
28
+
29
+ break if should_break
28
30
  end
29
31
 
30
32
  global_options.merge(cmd_options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ThorAddons
4
- VERSION = "1.0.3"
4
+ VERSION = "1.0.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thor-addons
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacopo Scrinzi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-22 00:00:00.000000000 Z
11
+ date: 2018-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: symbolized