simplygenius-atmos 0.11.9 → 0.11.10
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/simplygenius/atmos/cli.rb +11 -0
- data/lib/simplygenius/atmos/config.rb +2 -2
- data/lib/simplygenius/atmos/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53769d0519aa4f45feb52891aff6696ea1be0b054b0baf8d444799c1e93273de
|
4
|
+
data.tar.gz: a0a4726cf39261d4abc7d3880e06cc4b43d46dc6eeb0cedf53690d6aafb66f62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fe49d0c4b8366d46f4ddd08fa3406759d43bfceed609ebe8f874e376d767e6bcb1855a97ea00dd99ca5ee082dc80edf38cd14fa87269de2814534677ec1644e
|
7
|
+
data.tar.gz: 3f5e5f627bb4f4f3ef5ed934bc3d0cb4675b189df6a060dbe43bb98d64c83d7987c278537d88f17a146ad61e94d18a0f9883957cd6ce4ba7faf6945c00860e33
|
data/CHANGELOG.md
CHANGED
@@ -51,6 +51,10 @@ module SimplyGenius
|
|
51
51
|
"PATH", "adds additional paths to ruby load path",
|
52
52
|
multivalued: true
|
53
53
|
|
54
|
+
option ["-o", "--override"],
|
55
|
+
"KEYVALUE", "overrides atmos configuration\nin the form 'some.config=value' where value can\nbe expressed in yaml form for complex types\ne.g. foo=1 foo=abc, foo=[x, y], foo={x: y}",
|
56
|
+
multivalued: true
|
57
|
+
|
54
58
|
option ["-v", "--version"],
|
55
59
|
:flag, "Shows the atmos version"
|
56
60
|
|
@@ -128,6 +132,13 @@ module SimplyGenius
|
|
128
132
|
|
129
133
|
Logging.setup_logging(level, color?, log)
|
130
134
|
|
135
|
+
override_list.each do |o|
|
136
|
+
k, v = o.split("=")
|
137
|
+
v = YAML.load(v)
|
138
|
+
logger.debug("Overriding config '#{k}' = #{v.inspect}")
|
139
|
+
Atmos.config.[]=(k, v, additive: false)
|
140
|
+
end
|
141
|
+
|
131
142
|
UI.color_enabled = color?
|
132
143
|
|
133
144
|
Atmos.config.add_user_load_path(*load_path_list)
|
@@ -39,9 +39,9 @@ module SimplyGenius
|
|
39
39
|
return result
|
40
40
|
end
|
41
41
|
|
42
|
-
def []=(key, value)
|
42
|
+
def []=(key, value, additive: true)
|
43
43
|
load
|
44
|
-
result = @config.notation_put(key, value)
|
44
|
+
result = @config.notation_put(key, value, additive: additive)
|
45
45
|
return result
|
46
46
|
end
|
47
47
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplygenius-atmos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Conway
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|