ruby_deep_clone 0.5.0 → 0.6.0

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: 8484cb9b2193de9597046084cd08d0da04e011cb
4
- data.tar.gz: 42b44ed0f9340cda04b3720afeb0c81f245860d6
3
+ metadata.gz: b1086102141290170ef6fb7dbb11f0f27f81a36a
4
+ data.tar.gz: b3dbdf4d362a619fd482d82bb01ac056e0426c3d
5
5
  SHA512:
6
- metadata.gz: 3c1af9c76e96f9624df214ba55c4513a03b4f58cb23dc739488cac9904f4e961b1c963fcf3be2b9449e1a1c38be2788a7a3b36d687235d7f911c26c7925a02d0
7
- data.tar.gz: 1aa4d4c22cf31a3f0beafef48d4972557d5aae0714635cb93a96cafbf4331da6e4326dd1d9e9192ed860a86d3cccb9bc5f6c6b92fd43e4d0837a46c587264a7f
6
+ metadata.gz: 16abbb13ac3804516a87faf43779dfe687c81fc0c65931bc5ec66c079b2e444c5c0ce8c5443f4c4b22bde68b6792b74a781b276d399e2d26fa6d103c30432a69
7
+ data.tar.gz: 58b7c11fb7d664943a7994f4af913ff9b3c4db0bcba968c0c35a2960c3b3a1a0925dbf5f2190748a87d4382a45e54ef45da429a73a5ede7aa9e338b1ea61afa9
data/deep_clone.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'ruby_deep_clone'
7
- s.version = '0.5.0'
7
+ s.version = '0.6.0'
8
8
  s.date = '2014-01-21'
9
9
 
10
10
  s.summary = "Ruby native deep clone"
@@ -81,7 +81,11 @@ static VALUE clone_object(VALUE object, VALUE tracker)
81
81
  break;
82
82
  case T_STRING:
83
83
  case T_DATA:
84
- new_obj = rb_obj_clone(object);
84
+ if(rb_obj_is_kind_of(object,rb_cNumeric)){
85
+ new_obj = object;
86
+ } else {
87
+ new_obj = rb_obj_clone(object);
88
+ }
85
89
  rb_hash_aset(tracker,id,new_obj);
86
90
  break;
87
91
  case T_CLASS:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_deep_clone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Balmer