administrate-field-nested_has_many 2.0.0 → 2.1.0

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: d33edd4a1e1c3c4170b7456ec5bf0cc4786fd034d6c6cb23a6f4e41d5b4c47ac
4
- data.tar.gz: 4d31e5f64c770656674a05a1f985ca6ae73fc4264617b32e865b82712d0735d4
3
+ metadata.gz: feb51647085d39faaf789b625a1c2c32053085e7fb200c26ae79565bb827a07c
4
+ data.tar.gz: 6ebeb4db74cb8a78be2b2d1b0eca9c5d1eb0140a89928e5b6fcaf02b6bc53f8d
5
5
  SHA512:
6
- metadata.gz: 9a90171dfc15780d5005e247ef2c46c439aa8598bc39da3a23bb572a145d19f1cd1027a964c06f507daef85e4d6e5aa4b869dbbe1f0738f87955b65a6c0c11d2
7
- data.tar.gz: 2f39cc39ac3e8d91ab5e415b9622a09cdbf3da226aad8dcfe1d9bee19822f66173d6853798d2e4693b4bce8683e8a34812f00bf868d07fb00c692c09ac96e8f6
6
+ metadata.gz: 710bc9657b9ae57b88d603630501c31ec70426cdc3e52146d5476cb244c934638101d868965b526d6ec0a72a8a677f8d1c8e9bc85c35e4728a9ae847db10ef28
7
+ data.tar.gz: 4927cfc5a2a2ff047080ec64a41b69e2a0c02df507f9a683d75cbb921c5cc5c50867c962f935b0267ec456086094de9f9f84b4ecf242abf4a7e7c6ed4cfa26c7
data/Appraisals CHANGED
@@ -3,3 +3,11 @@
3
3
  appraise "administrate-0.19" do
4
4
  gem "administrate", "0.19.0"
5
5
  end
6
+
7
+ appraise "administrate-0.20" do
8
+ gem "administrate", "0.20.0"
9
+ end
10
+
11
+ appraise "administrate-main" do
12
+ gem "administrate", git: "https://github.com/thoughtbot/administrate", branch: "main"
13
+ end
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.1.0
4
+
5
+ * Add support for attribute grouping ([#79][])
6
+ * Add Selectize support for the select boxes ([#64][])
7
+
8
+ [#79]: https://github.com/nickcharlton/administrate-field-nested_has_many/pull/79
9
+ [#64]: https://github.com/nickcharlton/administrate-field-nested_has_many/pull/64
10
+
3
11
  ## 2.0.0
4
12
 
5
13
  * Add CONTRIBUTING (#78)
data/README.md CHANGED
@@ -14,6 +14,8 @@ Please let us know if you detect other incompatibilities:
14
14
 
15
15
  | `nested_has_many` | Administrate |
16
16
  |-------------------|---------------|
17
+ | v2.1.0 | v0.20.0 |
18
+ | v2.0.0 | up to v0.19 |
17
19
  | v1.3.0 | up to v0.15 |
18
20
  | `#726d8gc` | from v0.16 |
19
21
  | `master` | up to v0.19.0 |
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "administrate-field-nested_has_many"
5
- gem.version = "2.0.0"
5
+ gem.version = "2.1.0"
6
6
  gem.authors = ["Nick Charlton", "Grayson Wright"]
7
7
  gem.email = ["nick@nickcharlton.net", "wright.grayson@gmail.com"]
8
8
  gem.homepage = "https://github.com/nickcharlton/" \
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.files = `git ls-files`.split("\n")
16
16
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
17
 
18
- gem.add_dependency "administrate", ">= 0.15", "< 0.20.0"
18
+ gem.add_dependency "administrate", ">= 0.19", "< 1"
19
19
  gem.add_dependency "cocoon", "~> 1.2", ">= 1.2.11"
20
20
 
21
21
  gem.add_development_dependency "appraisal"
@@ -1 +1,7 @@
1
1
  //= require cocoon
2
+ $(document).on('ready page:load turbolinks:load turbo:load cocoon:after-insert', function() {
3
+ $('.field-unit--select select').selectize({});
4
+ $('.field-unit--belongs-to select').selectize({});
5
+ $(".field-unit--has-many select").selectize({});
6
+ $('.field-unit--polymorphic select').selectize({});
7
+ });
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- administrate-field-nested_has_many (2.0.0)
5
- administrate (>= 0.15, < 0.20.0)
4
+ administrate-field-nested_has_many (2.1.0)
5
+ administrate (>= 0.19, < 1)
6
6
  cocoon (~> 1.2, >= 1.2.11)
7
7
 
8
8
  GEM
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "pg"
6
+ gem "administrate", "0.20.0"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,260 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ administrate-field-nested_has_many (2.1.0)
5
+ administrate (>= 0.19, < 1)
6
+ cocoon (~> 1.2, >= 1.2.11)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionpack (7.1.3)
12
+ actionview (= 7.1.3)
13
+ activesupport (= 7.1.3)
14
+ nokogiri (>= 1.8.5)
15
+ racc
16
+ rack (>= 2.2.4)
17
+ rack-session (>= 1.0.1)
18
+ rack-test (>= 0.6.3)
19
+ rails-dom-testing (~> 2.2)
20
+ rails-html-sanitizer (~> 1.6)
21
+ actionview (7.1.3)
22
+ activesupport (= 7.1.3)
23
+ builder (~> 3.1)
24
+ erubi (~> 1.11)
25
+ rails-dom-testing (~> 2.2)
26
+ rails-html-sanitizer (~> 1.6)
27
+ activemodel (7.1.3)
28
+ activesupport (= 7.1.3)
29
+ activerecord (7.1.3)
30
+ activemodel (= 7.1.3)
31
+ activesupport (= 7.1.3)
32
+ timeout (>= 0.4.0)
33
+ activesupport (7.1.3)
34
+ base64
35
+ bigdecimal
36
+ concurrent-ruby (~> 1.0, >= 1.0.2)
37
+ connection_pool (>= 2.2.5)
38
+ drb
39
+ i18n (>= 1.6, < 2)
40
+ minitest (>= 5.1)
41
+ mutex_m
42
+ tzinfo (~> 2.0)
43
+ addressable (2.8.6)
44
+ public_suffix (>= 2.0.2, < 6.0)
45
+ administrate (0.20.0)
46
+ actionpack (>= 6.0, < 8.0)
47
+ actionview (>= 6.0, < 8.0)
48
+ activerecord (>= 6.0, < 8.0)
49
+ jquery-rails (~> 4.6.0)
50
+ kaminari (~> 1.2.2)
51
+ sassc-rails (~> 2.1)
52
+ selectize-rails (~> 0.6)
53
+ appraisal (2.5.0)
54
+ bundler
55
+ rake
56
+ thor (>= 0.14.0)
57
+ ast (2.4.2)
58
+ base64 (0.2.0)
59
+ better_html (2.0.2)
60
+ actionview (>= 6.0)
61
+ activesupport (>= 6.0)
62
+ ast (~> 2.0)
63
+ erubi (~> 1.4)
64
+ parser (>= 2.4)
65
+ smart_properties
66
+ bigdecimal (3.1.6)
67
+ builder (3.2.4)
68
+ capybara (3.39.2)
69
+ addressable
70
+ matrix
71
+ mini_mime (>= 0.1.3)
72
+ nokogiri (~> 1.8)
73
+ rack (>= 1.6.0)
74
+ rack-test (>= 0.6.3)
75
+ regexp_parser (>= 1.5, < 3.0)
76
+ xpath (~> 3.2)
77
+ cocoon (1.2.15)
78
+ concurrent-ruby (1.2.3)
79
+ connection_pool (2.4.1)
80
+ crass (1.0.6)
81
+ diff-lcs (1.5.0)
82
+ drb (2.2.0)
83
+ ruby2_keywords
84
+ erubi (1.12.0)
85
+ factory_bot (6.4.5)
86
+ activesupport (>= 5.0.0)
87
+ ffi (1.16.3)
88
+ highline (3.0.1)
89
+ i18n (1.14.1)
90
+ concurrent-ruby (~> 1.0)
91
+ i18n-tasks (1.0.13)
92
+ activesupport (>= 4.0.2)
93
+ ast (>= 2.1.0)
94
+ better_html (>= 1.0, < 3.0)
95
+ erubi
96
+ highline (>= 2.0.0)
97
+ i18n
98
+ parser (>= 3.2.2.1)
99
+ rails-i18n
100
+ rainbow (>= 2.2.2, < 4.0)
101
+ terminal-table (>= 1.5.1)
102
+ io-console (0.7.2)
103
+ irb (1.11.1)
104
+ rdoc
105
+ reline (>= 0.4.2)
106
+ jquery-rails (4.6.0)
107
+ rails-dom-testing (>= 1, < 3)
108
+ railties (>= 4.2.0)
109
+ thor (>= 0.14, < 2.0)
110
+ kaminari (1.2.2)
111
+ activesupport (>= 4.1.0)
112
+ kaminari-actionview (= 1.2.2)
113
+ kaminari-activerecord (= 1.2.2)
114
+ kaminari-core (= 1.2.2)
115
+ kaminari-actionview (1.2.2)
116
+ actionview
117
+ kaminari-core (= 1.2.2)
118
+ kaminari-activerecord (1.2.2)
119
+ activerecord
120
+ kaminari-core (= 1.2.2)
121
+ kaminari-core (1.2.2)
122
+ loofah (2.22.0)
123
+ crass (~> 1.0.2)
124
+ nokogiri (>= 1.12.0)
125
+ matrix (0.4.2)
126
+ mini_mime (1.1.5)
127
+ minitest (5.21.2)
128
+ mutex_m (0.2.0)
129
+ nokogiri (1.16.0-aarch64-linux)
130
+ racc (~> 1.4)
131
+ nokogiri (1.16.0-arm-linux)
132
+ racc (~> 1.4)
133
+ nokogiri (1.16.0-arm64-darwin)
134
+ racc (~> 1.4)
135
+ nokogiri (1.16.0-x86-linux)
136
+ racc (~> 1.4)
137
+ nokogiri (1.16.0-x86_64-darwin)
138
+ racc (~> 1.4)
139
+ nokogiri (1.16.0-x86_64-linux)
140
+ racc (~> 1.4)
141
+ parser (3.3.0.5)
142
+ ast (~> 2.4.1)
143
+ racc
144
+ pg (1.5.4)
145
+ psych (5.1.2)
146
+ stringio
147
+ public_suffix (5.0.4)
148
+ racc (1.7.3)
149
+ rack (3.0.8)
150
+ rack-session (2.0.0)
151
+ rack (>= 3.0.0)
152
+ rack-test (2.1.0)
153
+ rack (>= 1.3)
154
+ rackup (2.1.0)
155
+ rack (>= 3)
156
+ webrick (~> 1.8)
157
+ rails-dom-testing (2.2.0)
158
+ activesupport (>= 5.0.0)
159
+ minitest
160
+ nokogiri (>= 1.6)
161
+ rails-html-sanitizer (1.6.0)
162
+ loofah (~> 2.21)
163
+ nokogiri (~> 1.14)
164
+ rails-i18n (7.0.8)
165
+ i18n (>= 0.7, < 2)
166
+ railties (>= 6.0.0, < 8)
167
+ railties (7.1.3)
168
+ actionpack (= 7.1.3)
169
+ activesupport (= 7.1.3)
170
+ irb
171
+ rackup (>= 1.0.0)
172
+ rake (>= 12.2)
173
+ thor (~> 1.0, >= 1.2.2)
174
+ zeitwerk (~> 2.6)
175
+ rainbow (3.1.1)
176
+ rake (13.1.0)
177
+ rdoc (6.6.2)
178
+ psych (>= 4.0.0)
179
+ regexp_parser (2.9.0)
180
+ reline (0.4.2)
181
+ io-console (~> 0.5)
182
+ rexml (3.2.6)
183
+ rspec-core (3.12.2)
184
+ rspec-support (~> 3.12.0)
185
+ rspec-expectations (3.12.3)
186
+ diff-lcs (>= 1.2.0, < 2.0)
187
+ rspec-support (~> 3.12.0)
188
+ rspec-mocks (3.12.6)
189
+ diff-lcs (>= 1.2.0, < 2.0)
190
+ rspec-support (~> 3.12.0)
191
+ rspec-rails (6.1.1)
192
+ actionpack (>= 6.1)
193
+ activesupport (>= 6.1)
194
+ railties (>= 6.1)
195
+ rspec-core (~> 3.12)
196
+ rspec-expectations (~> 3.12)
197
+ rspec-mocks (~> 3.12)
198
+ rspec-support (~> 3.12)
199
+ rspec-support (3.12.1)
200
+ ruby2_keywords (0.0.5)
201
+ rubyzip (2.3.2)
202
+ sassc (2.4.0)
203
+ ffi (~> 1.9)
204
+ sassc-rails (2.1.2)
205
+ railties (>= 4.0.0)
206
+ sassc (>= 2.0)
207
+ sprockets (> 3.0)
208
+ sprockets-rails
209
+ tilt
210
+ selectize-rails (0.12.6)
211
+ selenium-webdriver (4.17.0)
212
+ base64 (~> 0.2)
213
+ rexml (~> 3.2, >= 3.2.5)
214
+ rubyzip (>= 1.2.2, < 3.0)
215
+ websocket (~> 1.0)
216
+ smart_properties (1.17.0)
217
+ sprockets (4.2.1)
218
+ concurrent-ruby (~> 1.0)
219
+ rack (>= 2.2.4, < 4)
220
+ sprockets-rails (3.4.2)
221
+ actionpack (>= 5.2)
222
+ activesupport (>= 5.2)
223
+ sprockets (>= 3.0.0)
224
+ stringio (3.1.0)
225
+ terminal-table (3.0.2)
226
+ unicode-display_width (>= 1.1.1, < 3)
227
+ thor (1.3.0)
228
+ tilt (2.3.0)
229
+ timeout (0.4.1)
230
+ tzinfo (2.0.6)
231
+ concurrent-ruby (~> 1.0)
232
+ unicode-display_width (2.5.0)
233
+ webrick (1.8.1)
234
+ websocket (1.2.10)
235
+ xpath (3.2.0)
236
+ nokogiri (~> 1.8)
237
+ zeitwerk (2.6.12)
238
+
239
+ PLATFORMS
240
+ aarch64-linux
241
+ arm-linux
242
+ arm64-darwin
243
+ x86-linux
244
+ x86_64-darwin
245
+ x86_64-linux
246
+
247
+ DEPENDENCIES
248
+ administrate (= 0.20.0)
249
+ administrate-field-nested_has_many!
250
+ appraisal
251
+ capybara
252
+ factory_bot
253
+ i18n-tasks
254
+ pg
255
+ rake
256
+ rspec-rails
257
+ selenium-webdriver
258
+
259
+ BUNDLED WITH
260
+ 2.5.3
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "pg"
6
+ gem "administrate", git: "https://github.com/thoughtbot/administrate", branch: "main"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,266 @@
1
+ GIT
2
+ remote: https://github.com/thoughtbot/administrate
3
+ revision: aa923813e4ea48dc9f4eb2c748875580ae4c5012
4
+ branch: main
5
+ specs:
6
+ administrate (0.20.1)
7
+ actionpack (>= 6.0, < 8.0)
8
+ actionview (>= 6.0, < 8.0)
9
+ activerecord (>= 6.0, < 8.0)
10
+ jquery-rails (~> 4.6.0)
11
+ kaminari (~> 1.2.2)
12
+ sassc-rails (~> 2.1)
13
+ selectize-rails (~> 0.6)
14
+
15
+ PATH
16
+ remote: ..
17
+ specs:
18
+ administrate-field-nested_has_many (2.1.0)
19
+ administrate (>= 0.19, < 1)
20
+ cocoon (~> 1.2, >= 1.2.11)
21
+
22
+ GEM
23
+ remote: https://rubygems.org/
24
+ specs:
25
+ actionpack (7.1.3)
26
+ actionview (= 7.1.3)
27
+ activesupport (= 7.1.3)
28
+ nokogiri (>= 1.8.5)
29
+ racc
30
+ rack (>= 2.2.4)
31
+ rack-session (>= 1.0.1)
32
+ rack-test (>= 0.6.3)
33
+ rails-dom-testing (~> 2.2)
34
+ rails-html-sanitizer (~> 1.6)
35
+ actionview (7.1.3)
36
+ activesupport (= 7.1.3)
37
+ builder (~> 3.1)
38
+ erubi (~> 1.11)
39
+ rails-dom-testing (~> 2.2)
40
+ rails-html-sanitizer (~> 1.6)
41
+ activemodel (7.1.3)
42
+ activesupport (= 7.1.3)
43
+ activerecord (7.1.3)
44
+ activemodel (= 7.1.3)
45
+ activesupport (= 7.1.3)
46
+ timeout (>= 0.4.0)
47
+ activesupport (7.1.3)
48
+ base64
49
+ bigdecimal
50
+ concurrent-ruby (~> 1.0, >= 1.0.2)
51
+ connection_pool (>= 2.2.5)
52
+ drb
53
+ i18n (>= 1.6, < 2)
54
+ minitest (>= 5.1)
55
+ mutex_m
56
+ tzinfo (~> 2.0)
57
+ addressable (2.8.6)
58
+ public_suffix (>= 2.0.2, < 6.0)
59
+ appraisal (2.5.0)
60
+ bundler
61
+ rake
62
+ thor (>= 0.14.0)
63
+ ast (2.4.2)
64
+ base64 (0.2.0)
65
+ better_html (2.0.2)
66
+ actionview (>= 6.0)
67
+ activesupport (>= 6.0)
68
+ ast (~> 2.0)
69
+ erubi (~> 1.4)
70
+ parser (>= 2.4)
71
+ smart_properties
72
+ bigdecimal (3.1.6)
73
+ builder (3.2.4)
74
+ capybara (3.39.2)
75
+ addressable
76
+ matrix
77
+ mini_mime (>= 0.1.3)
78
+ nokogiri (~> 1.8)
79
+ rack (>= 1.6.0)
80
+ rack-test (>= 0.6.3)
81
+ regexp_parser (>= 1.5, < 3.0)
82
+ xpath (~> 3.2)
83
+ cocoon (1.2.15)
84
+ concurrent-ruby (1.2.3)
85
+ connection_pool (2.4.1)
86
+ crass (1.0.6)
87
+ diff-lcs (1.5.0)
88
+ drb (2.2.0)
89
+ ruby2_keywords
90
+ erubi (1.12.0)
91
+ factory_bot (6.4.5)
92
+ activesupport (>= 5.0.0)
93
+ ffi (1.16.3)
94
+ highline (3.0.1)
95
+ i18n (1.14.1)
96
+ concurrent-ruby (~> 1.0)
97
+ i18n-tasks (1.0.13)
98
+ activesupport (>= 4.0.2)
99
+ ast (>= 2.1.0)
100
+ better_html (>= 1.0, < 3.0)
101
+ erubi
102
+ highline (>= 2.0.0)
103
+ i18n
104
+ parser (>= 3.2.2.1)
105
+ rails-i18n
106
+ rainbow (>= 2.2.2, < 4.0)
107
+ terminal-table (>= 1.5.1)
108
+ io-console (0.7.2)
109
+ irb (1.11.1)
110
+ rdoc
111
+ reline (>= 0.4.2)
112
+ jquery-rails (4.6.0)
113
+ rails-dom-testing (>= 1, < 3)
114
+ railties (>= 4.2.0)
115
+ thor (>= 0.14, < 2.0)
116
+ kaminari (1.2.2)
117
+ activesupport (>= 4.1.0)
118
+ kaminari-actionview (= 1.2.2)
119
+ kaminari-activerecord (= 1.2.2)
120
+ kaminari-core (= 1.2.2)
121
+ kaminari-actionview (1.2.2)
122
+ actionview
123
+ kaminari-core (= 1.2.2)
124
+ kaminari-activerecord (1.2.2)
125
+ activerecord
126
+ kaminari-core (= 1.2.2)
127
+ kaminari-core (1.2.2)
128
+ loofah (2.22.0)
129
+ crass (~> 1.0.2)
130
+ nokogiri (>= 1.12.0)
131
+ matrix (0.4.2)
132
+ mini_mime (1.1.5)
133
+ minitest (5.21.2)
134
+ mutex_m (0.2.0)
135
+ nokogiri (1.16.0-aarch64-linux)
136
+ racc (~> 1.4)
137
+ nokogiri (1.16.0-arm-linux)
138
+ racc (~> 1.4)
139
+ nokogiri (1.16.0-arm64-darwin)
140
+ racc (~> 1.4)
141
+ nokogiri (1.16.0-x86-linux)
142
+ racc (~> 1.4)
143
+ nokogiri (1.16.0-x86_64-darwin)
144
+ racc (~> 1.4)
145
+ nokogiri (1.16.0-x86_64-linux)
146
+ racc (~> 1.4)
147
+ parser (3.3.0.5)
148
+ ast (~> 2.4.1)
149
+ racc
150
+ pg (1.5.4)
151
+ psych (5.1.2)
152
+ stringio
153
+ public_suffix (5.0.4)
154
+ racc (1.7.3)
155
+ rack (3.0.8)
156
+ rack-session (2.0.0)
157
+ rack (>= 3.0.0)
158
+ rack-test (2.1.0)
159
+ rack (>= 1.3)
160
+ rackup (2.1.0)
161
+ rack (>= 3)
162
+ webrick (~> 1.8)
163
+ rails-dom-testing (2.2.0)
164
+ activesupport (>= 5.0.0)
165
+ minitest
166
+ nokogiri (>= 1.6)
167
+ rails-html-sanitizer (1.6.0)
168
+ loofah (~> 2.21)
169
+ nokogiri (~> 1.14)
170
+ rails-i18n (7.0.8)
171
+ i18n (>= 0.7, < 2)
172
+ railties (>= 6.0.0, < 8)
173
+ railties (7.1.3)
174
+ actionpack (= 7.1.3)
175
+ activesupport (= 7.1.3)
176
+ irb
177
+ rackup (>= 1.0.0)
178
+ rake (>= 12.2)
179
+ thor (~> 1.0, >= 1.2.2)
180
+ zeitwerk (~> 2.6)
181
+ rainbow (3.1.1)
182
+ rake (13.1.0)
183
+ rdoc (6.6.2)
184
+ psych (>= 4.0.0)
185
+ regexp_parser (2.9.0)
186
+ reline (0.4.2)
187
+ io-console (~> 0.5)
188
+ rexml (3.2.6)
189
+ rspec-core (3.12.2)
190
+ rspec-support (~> 3.12.0)
191
+ rspec-expectations (3.12.3)
192
+ diff-lcs (>= 1.2.0, < 2.0)
193
+ rspec-support (~> 3.12.0)
194
+ rspec-mocks (3.12.6)
195
+ diff-lcs (>= 1.2.0, < 2.0)
196
+ rspec-support (~> 3.12.0)
197
+ rspec-rails (6.1.1)
198
+ actionpack (>= 6.1)
199
+ activesupport (>= 6.1)
200
+ railties (>= 6.1)
201
+ rspec-core (~> 3.12)
202
+ rspec-expectations (~> 3.12)
203
+ rspec-mocks (~> 3.12)
204
+ rspec-support (~> 3.12)
205
+ rspec-support (3.12.1)
206
+ ruby2_keywords (0.0.5)
207
+ rubyzip (2.3.2)
208
+ sassc (2.4.0)
209
+ ffi (~> 1.9)
210
+ sassc-rails (2.1.2)
211
+ railties (>= 4.0.0)
212
+ sassc (>= 2.0)
213
+ sprockets (> 3.0)
214
+ sprockets-rails
215
+ tilt
216
+ selectize-rails (0.12.6)
217
+ selenium-webdriver (4.17.0)
218
+ base64 (~> 0.2)
219
+ rexml (~> 3.2, >= 3.2.5)
220
+ rubyzip (>= 1.2.2, < 3.0)
221
+ websocket (~> 1.0)
222
+ smart_properties (1.17.0)
223
+ sprockets (4.2.1)
224
+ concurrent-ruby (~> 1.0)
225
+ rack (>= 2.2.4, < 4)
226
+ sprockets-rails (3.4.2)
227
+ actionpack (>= 5.2)
228
+ activesupport (>= 5.2)
229
+ sprockets (>= 3.0.0)
230
+ stringio (3.1.0)
231
+ terminal-table (3.0.2)
232
+ unicode-display_width (>= 1.1.1, < 3)
233
+ thor (1.3.0)
234
+ tilt (2.3.0)
235
+ timeout (0.4.1)
236
+ tzinfo (2.0.6)
237
+ concurrent-ruby (~> 1.0)
238
+ unicode-display_width (2.5.0)
239
+ webrick (1.8.1)
240
+ websocket (1.2.10)
241
+ xpath (3.2.0)
242
+ nokogiri (~> 1.8)
243
+ zeitwerk (2.6.12)
244
+
245
+ PLATFORMS
246
+ aarch64-linux
247
+ arm-linux
248
+ arm64-darwin
249
+ x86-linux
250
+ x86_64-darwin
251
+ x86_64-linux
252
+
253
+ DEPENDENCIES
254
+ administrate!
255
+ administrate-field-nested_has_many!
256
+ appraisal
257
+ capybara
258
+ factory_bot
259
+ i18n-tasks
260
+ pg
261
+ rake
262
+ rspec-rails
263
+ selenium-webdriver
264
+
265
+ BUNDLED WITH
266
+ 2.5.3
@@ -27,7 +27,13 @@ module Administrate
27
27
  DEFAULT_ATTRIBUTES = %i(id _destroy).freeze
28
28
 
29
29
  def nested_fields
30
- associated_form.attributes.reject do |nested_field|
30
+ all_fields = if Administrate::VERSION >= "0.20.0"
31
+ associated_form.attributes.values.flatten
32
+ else
33
+ associated_form.attributes
34
+ end
35
+
36
+ all_fields.reject do |nested_field|
31
37
  skipped_fields.include?(nested_field.attribute)
32
38
  end
33
39
  end
@@ -10,22 +10,21 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 2018_09_07_104703) do
14
-
13
+ ActiveRecord::Schema[7.1].define(version: 2018_09_07_104703) do
15
14
  # These are extensions that must be enabled in order to support this database
16
15
  enable_extension "plpgsql"
17
16
 
18
17
  create_table "schools", force: :cascade do |t|
19
18
  t.string "name"
20
- t.datetime "created_at", null: false
21
- t.datetime "updated_at", null: false
19
+ t.datetime "created_at", precision: nil, null: false
20
+ t.datetime "updated_at", precision: nil, null: false
22
21
  end
23
22
 
24
23
  create_table "students", force: :cascade do |t|
25
24
  t.string "name"
26
25
  t.bigint "school_id"
27
- t.datetime "created_at", null: false
28
- t.datetime "updated_at", null: false
26
+ t.datetime "created_at", precision: nil, null: false
27
+ t.datetime "updated_at", precision: nil, null: false
29
28
  t.index ["school_id"], name: "index_students_on_school_id"
30
29
  end
31
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate-field-nested_has_many
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Charlton
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-01-25 00:00:00.000000000 Z
12
+ date: 2024-03-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: administrate
@@ -17,20 +17,20 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '0.15'
20
+ version: '0.19'
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
- version: 0.20.0
23
+ version: '1'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
- version: '0.15'
30
+ version: '0.19'
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.20.0
33
+ version: '1'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: cocoon
36
36
  requirement: !ruby/object:Gem::Requirement
@@ -189,6 +189,10 @@ files:
189
189
  - config/locales/administrate-field-nested_has_many.ru.yml
190
190
  - gemfiles/administrate_0.19.gemfile
191
191
  - gemfiles/administrate_0.19.gemfile.lock
192
+ - gemfiles/administrate_0.20.gemfile
193
+ - gemfiles/administrate_0.20.gemfile.lock
194
+ - gemfiles/administrate_main.gemfile
195
+ - gemfiles/administrate_main.gemfile.lock
192
196
  - lib/administrate/field/nested_has_many.rb
193
197
  - spec/dummy/.gitignore
194
198
  - spec/dummy/Rakefile