deep-cloning 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deep_cloning.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49fe856693c2852e697f2daa2b4e754baae413d4fa824d0d78be0e644edc25f3
|
4
|
+
data.tar.gz: e17a02eae597e1f5588b05adda3990dbb5ca7526e9b6ec124e57983c33382e27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33e46e86566a06479886c1d1a4c23b992affd82e0792e83ee319d01d93aab31c25d3464658a614b01c0c4a69cc560b44837a459e72619eedf654d8a850608ead
|
7
|
+
data.tar.gz: e841d75867ddbe8ec399055acd46cdfd596eac020047f1b34ba846e189669c4da34f55159a48331b735efe1245737414f2c6da86d62189e939a825c815bc53be
|
data/lib/deep_cloning.rb
CHANGED
@@ -3,7 +3,7 @@ require 'active_record'
|
|
3
3
|
module DeepCloning
|
4
4
|
# This is the main class responsible to evaluate the equations
|
5
5
|
class Clone
|
6
|
-
VERSION = '0.1.
|
6
|
+
VERSION = '0.1.2'.freeze
|
7
7
|
def initialize(root, opts = { except: [], save_root: true })
|
8
8
|
@root = root
|
9
9
|
@opts = opts
|
@@ -29,7 +29,6 @@ module DeepCloning
|
|
29
29
|
walk?(n)
|
30
30
|
end
|
31
31
|
unless @cell
|
32
|
-
binding.pry
|
33
32
|
ap @opts[:source].map { |s| "#{s.id} - #{s.class.name}" }
|
34
33
|
raise 'cannot duplicate the hierarchy'
|
35
34
|
end
|