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 +4 -4
- data/deep_clone.gemspec +1 -1
- data/ext/deep_clone/deep_clone.c +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1086102141290170ef6fb7dbb11f0f27f81a36a
|
4
|
+
data.tar.gz: b3dbdf4d362a619fd482d82bb01ac056e0426c3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16abbb13ac3804516a87faf43779dfe687c81fc0c65931bc5ec66c079b2e444c5c0ce8c5443f4c4b22bde68b6792b74a781b276d399e2d26fa6d103c30432a69
|
7
|
+
data.tar.gz: 58b7c11fb7d664943a7994f4af913ff9b3c4db0bcba968c0c35a2960c3b3a1a0925dbf5f2190748a87d4382a45e54ef45da429a73a5ede7aa9e338b1ea61afa9
|
data/deep_clone.gemspec
CHANGED
data/ext/deep_clone/deep_clone.c
CHANGED
@@ -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
|
-
|
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:
|