active_model_serializers 0.10.9 → 0.10.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +41 -2
- data/README.md +18 -19
- data/lib/action_controller/serialization.rb +9 -1
- data/lib/active_model/serializer/collection_serializer.rb +11 -2
- data/lib/active_model/serializer/concerns/caching.rb +2 -1
- data/lib/active_model/serializer/fieldset.rb +1 -1
- data/lib/active_model/serializer/reflection.rb +4 -4
- data/lib/active_model/serializer/version.rb +1 -1
- data/lib/active_model/serializer.rb +13 -4
- data/lib/active_model_serializers/adapter/attributes.rb +21 -0
- data/lib/active_model_serializers/adapter/json_api/pagination_links.rb +5 -1
- data/lib/active_model_serializers/adapter/json_api/resource_identifier.rb +1 -1
- data/lib/active_model_serializers/model/caching.rb +26 -0
- metadata +20 -292
- data/.github/ISSUE_TEMPLATE.md +0 -29
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -15
- data/.gitignore +0 -35
- data/.rubocop.yml +0 -109
- data/.simplecov +0 -110
- data/.travis.yml +0 -63
- data/CODE_OF_CONDUCT.md +0 -74
- data/CONTRIBUTING.md +0 -105
- data/Gemfile +0 -74
- data/Rakefile +0 -76
- data/active_model_serializers.gemspec +0 -64
- data/appveyor.yml +0 -28
- data/bin/bench +0 -171
- data/bin/bench_regression +0 -316
- data/bin/rubocop +0 -38
- data/bin/serve_benchmark +0 -39
- data/docs/README.md +0 -41
- data/docs/STYLE.md +0 -58
- data/docs/general/adapters.md +0 -269
- data/docs/general/caching.md +0 -58
- data/docs/general/configuration_options.md +0 -185
- data/docs/general/deserialization.md +0 -100
- data/docs/general/fields.md +0 -31
- data/docs/general/getting_started.md +0 -133
- data/docs/general/instrumentation.md +0 -40
- data/docs/general/key_transforms.md +0 -40
- data/docs/general/logging.md +0 -21
- data/docs/general/rendering.md +0 -293
- data/docs/general/serializers.md +0 -495
- data/docs/how-open-source-maintained.jpg +0 -0
- data/docs/howto/add_pagination_links.md +0 -138
- data/docs/howto/add_relationship_links.md +0 -140
- data/docs/howto/add_root_key.md +0 -62
- data/docs/howto/grape_integration.md +0 -42
- data/docs/howto/outside_controller_use.md +0 -66
- data/docs/howto/passing_arbitrary_options.md +0 -27
- data/docs/howto/serialize_poro.md +0 -73
- data/docs/howto/test.md +0 -154
- data/docs/howto/upgrade_from_0_8_to_0_10.md +0 -265
- data/docs/integrations/ember-and-json-api.md +0 -147
- data/docs/integrations/grape.md +0 -19
- data/docs/jsonapi/errors.md +0 -56
- data/docs/jsonapi/schema/schema.json +0 -366
- data/docs/jsonapi/schema.md +0 -151
- data/docs/rfcs/0000-namespace.md +0 -106
- data/docs/rfcs/template.md +0 -15
- data/test/action_controller/adapter_selector_test.rb +0 -64
- data/test/action_controller/explicit_serializer_test.rb +0 -137
- data/test/action_controller/json/include_test.rb +0 -248
- data/test/action_controller/json_api/deserialization_test.rb +0 -114
- data/test/action_controller/json_api/errors_test.rb +0 -42
- data/test/action_controller/json_api/fields_test.rb +0 -68
- data/test/action_controller/json_api/linked_test.rb +0 -204
- data/test/action_controller/json_api/pagination_test.rb +0 -126
- data/test/action_controller/json_api/transform_test.rb +0 -191
- data/test/action_controller/lookup_proc_test.rb +0 -51
- data/test/action_controller/namespace_lookup_test.rb +0 -234
- data/test/action_controller/serialization_scope_name_test.rb +0 -237
- data/test/action_controller/serialization_test.rb +0 -480
- data/test/active_model_serializers/adapter_for_test.rb +0 -210
- data/test/active_model_serializers/json_pointer_test.rb +0 -24
- data/test/active_model_serializers/logging_test.rb +0 -79
- data/test/active_model_serializers/model_test.rb +0 -144
- data/test/active_model_serializers/railtie_test_isolated.rb +0 -70
- data/test/active_model_serializers/register_jsonapi_renderer_test_isolated.rb +0 -163
- data/test/active_model_serializers/serialization_context_test_isolated.rb +0 -73
- data/test/active_model_serializers/test/schema_test.rb +0 -133
- data/test/active_model_serializers/test/serializer_test.rb +0 -64
- data/test/active_record_test.rb +0 -11
- data/test/adapter/attributes_test.rb +0 -42
- data/test/adapter/deprecation_test.rb +0 -102
- data/test/adapter/json/belongs_to_test.rb +0 -47
- data/test/adapter/json/collection_test.rb +0 -106
- data/test/adapter/json/has_many_test.rb +0 -55
- data/test/adapter/json/transform_test.rb +0 -95
- data/test/adapter/json_api/belongs_to_test.rb +0 -157
- data/test/adapter/json_api/collection_test.rb +0 -98
- data/test/adapter/json_api/errors_test.rb +0 -78
- data/test/adapter/json_api/fields_test.rb +0 -98
- data/test/adapter/json_api/has_many_explicit_serializer_test.rb +0 -98
- data/test/adapter/json_api/has_many_test.rb +0 -175
- data/test/adapter/json_api/has_one_test.rb +0 -82
- data/test/adapter/json_api/include_data_if_sideloaded_test.rb +0 -215
- data/test/adapter/json_api/json_api_test.rb +0 -35
- data/test/adapter/json_api/linked_test.rb +0 -415
- data/test/adapter/json_api/links_test.rb +0 -112
- data/test/adapter/json_api/pagination_links_test.rb +0 -208
- data/test/adapter/json_api/parse_test.rb +0 -139
- data/test/adapter/json_api/relationship_test.rb +0 -399
- data/test/adapter/json_api/resource_meta_test.rb +0 -102
- data/test/adapter/json_api/toplevel_jsonapi_test.rb +0 -84
- data/test/adapter/json_api/transform_test.rb +0 -514
- data/test/adapter/json_api/type_test.rb +0 -195
- data/test/adapter/json_test.rb +0 -48
- data/test/adapter/null_test.rb +0 -24
- data/test/adapter/polymorphic_test.rb +0 -220
- data/test/adapter_test.rb +0 -69
- data/test/array_serializer_test.rb +0 -24
- data/test/benchmark/app.rb +0 -67
- data/test/benchmark/benchmarking_support.rb +0 -69
- data/test/benchmark/bm_active_record.rb +0 -83
- data/test/benchmark/bm_adapter.rb +0 -40
- data/test/benchmark/bm_caching.rb +0 -121
- data/test/benchmark/bm_lookup_chain.rb +0 -85
- data/test/benchmark/bm_transform.rb +0 -47
- data/test/benchmark/config.ru +0 -3
- data/test/benchmark/controllers.rb +0 -85
- data/test/benchmark/fixtures.rb +0 -221
- data/test/cache_test.rb +0 -717
- data/test/collection_serializer_test.rb +0 -129
- data/test/fixtures/active_record.rb +0 -115
- data/test/fixtures/poro.rb +0 -227
- data/test/generators/scaffold_controller_generator_test.rb +0 -26
- data/test/generators/serializer_generator_test.rb +0 -77
- data/test/grape_test.rb +0 -198
- data/test/lint_test.rb +0 -51
- data/test/logger_test.rb +0 -22
- data/test/poro_test.rb +0 -11
- data/test/serializable_resource_test.rb +0 -81
- data/test/serializers/association_macros_test.rb +0 -39
- data/test/serializers/associations_test.rb +0 -520
- data/test/serializers/attribute_test.rb +0 -155
- data/test/serializers/attributes_test.rb +0 -54
- data/test/serializers/caching_configuration_test_isolated.rb +0 -172
- data/test/serializers/configuration_test.rb +0 -34
- data/test/serializers/fieldset_test.rb +0 -16
- data/test/serializers/meta_test.rb +0 -204
- data/test/serializers/options_test.rb +0 -34
- data/test/serializers/read_attribute_for_serialization_test.rb +0 -81
- data/test/serializers/reflection_test.rb +0 -481
- data/test/serializers/root_test.rb +0 -23
- data/test/serializers/serialization_test.rb +0 -57
- data/test/serializers/serializer_for_test.rb +0 -138
- data/test/serializers/serializer_for_with_namespace_test.rb +0 -90
- data/test/support/custom_schemas/active_model_serializers/test/schema_test/my/index.json +0 -6
- data/test/support/isolated_unit.rb +0 -86
- data/test/support/rails5_shims.rb +0 -55
- data/test/support/rails_app.rb +0 -40
- data/test/support/schemas/active_model_serializers/test/schema_test/my/index.json +0 -6
- data/test/support/schemas/active_model_serializers/test/schema_test/my/show.json +0 -6
- data/test/support/schemas/custom/show.json +0 -7
- data/test/support/schemas/hyper_schema.json +0 -93
- data/test/support/schemas/render_using_json_api.json +0 -43
- data/test/support/schemas/simple_json_pointers.json +0 -10
- data/test/support/serialization_testing.rb +0 -81
- data/test/test_helper.rb +0 -72
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_model_serializers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Klabnik
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '4.1'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '7.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '4.1'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '7.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: actionpack
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: '4.1'
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '7.1'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,7 +49,7 @@ dependencies:
|
|
49
49
|
version: '4.1'
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '7.1'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: railties
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,7 @@ dependencies:
|
|
59
59
|
version: '4.1'
|
60
60
|
- - "<"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
62
|
+
version: '7.1'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -69,7 +69,7 @@ dependencies:
|
|
69
69
|
version: '4.1'
|
70
70
|
- - "<"
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version: '
|
72
|
+
version: '7.1'
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: minitest
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
@@ -133,7 +133,7 @@ dependencies:
|
|
133
133
|
version: '4.1'
|
134
134
|
- - "<"
|
135
135
|
- !ruby/object:Gem::Version
|
136
|
-
version: '
|
136
|
+
version: '7.1'
|
137
137
|
type: :development
|
138
138
|
prerelease: false
|
139
139
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -143,7 +143,7 @@ dependencies:
|
|
143
143
|
version: '4.1'
|
144
144
|
- - "<"
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: '
|
146
|
+
version: '7.1'
|
147
147
|
- !ruby/object:Gem::Dependency
|
148
148
|
name: kaminari
|
149
149
|
requirement: !ruby/object:Gem::Requirement
|
@@ -182,30 +182,16 @@ dependencies:
|
|
182
182
|
name: bundler
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- - "
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: '1.6'
|
188
|
-
type: :development
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - "~>"
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: '1.6'
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
name: simplecov
|
197
|
-
requirement: !ruby/object:Gem::Requirement
|
198
|
-
requirements:
|
199
|
-
- - "~>"
|
185
|
+
- - ">="
|
200
186
|
- !ruby/object:Gem::Version
|
201
|
-
version: '0
|
187
|
+
version: '0'
|
202
188
|
type: :development
|
203
189
|
prerelease: false
|
204
190
|
version_requirements: !ruby/object:Gem::Requirement
|
205
191
|
requirements:
|
206
|
-
- - "
|
192
|
+
- - ">="
|
207
193
|
- !ruby/object:Gem::Version
|
208
|
-
version: '0
|
194
|
+
version: '0'
|
209
195
|
- !ruby/object:Gem::Dependency
|
210
196
|
name: timecop
|
211
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -227,9 +213,6 @@ dependencies:
|
|
227
213
|
- - ">="
|
228
214
|
- !ruby/object:Gem::Version
|
229
215
|
version: '0.13'
|
230
|
-
- - "<"
|
231
|
-
- !ruby/object:Gem::Version
|
232
|
-
version: 0.19.1
|
233
216
|
type: :development
|
234
217
|
prerelease: false
|
235
218
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -237,9 +220,6 @@ dependencies:
|
|
237
220
|
- - ">="
|
238
221
|
- !ruby/object:Gem::Version
|
239
222
|
version: '0.13'
|
240
|
-
- - "<"
|
241
|
-
- !ruby/object:Gem::Version
|
242
|
-
version: 0.19.1
|
243
223
|
- !ruby/object:Gem::Dependency
|
244
224
|
name: json_schema
|
245
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -261,9 +241,6 @@ dependencies:
|
|
261
241
|
- - ">="
|
262
242
|
- !ruby/object:Gem::Version
|
263
243
|
version: '10.0'
|
264
|
-
- - "<"
|
265
|
-
- !ruby/object:Gem::Version
|
266
|
-
version: '12.0'
|
267
244
|
type: :development
|
268
245
|
prerelease: false
|
269
246
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -271,9 +248,6 @@ dependencies:
|
|
271
248
|
- - ">="
|
272
249
|
- !ruby/object:Gem::Version
|
273
250
|
version: '10.0'
|
274
|
-
- - "<"
|
275
|
-
- !ruby/object:Gem::Version
|
276
|
-
version: '12.0'
|
277
251
|
description: ActiveModel::Serializers allows you to generate your JSON in an object-oriented
|
278
252
|
and convention-driven manner.
|
279
253
|
email:
|
@@ -282,55 +256,9 @@ executables: []
|
|
282
256
|
extensions: []
|
283
257
|
extra_rdoc_files: []
|
284
258
|
files:
|
285
|
-
- ".github/ISSUE_TEMPLATE.md"
|
286
|
-
- ".github/PULL_REQUEST_TEMPLATE.md"
|
287
|
-
- ".gitignore"
|
288
|
-
- ".rubocop.yml"
|
289
|
-
- ".simplecov"
|
290
|
-
- ".travis.yml"
|
291
259
|
- CHANGELOG.md
|
292
|
-
- CODE_OF_CONDUCT.md
|
293
|
-
- CONTRIBUTING.md
|
294
|
-
- Gemfile
|
295
260
|
- MIT-LICENSE
|
296
261
|
- README.md
|
297
|
-
- Rakefile
|
298
|
-
- active_model_serializers.gemspec
|
299
|
-
- appveyor.yml
|
300
|
-
- bin/bench
|
301
|
-
- bin/bench_regression
|
302
|
-
- bin/rubocop
|
303
|
-
- bin/serve_benchmark
|
304
|
-
- docs/README.md
|
305
|
-
- docs/STYLE.md
|
306
|
-
- docs/general/adapters.md
|
307
|
-
- docs/general/caching.md
|
308
|
-
- docs/general/configuration_options.md
|
309
|
-
- docs/general/deserialization.md
|
310
|
-
- docs/general/fields.md
|
311
|
-
- docs/general/getting_started.md
|
312
|
-
- docs/general/instrumentation.md
|
313
|
-
- docs/general/key_transforms.md
|
314
|
-
- docs/general/logging.md
|
315
|
-
- docs/general/rendering.md
|
316
|
-
- docs/general/serializers.md
|
317
|
-
- docs/how-open-source-maintained.jpg
|
318
|
-
- docs/howto/add_pagination_links.md
|
319
|
-
- docs/howto/add_relationship_links.md
|
320
|
-
- docs/howto/add_root_key.md
|
321
|
-
- docs/howto/grape_integration.md
|
322
|
-
- docs/howto/outside_controller_use.md
|
323
|
-
- docs/howto/passing_arbitrary_options.md
|
324
|
-
- docs/howto/serialize_poro.md
|
325
|
-
- docs/howto/test.md
|
326
|
-
- docs/howto/upgrade_from_0_8_to_0_10.md
|
327
|
-
- docs/integrations/ember-and-json-api.md
|
328
|
-
- docs/integrations/grape.md
|
329
|
-
- docs/jsonapi/errors.md
|
330
|
-
- docs/jsonapi/schema.md
|
331
|
-
- docs/jsonapi/schema/schema.json
|
332
|
-
- docs/rfcs/0000-namespace.md
|
333
|
-
- docs/rfcs/template.md
|
334
262
|
- lib/action_controller/serialization.rb
|
335
263
|
- lib/active_model/serializable_resource.rb
|
336
264
|
- lib/active_model/serializer.rb
|
@@ -380,6 +308,7 @@ files:
|
|
380
308
|
- lib/active_model_serializers/logging.rb
|
381
309
|
- lib/active_model_serializers/lookup_chain.rb
|
382
310
|
- lib/active_model_serializers/model.rb
|
311
|
+
- lib/active_model_serializers/model/caching.rb
|
383
312
|
- lib/active_model_serializers/railtie.rb
|
384
313
|
- lib/active_model_serializers/register_jsonapi_renderer.rb
|
385
314
|
- lib/active_model_serializers/serializable_resource.rb
|
@@ -395,111 +324,11 @@ files:
|
|
395
324
|
- lib/grape/formatters/active_model_serializers.rb
|
396
325
|
- lib/grape/helpers/active_model_serializers.rb
|
397
326
|
- lib/tasks/rubocop.rake
|
398
|
-
- test/action_controller/adapter_selector_test.rb
|
399
|
-
- test/action_controller/explicit_serializer_test.rb
|
400
|
-
- test/action_controller/json/include_test.rb
|
401
|
-
- test/action_controller/json_api/deserialization_test.rb
|
402
|
-
- test/action_controller/json_api/errors_test.rb
|
403
|
-
- test/action_controller/json_api/fields_test.rb
|
404
|
-
- test/action_controller/json_api/linked_test.rb
|
405
|
-
- test/action_controller/json_api/pagination_test.rb
|
406
|
-
- test/action_controller/json_api/transform_test.rb
|
407
|
-
- test/action_controller/lookup_proc_test.rb
|
408
|
-
- test/action_controller/namespace_lookup_test.rb
|
409
|
-
- test/action_controller/serialization_scope_name_test.rb
|
410
|
-
- test/action_controller/serialization_test.rb
|
411
|
-
- test/active_model_serializers/adapter_for_test.rb
|
412
|
-
- test/active_model_serializers/json_pointer_test.rb
|
413
|
-
- test/active_model_serializers/logging_test.rb
|
414
|
-
- test/active_model_serializers/model_test.rb
|
415
|
-
- test/active_model_serializers/railtie_test_isolated.rb
|
416
|
-
- test/active_model_serializers/register_jsonapi_renderer_test_isolated.rb
|
417
|
-
- test/active_model_serializers/serialization_context_test_isolated.rb
|
418
|
-
- test/active_model_serializers/test/schema_test.rb
|
419
|
-
- test/active_model_serializers/test/serializer_test.rb
|
420
|
-
- test/active_record_test.rb
|
421
|
-
- test/adapter/attributes_test.rb
|
422
|
-
- test/adapter/deprecation_test.rb
|
423
|
-
- test/adapter/json/belongs_to_test.rb
|
424
|
-
- test/adapter/json/collection_test.rb
|
425
|
-
- test/adapter/json/has_many_test.rb
|
426
|
-
- test/adapter/json/transform_test.rb
|
427
|
-
- test/adapter/json_api/belongs_to_test.rb
|
428
|
-
- test/adapter/json_api/collection_test.rb
|
429
|
-
- test/adapter/json_api/errors_test.rb
|
430
|
-
- test/adapter/json_api/fields_test.rb
|
431
|
-
- test/adapter/json_api/has_many_explicit_serializer_test.rb
|
432
|
-
- test/adapter/json_api/has_many_test.rb
|
433
|
-
- test/adapter/json_api/has_one_test.rb
|
434
|
-
- test/adapter/json_api/include_data_if_sideloaded_test.rb
|
435
|
-
- test/adapter/json_api/json_api_test.rb
|
436
|
-
- test/adapter/json_api/linked_test.rb
|
437
|
-
- test/adapter/json_api/links_test.rb
|
438
|
-
- test/adapter/json_api/pagination_links_test.rb
|
439
|
-
- test/adapter/json_api/parse_test.rb
|
440
|
-
- test/adapter/json_api/relationship_test.rb
|
441
|
-
- test/adapter/json_api/resource_meta_test.rb
|
442
|
-
- test/adapter/json_api/toplevel_jsonapi_test.rb
|
443
|
-
- test/adapter/json_api/transform_test.rb
|
444
|
-
- test/adapter/json_api/type_test.rb
|
445
|
-
- test/adapter/json_test.rb
|
446
|
-
- test/adapter/null_test.rb
|
447
|
-
- test/adapter/polymorphic_test.rb
|
448
|
-
- test/adapter_test.rb
|
449
|
-
- test/array_serializer_test.rb
|
450
|
-
- test/benchmark/app.rb
|
451
|
-
- test/benchmark/benchmarking_support.rb
|
452
|
-
- test/benchmark/bm_active_record.rb
|
453
|
-
- test/benchmark/bm_adapter.rb
|
454
|
-
- test/benchmark/bm_caching.rb
|
455
|
-
- test/benchmark/bm_lookup_chain.rb
|
456
|
-
- test/benchmark/bm_transform.rb
|
457
|
-
- test/benchmark/config.ru
|
458
|
-
- test/benchmark/controllers.rb
|
459
|
-
- test/benchmark/fixtures.rb
|
460
|
-
- test/cache_test.rb
|
461
|
-
- test/collection_serializer_test.rb
|
462
|
-
- test/fixtures/active_record.rb
|
463
|
-
- test/fixtures/poro.rb
|
464
|
-
- test/generators/scaffold_controller_generator_test.rb
|
465
|
-
- test/generators/serializer_generator_test.rb
|
466
|
-
- test/grape_test.rb
|
467
|
-
- test/lint_test.rb
|
468
|
-
- test/logger_test.rb
|
469
|
-
- test/poro_test.rb
|
470
|
-
- test/serializable_resource_test.rb
|
471
|
-
- test/serializers/association_macros_test.rb
|
472
|
-
- test/serializers/associations_test.rb
|
473
|
-
- test/serializers/attribute_test.rb
|
474
|
-
- test/serializers/attributes_test.rb
|
475
|
-
- test/serializers/caching_configuration_test_isolated.rb
|
476
|
-
- test/serializers/configuration_test.rb
|
477
|
-
- test/serializers/fieldset_test.rb
|
478
|
-
- test/serializers/meta_test.rb
|
479
|
-
- test/serializers/options_test.rb
|
480
|
-
- test/serializers/read_attribute_for_serialization_test.rb
|
481
|
-
- test/serializers/reflection_test.rb
|
482
|
-
- test/serializers/root_test.rb
|
483
|
-
- test/serializers/serialization_test.rb
|
484
|
-
- test/serializers/serializer_for_test.rb
|
485
|
-
- test/serializers/serializer_for_with_namespace_test.rb
|
486
|
-
- test/support/custom_schemas/active_model_serializers/test/schema_test/my/index.json
|
487
|
-
- test/support/isolated_unit.rb
|
488
|
-
- test/support/rails5_shims.rb
|
489
|
-
- test/support/rails_app.rb
|
490
|
-
- test/support/schemas/active_model_serializers/test/schema_test/my/index.json
|
491
|
-
- test/support/schemas/active_model_serializers/test/schema_test/my/show.json
|
492
|
-
- test/support/schemas/custom/show.json
|
493
|
-
- test/support/schemas/hyper_schema.json
|
494
|
-
- test/support/schemas/render_using_json_api.json
|
495
|
-
- test/support/schemas/simple_json_pointers.json
|
496
|
-
- test/support/serialization_testing.rb
|
497
|
-
- test/test_helper.rb
|
498
327
|
homepage: https://github.com/rails-api/active_model_serializers
|
499
328
|
licenses:
|
500
329
|
- MIT
|
501
330
|
metadata: {}
|
502
|
-
post_install_message:
|
331
|
+
post_install_message:
|
503
332
|
rdoc_options: []
|
504
333
|
require_paths:
|
505
334
|
- lib
|
@@ -514,109 +343,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
514
343
|
- !ruby/object:Gem::Version
|
515
344
|
version: '0'
|
516
345
|
requirements: []
|
517
|
-
|
518
|
-
|
519
|
-
signing_key:
|
346
|
+
rubygems_version: 3.1.4
|
347
|
+
signing_key:
|
520
348
|
specification_version: 4
|
521
349
|
summary: Conventions-based JSON generation for Rails.
|
522
|
-
test_files:
|
523
|
-
- test/action_controller/adapter_selector_test.rb
|
524
|
-
- test/action_controller/explicit_serializer_test.rb
|
525
|
-
- test/action_controller/json/include_test.rb
|
526
|
-
- test/action_controller/json_api/deserialization_test.rb
|
527
|
-
- test/action_controller/json_api/errors_test.rb
|
528
|
-
- test/action_controller/json_api/fields_test.rb
|
529
|
-
- test/action_controller/json_api/linked_test.rb
|
530
|
-
- test/action_controller/json_api/pagination_test.rb
|
531
|
-
- test/action_controller/json_api/transform_test.rb
|
532
|
-
- test/action_controller/lookup_proc_test.rb
|
533
|
-
- test/action_controller/namespace_lookup_test.rb
|
534
|
-
- test/action_controller/serialization_scope_name_test.rb
|
535
|
-
- test/action_controller/serialization_test.rb
|
536
|
-
- test/active_model_serializers/adapter_for_test.rb
|
537
|
-
- test/active_model_serializers/json_pointer_test.rb
|
538
|
-
- test/active_model_serializers/logging_test.rb
|
539
|
-
- test/active_model_serializers/model_test.rb
|
540
|
-
- test/active_model_serializers/railtie_test_isolated.rb
|
541
|
-
- test/active_model_serializers/register_jsonapi_renderer_test_isolated.rb
|
542
|
-
- test/active_model_serializers/serialization_context_test_isolated.rb
|
543
|
-
- test/active_model_serializers/test/schema_test.rb
|
544
|
-
- test/active_model_serializers/test/serializer_test.rb
|
545
|
-
- test/active_record_test.rb
|
546
|
-
- test/adapter/attributes_test.rb
|
547
|
-
- test/adapter/deprecation_test.rb
|
548
|
-
- test/adapter/json/belongs_to_test.rb
|
549
|
-
- test/adapter/json/collection_test.rb
|
550
|
-
- test/adapter/json/has_many_test.rb
|
551
|
-
- test/adapter/json/transform_test.rb
|
552
|
-
- test/adapter/json_api/belongs_to_test.rb
|
553
|
-
- test/adapter/json_api/collection_test.rb
|
554
|
-
- test/adapter/json_api/errors_test.rb
|
555
|
-
- test/adapter/json_api/fields_test.rb
|
556
|
-
- test/adapter/json_api/has_many_explicit_serializer_test.rb
|
557
|
-
- test/adapter/json_api/has_many_test.rb
|
558
|
-
- test/adapter/json_api/has_one_test.rb
|
559
|
-
- test/adapter/json_api/include_data_if_sideloaded_test.rb
|
560
|
-
- test/adapter/json_api/json_api_test.rb
|
561
|
-
- test/adapter/json_api/linked_test.rb
|
562
|
-
- test/adapter/json_api/links_test.rb
|
563
|
-
- test/adapter/json_api/pagination_links_test.rb
|
564
|
-
- test/adapter/json_api/parse_test.rb
|
565
|
-
- test/adapter/json_api/relationship_test.rb
|
566
|
-
- test/adapter/json_api/resource_meta_test.rb
|
567
|
-
- test/adapter/json_api/toplevel_jsonapi_test.rb
|
568
|
-
- test/adapter/json_api/transform_test.rb
|
569
|
-
- test/adapter/json_api/type_test.rb
|
570
|
-
- test/adapter/json_test.rb
|
571
|
-
- test/adapter/null_test.rb
|
572
|
-
- test/adapter/polymorphic_test.rb
|
573
|
-
- test/adapter_test.rb
|
574
|
-
- test/array_serializer_test.rb
|
575
|
-
- test/benchmark/app.rb
|
576
|
-
- test/benchmark/benchmarking_support.rb
|
577
|
-
- test/benchmark/bm_active_record.rb
|
578
|
-
- test/benchmark/bm_adapter.rb
|
579
|
-
- test/benchmark/bm_caching.rb
|
580
|
-
- test/benchmark/bm_lookup_chain.rb
|
581
|
-
- test/benchmark/bm_transform.rb
|
582
|
-
- test/benchmark/config.ru
|
583
|
-
- test/benchmark/controllers.rb
|
584
|
-
- test/benchmark/fixtures.rb
|
585
|
-
- test/cache_test.rb
|
586
|
-
- test/collection_serializer_test.rb
|
587
|
-
- test/fixtures/active_record.rb
|
588
|
-
- test/fixtures/poro.rb
|
589
|
-
- test/generators/scaffold_controller_generator_test.rb
|
590
|
-
- test/generators/serializer_generator_test.rb
|
591
|
-
- test/grape_test.rb
|
592
|
-
- test/lint_test.rb
|
593
|
-
- test/logger_test.rb
|
594
|
-
- test/poro_test.rb
|
595
|
-
- test/serializable_resource_test.rb
|
596
|
-
- test/serializers/association_macros_test.rb
|
597
|
-
- test/serializers/associations_test.rb
|
598
|
-
- test/serializers/attribute_test.rb
|
599
|
-
- test/serializers/attributes_test.rb
|
600
|
-
- test/serializers/caching_configuration_test_isolated.rb
|
601
|
-
- test/serializers/configuration_test.rb
|
602
|
-
- test/serializers/fieldset_test.rb
|
603
|
-
- test/serializers/meta_test.rb
|
604
|
-
- test/serializers/options_test.rb
|
605
|
-
- test/serializers/read_attribute_for_serialization_test.rb
|
606
|
-
- test/serializers/reflection_test.rb
|
607
|
-
- test/serializers/root_test.rb
|
608
|
-
- test/serializers/serialization_test.rb
|
609
|
-
- test/serializers/serializer_for_test.rb
|
610
|
-
- test/serializers/serializer_for_with_namespace_test.rb
|
611
|
-
- test/support/custom_schemas/active_model_serializers/test/schema_test/my/index.json
|
612
|
-
- test/support/isolated_unit.rb
|
613
|
-
- test/support/rails5_shims.rb
|
614
|
-
- test/support/rails_app.rb
|
615
|
-
- test/support/schemas/active_model_serializers/test/schema_test/my/index.json
|
616
|
-
- test/support/schemas/active_model_serializers/test/schema_test/my/show.json
|
617
|
-
- test/support/schemas/custom/show.json
|
618
|
-
- test/support/schemas/hyper_schema.json
|
619
|
-
- test/support/schemas/render_using_json_api.json
|
620
|
-
- test/support/schemas/simple_json_pointers.json
|
621
|
-
- test/support/serialization_testing.rb
|
622
|
-
- test/test_helper.rb
|
350
|
+
test_files: []
|
data/.github/ISSUE_TEMPLATE.md
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
#### Expected behavior vs actual behavior
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
#### Steps to reproduce
|
6
|
-
*(e.g., detailed walkthrough, runnable script, example application)*
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
#### Environment
|
11
|
-
|
12
|
-
ActiveModelSerializers Version *(commit ref if not on tag)*:
|
13
|
-
|
14
|
-
Output of `ruby -e "puts RUBY_DESCRIPTION"`:
|
15
|
-
|
16
|
-
OS Type & Version:
|
17
|
-
|
18
|
-
Integrated application and version *(e.g., Rails, Grape, etc)*:
|
19
|
-
|
20
|
-
|
21
|
-
#### Backtrace
|
22
|
-
*(e.g., provide any applicable backtraces from your application)*
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
#### Additonal helpful information
|
27
|
-
*(e.g., Gemfile.lock, configurations, PR containing a failing test, git bisect results)*
|
28
|
-
|
29
|
-
|
data/.gitignore
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
.bundle
|
4
|
-
.config
|
5
|
-
.yardoc
|
6
|
-
Gemfile.lock
|
7
|
-
Gemfile.local
|
8
|
-
InstalledFiles
|
9
|
-
_yardoc
|
10
|
-
coverage
|
11
|
-
doc/
|
12
|
-
lib/bundler/man
|
13
|
-
pkg
|
14
|
-
Vagrantfile
|
15
|
-
.vagrant
|
16
|
-
rdoc
|
17
|
-
spec/reports
|
18
|
-
test/tmp
|
19
|
-
test/version_tmp
|
20
|
-
tmp
|
21
|
-
*.swp
|
22
|
-
.ruby-version
|
23
|
-
.ruby-gemset
|
24
|
-
vendor/bundle
|
25
|
-
tags
|
26
|
-
|
27
|
-
# silly macs
|
28
|
-
.DS_Store
|
29
|
-
.DS_Store?
|
30
|
-
._*
|
31
|
-
.Spotlight-V100
|
32
|
-
.Trashes
|
33
|
-
Icon?
|
34
|
-
ehthumbs.db
|
35
|
-
Thumbs.db
|
data/.rubocop.yml
DELETED
@@ -1,109 +0,0 @@
|
|
1
|
-
AllCops:
|
2
|
-
TargetRubyVersion: 2.1
|
3
|
-
Exclude:
|
4
|
-
- !ruby/regexp /(vendor|bundle|bin|db|tmp)\/.*/
|
5
|
-
DisplayCopNames: true
|
6
|
-
DisplayStyleGuide: true
|
7
|
-
# https://github.com/bbatsov/rubocop/blob/master/manual/caching.md
|
8
|
-
# https://github.com/bbatsov/rubocop/blob/e8680418b351491e111a18cf5b453fc07a3c5239/config/default.yml#L60-L77
|
9
|
-
UseCache: true
|
10
|
-
CacheRootDirectory: tmp
|
11
|
-
|
12
|
-
Rails:
|
13
|
-
Enabled: true
|
14
|
-
|
15
|
-
Lint/NestedMethodDefinition:
|
16
|
-
Enabled: false
|
17
|
-
Exclude:
|
18
|
-
- test/action_controller/serialization_test.rb
|
19
|
-
|
20
|
-
Style/Alias:
|
21
|
-
EnforcedStyle: prefer_alias
|
22
|
-
|
23
|
-
Style/StringLiterals:
|
24
|
-
EnforcedStyle: single_quotes
|
25
|
-
|
26
|
-
Metrics/AbcSize:
|
27
|
-
Max: 35 # TODO: Lower to 15
|
28
|
-
|
29
|
-
Metrics/ClassLength:
|
30
|
-
Max: 261 # TODO: Lower to 100
|
31
|
-
Exclude:
|
32
|
-
- test/**/*.rb
|
33
|
-
|
34
|
-
Metrics/CyclomaticComplexity:
|
35
|
-
Max: 7 # TODO: Lower to 6
|
36
|
-
|
37
|
-
Metrics/LineLength:
|
38
|
-
Max: 251 # TODO: Lower to 80
|
39
|
-
|
40
|
-
Metrics/MethodLength:
|
41
|
-
Max: 106 # TODO: Lower to 10
|
42
|
-
|
43
|
-
Metrics/PerceivedComplexity:
|
44
|
-
Max: 9 # TODO: Lower to 7
|
45
|
-
|
46
|
-
Style/AlignParameters:
|
47
|
-
EnforcedStyle: with_fixed_indentation
|
48
|
-
|
49
|
-
Style/ClassAndModuleChildren:
|
50
|
-
EnforcedStyle: nested
|
51
|
-
|
52
|
-
Style/Documentation:
|
53
|
-
Enabled: false
|
54
|
-
|
55
|
-
Style/MissingElse:
|
56
|
-
Enabled: true
|
57
|
-
EnforcedStyle: case
|
58
|
-
|
59
|
-
Style/EmptyElse:
|
60
|
-
EnforcedStyle: empty
|
61
|
-
|
62
|
-
Style/FrozenStringLiteralComment:
|
63
|
-
Enabled: true
|
64
|
-
EnforcedStyle: always
|
65
|
-
|
66
|
-
Style/MultilineOperationIndentation:
|
67
|
-
EnforcedStyle: indented
|
68
|
-
|
69
|
-
Style/BlockDelimiters:
|
70
|
-
Enabled: true
|
71
|
-
EnforcedStyle: line_count_based
|
72
|
-
|
73
|
-
Style/SignalException:
|
74
|
-
EnforcedStyle: semantic
|
75
|
-
|
76
|
-
Style/TrailingCommaInLiteral:
|
77
|
-
EnforcedStyleForMultiline: no_comma
|
78
|
-
|
79
|
-
Style/ConditionalAssignment:
|
80
|
-
Enabled: false
|
81
|
-
|
82
|
-
Style/DotPosition:
|
83
|
-
EnforcedStyle: leading
|
84
|
-
|
85
|
-
########## test_helper.rb sanity
|
86
|
-
Style/EndBlock:
|
87
|
-
Exclude:
|
88
|
-
- test/test_helper.rb
|
89
|
-
|
90
|
-
Style/SpecialGlobalVars:
|
91
|
-
Exclude:
|
92
|
-
- test/test_helper.rb
|
93
|
-
|
94
|
-
Style/GlobalVars:
|
95
|
-
Exclude:
|
96
|
-
- test/test_helper.rb
|
97
|
-
|
98
|
-
Style/AndOr:
|
99
|
-
Exclude:
|
100
|
-
- test/test_helper.rb
|
101
|
-
- 'lib/active_model/serializer/lint.rb'
|
102
|
-
|
103
|
-
Style/Not:
|
104
|
-
Exclude:
|
105
|
-
- test/test_helper.rb
|
106
|
-
|
107
|
-
Style/ClassCheck:
|
108
|
-
Exclude:
|
109
|
-
- test/test_helper.rb
|