active_model_serializers 0.10.9 → 0.10.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -2
  3. data/lib/action_controller/serialization.rb +9 -1
  4. data/lib/active_model/serializer.rb +10 -2
  5. data/lib/active_model/serializer/version.rb +1 -1
  6. data/lib/active_model_serializers/adapter/attributes.rb +21 -0
  7. data/lib/active_model_serializers/adapter/json_api/resource_identifier.rb +1 -1
  8. metadata +12 -259
  9. data/.github/ISSUE_TEMPLATE.md +0 -29
  10. data/.github/PULL_REQUEST_TEMPLATE.md +0 -15
  11. data/.gitignore +0 -35
  12. data/.rubocop.yml +0 -109
  13. data/.simplecov +0 -110
  14. data/.travis.yml +0 -63
  15. data/CODE_OF_CONDUCT.md +0 -74
  16. data/CONTRIBUTING.md +0 -105
  17. data/Gemfile +0 -74
  18. data/Rakefile +0 -76
  19. data/active_model_serializers.gemspec +0 -64
  20. data/appveyor.yml +0 -28
  21. data/bin/bench +0 -171
  22. data/bin/bench_regression +0 -316
  23. data/bin/rubocop +0 -38
  24. data/bin/serve_benchmark +0 -39
  25. data/docs/README.md +0 -41
  26. data/docs/STYLE.md +0 -58
  27. data/docs/general/adapters.md +0 -269
  28. data/docs/general/caching.md +0 -58
  29. data/docs/general/configuration_options.md +0 -185
  30. data/docs/general/deserialization.md +0 -100
  31. data/docs/general/fields.md +0 -31
  32. data/docs/general/getting_started.md +0 -133
  33. data/docs/general/instrumentation.md +0 -40
  34. data/docs/general/key_transforms.md +0 -40
  35. data/docs/general/logging.md +0 -21
  36. data/docs/general/rendering.md +0 -293
  37. data/docs/general/serializers.md +0 -495
  38. data/docs/how-open-source-maintained.jpg +0 -0
  39. data/docs/howto/add_pagination_links.md +0 -138
  40. data/docs/howto/add_relationship_links.md +0 -140
  41. data/docs/howto/add_root_key.md +0 -62
  42. data/docs/howto/grape_integration.md +0 -42
  43. data/docs/howto/outside_controller_use.md +0 -66
  44. data/docs/howto/passing_arbitrary_options.md +0 -27
  45. data/docs/howto/serialize_poro.md +0 -73
  46. data/docs/howto/test.md +0 -154
  47. data/docs/howto/upgrade_from_0_8_to_0_10.md +0 -265
  48. data/docs/integrations/ember-and-json-api.md +0 -147
  49. data/docs/integrations/grape.md +0 -19
  50. data/docs/jsonapi/errors.md +0 -56
  51. data/docs/jsonapi/schema.md +0 -151
  52. data/docs/jsonapi/schema/schema.json +0 -366
  53. data/docs/rfcs/0000-namespace.md +0 -106
  54. data/docs/rfcs/template.md +0 -15
  55. data/test/action_controller/adapter_selector_test.rb +0 -64
  56. data/test/action_controller/explicit_serializer_test.rb +0 -137
  57. data/test/action_controller/json/include_test.rb +0 -248
  58. data/test/action_controller/json_api/deserialization_test.rb +0 -114
  59. data/test/action_controller/json_api/errors_test.rb +0 -42
  60. data/test/action_controller/json_api/fields_test.rb +0 -68
  61. data/test/action_controller/json_api/linked_test.rb +0 -204
  62. data/test/action_controller/json_api/pagination_test.rb +0 -126
  63. data/test/action_controller/json_api/transform_test.rb +0 -191
  64. data/test/action_controller/lookup_proc_test.rb +0 -51
  65. data/test/action_controller/namespace_lookup_test.rb +0 -234
  66. data/test/action_controller/serialization_scope_name_test.rb +0 -237
  67. data/test/action_controller/serialization_test.rb +0 -480
  68. data/test/active_model_serializers/adapter_for_test.rb +0 -210
  69. data/test/active_model_serializers/json_pointer_test.rb +0 -24
  70. data/test/active_model_serializers/logging_test.rb +0 -79
  71. data/test/active_model_serializers/model_test.rb +0 -144
  72. data/test/active_model_serializers/railtie_test_isolated.rb +0 -70
  73. data/test/active_model_serializers/register_jsonapi_renderer_test_isolated.rb +0 -163
  74. data/test/active_model_serializers/serialization_context_test_isolated.rb +0 -73
  75. data/test/active_model_serializers/test/schema_test.rb +0 -133
  76. data/test/active_model_serializers/test/serializer_test.rb +0 -64
  77. data/test/active_record_test.rb +0 -11
  78. data/test/adapter/attributes_test.rb +0 -42
  79. data/test/adapter/deprecation_test.rb +0 -102
  80. data/test/adapter/json/belongs_to_test.rb +0 -47
  81. data/test/adapter/json/collection_test.rb +0 -106
  82. data/test/adapter/json/has_many_test.rb +0 -55
  83. data/test/adapter/json/transform_test.rb +0 -95
  84. data/test/adapter/json_api/belongs_to_test.rb +0 -157
  85. data/test/adapter/json_api/collection_test.rb +0 -98
  86. data/test/adapter/json_api/errors_test.rb +0 -78
  87. data/test/adapter/json_api/fields_test.rb +0 -98
  88. data/test/adapter/json_api/has_many_explicit_serializer_test.rb +0 -98
  89. data/test/adapter/json_api/has_many_test.rb +0 -175
  90. data/test/adapter/json_api/has_one_test.rb +0 -82
  91. data/test/adapter/json_api/include_data_if_sideloaded_test.rb +0 -215
  92. data/test/adapter/json_api/json_api_test.rb +0 -35
  93. data/test/adapter/json_api/linked_test.rb +0 -415
  94. data/test/adapter/json_api/links_test.rb +0 -112
  95. data/test/adapter/json_api/pagination_links_test.rb +0 -208
  96. data/test/adapter/json_api/parse_test.rb +0 -139
  97. data/test/adapter/json_api/relationship_test.rb +0 -399
  98. data/test/adapter/json_api/resource_meta_test.rb +0 -102
  99. data/test/adapter/json_api/toplevel_jsonapi_test.rb +0 -84
  100. data/test/adapter/json_api/transform_test.rb +0 -514
  101. data/test/adapter/json_api/type_test.rb +0 -195
  102. data/test/adapter/json_test.rb +0 -48
  103. data/test/adapter/null_test.rb +0 -24
  104. data/test/adapter/polymorphic_test.rb +0 -220
  105. data/test/adapter_test.rb +0 -69
  106. data/test/array_serializer_test.rb +0 -24
  107. data/test/benchmark/app.rb +0 -67
  108. data/test/benchmark/benchmarking_support.rb +0 -69
  109. data/test/benchmark/bm_active_record.rb +0 -83
  110. data/test/benchmark/bm_adapter.rb +0 -40
  111. data/test/benchmark/bm_caching.rb +0 -121
  112. data/test/benchmark/bm_lookup_chain.rb +0 -85
  113. data/test/benchmark/bm_transform.rb +0 -47
  114. data/test/benchmark/config.ru +0 -3
  115. data/test/benchmark/controllers.rb +0 -85
  116. data/test/benchmark/fixtures.rb +0 -221
  117. data/test/cache_test.rb +0 -717
  118. data/test/collection_serializer_test.rb +0 -129
  119. data/test/fixtures/active_record.rb +0 -115
  120. data/test/fixtures/poro.rb +0 -227
  121. data/test/generators/scaffold_controller_generator_test.rb +0 -26
  122. data/test/generators/serializer_generator_test.rb +0 -77
  123. data/test/grape_test.rb +0 -198
  124. data/test/lint_test.rb +0 -51
  125. data/test/logger_test.rb +0 -22
  126. data/test/poro_test.rb +0 -11
  127. data/test/serializable_resource_test.rb +0 -81
  128. data/test/serializers/association_macros_test.rb +0 -39
  129. data/test/serializers/associations_test.rb +0 -520
  130. data/test/serializers/attribute_test.rb +0 -155
  131. data/test/serializers/attributes_test.rb +0 -54
  132. data/test/serializers/caching_configuration_test_isolated.rb +0 -172
  133. data/test/serializers/configuration_test.rb +0 -34
  134. data/test/serializers/fieldset_test.rb +0 -16
  135. data/test/serializers/meta_test.rb +0 -204
  136. data/test/serializers/options_test.rb +0 -34
  137. data/test/serializers/read_attribute_for_serialization_test.rb +0 -81
  138. data/test/serializers/reflection_test.rb +0 -481
  139. data/test/serializers/root_test.rb +0 -23
  140. data/test/serializers/serialization_test.rb +0 -57
  141. data/test/serializers/serializer_for_test.rb +0 -138
  142. data/test/serializers/serializer_for_with_namespace_test.rb +0 -90
  143. data/test/support/custom_schemas/active_model_serializers/test/schema_test/my/index.json +0 -6
  144. data/test/support/isolated_unit.rb +0 -86
  145. data/test/support/rails5_shims.rb +0 -55
  146. data/test/support/rails_app.rb +0 -40
  147. data/test/support/schemas/active_model_serializers/test/schema_test/my/index.json +0 -6
  148. data/test/support/schemas/active_model_serializers/test/schema_test/my/show.json +0 -6
  149. data/test/support/schemas/custom/show.json +0 -7
  150. data/test/support/schemas/hyper_schema.json +0 -93
  151. data/test/support/schemas/render_using_json_api.json +0 -43
  152. data/test/support/schemas/simple_json_pointers.json +0 -10
  153. data/test/support/serialization_testing.rb +0 -81
  154. data/test/test_helper.rb +0 -72
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e365d9b8e66fd40b66555a2e57faad48fee5bfd82b988ab42aacda73930bb53c
4
- data.tar.gz: bbad118b340ea31c7a09f1f0661d0e53866135a99923276182dc159d4eeb2f9c
3
+ metadata.gz: 20ead782c7fc4fcfbfd9739a0fcb1957f65284c65c53b619b3b2ac5ed7339bc3
4
+ data.tar.gz: d65bf0ce1f442f19679c36f624fde661f6ce4d97db1f849ac948d104ac3d88d2
5
5
  SHA512:
6
- metadata.gz: 011fcf63a00a7cfc27a54679551cf6c03b3dd4ff177192fca7d2be34bfbb2c3b6c6ba40bc92395997a392ed9bf1d91823da15afa7bde374d08f5e9d69982d054
7
- data.tar.gz: 8311b1ed270c60ae5d00beaa2e421a350201bec131a44096190f40dfb61a84f11d50ace18c357cc77e364863bef94eebaad717dc78a156c923049679c5295d1d
6
+ metadata.gz: ff70ab49d8bc826f3247ffefe845a169411a2a0767a92fa5de560894f70914c99bdad75d17cf2403c7a1eeff68a1611dcfa35da175d2f2cc711c5f7961ac522f
7
+ data.tar.gz: d85f6549fb002b01220c0710f3928489d747792b4cd9bf65fef2b712dd3c70a6e628a6e33f306927886e85a0f50d32d195c988c8cb7d6045c30f235d5410f6c6
@@ -1,6 +1,6 @@
1
1
  ## 0.10.x
2
2
 
3
- ### [master (unreleased)](https://github.com/rails-api/active_model_serializers/compare/v0.10.9...0-10-stable)
3
+ ### [master (unreleased)](https://github.com/rails-api/active_model_serializers/compare/v0.10.10...0-10-stable)
4
4
 
5
5
  Breaking changes:
6
6
 
@@ -10,8 +10,24 @@ Fixes:
10
10
 
11
11
  Misc:
12
12
 
13
- ### [v0.10.9 (2019-02-08)](https://github.com/rails-api/active_model_serializers/compare/v0.10.8...v0.10.9)
13
+ ### [v0.10.10 (2019-07-13)](https://github.com/rails-api/active_model_serializers/compare/v0.10.9...v0.10.10)
14
+
15
+ Fixes:
16
+
17
+ - [#2319](https://github.com/rails-api/active_model_serializers/pull/2319) Fixes #2316. (@kylekeesling)
18
+ - Fix Rails 6.0 deprication warnings
19
+ - update test fixture schema to use `timestamps` instead of `timestamp`
20
+ - [#2223](https://github.com/rails-api/active_model_serializers/pull/2223) Support Fieldset in Attributes/JSON adapters documented in [docs/general/fields.md](https://github.com/rails-api/active_model_serializers/blob/0-10-stable/docs/general/fields.md) that worked partially before (@bf4)
21
+ - [#2337](https://github.com/rails-api/active_model_serializers/pull/2337) fix incorrect belongs_to serialization when foreign_key on object and belongs_to is blank (@InteNs)
22
+ - Fixes incorrect json-api generation when `jsonapi_use_foreign_key_on_belongs_to_relationship` is `true` and the relationship is blank
23
+ - [#2172](https://github.com/rails-api/active_model_serializers/pull/2172) Preserve the namespace when falling back to a superclass serializer
14
24
 
25
+ Misc:
26
+
27
+ - [#2327](https://github.com/rails-api/active_model_serializers/pull/2327) Add support for Ruby 2.6 on Travis CI (@wasifhossain)
28
+ - [#2304](https://github.com/rails-api/active_model_serializers/pull/2304) Slim down bundled gem by excluding test files and docs (@greysteil)
29
+
30
+ ### [v0.10.9 (2019-02-08)](https://github.com/rails-api/active_model_serializers/compare/v0.10.8...v0.10.9)
15
31
 
16
32
  Fixes:
17
33
 
@@ -23,7 +23,15 @@ module ActionController
23
23
  end
24
24
 
25
25
  def namespace_for_serializer
26
- @namespace_for_serializer ||= self.class.parent unless self.class.parent == Object
26
+ @namespace_for_serializer ||= namespace_for_class(self.class) unless namespace_for_class(self.class) == Object
27
+ end
28
+
29
+ def namespace_for_class(klass)
30
+ if Module.method_defined?(:module_parent)
31
+ klass.module_parent
32
+ else
33
+ klass.parent
34
+ end
27
35
  end
28
36
 
29
37
  def serialization_scope
@@ -94,7 +94,7 @@ module ActiveModel
94
94
  if serializer_class
95
95
  serializer_class
96
96
  elsif klass.superclass
97
- get_serializer_for(klass.superclass)
97
+ get_serializer_for(klass.superclass, namespace)
98
98
  else
99
99
  nil # No serializer found
100
100
  end
@@ -365,6 +365,9 @@ module ActiveModel
365
365
  def serializable_hash(adapter_options = nil, options = {}, adapter_instance = self.class.serialization_adapter_instance)
366
366
  adapter_options ||= {}
367
367
  options[:include_directive] ||= ActiveModel::Serializer.include_directive_from_options(adapter_options)
368
+ if (fieldset = adapter_options[:fieldset])
369
+ options[:fields] = fieldset.fields_for(json_key)
370
+ end
368
371
  resource = attributes_hash(adapter_options, options, adapter_instance)
369
372
  relationships = associations_hash(adapter_options, options, adapter_instance)
370
373
  resource.merge(relationships)
@@ -379,7 +382,12 @@ module ActiveModel
379
382
 
380
383
  # Used by adapter as resource root.
381
384
  def json_key
382
- root || _type || object.class.model_name.to_s.underscore
385
+ root || _type ||
386
+ begin
387
+ object.class.model_name.to_s.underscore
388
+ rescue ArgumentError
389
+ 'anonymous_object'
390
+ end
383
391
  end
384
392
 
385
393
  def read_attribute_for_serialization(attr)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveModel
4
4
  class Serializer
5
- VERSION = '0.10.9'.freeze
5
+ VERSION = '0.10.10'.freeze
6
6
  end
7
7
  end
@@ -3,6 +3,11 @@
3
3
  module ActiveModelSerializers
4
4
  module Adapter
5
5
  class Attributes < Base
6
+ def initialize(*)
7
+ super
8
+ instance_options[:fieldset] ||= ActiveModel::Serializer::Fieldset.new(fields_to_fieldset(instance_options.delete(:fields)))
9
+ end
10
+
6
11
  def serializable_hash(options = nil)
7
12
  options = serialization_options(options)
8
13
  options[:fields] ||= instance_options[:fields]
@@ -10,6 +15,22 @@ module ActiveModelSerializers
10
15
 
11
16
  self.class.transform_key_casing!(serialized_hash, instance_options)
12
17
  end
18
+
19
+ private
20
+
21
+ def fields_to_fieldset(fields)
22
+ return fields if fields.nil?
23
+ resource_fields = []
24
+ relationship_fields = {}
25
+ fields.each do |field|
26
+ case field
27
+ when Symbol, String then resource_fields << field
28
+ when Hash then relationship_fields.merge!(field)
29
+ else fail ArgumentError, "Unknown conversion of fields to fieldset: '#{field.inspect}' in '#{fields.inspect}'"
30
+ end
31
+ end
32
+ relationship_fields.merge!(serializer.json_key.to_sym => resource_fields)
33
+ end
13
34
  end
14
35
  end
15
36
  end
@@ -13,7 +13,7 @@ module ActiveModelSerializers
13
13
  type = inflect_type(type)
14
14
  type = type_for(:no_class_needed, type, options)
15
15
  if id.blank?
16
- { type: type }
16
+ nil
17
17
  else
18
18
  { id: id.to_s, type: type }
19
19
  end
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.9
4
+ version: 0.10.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Klabnik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-08 00:00:00.000000000 Z
11
+ date: 2019-07-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: '6'
22
+ version: '6.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: '6'
32
+ version: '6.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: '6'
42
+ version: '6.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: '6'
52
+ version: '6.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: '6'
62
+ version: '6.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: '6'
72
+ version: '6.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: '6'
136
+ version: '6.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: '6'
146
+ version: '6.1'
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: kaminari
149
149
  requirement: !ruby/object:Gem::Requirement
@@ -282,55 +282,9 @@ executables: []
282
282
  extensions: []
283
283
  extra_rdoc_files: []
284
284
  files:
285
- - ".github/ISSUE_TEMPLATE.md"
286
- - ".github/PULL_REQUEST_TEMPLATE.md"
287
- - ".gitignore"
288
- - ".rubocop.yml"
289
- - ".simplecov"
290
- - ".travis.yml"
291
285
  - CHANGELOG.md
292
- - CODE_OF_CONDUCT.md
293
- - CONTRIBUTING.md
294
- - Gemfile
295
286
  - MIT-LICENSE
296
287
  - 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
288
  - lib/action_controller/serialization.rb
335
289
  - lib/active_model/serializable_resource.rb
336
290
  - lib/active_model/serializer.rb
@@ -395,106 +349,6 @@ files:
395
349
  - lib/grape/formatters/active_model_serializers.rb
396
350
  - lib/grape/helpers/active_model_serializers.rb
397
351
  - 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
352
  homepage: https://github.com/rails-api/active_model_serializers
499
353
  licenses:
500
354
  - MIT
@@ -514,109 +368,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
514
368
  - !ruby/object:Gem::Version
515
369
  version: '0'
516
370
  requirements: []
517
- rubyforge_project:
518
- rubygems_version: 2.7.6
371
+ rubygems_version: 3.0.3
519
372
  signing_key:
520
373
  specification_version: 4
521
374
  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
375
+ test_files: []