deep_preloader 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deep_preloader/polymorphic_spec.rb +5 -1
- data/lib/deep_preloader/spec.rb +5 -1
- data/lib/deep_preloader/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d624c81fa1de1077266d5b3da945c551e3a3d0756e1c5f1b55f67e868dde0df
|
4
|
+
data.tar.gz: 83d4214703de49d03770af58abf27f1e6963cac88594534dcbba1d6e47d4746a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f21d5b3c98a221ab90504d771a6e353deabe042a656679e11f8eb64699561eb433ba8da10700f4eec2131dd53a46c2875e5af7cece4c4e6e30e264e20c9f6a52
|
7
|
+
data.tar.gz: 4aefe1fb5e9eba21037730a2ccbab9de657b5bcc14c937687fb58f66729cb0c7ab411323d1b1ed0094811939d0fcd22f73250d340db7e8c1bc96e858a7fa6167
|
@@ -35,7 +35,7 @@ class DeepPreloader::PolymorphicSpec < DeepPreloader::AbstractSpec
|
|
35
35
|
if specs_by_type[k]
|
36
36
|
specs_by_type[k].merge!(v)
|
37
37
|
else
|
38
|
-
specs_by_type[k] = v
|
38
|
+
specs_by_type[k] = v.deep_dup
|
39
39
|
end
|
40
40
|
end
|
41
41
|
else
|
@@ -54,6 +54,10 @@ class DeepPreloader::PolymorphicSpec < DeepPreloader::AbstractSpec
|
|
54
54
|
|
55
55
|
alias eql? ==
|
56
56
|
|
57
|
+
def deep_dup
|
58
|
+
self.class.new(specs_by_type.deep_dup)
|
59
|
+
end
|
60
|
+
|
57
61
|
def inspect
|
58
62
|
"PolySpec#{specs_by_type.inspect}"
|
59
63
|
end
|
data/lib/deep_preloader/spec.rb
CHANGED
@@ -38,7 +38,7 @@ class DeepPreloader::Spec < DeepPreloader::AbstractSpec
|
|
38
38
|
if association_specs[k]
|
39
39
|
association_specs[k].merge!(v)
|
40
40
|
else
|
41
|
-
association_specs[k] = v
|
41
|
+
association_specs[k] = v.deep_dup
|
42
42
|
end
|
43
43
|
end
|
44
44
|
else
|
@@ -57,6 +57,10 @@ class DeepPreloader::Spec < DeepPreloader::AbstractSpec
|
|
57
57
|
|
58
58
|
alias eql? ==
|
59
59
|
|
60
|
+
def deep_dup
|
61
|
+
self.class.new(association_specs.deep_dup)
|
62
|
+
end
|
63
|
+
|
60
64
|
def inspect
|
61
65
|
"Spec#{association_specs.inspect}"
|
62
66
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deep_preloader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- iKnow Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|