bogo-cli 0.2.0 → 0.2.2

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
  SHA1:
3
- metadata.gz: ceca5c4fb8db77d050512dc0742b207e1e8ab395
4
- data.tar.gz: 12ba4aa9b6f7133cc57471461953f1d9c94a4594
3
+ metadata.gz: 92b58b5c767135d9451ed4230b6e4a0bdd5476a5
4
+ data.tar.gz: 3d8c6aa78a970f40cf81ec487db49b33839aeb9a
5
5
  SHA512:
6
- metadata.gz: 7e782020d834bce7d662ca89bd04828b826dab384fdbf152d155b2a24f98b45237231d3637c59de157917b802ef84a17a77efe2c68bb4bdb651e75c403e12567
7
- data.tar.gz: a6f2a61a68f346c6092ea2dbb4355ecbd28f9311536da6aff11ded6a9d1444a7c1bc4d422c25c9d6496a9801fae71b07fbf637c6e76ffd85f48ef0bbaab114b7
6
+ metadata.gz: 4bf019f2e81b6d2315b02b970396a7a599aaf6eacc718847183bd72cfa53772fb13094c1b5e3000be633e87db09610fd311b820b8aa763ccd25969ee2263683a
7
+ data.tar.gz: 05f495f97664d00e93b1953929bfacbf90caea4caff2dc37ce78745abcb9b1e448d7a766f7eeca7187ea64e915eba159a7a37ffa762e06a8ad6dc98f4ee8c2ee
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.2.2
2
+ * Process CLI values prior to configuration merge (#7)
3
+
1
4
  # v0.2.0
2
5
  * Include full exception message when debug mode enabled
3
6
  * Process arguments and check for flags within list
@@ -93,10 +93,12 @@ module Bogo
93
93
  end
94
94
  if(config_inst)
95
95
  options.delete(:config)
96
+ defaults_inst = config_class.new(defaults.to_smash)
97
+ options_inst = config_class.new(options.to_smash)
96
98
  @options = config_class.new(
97
- defaults.to_smash.deep_merge(
99
+ defaults_inst.to_smash.deep_merge(
98
100
  config_inst.to_smash.deep_merge(
99
- options.to_smash
101
+ options_inst.to_smash
100
102
  )
101
103
  )
102
104
  ).to_smash
@@ -1,6 +1,6 @@
1
1
  module Bogo
2
2
  module Cli
3
3
  # Current library version
4
- VERSION = Gem::Version.new('0.2.0')
4
+ VERSION = Gem::Version.new('0.2.2')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bogo-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-03 00:00:00.000000000 Z
11
+ date: 2016-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo