attribute_struct 0.3.2 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 902bf8b18675d998b37c3543ee77d343d7c37f8f
4
- data.tar.gz: 29bf97732d4f10a3797a394e0fcc9bbcca228b35
3
+ metadata.gz: 2e1db29333317313d771dfeebe9c6aa4065fbb7e
4
+ data.tar.gz: b0be69a6c207580f1b4f8ce483dc1647c0654580
5
5
  SHA512:
6
- metadata.gz: 4c2f5243ac8e3897820f3e9ed286ab4eca0c1b926c0d10fc05e8302f39f289220a81f5b76c4bc92b45c81f7c231026b286f045d759bfc4c903f5a5676c3c9f98
7
- data.tar.gz: 42686aaa093b860aa884c8e1118ebe2841f6367ac96520ad2f966a851007b8c7bda03d7377dfc55ecd76197300e31bd45ec59bdff8f49392d817bfc377d6fc94
6
+ metadata.gz: 3145317f6dc5dc195adc2fe9cc3c1b8ea228c3e46c8b1bb2001c7a2388b87704078433cd3d5a618146b8408ef2fcddef80aaaf1bee1ec118a45ea106b1b304ee
7
+ data.tar.gz: decbcd90e9ed1c434c1b006d3373a097651808436df41f0a7c47624f11374aef6d402465a3405e630270f3ae7ee28117022c346c7ceba8c9d997fd7731746c6a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.3.4
2
+ * Fix value overwrite when accessed via parameter and updated via block
3
+
1
4
  # v0.3.2
2
5
  * Update variable names within method_missing to prevent data collisions
3
6
  * Use constant for internal nil value
@@ -237,7 +237,7 @@ class AttributeStruct < BasicObject
237
237
  @table[_sym] = _result
238
238
 
239
239
  _args.flatten.each do |_arg|
240
- _leaf = base[_arg]
240
+ _leaf = _base[_arg]
241
241
  unless(_leaf.is_a?(_klass))
242
242
  _leaf = _klass_new
243
243
  _base._set(_arg, _leaf)
@@ -1,4 +1,4 @@
1
1
  class AttributeStruct < BasicObject
2
2
  # Current library version
3
- VERSION = ::Gem::Version.new('0.3.2')
3
+ VERSION = ::Gem::Version.new('0.3.4')
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attribute_struct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts