bogo-cli 0.2.2 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/bogo-cli/command.rb +20 -2
- data/lib/bogo-cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a77d58ef44d10c09753d741e6df3685d339a8854
|
4
|
+
data.tar.gz: c49e3cb0a4292501d3bcd3119107c5e9f9c4b260
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdc721de56ab47a5c56233923485f776051739ed6420a3df629f6de270331690d5be9e7b40d965cbbe8d593d7cc99077636afe1d95b4923c5e3cc5285bf68b6b
|
7
|
+
data.tar.gz: ca27ba9741ce92d57569e6449729d0492f7889cbb901c2e4748783708d10a270e80d51ef533efceda1908e22f290365c5c8a862a2659266ad4f07b82ebfddce7
|
data/CHANGELOG.md
CHANGED
data/lib/bogo-cli/command.rb
CHANGED
@@ -93,8 +93,26 @@ module Bogo
|
|
93
93
|
end
|
94
94
|
if(config_inst)
|
95
95
|
options.delete(:config)
|
96
|
-
defaults_inst =
|
97
|
-
|
96
|
+
defaults_inst = Smash[
|
97
|
+
config_class.new(
|
98
|
+
defaults.to_smash
|
99
|
+
).to_smash.find_all do |key, value|
|
100
|
+
defaults.key?(key)
|
101
|
+
end
|
102
|
+
]
|
103
|
+
config_data = config_inst.load!
|
104
|
+
config_inst = Smash[
|
105
|
+
config_inst.to_smash.find_all do |key, value|
|
106
|
+
config_data.key?(key)
|
107
|
+
end
|
108
|
+
]
|
109
|
+
options_inst = Smash[
|
110
|
+
config_class.new(
|
111
|
+
options.to_smash
|
112
|
+
).to_smash.find_all do |key, value|
|
113
|
+
options.key?(key)
|
114
|
+
end
|
115
|
+
]
|
98
116
|
@options = config_class.new(
|
99
117
|
defaults_inst.to_smash.deep_merge(
|
100
118
|
config_inst.to_smash.deep_merge(
|
data/lib/bogo-cli/version.rb
CHANGED
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.
|
4
|
+
version: 0.2.4
|
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
|
11
|
+
date: 2016-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bogo
|