scash 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/scash.rb +1 -1
- data/lib/scash/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 570eef32d6464578fcb182f5b2a2cb480c9c6160
|
4
|
+
data.tar.gz: 60f4308b7368944b2c123ffb0e579fdd57b9da96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fbdb1a988fcd3eb8984ff8cb78f852b13f804d0b0c9d123751e468911c93f0fd500ef78438b1f97ae272f3c9b05f4e36ec2be6834a4bf6439250bb9e1482cc5
|
7
|
+
data.tar.gz: a8bfcae6af2ffd8bc621c6b3b8f1d1baa0035acb92905104f28a7000472d42f493f7510fa331bd1aff3a6e76944bce4f6bca1483e7bc8e07b075a8fefeb7c763
|
data/lib/scash.rb
CHANGED
@@ -65,7 +65,7 @@ class Scash
|
|
65
65
|
def build_hash(stack_index = 0)
|
66
66
|
@stack[stack_index..-1].each_with_index.inject(@klass.new) do |hash, (variables, index)|
|
67
67
|
last = stack_index + index == @stack.size-1
|
68
|
-
variables = variables.reject{|key, value|
|
68
|
+
variables = variables.reject{|key, value| variables[key].nil? && !last && @stack.last.key?(key) }
|
69
69
|
variables.merge hash
|
70
70
|
end
|
71
71
|
end
|
data/lib/scash/version.rb
CHANGED