active_model_serializers_custom 0.10.90

Sign up to get free protection for your applications and to get access to all the features.
Files changed (215) hide show
  1. checksums.yaml +7 -0
  2. data/.github/ISSUE_TEMPLATE.md +29 -0
  3. data/.github/PULL_REQUEST_TEMPLATE.md +15 -0
  4. data/.gitignore +35 -0
  5. data/.rubocop.yml +109 -0
  6. data/.simplecov +110 -0
  7. data/.travis.yml +63 -0
  8. data/CHANGELOG.md +727 -0
  9. data/CODE_OF_CONDUCT.md +74 -0
  10. data/CONTRIBUTING.md +105 -0
  11. data/Gemfile +74 -0
  12. data/MIT-LICENSE +22 -0
  13. data/README.md +305 -0
  14. data/Rakefile +76 -0
  15. data/active_model_serializers.gemspec +64 -0
  16. data/appveyor.yml +28 -0
  17. data/bin/bench +171 -0
  18. data/bin/bench_regression +316 -0
  19. data/bin/rubocop +38 -0
  20. data/bin/serve_benchmark +39 -0
  21. data/docs/README.md +41 -0
  22. data/docs/STYLE.md +58 -0
  23. data/docs/general/adapters.md +269 -0
  24. data/docs/general/caching.md +58 -0
  25. data/docs/general/configuration_options.md +185 -0
  26. data/docs/general/deserialization.md +100 -0
  27. data/docs/general/fields.md +31 -0
  28. data/docs/general/getting_started.md +133 -0
  29. data/docs/general/instrumentation.md +40 -0
  30. data/docs/general/key_transforms.md +40 -0
  31. data/docs/general/logging.md +21 -0
  32. data/docs/general/rendering.md +293 -0
  33. data/docs/general/serializers.md +495 -0
  34. data/docs/how-open-source-maintained.jpg +0 -0
  35. data/docs/howto/add_pagination_links.md +138 -0
  36. data/docs/howto/add_relationship_links.md +140 -0
  37. data/docs/howto/add_root_key.md +62 -0
  38. data/docs/howto/grape_integration.md +42 -0
  39. data/docs/howto/outside_controller_use.md +66 -0
  40. data/docs/howto/passing_arbitrary_options.md +27 -0
  41. data/docs/howto/serialize_poro.md +73 -0
  42. data/docs/howto/test.md +154 -0
  43. data/docs/howto/upgrade_from_0_8_to_0_10.md +265 -0
  44. data/docs/integrations/ember-and-json-api.md +147 -0
  45. data/docs/integrations/grape.md +19 -0
  46. data/docs/jsonapi/errors.md +56 -0
  47. data/docs/jsonapi/schema.md +151 -0
  48. data/docs/jsonapi/schema/schema.json +366 -0
  49. data/docs/rfcs/0000-namespace.md +106 -0
  50. data/docs/rfcs/template.md +15 -0
  51. data/lib/action_controller/serialization.rb +76 -0
  52. data/lib/active_model/serializable_resource.rb +13 -0
  53. data/lib/active_model/serializer.rb +418 -0
  54. data/lib/active_model/serializer/adapter.rb +26 -0
  55. data/lib/active_model/serializer/adapter/attributes.rb +17 -0
  56. data/lib/active_model/serializer/adapter/base.rb +20 -0
  57. data/lib/active_model/serializer/adapter/json.rb +17 -0
  58. data/lib/active_model/serializer/adapter/json_api.rb +17 -0
  59. data/lib/active_model/serializer/adapter/null.rb +17 -0
  60. data/lib/active_model/serializer/array_serializer.rb +14 -0
  61. data/lib/active_model/serializer/association.rb +91 -0
  62. data/lib/active_model/serializer/attribute.rb +27 -0
  63. data/lib/active_model/serializer/belongs_to_reflection.rb +13 -0
  64. data/lib/active_model/serializer/collection_serializer.rb +90 -0
  65. data/lib/active_model/serializer/concerns/caching.rb +304 -0
  66. data/lib/active_model/serializer/error_serializer.rb +16 -0
  67. data/lib/active_model/serializer/errors_serializer.rb +34 -0
  68. data/lib/active_model/serializer/field.rb +92 -0
  69. data/lib/active_model/serializer/fieldset.rb +33 -0
  70. data/lib/active_model/serializer/has_many_reflection.rb +12 -0
  71. data/lib/active_model/serializer/has_one_reflection.rb +9 -0
  72. data/lib/active_model/serializer/lazy_association.rb +99 -0
  73. data/lib/active_model/serializer/link.rb +23 -0
  74. data/lib/active_model/serializer/lint.rb +152 -0
  75. data/lib/active_model/serializer/null.rb +19 -0
  76. data/lib/active_model/serializer/reflection.rb +212 -0
  77. data/lib/active_model/serializer/version.rb +7 -0
  78. data/lib/active_model_serializers.rb +63 -0
  79. data/lib/active_model_serializers/adapter.rb +100 -0
  80. data/lib/active_model_serializers/adapter/attributes.rb +15 -0
  81. data/lib/active_model_serializers/adapter/base.rb +85 -0
  82. data/lib/active_model_serializers/adapter/json.rb +23 -0
  83. data/lib/active_model_serializers/adapter/json_api.rb +535 -0
  84. data/lib/active_model_serializers/adapter/json_api/deserialization.rb +215 -0
  85. data/lib/active_model_serializers/adapter/json_api/error.rb +98 -0
  86. data/lib/active_model_serializers/adapter/json_api/jsonapi.rb +51 -0
  87. data/lib/active_model_serializers/adapter/json_api/link.rb +85 -0
  88. data/lib/active_model_serializers/adapter/json_api/meta.rb +39 -0
  89. data/lib/active_model_serializers/adapter/json_api/pagination_links.rb +90 -0
  90. data/lib/active_model_serializers/adapter/json_api/relationship.rb +106 -0
  91. data/lib/active_model_serializers/adapter/json_api/resource_identifier.rb +68 -0
  92. data/lib/active_model_serializers/adapter/null.rb +11 -0
  93. data/lib/active_model_serializers/callbacks.rb +57 -0
  94. data/lib/active_model_serializers/deprecate.rb +56 -0
  95. data/lib/active_model_serializers/deserialization.rb +17 -0
  96. data/lib/active_model_serializers/json_pointer.rb +16 -0
  97. data/lib/active_model_serializers/logging.rb +124 -0
  98. data/lib/active_model_serializers/lookup_chain.rb +82 -0
  99. data/lib/active_model_serializers/model.rb +132 -0
  100. data/lib/active_model_serializers/railtie.rb +52 -0
  101. data/lib/active_model_serializers/register_jsonapi_renderer.rb +80 -0
  102. data/lib/active_model_serializers/serializable_resource.rb +84 -0
  103. data/lib/active_model_serializers/serialization_context.rb +41 -0
  104. data/lib/active_model_serializers/test.rb +9 -0
  105. data/lib/active_model_serializers/test/schema.rb +140 -0
  106. data/lib/active_model_serializers/test/serializer.rb +127 -0
  107. data/lib/generators/rails/USAGE +6 -0
  108. data/lib/generators/rails/resource_override.rb +12 -0
  109. data/lib/generators/rails/serializer_generator.rb +38 -0
  110. data/lib/generators/rails/templates/serializer.rb.erb +8 -0
  111. data/lib/grape/active_model_serializers.rb +18 -0
  112. data/lib/grape/formatters/active_model_serializers.rb +34 -0
  113. data/lib/grape/helpers/active_model_serializers.rb +19 -0
  114. data/lib/tasks/rubocop.rake +55 -0
  115. data/test/action_controller/adapter_selector_test.rb +64 -0
  116. data/test/action_controller/explicit_serializer_test.rb +137 -0
  117. data/test/action_controller/json/include_test.rb +248 -0
  118. data/test/action_controller/json_api/deserialization_test.rb +114 -0
  119. data/test/action_controller/json_api/errors_test.rb +42 -0
  120. data/test/action_controller/json_api/fields_test.rb +68 -0
  121. data/test/action_controller/json_api/linked_test.rb +204 -0
  122. data/test/action_controller/json_api/pagination_test.rb +126 -0
  123. data/test/action_controller/json_api/transform_test.rb +191 -0
  124. data/test/action_controller/lookup_proc_test.rb +51 -0
  125. data/test/action_controller/namespace_lookup_test.rb +239 -0
  126. data/test/action_controller/serialization_scope_name_test.rb +237 -0
  127. data/test/action_controller/serialization_test.rb +480 -0
  128. data/test/active_model_serializers/adapter_for_test.rb +210 -0
  129. data/test/active_model_serializers/json_pointer_test.rb +24 -0
  130. data/test/active_model_serializers/logging_test.rb +79 -0
  131. data/test/active_model_serializers/model_test.rb +144 -0
  132. data/test/active_model_serializers/railtie_test_isolated.rb +70 -0
  133. data/test/active_model_serializers/register_jsonapi_renderer_test_isolated.rb +163 -0
  134. data/test/active_model_serializers/serialization_context_test_isolated.rb +73 -0
  135. data/test/active_model_serializers/test/schema_test.rb +133 -0
  136. data/test/active_model_serializers/test/serializer_test.rb +64 -0
  137. data/test/active_record_test.rb +11 -0
  138. data/test/adapter/attributes_test.rb +42 -0
  139. data/test/adapter/deprecation_test.rb +102 -0
  140. data/test/adapter/json/belongs_to_test.rb +47 -0
  141. data/test/adapter/json/collection_test.rb +106 -0
  142. data/test/adapter/json/has_many_test.rb +55 -0
  143. data/test/adapter/json/transform_test.rb +95 -0
  144. data/test/adapter/json_api/belongs_to_test.rb +157 -0
  145. data/test/adapter/json_api/collection_test.rb +98 -0
  146. data/test/adapter/json_api/errors_test.rb +78 -0
  147. data/test/adapter/json_api/fields_test.rb +98 -0
  148. data/test/adapter/json_api/has_many_explicit_serializer_test.rb +98 -0
  149. data/test/adapter/json_api/has_many_test.rb +175 -0
  150. data/test/adapter/json_api/has_one_test.rb +82 -0
  151. data/test/adapter/json_api/include_data_if_sideloaded_test.rb +215 -0
  152. data/test/adapter/json_api/json_api_test.rb +35 -0
  153. data/test/adapter/json_api/linked_test.rb +415 -0
  154. data/test/adapter/json_api/links_test.rb +112 -0
  155. data/test/adapter/json_api/pagination_links_test.rb +208 -0
  156. data/test/adapter/json_api/parse_test.rb +139 -0
  157. data/test/adapter/json_api/relationship_test.rb +399 -0
  158. data/test/adapter/json_api/resource_meta_test.rb +102 -0
  159. data/test/adapter/json_api/toplevel_jsonapi_test.rb +84 -0
  160. data/test/adapter/json_api/transform_test.rb +514 -0
  161. data/test/adapter/json_api/type_test.rb +195 -0
  162. data/test/adapter/json_test.rb +48 -0
  163. data/test/adapter/null_test.rb +24 -0
  164. data/test/adapter/polymorphic_test.rb +220 -0
  165. data/test/adapter_test.rb +69 -0
  166. data/test/array_serializer_test.rb +24 -0
  167. data/test/benchmark/app.rb +67 -0
  168. data/test/benchmark/benchmarking_support.rb +69 -0
  169. data/test/benchmark/bm_active_record.rb +83 -0
  170. data/test/benchmark/bm_adapter.rb +40 -0
  171. data/test/benchmark/bm_caching.rb +121 -0
  172. data/test/benchmark/bm_lookup_chain.rb +85 -0
  173. data/test/benchmark/bm_transform.rb +47 -0
  174. data/test/benchmark/config.ru +3 -0
  175. data/test/benchmark/controllers.rb +85 -0
  176. data/test/benchmark/fixtures.rb +221 -0
  177. data/test/cache_test.rb +717 -0
  178. data/test/collection_serializer_test.rb +129 -0
  179. data/test/fixtures/active_record.rb +115 -0
  180. data/test/fixtures/poro.rb +227 -0
  181. data/test/generators/scaffold_controller_generator_test.rb +26 -0
  182. data/test/generators/serializer_generator_test.rb +77 -0
  183. data/test/grape_test.rb +198 -0
  184. data/test/lint_test.rb +51 -0
  185. data/test/logger_test.rb +22 -0
  186. data/test/poro_test.rb +11 -0
  187. data/test/serializable_resource_test.rb +81 -0
  188. data/test/serializers/association_macros_test.rb +39 -0
  189. data/test/serializers/associations_test.rb +520 -0
  190. data/test/serializers/attribute_test.rb +155 -0
  191. data/test/serializers/attributes_test.rb +54 -0
  192. data/test/serializers/caching_configuration_test_isolated.rb +172 -0
  193. data/test/serializers/configuration_test.rb +34 -0
  194. data/test/serializers/fieldset_test.rb +16 -0
  195. data/test/serializers/meta_test.rb +204 -0
  196. data/test/serializers/options_test.rb +34 -0
  197. data/test/serializers/read_attribute_for_serialization_test.rb +81 -0
  198. data/test/serializers/reflection_test.rb +481 -0
  199. data/test/serializers/root_test.rb +23 -0
  200. data/test/serializers/serialization_test.rb +57 -0
  201. data/test/serializers/serializer_for_test.rb +138 -0
  202. data/test/serializers/serializer_for_with_namespace_test.rb +90 -0
  203. data/test/support/custom_schemas/active_model_serializers/test/schema_test/my/index.json +6 -0
  204. data/test/support/isolated_unit.rb +86 -0
  205. data/test/support/rails5_shims.rb +55 -0
  206. data/test/support/rails_app.rb +40 -0
  207. data/test/support/schemas/active_model_serializers/test/schema_test/my/index.json +6 -0
  208. data/test/support/schemas/active_model_serializers/test/schema_test/my/show.json +6 -0
  209. data/test/support/schemas/custom/show.json +7 -0
  210. data/test/support/schemas/hyper_schema.json +93 -0
  211. data/test/support/schemas/render_using_json_api.json +43 -0
  212. data/test/support/schemas/simple_json_pointers.json +10 -0
  213. data/test/support/serialization_testing.rb +81 -0
  214. data/test/test_helper.rb +72 -0
  215. metadata +622 -0
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'support/isolated_unit'
4
+ module ActiveModelSerializers
5
+ RailsApplication = TestHelpers::Generation.make_basic_app do |app|
6
+ app.configure do
7
+ config.secret_key_base = 'abc123'
8
+ config.active_support.test_order = :random
9
+ config.action_controller.perform_caching = true
10
+ config.action_controller.cache_store = :memory_store
11
+
12
+ config.filter_parameters += [:password]
13
+ end
14
+
15
+ app.routes.default_url_options = { host: 'example.com' }
16
+ end
17
+ end
18
+
19
+ Routes = ActionDispatch::Routing::RouteSet.new
20
+ Routes.draw do
21
+ get ':controller(/:action(/:id))'
22
+ get ':controller(/:action)'
23
+ end
24
+ ActionController::Base.send :include, Routes.url_helpers
25
+ ActionController::TestCase.class_eval do
26
+ def setup
27
+ @routes = Routes
28
+ end
29
+ end
30
+
31
+ # ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
32
+ # ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
33
+ #
34
+ # Load fixtures from the engine
35
+ # if ActiveSupport::TestCase.respond_to?(:fixture_path=)
36
+ # ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
37
+ # ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
38
+ # ActiveSupport::TestCase.file_fixture_path = ActiveSupport::TestCase.fixture_path + "/files"
39
+ # ActiveSupport::TestCase.fixtures :all
40
+ # end
@@ -0,0 +1,6 @@
1
+ {
2
+ "properties": {
3
+ "name" : { "type" : "string" },
4
+ "description" : { "type" : "string" }
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "properties": {
3
+ "name" : { "type" : "integer" },
4
+ "description" : { "type" : "boolean" }
5
+ }
6
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "id": "file://custom/show.json#",
3
+ "properties": {
4
+ "name" : { "type" : "string" },
5
+ "description" : { "type" : "string" }
6
+ }
7
+ }
@@ -0,0 +1,93 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/hyper-schema",
3
+ "title": "Profile",
4
+ "description": "Profile schema",
5
+ "stability": "prototype",
6
+ "strictProperties": true,
7
+ "type": [
8
+ "object"
9
+ ],
10
+ "definitions": {
11
+ "name": {
12
+ "description": "unique name of profile",
13
+ "readOnly": true,
14
+ "type": [
15
+ "string"
16
+ ]
17
+ },
18
+ "description": {
19
+ "description": "description of profile",
20
+ "readOnly": true,
21
+ "type": [
22
+ "string"
23
+ ]
24
+ },
25
+ "identity": {
26
+ "anyOf": [
27
+ {
28
+ "$ref": "/schemata/profile#/definitions/name"
29
+ }
30
+ ]
31
+ }
32
+ },
33
+ "links": [
34
+ {
35
+ "description": "Create a new profile.",
36
+ "href": "/profiles",
37
+ "method": "POST",
38
+ "rel": "create",
39
+ "schema": {
40
+ "properties": {
41
+ },
42
+ "type": [
43
+ "object"
44
+ ]
45
+ },
46
+ "title": "Create"
47
+ },
48
+ {
49
+ "description": "Delete an existing profile.",
50
+ "href": "/profiles/{(%2Fschemata%2Fprofile%23%2Fdefinitions%2Fidentity)}",
51
+ "method": "DELETE",
52
+ "rel": "destroy",
53
+ "title": "Delete"
54
+ },
55
+ {
56
+ "description": "Info for existing profile.",
57
+ "href": "/profiles/{(%2Fschemata%2Fprofile%23%2Fdefinitions%2Fidentity)}",
58
+ "method": "GET",
59
+ "rel": "self",
60
+ "title": "Info"
61
+ },
62
+ {
63
+ "description": "List existing profiles.",
64
+ "href": "/profiles",
65
+ "method": "GET",
66
+ "rel": "instances",
67
+ "title": "List"
68
+ },
69
+ {
70
+ "description": "Update an existing profile.",
71
+ "href": "/profiles/{(%2Fschemata%2Fprofile%23%2Fdefinitions%2Fidentity)}",
72
+ "method": "PATCH",
73
+ "rel": "update",
74
+ "schema": {
75
+ "properties": {
76
+ },
77
+ "type": [
78
+ "object"
79
+ ]
80
+ },
81
+ "title": "Update"
82
+ }
83
+ ],
84
+ "properties": {
85
+ "name": {
86
+ "$ref": "/schemata/profile#/definitions/name"
87
+ },
88
+ "description": {
89
+ "$ref": "/schemata/profile#/definitions/description"
90
+ }
91
+ },
92
+ "id": "/schemata/profile"
93
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "id": "",
4
+ "type": "object",
5
+ "properties": {
6
+ "data": {
7
+ "id": "/data",
8
+ "type": "object",
9
+ "properties": {
10
+ "id": {
11
+ "id": "/data/id",
12
+ "type": "string"
13
+ },
14
+ "type": {
15
+ "id": "/data/type",
16
+ "type": "string"
17
+ },
18
+ "attributes": {
19
+ "id": "/data/attributes",
20
+ "type": "object",
21
+ "properties": {
22
+ "name": {
23
+ "id": "/data/attributes/name",
24
+ "type": "string"
25
+ },
26
+ "description": {
27
+ "id": "/data/attributes/description",
28
+ "type": "string"
29
+ }
30
+ }
31
+ }
32
+ },
33
+ "required": [
34
+ "id",
35
+ "type",
36
+ "attributes"
37
+ ]
38
+ }
39
+ },
40
+ "required": [
41
+ "data"
42
+ ]
43
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "properties": {
3
+ "name": {
4
+ "$ref": "file://custom/show.json#/properties/name"
5
+ },
6
+ "description": {
7
+ "$ref": "file://custom/show.json#/properties/description"
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,81 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SerializationTesting
4
+ def config
5
+ ActiveModelSerializers.config
6
+ end
7
+
8
+ private
9
+
10
+ def generate_cached_serializer(obj)
11
+ ActiveModelSerializers::SerializableResource.new(obj).to_json
12
+ end
13
+
14
+ def with_namespace_separator(separator)
15
+ original_separator = ActiveModelSerializers.config.jsonapi_namespace_separator
16
+ ActiveModelSerializers.config.jsonapi_namespace_separator = separator
17
+ yield
18
+ ensure
19
+ ActiveModelSerializers.config.jsonapi_namespace_separator = original_separator
20
+ end
21
+
22
+ def with_prepended_lookup(lookup_proc)
23
+ original_lookup = ActiveModelSerializers.config.serializer_lookup_cahin
24
+ ActiveModelSerializers.config.serializer_lookup_chain.unshift lookup_proc
25
+ yield
26
+ ensure
27
+ ActiveModelSerializers.config.serializer_lookup_cahin = original_lookup
28
+ end
29
+
30
+ # Aliased as :with_configured_adapter to clarify that
31
+ # this method tests the configured adapter.
32
+ # When not testing configuration, it may be preferable
33
+ # to pass in the +adapter+ option to <tt>ActiveModelSerializers::SerializableResource</tt>.
34
+ # e.g ActiveModelSerializers::SerializableResource.new(resource, adapter: :json_api)
35
+ def with_adapter(adapter)
36
+ old_adapter = ActiveModelSerializers.config.adapter
37
+ ActiveModelSerializers.config.adapter = adapter
38
+ yield
39
+ ensure
40
+ ActiveModelSerializers.config.adapter = old_adapter
41
+ end
42
+ alias with_configured_adapter with_adapter
43
+
44
+ def with_config(hash)
45
+ old_config = config.dup
46
+ ActiveModelSerializers.config.update(hash)
47
+ yield
48
+ ensure
49
+ ActiveModelSerializers.config.replace(old_config)
50
+ end
51
+
52
+ def with_jsonapi_inflection(inflection)
53
+ original_inflection = ActiveModelSerializers.config.jsonapi_resource_type
54
+ ActiveModelSerializers.config.jsonapi_resource_type = inflection
55
+ yield
56
+ ensure
57
+ ActiveModelSerializers.config.jsonapi_resource_type = original_inflection
58
+ end
59
+
60
+ def with_serializer_lookup_disabled
61
+ original_serializer_lookup = ActiveModelSerializers.config.serializer_lookup_enabled
62
+ ActiveModelSerializers.config.serializer_lookup_enabled = false
63
+ yield
64
+ ensure
65
+ ActiveModelSerializers.config.serializer_lookup_enabled = original_serializer_lookup
66
+ end
67
+
68
+ def serializable(resource, options = {})
69
+ ActiveModelSerializers::SerializableResource.new(resource, options)
70
+ end
71
+ end
72
+
73
+ module Minitest
74
+ class Test
75
+ def before_setup
76
+ ActionController::Base.cache_store.clear
77
+ end
78
+
79
+ include SerializationTesting
80
+ end
81
+ end
@@ -0,0 +1,72 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Configure Rails Environment
4
+ ENV['RAILS_ENV'] = 'test'
5
+ require 'bundler/setup'
6
+
7
+ begin
8
+ require 'simplecov'
9
+ AppCoverage.start
10
+ rescue LoadError
11
+ STDERR.puts 'Running without SimpleCov'
12
+ end
13
+
14
+ require 'pry'
15
+ require 'timecop'
16
+ require 'rails'
17
+ require 'action_controller'
18
+ require 'action_controller/test_case'
19
+ require 'action_controller/railtie'
20
+ require 'active_model_serializers'
21
+ # For now, we only restrict the options to serializable_hash/as_json/to_json
22
+ # in tests, to ensure developers don't add any unsupported options.
23
+ # There's no known benefit, at this time, to having the filtering run in
24
+ # production when the excluded options would simply not be used.
25
+ #
26
+ # However, for documentation purposes, the constant
27
+ # ActiveModel::Serializer::SERIALIZABLE_HASH_VALID_KEYS is defined
28
+ # in the Serializer.
29
+ ActiveModelSerializers::Adapter::Base.class_eval do
30
+ alias_method :original_serialization_options, :serialization_options
31
+
32
+ def serialization_options(options)
33
+ original_serialization_options(options)
34
+ .slice(*ActiveModel::Serializer::SERIALIZABLE_HASH_VALID_KEYS)
35
+ end
36
+ end
37
+ require 'fileutils'
38
+ FileUtils.mkdir_p(File.expand_path('../../tmp/cache', __FILE__))
39
+
40
+ gem 'minitest'
41
+ require 'minitest'
42
+ require 'minitest/autorun'
43
+ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
44
+
45
+ module TestHelper
46
+ module_function
47
+
48
+ def silence_warnings
49
+ original_verbose = $VERBOSE
50
+ $VERBOSE = nil
51
+ yield
52
+ ensure
53
+ $VERBOSE = original_verbose
54
+ end
55
+ end
56
+
57
+ require 'support/rails_app'
58
+
59
+ # require "rails/test_help"
60
+
61
+ require 'support/serialization_testing'
62
+
63
+ require 'support/rails5_shims'
64
+
65
+ require 'fixtures/active_record'
66
+
67
+ require 'fixtures/poro'
68
+
69
+ ActiveSupport.on_load(:action_controller) do
70
+ $action_controller_logger = ActiveModelSerializers.logger
71
+ ActiveModelSerializers.logger = Logger.new(IO::NULL)
72
+ end
metadata ADDED
@@ -0,0 +1,622 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: active_model_serializers_custom
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.10.90
5
+ platform: ruby
6
+ authors:
7
+ - Steve Klabnik
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-03-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activemodel
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '4.1'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '6'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '4.1'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '6'
33
+ - !ruby/object:Gem::Dependency
34
+ name: actionpack
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '4.1'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '6'
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '4.1'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '6'
53
+ - !ruby/object:Gem::Dependency
54
+ name: railties
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '4.1'
60
+ - - "<"
61
+ - !ruby/object:Gem::Version
62
+ version: '6'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '4.1'
70
+ - - "<"
71
+ - !ruby/object:Gem::Version
72
+ version: '6'
73
+ - !ruby/object:Gem::Dependency
74
+ name: minitest
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: '5.0'
80
+ - - "<"
81
+ - !ruby/object:Gem::Version
82
+ version: '5.11'
83
+ type: :development
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '5.0'
90
+ - - "<"
91
+ - !ruby/object:Gem::Version
92
+ version: '5.11'
93
+ - !ruby/object:Gem::Dependency
94
+ name: jsonapi-renderer
95
+ requirement: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: 0.1.1.beta1
100
+ - - "<"
101
+ - !ruby/object:Gem::Version
102
+ version: '0.3'
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: 0.1.1.beta1
110
+ - - "<"
111
+ - !ruby/object:Gem::Version
112
+ version: '0.3'
113
+ - !ruby/object:Gem::Dependency
114
+ name: case_transform
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: '0.2'
120
+ type: :runtime
121
+ prerelease: false
122
+ version_requirements: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: '0.2'
127
+ - !ruby/object:Gem::Dependency
128
+ name: activerecord
129
+ requirement: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: '4.1'
134
+ - - "<"
135
+ - !ruby/object:Gem::Version
136
+ version: '6'
137
+ type: :development
138
+ prerelease: false
139
+ version_requirements: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: '4.1'
144
+ - - "<"
145
+ - !ruby/object:Gem::Version
146
+ version: '6'
147
+ - !ruby/object:Gem::Dependency
148
+ name: kaminari
149
+ requirement: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - "~>"
152
+ - !ruby/object:Gem::Version
153
+ version: 0.16.3
154
+ type: :development
155
+ prerelease: false
156
+ version_requirements: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - "~>"
159
+ - !ruby/object:Gem::Version
160
+ version: 0.16.3
161
+ - !ruby/object:Gem::Dependency
162
+ name: will_paginate
163
+ requirement: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - "~>"
166
+ - !ruby/object:Gem::Version
167
+ version: '3.0'
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: 3.0.7
171
+ type: :development
172
+ prerelease: false
173
+ version_requirements: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - "~>"
176
+ - !ruby/object:Gem::Version
177
+ version: '3.0'
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: 3.0.7
181
+ - !ruby/object:Gem::Dependency
182
+ name: bundler
183
+ requirement: !ruby/object:Gem::Requirement
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
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '0.11'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '0.11'
209
+ - !ruby/object:Gem::Dependency
210
+ name: timecop
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '0.7'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: '0.7'
223
+ - !ruby/object:Gem::Dependency
224
+ name: grape
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0.13'
230
+ - - "<"
231
+ - !ruby/object:Gem::Version
232
+ version: 0.19.1
233
+ type: :development
234
+ prerelease: false
235
+ version_requirements: !ruby/object:Gem::Requirement
236
+ requirements:
237
+ - - ">="
238
+ - !ruby/object:Gem::Version
239
+ version: '0.13'
240
+ - - "<"
241
+ - !ruby/object:Gem::Version
242
+ version: 0.19.1
243
+ - !ruby/object:Gem::Dependency
244
+ name: json_schema
245
+ requirement: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - ">="
248
+ - !ruby/object:Gem::Version
249
+ version: '0'
250
+ type: :development
251
+ prerelease: false
252
+ version_requirements: !ruby/object:Gem::Requirement
253
+ requirements:
254
+ - - ">="
255
+ - !ruby/object:Gem::Version
256
+ version: '0'
257
+ - !ruby/object:Gem::Dependency
258
+ name: rake
259
+ requirement: !ruby/object:Gem::Requirement
260
+ requirements:
261
+ - - ">="
262
+ - !ruby/object:Gem::Version
263
+ version: '10.0'
264
+ - - "<"
265
+ - !ruby/object:Gem::Version
266
+ version: '12.0'
267
+ type: :development
268
+ prerelease: false
269
+ version_requirements: !ruby/object:Gem::Requirement
270
+ requirements:
271
+ - - ">="
272
+ - !ruby/object:Gem::Version
273
+ version: '10.0'
274
+ - - "<"
275
+ - !ruby/object:Gem::Version
276
+ version: '12.0'
277
+ description: ActiveModel::Serializers allows you to generate your JSON in an object-oriented
278
+ and convention-driven manner.
279
+ email:
280
+ - steve@steveklabnik.com
281
+ executables: []
282
+ extensions: []
283
+ extra_rdoc_files: []
284
+ files:
285
+ - ".github/ISSUE_TEMPLATE.md"
286
+ - ".github/PULL_REQUEST_TEMPLATE.md"
287
+ - ".gitignore"
288
+ - ".rubocop.yml"
289
+ - ".simplecov"
290
+ - ".travis.yml"
291
+ - CHANGELOG.md
292
+ - CODE_OF_CONDUCT.md
293
+ - CONTRIBUTING.md
294
+ - Gemfile
295
+ - MIT-LICENSE
296
+ - 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
+ - lib/action_controller/serialization.rb
335
+ - lib/active_model/serializable_resource.rb
336
+ - lib/active_model/serializer.rb
337
+ - lib/active_model/serializer/adapter.rb
338
+ - lib/active_model/serializer/adapter/attributes.rb
339
+ - lib/active_model/serializer/adapter/base.rb
340
+ - lib/active_model/serializer/adapter/json.rb
341
+ - lib/active_model/serializer/adapter/json_api.rb
342
+ - lib/active_model/serializer/adapter/null.rb
343
+ - lib/active_model/serializer/array_serializer.rb
344
+ - lib/active_model/serializer/association.rb
345
+ - lib/active_model/serializer/attribute.rb
346
+ - lib/active_model/serializer/belongs_to_reflection.rb
347
+ - lib/active_model/serializer/collection_serializer.rb
348
+ - lib/active_model/serializer/concerns/caching.rb
349
+ - lib/active_model/serializer/error_serializer.rb
350
+ - lib/active_model/serializer/errors_serializer.rb
351
+ - lib/active_model/serializer/field.rb
352
+ - lib/active_model/serializer/fieldset.rb
353
+ - lib/active_model/serializer/has_many_reflection.rb
354
+ - lib/active_model/serializer/has_one_reflection.rb
355
+ - lib/active_model/serializer/lazy_association.rb
356
+ - lib/active_model/serializer/link.rb
357
+ - lib/active_model/serializer/lint.rb
358
+ - lib/active_model/serializer/null.rb
359
+ - lib/active_model/serializer/reflection.rb
360
+ - lib/active_model/serializer/version.rb
361
+ - lib/active_model_serializers.rb
362
+ - lib/active_model_serializers/adapter.rb
363
+ - lib/active_model_serializers/adapter/attributes.rb
364
+ - lib/active_model_serializers/adapter/base.rb
365
+ - lib/active_model_serializers/adapter/json.rb
366
+ - lib/active_model_serializers/adapter/json_api.rb
367
+ - lib/active_model_serializers/adapter/json_api/deserialization.rb
368
+ - lib/active_model_serializers/adapter/json_api/error.rb
369
+ - lib/active_model_serializers/adapter/json_api/jsonapi.rb
370
+ - lib/active_model_serializers/adapter/json_api/link.rb
371
+ - lib/active_model_serializers/adapter/json_api/meta.rb
372
+ - lib/active_model_serializers/adapter/json_api/pagination_links.rb
373
+ - lib/active_model_serializers/adapter/json_api/relationship.rb
374
+ - lib/active_model_serializers/adapter/json_api/resource_identifier.rb
375
+ - lib/active_model_serializers/adapter/null.rb
376
+ - lib/active_model_serializers/callbacks.rb
377
+ - lib/active_model_serializers/deprecate.rb
378
+ - lib/active_model_serializers/deserialization.rb
379
+ - lib/active_model_serializers/json_pointer.rb
380
+ - lib/active_model_serializers/logging.rb
381
+ - lib/active_model_serializers/lookup_chain.rb
382
+ - lib/active_model_serializers/model.rb
383
+ - lib/active_model_serializers/railtie.rb
384
+ - lib/active_model_serializers/register_jsonapi_renderer.rb
385
+ - lib/active_model_serializers/serializable_resource.rb
386
+ - lib/active_model_serializers/serialization_context.rb
387
+ - lib/active_model_serializers/test.rb
388
+ - lib/active_model_serializers/test/schema.rb
389
+ - lib/active_model_serializers/test/serializer.rb
390
+ - lib/generators/rails/USAGE
391
+ - lib/generators/rails/resource_override.rb
392
+ - lib/generators/rails/serializer_generator.rb
393
+ - lib/generators/rails/templates/serializer.rb.erb
394
+ - lib/grape/active_model_serializers.rb
395
+ - lib/grape/formatters/active_model_serializers.rb
396
+ - lib/grape/helpers/active_model_serializers.rb
397
+ - 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
+ homepage: https://github.com/rails-api/active_model_serializers
499
+ licenses:
500
+ - MIT
501
+ metadata: {}
502
+ post_install_message:
503
+ rdoc_options: []
504
+ require_paths:
505
+ - lib
506
+ required_ruby_version: !ruby/object:Gem::Requirement
507
+ requirements:
508
+ - - ">="
509
+ - !ruby/object:Gem::Version
510
+ version: '2.1'
511
+ required_rubygems_version: !ruby/object:Gem::Requirement
512
+ requirements:
513
+ - - ">="
514
+ - !ruby/object:Gem::Version
515
+ version: '0'
516
+ requirements: []
517
+ rubyforge_project:
518
+ rubygems_version: 2.2.2
519
+ signing_key:
520
+ specification_version: 4
521
+ 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