scash 0.2.2 → 0.2.3

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/scash.rb +1 -1
  3. data/lib/scash/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba5430bd40c724b9b715ab5eaec27f26e13863fb
4
- data.tar.gz: 5c37740a7bcffa842b8a4a10e03bbbe375079d27
3
+ metadata.gz: 570eef32d6464578fcb182f5b2a2cb480c9c6160
4
+ data.tar.gz: 60f4308b7368944b2c123ffb0e579fdd57b9da96
5
5
  SHA512:
6
- metadata.gz: bb73697989ffd56aad60c8dbbeee2295eb494ab76fc39901f51e11f25f887e03cf953ca9b3f55976511071fd8b9898843e686d4f513741d30282328ac81f26f4
7
- data.tar.gz: 902810c7daa58981028fe98db2d554a70d23bae3f58e392b1d221e04e55d37c5c585bd2370b7ecde8a336091de8cd508c7ec27b0e403f91d1455e09fabe1a0fe
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| value.nil? && !last && @stack.last.key?(key) }
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
@@ -1,3 +1,3 @@
1
1
  class Scash
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephan Kaag