ams_lazy_relationships 0.3.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e456a9f3d1ebd29b3ed4fe59af5bf075581657749f7a0c0b8ad95d720b5ab225
4
- data.tar.gz: 8a2ccf2836ceba847cba01e6524a3f66ec5fcbdcb66f25ab28eb65a6b8042cdd
3
+ metadata.gz: f1bd7477000acf86df431b18cf326a86424d448ce14cfe042ae4e676fdddb09a
4
+ data.tar.gz: b9a4939240fa888c0c0e3cd6a17d3fec5acb90a8007cfe435adf5f694f518376
5
5
  SHA512:
6
- metadata.gz: 760ff1224565b3f5249d044726deb3bd226cf23766c073fbce43fe7c3c24ae241a01a63e88fa79fa561d570389cd1a848113275daf36ad9ec9965d1715203740
7
- data.tar.gz: 77c0fb34233ffeb48526ae020f0ca8ffc28f84a2d630004f3566e0b6798a7631fb2974c55623305272ee3f21771f3f74efbe5fc00e1c02b561346deff3c77a3f
6
+ metadata.gz: fc0fee20d57d9c19627118d5592daf52aaa69547cbb517be838ba317f475b41df076c5f12ee4be75f3e0791a8adab67315ddd3f232a5e57969ab225573e7c819
7
+ data.tar.gz: 60ac478470ed1ad82bcdd72b94c470d0f6456370b97c9c77f11a6835cc36ff3b2068c7fc71de279d1e559bea2b191a4f0dd73050b159eec9083113d5c4f4dc6d
data/.travis.yml CHANGED
@@ -13,6 +13,8 @@ gemfile:
13
13
  - gemfiles/ams_0.10.10.gemfile
14
14
  - gemfiles/batch_loader_1.gemfile
15
15
  - gemfiles/batch_loader_2.gemfile
16
+ - gemfiles/rails_6.gemfile
17
+ - gemfiles/rails_7.gemfile
16
18
  cache: bundler
17
19
  rvm:
18
20
  - 2.5.3
data/Appraisals CHANGED
@@ -29,3 +29,11 @@ end
29
29
  appraise "batch-loader-2" do
30
30
  gem "batch-loader", "~> 2"
31
31
  end
32
+
33
+ appraise "rails-6" do
34
+ gem "activerecord", "~> 6"
35
+ end
36
+
37
+ appraise "rails-7" do
38
+ gem "activerecord", "~> 7"
39
+ end
data/CHANGELOG.md CHANGED
@@ -1,4 +1,19 @@
1
- # Change Log
1
+ # Changelog
2
+
3
+ ## [v0.4.0](https://github.com/Bajena/ams_lazy_relationships/tree/v0.4.0) (2023-11-18)
4
+
5
+ [Full Changelog](https://github.com/Bajena/ams_lazy_relationships/compare/v0.3.2...v0.4.0)
6
+
7
+ **Closed issues:**
8
+
9
+ - How do you override association methods? [\#68](https://github.com/Bajena/ams_lazy_relationships/issues/68)
10
+ - Throws exception in ruby 3.0.0 [\#58](https://github.com/Bajena/ams_lazy_relationships/issues/58)
11
+
12
+ **Merged pull requests:**
13
+
14
+ - Rails 7 support [\#85](https://github.com/Bajena/ams_lazy_relationships/pull/85) ([stokarenko](https://github.com/stokarenko))
15
+ - Bump addressable from 2.7.0 to 2.8.0 [\#67](https://github.com/Bajena/ams_lazy_relationships/pull/67) ([dependabot[bot]](https://github.com/apps/dependabot))
16
+ - Bump nokogiri from 1.11.3 to 1.11.4 [\#66](https://github.com/Bajena/ams_lazy_relationships/pull/66) ([dependabot[bot]](https://github.com/apps/dependabot))
2
17
 
3
18
  ## [v0.3.2](https://github.com/Bajena/ams_lazy_relationships/tree/v0.3.2) (2021-04-18)
4
19
 
@@ -12,6 +27,7 @@
12
27
  - Update rake requirement from ~\> 10.0 to ~\> 13.0 [\#53](https://github.com/Bajena/ams_lazy_relationships/pull/53) ([dependabot[bot]](https://github.com/apps/dependabot))
13
28
 
14
29
  ## [v0.3.1](https://github.com/Bajena/ams_lazy_relationships/tree/v0.3.1) (2021-04-14)
30
+
15
31
  [Full Changelog](https://github.com/Bajena/ams_lazy_relationships/compare/v0.3.0...v0.3.1)
16
32
 
17
33
  **Closed issues:**
@@ -23,6 +39,7 @@
23
39
  - Lock minimum AMS version to 0.10.0.rc4 [\#60](https://github.com/Bajena/ams_lazy_relationships/pull/60) ([Bajena](https://github.com/Bajena))
24
40
 
25
41
  ## [v0.3.0](https://github.com/Bajena/ams_lazy_relationships/tree/v0.3.0) (2020-01-16)
42
+
26
43
  [Full Changelog](https://github.com/Bajena/ams_lazy_relationships/compare/v0.2.0...v0.3.0)
27
44
 
28
45
  **Merged pull requests:**
@@ -35,13 +52,11 @@
35
52
  - Fix documentation for blocked relationships [\#45](https://github.com/Bajena/ams_lazy_relationships/pull/45) ([stokarenko](https://github.com/stokarenko))
36
53
 
37
54
  ## [v0.2.0](https://github.com/Bajena/ams_lazy_relationships/tree/v0.2.0) (2020-01-11)
38
- [Full Changelog](https://github.com/Bajena/ams_lazy_relationships/compare/v0.1.5...v0.2.0)
39
55
 
40
- **Merged pull requests:**
41
-
42
- - Lazy dig [\#44](https://github.com/Bajena/ams_lazy_relationships/pull/44) ([stokarenko](https://github.com/stokarenko))
56
+ [Full Changelog](https://github.com/Bajena/ams_lazy_relationships/compare/v0.1.5...v0.2.0)
43
57
 
44
58
  ## [v0.1.5](https://github.com/Bajena/ams_lazy_relationships/tree/v0.1.5) (2020-01-08)
59
+
45
60
  [Full Changelog](https://github.com/Bajena/ams_lazy_relationships/compare/v0.1.4...v0.1.5)
46
61
 
47
62
  **Closed issues:**
@@ -63,6 +78,7 @@
63
78
  - Bump loofah from 2.2.3 to 2.3.1 [\#31](https://github.com/Bajena/ams_lazy_relationships/pull/31) ([dependabot[bot]](https://github.com/apps/dependabot))
64
79
 
65
80
  ## [v0.1.4](https://github.com/Bajena/ams_lazy_relationships/tree/v0.1.4) (2019-06-02)
81
+
66
82
  [Full Changelog](https://github.com/Bajena/ams_lazy_relationships/compare/v0.1.3...v0.1.4)
67
83
 
68
84
  **Closed issues:**
@@ -80,6 +96,7 @@
80
96
  - Require less restrictive batch loader version [\#26](https://github.com/Bajena/ams_lazy_relationships/pull/26) ([Bajena](https://github.com/Bajena))
81
97
 
82
98
  ## [v0.1.3](https://github.com/Bajena/ams_lazy_relationships/tree/v0.1.3) (2019-05-19)
99
+
83
100
  [Full Changelog](https://github.com/Bajena/ams_lazy_relationships/compare/0.1.2...v0.1.3)
84
101
 
85
102
  **Closed issues:**
@@ -92,6 +109,7 @@
92
109
  - Do not yield cached associations data instantly in Association loader [\#23](https://github.com/Bajena/ams_lazy_relationships/pull/23) ([Bajena](https://github.com/Bajena))
93
110
 
94
111
  ## [0.1.2](https://github.com/Bajena/ams_lazy_relationships/tree/0.1.2) (2019-03-10)
112
+
95
113
  [Full Changelog](https://github.com/Bajena/ams_lazy_relationships/compare/v0.1.1...0.1.2)
96
114
 
97
115
  **Closed issues:**
@@ -105,6 +123,7 @@
105
123
  - Fix superclass lazy relationships not loading properly on subclass [\#15](https://github.com/Bajena/ams_lazy_relationships/pull/15) ([willcosgrove](https://github.com/willcosgrove))
106
124
 
107
125
  ## [v0.1.1](https://github.com/Bajena/ams_lazy_relationships/tree/v0.1.1) (2019-01-09)
126
+
108
127
  [Full Changelog](https://github.com/Bajena/ams_lazy_relationships/compare/v0.1.0...v0.1.1)
109
128
 
110
129
  **Merged pull requests:**
@@ -112,6 +131,9 @@
112
131
  - Relax batch-loader version [\#13](https://github.com/Bajena/ams_lazy_relationships/pull/13) ([Bajena](https://github.com/Bajena))
113
132
 
114
133
  ## [v0.1.0](https://github.com/Bajena/ams_lazy_relationships/tree/v0.1.0) (2018-12-30)
134
+
135
+ [Full Changelog](https://github.com/Bajena/ams_lazy_relationships/compare/a045c7e1c2d545a336cb79fec9e92f0f4c843651...v0.1.0)
136
+
115
137
  **Closed issues:**
116
138
 
117
139
  - Add changelog [\#10](https://github.com/Bajena/ams_lazy_relationships/issues/10)
@@ -132,4 +154,4 @@
132
154
 
133
155
 
134
156
 
135
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
157
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/Gemfile.lock CHANGED
@@ -1,101 +1,97 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ams_lazy_relationships (0.3.2)
4
+ ams_lazy_relationships (0.4.0)
5
5
  active_model_serializers (>= 0.10.0.rc4)
6
6
  batch-loader
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionpack (6.1.3.1)
12
- actionview (= 6.1.3.1)
13
- activesupport (= 6.1.3.1)
14
- rack (~> 2.0, >= 2.0.9)
11
+ actionpack (7.0.8)
12
+ actionview (= 7.0.8)
13
+ activesupport (= 7.0.8)
14
+ rack (~> 2.0, >= 2.2.4)
15
15
  rack-test (>= 0.6.3)
16
16
  rails-dom-testing (~> 2.0)
17
17
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
18
- actionview (6.1.3.1)
19
- activesupport (= 6.1.3.1)
18
+ actionview (7.0.8)
19
+ activesupport (= 7.0.8)
20
20
  builder (~> 3.1)
21
21
  erubi (~> 1.4)
22
22
  rails-dom-testing (~> 2.0)
23
23
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
24
- active_model_serializers (0.10.12)
25
- actionpack (>= 4.1, < 6.2)
26
- activemodel (>= 4.1, < 6.2)
24
+ active_model_serializers (0.10.14)
25
+ actionpack (>= 4.1)
26
+ activemodel (>= 4.1)
27
27
  case_transform (>= 0.2)
28
28
  jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
29
- activemodel (6.1.3.1)
30
- activesupport (= 6.1.3.1)
31
- activerecord (6.1.3.1)
32
- activemodel (= 6.1.3.1)
33
- activesupport (= 6.1.3.1)
34
- activesupport (6.1.3.1)
29
+ activemodel (7.0.8)
30
+ activesupport (= 7.0.8)
31
+ activerecord (7.0.8)
32
+ activemodel (= 7.0.8)
33
+ activesupport (= 7.0.8)
34
+ activesupport (7.0.8)
35
35
  concurrent-ruby (~> 1.0, >= 1.0.2)
36
36
  i18n (>= 1.6, < 2)
37
37
  minitest (>= 5.1)
38
38
  tzinfo (~> 2.0)
39
- zeitwerk (~> 2.3)
40
- addressable (2.7.0)
41
- public_suffix (>= 2.0.2, < 5.0)
42
- appraisal (2.4.0)
39
+ addressable (2.8.5)
40
+ public_suffix (>= 2.0.2, < 6.0)
41
+ appraisal (2.5.0)
43
42
  bundler
44
43
  rake
45
44
  thor (>= 0.14.0)
46
45
  ast (2.4.2)
47
- async (1.29.0)
46
+ async (2.6.5)
48
47
  console (~> 1.10)
49
- nio4r (~> 2.3)
48
+ fiber-annotation
49
+ io-event (~> 1.1)
50
50
  timers (~> 4.1)
51
- async-http (0.54.1)
52
- async (~> 1.25)
53
- async-io (~> 1.28)
54
- async-pool (~> 0.2)
55
- protocol-http (~> 0.21.0)
56
- protocol-http1 (~> 0.13.0)
57
- protocol-http2 (~> 0.14.0)
58
- async-http-faraday (0.9.0)
51
+ async-http (0.61.0)
52
+ async (>= 1.25)
53
+ async-io (>= 1.28)
54
+ async-pool (>= 0.2)
55
+ protocol-http (~> 0.25.0)
56
+ protocol-http1 (~> 0.16.0)
57
+ protocol-http2 (~> 0.15.0)
58
+ traces (>= 0.10.0)
59
+ async-http-faraday (0.12.0)
59
60
  async-http (~> 0.42)
60
61
  faraday
61
- async-io (1.30.2)
62
- async (~> 1.14)
63
- async-pool (0.3.5)
64
- async (~> 1.25)
62
+ async-io (1.38.0)
63
+ async
64
+ async-pool (0.4.0)
65
+ async (>= 1.25)
66
+ base64 (0.2.0)
65
67
  batch-loader (2.0.1)
66
- benchmark-memory (0.1.2)
67
- memory_profiler (~> 0.9)
68
+ benchmark-memory (0.2.0)
69
+ memory_profiler (~> 1)
68
70
  builder (3.2.4)
69
71
  case_transform (0.2)
70
72
  activesupport
71
73
  coderay (1.1.3)
72
- concurrent-ruby (1.1.8)
73
- connection_pool (2.2.5)
74
- console (1.11.1)
74
+ concurrent-ruby (1.2.2)
75
+ console (1.23.2)
76
+ fiber-annotation
75
77
  fiber-local
76
78
  crass (1.0.6)
77
- db-query-matchers (0.10.0)
78
- activesupport (>= 4.0, < 7)
79
- rspec (~> 3.0)
80
- diff-lcs (1.4.4)
81
- docile (1.3.5)
82
- erubi (1.10.0)
83
- excon (0.80.1)
84
- faraday (1.4.0)
85
- faraday-excon (~> 1.0)
86
- faraday-net_http (~> 1.0)
87
- faraday-net_http_persistent (~> 1.0)
88
- multipart-post (>= 1.2, < 3)
79
+ db-query-matchers (0.11.0)
80
+ activesupport (>= 4.0, < 7.1)
81
+ rspec (>= 3.0)
82
+ diff-lcs (1.5.0)
83
+ docile (1.4.0)
84
+ erubi (1.12.0)
85
+ faraday (2.7.11)
86
+ base64
87
+ faraday-net_http (>= 2.0, < 3.1)
89
88
  ruby2_keywords (>= 0.0.4)
90
- faraday-excon (1.0.0)
91
- excon (>= 0.27.4)
92
- faraday-http-cache (2.2.0)
89
+ faraday-http-cache (2.5.0)
93
90
  faraday (>= 0.8)
94
- faraday-net_http (1.0.1)
95
- faraday-net_http_persistent (1.0.3)
96
- net-http-persistent (>= 3.1)
91
+ faraday-net_http (3.0.2)
92
+ fiber-annotation (0.2.0)
97
93
  fiber-local (1.0.0)
98
- github_changelog_generator (1.16.1)
94
+ github_changelog_generator (1.16.4)
99
95
  activesupport
100
96
  async (>= 1.25.0)
101
97
  async-http-faraday
@@ -104,66 +100,63 @@ GEM
104
100
  octokit (~> 4.6)
105
101
  rainbow (>= 2.2.1)
106
102
  rake (>= 10.0)
107
- retriable (~> 3.0)
108
- i18n (1.8.10)
103
+ i18n (1.14.1)
109
104
  concurrent-ruby (~> 1.0)
110
105
  imagen (0.1.8)
111
106
  parser (>= 2.5, != 2.5.1.1)
112
- jaro_winkler (1.5.4)
107
+ io-event (1.3.3)
108
+ jaro_winkler (1.5.6)
113
109
  jsonapi-renderer (0.2.2)
114
- loofah (2.9.1)
110
+ loofah (2.22.0)
115
111
  crass (~> 1.0.2)
116
- nokogiri (>= 1.5.9)
117
- memory_profiler (0.9.14)
118
- method_source (0.9.2)
119
- mini_portile2 (2.5.0)
120
- minitest (5.14.4)
112
+ nokogiri (>= 1.12.0)
113
+ memory_profiler (1.0.1)
114
+ method_source (1.0.0)
115
+ minitest (5.20.0)
121
116
  multi_json (1.15.0)
122
- multipart-post (2.1.1)
123
- net-http-persistent (4.0.1)
124
- connection_pool (~> 2.2)
125
- nio4r (2.5.7)
126
- nokogiri (1.11.3)
127
- mini_portile2 (~> 2.5.0)
117
+ nokogiri (1.15.5-x86_64-darwin)
128
118
  racc (~> 1.4)
129
- octokit (4.20.0)
130
- faraday (>= 0.9)
131
- sawyer (~> 0.8.0, >= 0.5.3)
132
- parallel (1.20.1)
133
- parser (3.0.1.0)
119
+ octokit (4.25.1)
120
+ faraday (>= 1, < 3)
121
+ sawyer (~> 0.9)
122
+ parallel (1.23.0)
123
+ parser (3.2.2.4)
134
124
  ast (~> 2.4.1)
125
+ racc
135
126
  powerpack (0.1.3)
136
127
  protocol-hpack (1.4.2)
137
- protocol-http (0.21.0)
138
- protocol-http1 (0.13.2)
139
- protocol-http (~> 0.19)
140
- protocol-http2 (0.14.2)
128
+ protocol-http (0.25.0)
129
+ protocol-http1 (0.16.0)
130
+ protocol-http (~> 0.22)
131
+ protocol-http2 (0.15.1)
141
132
  protocol-hpack (~> 1.4)
142
133
  protocol-http (~> 0.18)
143
- pry (0.12.2)
144
- coderay (~> 1.1.0)
145
- method_source (~> 0.9.0)
146
- pry-nav (0.3.0)
147
- pry (>= 0.9.10, < 0.13.0)
148
- public_suffix (4.0.6)
149
- racc (1.5.2)
150
- rack (2.2.3)
151
- rack-test (1.1.0)
152
- rack (>= 1.0, < 3)
153
- rails-dom-testing (2.0.3)
154
- activesupport (>= 4.2.0)
134
+ pry (0.14.2)
135
+ coderay (~> 1.1)
136
+ method_source (~> 1.0)
137
+ pry-nav (1.0.0)
138
+ pry (>= 0.9.10, < 0.15)
139
+ public_suffix (5.0.4)
140
+ racc (1.7.3)
141
+ rack (2.2.8)
142
+ rack-test (2.1.0)
143
+ rack (>= 1.3)
144
+ rails-dom-testing (2.2.0)
145
+ activesupport (>= 5.0.0)
146
+ minitest
155
147
  nokogiri (>= 1.6)
156
- rails-html-sanitizer (1.3.0)
157
- loofah (~> 2.3)
158
- railties (6.1.3.1)
159
- actionpack (= 6.1.3.1)
160
- activesupport (= 6.1.3.1)
148
+ rails-html-sanitizer (1.6.0)
149
+ loofah (~> 2.21)
150
+ nokogiri (~> 1.14)
151
+ railties (7.0.8)
152
+ actionpack (= 7.0.8)
153
+ activesupport (= 7.0.8)
161
154
  method_source
162
- rake (>= 0.8.7)
155
+ rake (>= 12.2)
163
156
  thor (~> 1.0)
164
- rainbow (3.0.0)
165
- rake (13.0.3)
166
- retriable (3.1.2)
157
+ zeitwerk (~> 2.5)
158
+ rainbow (3.1.1)
159
+ rake (13.1.0)
167
160
  rspec (3.9.0)
168
161
  rspec-core (~> 3.9.0)
169
162
  rspec-expectations (~> 3.9.0)
@@ -195,36 +188,37 @@ GEM
195
188
  unicode-display_width (~> 1.4.0)
196
189
  rubocop-rspec (1.20.1)
197
190
  rubocop (>= 0.51.0)
198
- ruby-progressbar (1.11.0)
199
- ruby2_keywords (0.0.4)
200
- rugged (1.1.0)
201
- sawyer (0.8.2)
191
+ ruby-progressbar (1.13.0)
192
+ ruby2_keywords (0.0.5)
193
+ rugged (1.6.3)
194
+ sawyer (0.9.2)
202
195
  addressable (>= 2.3.5)
203
- faraday (> 0.8, < 2.0)
204
- simplecov (0.21.2)
196
+ faraday (>= 0.17.3, < 3)
197
+ simplecov (0.22.0)
205
198
  docile (~> 1.1)
206
199
  simplecov-html (~> 0.11)
207
200
  simplecov_json_formatter (~> 0.1)
208
201
  simplecov-html (0.12.3)
209
202
  simplecov-lcov (0.8.0)
210
- simplecov_json_formatter (0.1.2)
211
- sqlite3 (1.4.2)
212
- thor (1.1.0)
203
+ simplecov_json_formatter (0.1.4)
204
+ sqlite3 (1.6.8-x86_64-darwin)
205
+ thor (1.3.0)
213
206
  thread_safe (0.3.6)
214
- timers (4.3.3)
215
- tzinfo (2.0.4)
207
+ timers (4.3.5)
208
+ traces (0.11.1)
209
+ tzinfo (2.0.6)
216
210
  concurrent-ruby (~> 1.0)
217
- undercover (0.4.3)
211
+ undercover (0.4.6)
218
212
  imagen (>= 0.1.8)
219
213
  rainbow (>= 2.1, < 4.0)
220
- rugged (>= 0.27, < 1.2)
214
+ rugged (>= 0.27, < 1.7)
221
215
  unicode-display_width (1.4.1)
222
- with_model (2.1.5)
223
- activerecord (>= 5.2)
224
- zeitwerk (2.4.2)
216
+ with_model (2.1.7)
217
+ activerecord (>= 6.0)
218
+ zeitwerk (2.6.12)
225
219
 
226
220
  PLATFORMS
227
- ruby
221
+ x86_64-darwin-21
228
222
 
229
223
  DEPENDENCIES
230
224
  activerecord
@@ -248,4 +242,4 @@ DEPENDENCIES
248
242
  with_model
249
243
 
250
244
  BUNDLED WITH
251
- 2.2.15
245
+ 2.4.10
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 6"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 7"
6
+
7
+ gemspec path: "../"
@@ -22,9 +22,7 @@ module AmsLazyRelationships
22
22
  attr_reader :model_class_name, :association_name
23
23
 
24
24
  def load_data(records, loader)
25
- ::ActiveRecord::Associations::Preloader.new.preload(
26
- records_to_preload(records), association_name
27
- )
25
+ preload(records)
28
26
 
29
27
  data = []
30
28
  records.each do |r|
@@ -40,6 +38,19 @@ module AmsLazyRelationships
40
38
  @batch_key ||= "#{model_class_name}/#{association_name}"
41
39
  end
42
40
 
41
+ def preload(records)
42
+ if ::ActiveRecord::VERSION::MAJOR >= 7
43
+ ::ActiveRecord::Associations::Preloader.new(
44
+ records: records_to_preload(records),
45
+ associations: association_name
46
+ ).call
47
+ else
48
+ ::ActiveRecord::Associations::Preloader.new.preload(
49
+ records_to_preload(records), association_name
50
+ )
51
+ end
52
+ end
53
+
43
54
  def records_to_preload(records)
44
55
  # It may happen that same record comes here twice (e.g. wrapped
45
56
  # in a decorator and non-wrapped). In this case Associations::Preloader
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AmsLazyRelationships
4
- VERSION = "0.3.2"
4
+ VERSION = "0.4.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ams_lazy_relationships
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Bajena
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-18 00:00:00.000000000 Z
11
+ date: 2023-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers
@@ -290,8 +290,8 @@ dependencies:
290
290
  - - "~>"
291
291
  - !ruby/object:Gem::Version
292
292
  version: '0.1'
293
- description:
294
- email:
293
+ description:
294
+ email:
295
295
  executables: []
296
296
  extensions: []
297
297
  extra_rdoc_files: []
@@ -322,6 +322,8 @@ files:
322
322
  - gemfiles/ams_0.10.8.gemfile
323
323
  - gemfiles/batch_loader_1.gemfile
324
324
  - gemfiles/batch_loader_2.gemfile
325
+ - gemfiles/rails_6.gemfile
326
+ - gemfiles/rails_7.gemfile
325
327
  - lib/ams_lazy_relationships.rb
326
328
  - lib/ams_lazy_relationships/core.rb
327
329
  - lib/ams_lazy_relationships/core/evaluation.rb
@@ -345,7 +347,7 @@ metadata:
345
347
  homepage_uri: https://github.com/Bajena/ams_lazy_relationships
346
348
  source_code_uri: https://github.com/Bajena/ams_lazy_relationships
347
349
  changelog_uri: https://github.com/Bajena/ams_lazy_relationships/blob/master/CHANGELOG.md
348
- post_install_message:
350
+ post_install_message:
349
351
  rdoc_options: []
350
352
  require_paths:
351
353
  - lib
@@ -360,8 +362,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
360
362
  - !ruby/object:Gem::Version
361
363
  version: '0'
362
364
  requirements: []
363
- rubygems_version: 3.1.2
364
- signing_key:
365
+ rubygems_version: 3.4.10
366
+ signing_key:
365
367
  specification_version: 4
366
368
  summary: ActiveModel Serializers addon for eliminating N+1 queries problem from the
367
369
  serializers.