attribute_struct 0.2.14 → 0.2.16

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: 2784bc7275103df06114555bef8c340a6af7e41d
4
- data.tar.gz: a718c494924468d7653683451f5734debeeaf536
3
+ metadata.gz: c0e791d7859e8be3556c850e185838bc7a27fa06
4
+ data.tar.gz: 0cf83a94bf5f113f9c4e0d36bd5346f483fe7416
5
5
  SHA512:
6
- metadata.gz: ebdb20db6a9a5a1060a7868f60aeb9f1ed1a2e8e00767027ce530d5b2a7584d7398e16b69c4822c87b0d2325c21db9425bd5094b305e319d04205111998dcd22
7
- data.tar.gz: a5e0a40f61d168e0653f9322123f0b33ece9e0b576db793bb0910643cd3fc37ffe201d8a6178ac45d12e3bfc1f5bea8fb4c43ea6ee5b9124e33651bef218ac47
6
+ metadata.gz: 90d8ad05ab187dd2c47371675cf28a600c88eb73555d9003af1bee26d48d8ad09e7f5d74f609787e1e4f356e6fd69446d820eef0c4f5f01ff01c196c751673b5
7
+ data.tar.gz: 30d3794e724353d024317e8a50a794c92a662fccfe6544aecc4ba3bb455c29b1eb6b92cda6f698ea5bdab7d0042131588802b773afaa02bbebefcf2ba92dbc76
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v0.2.16
2
+ * Fix regression mixed argument and block set returning second level struct
3
+
1
4
  ## v0.2.14
2
5
  * Fix `:value_collapse` option to prevent multiple nestings
3
6
 
@@ -202,7 +202,7 @@ class AttributeStruct < BasicObject
202
202
  else
203
203
  orig = leaf
204
204
  end
205
- @table[sym] = orig
205
+ @table[sym] = result
206
206
  else
207
207
  if(args.size > 1 && args.all?{|i| i.is_a?(::String) || i.is_a?(::Symbol)} && !_state(:value_collapse))
208
208
  @table[sym] = _klass_new unless @table[sym].is_a?(_klass)
@@ -2,5 +2,5 @@ require 'attribute_struct/attribute_struct'
2
2
 
3
3
  class AttributeStruct
4
4
  # Current library version
5
- VERSION = ::Gem::Version.new('0.2.14')
5
+ VERSION = ::Gem::Version.new('0.2.16')
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attribute_struct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-09 00:00:00.000000000 Z
11
+ date: 2015-03-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Attribute structures
14
14
  email: chrisroberts.code@gmail.com