attribute_struct 0.4.0 → 0.4.2

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: 62a1d8f5b662295b8d042e63ab3db10675590f8c
4
- data.tar.gz: c6aa3dff93e00ac5af116d7ad1f181fb92277894
3
+ metadata.gz: cfb863d08beb7bf41c350da383961c01f2bc0989
4
+ data.tar.gz: fd2abc4187313555e34abfb97bb4b3e840bda142
5
5
  SHA512:
6
- metadata.gz: 17a711517062fe06ab4af95af64dcb4b45bc9d8050a204d42767f63e712e39552c07a2ec7915bb465e9ff9c20b9ce50447e7a870d01ad6c0bc9ab34d51977044
7
- data.tar.gz: 2367c34c291b7c8a7f0e79f75782f08ce80b4d065aa0319e81c798c60ca656aa0e86d6fd719beda54b90af8df932646592c77bf299f0f39b3522cb1b169f00e3
6
+ metadata.gz: f734064ce0705b4df778bb9183e6d8a70eda70fa70923292e3ddd4dcf69942d55d39b7ab854761c371f08c28bfce870a9966ace91756898d80bd290f7c0f418d
7
+ data.tar.gz: 47ea98e60b46b984f83edb14abc54baca279d7434125be0469b836b1b4b53f97eb5e58feb6549140744351b61327337d711467077d0fdbf083a1de17a3855752
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.4.2
2
+ * Set cloned data via #_data on new instance
3
+
1
4
  # v0.4.0
2
5
  * Support cloning of AttributeStruct instances
3
6
  * Allow non-Stringish types to be used for data keys
@@ -645,7 +645,7 @@ class AttributeStruct < BasicObject
645
645
  # @return [AttributeStruct] clone of current instance
646
646
  def _clone(_new_parent=nil)
647
647
  _cloned_inst = _klass_new
648
- _cloned_inst.__table = __hashish[
648
+ _cloned_inst._data.replace __hashish[
649
649
  @table.map{ |_key, _value|
650
650
  if(_key.is_a?(::AttributeStruct))
651
651
  _key = _key._clone
@@ -1,4 +1,4 @@
1
1
  class AttributeStruct < BasicObject
2
2
  # Current library version
3
- VERSION = ::Gem::Version.new('0.4.0')
3
+ VERSION = ::Gem::Version.new('0.4.2')
4
4
  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.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-07 00:00:00.000000000 Z
11
+ date: 2017-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo