full_clone 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/full_clone.gemspec +0 -1
- data/lib/full_clone/version.rb +1 -1
- data/test/array_tests.rb +0 -4
- data/test/deep_clone_tests.rb +0 -4
- data/test/hash_tests.rb +0 -4
- data/test/object_tests.rb +0 -4
- data/test/struct_tests.rb +0 -4
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f59cabf085ae1c783026f3de36df0834782a3c8
|
4
|
+
data.tar.gz: db210ece31a9ec2c2dd7b33998f0625935e63d39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7698d4cdecabe0ba198765a6b61d693186b2ffd493d50f1f9ba655fa9e832aea8e65ac77e5092b06087ec6cf130799894cf11e086bfa386c1a3c2acc974d333d
|
7
|
+
data.tar.gz: c706d20920104c575dc0ba86d71d95f6facd1edbae1cb1783dbce870d9f717d633d331beed92c8b5260fc893c8225b91d7b2cdf194f6d6496df6db76651afd65
|
data/full_clone.gemspec
CHANGED
@@ -20,6 +20,5 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.add_development_dependency "rake", ">= 12.3.3"
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
22
22
|
spec.add_development_dependency 'minitest', "~> 5.7"
|
23
|
-
spec.add_development_dependency 'minitest_visible', "~> 0.1"
|
24
23
|
spec.add_development_dependency 'reek', "~> 5.0.2"
|
25
24
|
end
|
data/lib/full_clone/version.rb
CHANGED
data/test/array_tests.rb
CHANGED
@@ -3,14 +3,10 @@
|
|
3
3
|
require_relative '../lib/full_clone'
|
4
4
|
gem 'minitest'
|
5
5
|
require 'minitest/autorun'
|
6
|
-
require 'minitest_visible'
|
7
6
|
|
8
7
|
#Test the monkey patches applied to the Object class.
|
9
8
|
class ArrayFullCloneTester < Minitest::Test
|
10
9
|
|
11
|
-
#Track mini-test progress.
|
12
|
-
include MinitestVisible
|
13
|
-
|
14
10
|
def test_basic_deep_cloning
|
15
11
|
sa = "North"
|
16
12
|
simple1 = [sa, 5, nil]
|
data/test/deep_clone_tests.rb
CHANGED
@@ -3,14 +3,10 @@
|
|
3
3
|
require_relative '../lib/full_clone'
|
4
4
|
gem 'minitest'
|
5
5
|
require 'minitest/autorun'
|
6
|
-
require 'minitest_visible'
|
7
6
|
|
8
7
|
#Test the monkey patches applied to the Object class.
|
9
8
|
class FullCloneTester < Minitest::Test
|
10
9
|
|
11
|
-
#Track mini-test progress.
|
12
|
-
include MinitestVisible
|
13
|
-
|
14
10
|
def test_for_safe_value_cloning
|
15
11
|
assert_equal((6).full_clone, 6)
|
16
12
|
assert_equal((6).full_clone.object_id, (6).object_id)
|
data/test/hash_tests.rb
CHANGED
@@ -3,14 +3,10 @@
|
|
3
3
|
require_relative '../lib/full_clone'
|
4
4
|
gem 'minitest'
|
5
5
|
require 'minitest/autorun'
|
6
|
-
require 'minitest_visible'
|
7
6
|
|
8
7
|
#Test the monkey patches applied to the Object class.
|
9
8
|
class HashFullCloneTester < Minitest::Test
|
10
9
|
|
11
|
-
#Track mini-test progress.
|
12
|
-
include MinitestVisible
|
13
|
-
|
14
10
|
def test_basic_deep_cloning
|
15
11
|
sa = "North"
|
16
12
|
simple1 = {iva: sa, ivb: 5, ivc: nil}
|
data/test/object_tests.rb
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
require_relative '../lib/full_clone'
|
4
4
|
gem 'minitest'
|
5
5
|
require 'minitest/autorun'
|
6
|
-
require 'minitest_visible'
|
7
6
|
|
8
7
|
#Test the monkey patches applied to the Object class.
|
9
8
|
class ObjectFullCloneTester < Minitest::Test
|
@@ -18,9 +17,6 @@ class ObjectFullCloneTester < Minitest::Test
|
|
18
17
|
end
|
19
18
|
end
|
20
19
|
|
21
|
-
#Track mini-test progress.
|
22
|
-
include MinitestVisible
|
23
|
-
|
24
20
|
def test_basic_deep_cloning
|
25
21
|
sa = "North"
|
26
22
|
simple1 = SimpleClass.new(sa, 5, nil)
|
data/test/struct_tests.rb
CHANGED
@@ -3,16 +3,12 @@
|
|
3
3
|
require_relative '../lib/full_clone'
|
4
4
|
gem 'minitest'
|
5
5
|
require 'minitest/autorun'
|
6
|
-
require 'minitest_visible'
|
7
6
|
|
8
7
|
#Test the monkey patches applied to the Object class.
|
9
8
|
class StructFullCloneTester < Minitest::Test
|
10
9
|
|
11
10
|
SimpleStruct = Struct.new(:iva, :ivb, :ivc)
|
12
11
|
|
13
|
-
#Track mini-test progress.
|
14
|
-
include MinitestVisible
|
15
|
-
|
16
12
|
def test_basic_deep_cloning
|
17
13
|
sa = "North"
|
18
14
|
simple1 = SimpleStruct.new(sa, 5, nil)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: full_clone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Camilleri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '5.7'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest_visible
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0.1'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0.1'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: reek
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|