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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4d52fcac4fc5b9b0768ecb6dd0c9db5e8ddee7f0ae8d9475ca3364fceb38b9b
4
- data.tar.gz: a41e279ad07e928fdb36a55c3ba33cacc0e3d4137bc09863b234f5b6ca7be256
3
+ metadata.gz: 7d624c81fa1de1077266d5b3da945c551e3a3d0756e1c5f1b55f67e868dde0df
4
+ data.tar.gz: 83d4214703de49d03770af58abf27f1e6963cac88594534dcbba1d6e47d4746a
5
5
  SHA512:
6
- metadata.gz: 400bfd0eb4d794f3d1b1074e422788a27114dfd8d606dbc8334a08c8cfb31e02e39e55bc02cd13132419238c2d09921a73f8f8ad989b40244d4504dccc3a00c7
7
- data.tar.gz: 1eb00d062a73b0d5d8ae94451ee638db04f616f9c535c5154f4db855d048d16604ea129620f0f81708980933c83b845a309bc0a1eb7df1aa54ea74c8f001a9a9
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  class DeepPreloader
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  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.0
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: 2023-04-06 00:00:00.000000000 Z
11
+ date: 2024-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord