attr_plus 0.2.1 → 0.2.2

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 (2) hide show
  1. data/lib/attr_plus/class.rb +1 -1
  2. metadata +2 -2
@@ -210,7 +210,7 @@ class Class
210
210
  new_attrs.each do |key, value|
211
211
  result = self.send(key)
212
212
  if result
213
- new_attrs[key] = result
213
+ new_attrs[key] = (result.dup rescue result)
214
214
  end # else leave as default
215
215
  end
216
216
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Joshua Hawxwell