metaractor 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docker-compose.yml +4 -0
- data/lib/metaractor/parameters.rb +5 -1
- data/lib/metaractor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70a949834d71b20665b6acc4e7e820de727a333226e26af6fa4f0c5cfa7c431d
|
4
|
+
data.tar.gz: 9e4fa64a34d534f2725a24bb7d3c4e9c963d61a36530a9d4b5543c29193c29fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b23927d92d66bd17b109e5519cba3e9a25439e04866d9d5159be09d3bcd2802da5a5c31e01c3c8124bae1f7128fff6d46c0f82f9d3faefe4ddac0955a015a1e3
|
7
|
+
data.tar.gz: 9a157b4b2d932b3c8b730ee6ffd11dca110395fb8cf859ea30a13073fb60c89373ab38515d571120ce7814661f00aa24fcdfbbfc4eadffde177387288ee7dc2d
|
data/docker-compose.yml
CHANGED
@@ -38,6 +38,10 @@ module Metaractor
|
|
38
38
|
@options[key]
|
39
39
|
end
|
40
40
|
|
41
|
+
def has_key?(key)
|
42
|
+
@options.has_key?(key)
|
43
|
+
end
|
44
|
+
|
41
45
|
def dig(name, *names)
|
42
46
|
@options.dig(name, *names)
|
43
47
|
end
|
@@ -143,7 +147,7 @@ module Metaractor
|
|
143
147
|
|
144
148
|
def apply_defaults
|
145
149
|
parameters.each do |name, parameter|
|
146
|
-
next unless parameter
|
150
|
+
next unless parameter.has_key?(:default)
|
147
151
|
|
148
152
|
unless context.has_key?(name)
|
149
153
|
context[name] = _parameter_default(name)
|
data/lib/metaractor/version.rb
CHANGED