active_model_serializers 0.10.7 → 0.10.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +45 -1
- data/README.md +2 -2
- data/lib/action_controller/serialization.rb +11 -1
- data/lib/active_model/serializable_resource.rb +2 -0
- data/lib/active_model/serializer/adapter/attributes.rb +2 -0
- data/lib/active_model/serializer/adapter/base.rb +2 -0
- data/lib/active_model/serializer/adapter/json.rb +2 -0
- data/lib/active_model/serializer/adapter/json_api.rb +2 -0
- data/lib/active_model/serializer/adapter/null.rb +2 -0
- data/lib/active_model/serializer/adapter.rb +2 -0
- data/lib/active_model/serializer/array_serializer.rb +2 -0
- data/lib/active_model/serializer/association.rb +2 -0
- data/lib/active_model/serializer/attribute.rb +2 -0
- data/lib/active_model/serializer/belongs_to_reflection.rb +2 -0
- data/lib/active_model/serializer/collection_serializer.rb +6 -6
- data/lib/active_model/serializer/concerns/caching.rb +5 -1
- data/lib/active_model/serializer/error_serializer.rb +2 -0
- data/lib/active_model/serializer/errors_serializer.rb +2 -0
- data/lib/active_model/serializer/field.rb +2 -0
- data/lib/active_model/serializer/fieldset.rb +2 -0
- data/lib/active_model/serializer/has_many_reflection.rb +2 -0
- data/lib/active_model/serializer/has_one_reflection.rb +2 -0
- data/lib/active_model/serializer/lazy_association.rb +6 -2
- data/lib/active_model/serializer/link.rb +23 -0
- data/lib/active_model/serializer/lint.rb +2 -0
- data/lib/active_model/serializer/null.rb +2 -0
- data/lib/active_model/serializer/reflection.rb +5 -0
- data/lib/active_model/serializer/version.rb +3 -1
- data/lib/active_model/serializer.rb +32 -16
- data/lib/active_model_serializers/adapter/attributes.rb +23 -0
- data/lib/active_model_serializers/adapter/base.rb +2 -0
- data/lib/active_model_serializers/adapter/json.rb +2 -0
- data/lib/active_model_serializers/adapter/json_api/deserialization.rb +2 -0
- data/lib/active_model_serializers/adapter/json_api/error.rb +2 -0
- data/lib/active_model_serializers/adapter/json_api/jsonapi.rb +2 -0
- data/lib/active_model_serializers/adapter/json_api/link.rb +2 -0
- data/lib/active_model_serializers/adapter/json_api/meta.rb +2 -0
- data/lib/active_model_serializers/adapter/json_api/pagination_links.rb +2 -0
- data/lib/active_model_serializers/adapter/json_api/relationship.rb +2 -0
- data/lib/active_model_serializers/adapter/json_api/resource_identifier.rb +3 -1
- data/lib/active_model_serializers/adapter/json_api.rb +14 -9
- data/lib/active_model_serializers/adapter/null.rb +2 -0
- data/lib/active_model_serializers/adapter.rb +3 -1
- data/lib/active_model_serializers/callbacks.rb +2 -0
- data/lib/active_model_serializers/deprecate.rb +2 -0
- data/lib/active_model_serializers/deserialization.rb +2 -0
- data/lib/active_model_serializers/json_pointer.rb +2 -0
- data/lib/active_model_serializers/logging.rb +2 -0
- data/lib/active_model_serializers/lookup_chain.rb +2 -0
- data/lib/active_model_serializers/model.rb +2 -0
- data/lib/active_model_serializers/railtie.rb +4 -0
- data/lib/active_model_serializers/register_jsonapi_renderer.rb +2 -0
- data/lib/active_model_serializers/serializable_resource.rb +4 -2
- data/lib/active_model_serializers/serialization_context.rb +2 -0
- data/lib/active_model_serializers/test/schema.rb +2 -0
- data/lib/active_model_serializers/test/serializer.rb +2 -0
- data/lib/active_model_serializers/test.rb +2 -0
- data/lib/active_model_serializers.rb +20 -10
- data/lib/generators/rails/resource_override.rb +2 -0
- data/lib/generators/rails/serializer_generator.rb +2 -0
- data/lib/grape/active_model_serializers.rb +2 -0
- data/lib/grape/formatters/active_model_serializers.rb +2 -0
- data/lib/grape/helpers/active_model_serializers.rb +2 -0
- data/lib/tasks/rubocop.rake +2 -0
- metadata +64 -290
- data/.github/ISSUE_TEMPLATE.md +0 -29
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -15
- data/.gitignore +0 -35
- data/.rubocop.yml +0 -105
- data/.simplecov +0 -110
- data/.travis.yml +0 -52
- data/CODE_OF_CONDUCT.md +0 -74
- data/CONTRIBUTING.md +0 -105
- data/Gemfile +0 -72
- data/Rakefile +0 -74
- data/active_model_serializers.gemspec +0 -63
- 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 -483
- 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 -62
- data/test/action_controller/explicit_serializer_test.rb +0 -135
- data/test/action_controller/json/include_test.rb +0 -246
- data/test/action_controller/json_api/deserialization_test.rb +0 -112
- data/test/action_controller/json_api/errors_test.rb +0 -40
- data/test/action_controller/json_api/fields_test.rb +0 -66
- data/test/action_controller/json_api/linked_test.rb +0 -202
- data/test/action_controller/json_api/pagination_test.rb +0 -124
- data/test/action_controller/json_api/transform_test.rb +0 -189
- data/test/action_controller/lookup_proc_test.rb +0 -49
- data/test/action_controller/namespace_lookup_test.rb +0 -232
- data/test/action_controller/serialization_scope_name_test.rb +0 -235
- data/test/action_controller/serialization_test.rb +0 -472
- data/test/active_model_serializers/adapter_for_test.rb +0 -208
- data/test/active_model_serializers/json_pointer_test.rb +0 -22
- data/test/active_model_serializers/logging_test.rb +0 -77
- data/test/active_model_serializers/model_test.rb +0 -142
- data/test/active_model_serializers/railtie_test_isolated.rb +0 -68
- data/test/active_model_serializers/register_jsonapi_renderer_test_isolated.rb +0 -161
- data/test/active_model_serializers/serialization_context_test_isolated.rb +0 -71
- data/test/active_model_serializers/test/schema_test.rb +0 -131
- data/test/active_model_serializers/test/serializer_test.rb +0 -62
- data/test/active_record_test.rb +0 -9
- data/test/adapter/attributes_test.rb +0 -40
- data/test/adapter/deprecation_test.rb +0 -100
- data/test/adapter/json/belongs_to_test.rb +0 -45
- data/test/adapter/json/collection_test.rb +0 -104
- data/test/adapter/json/has_many_test.rb +0 -53
- data/test/adapter/json/transform_test.rb +0 -93
- data/test/adapter/json_api/belongs_to_test.rb +0 -155
- data/test/adapter/json_api/collection_test.rb +0 -96
- data/test/adapter/json_api/errors_test.rb +0 -76
- data/test/adapter/json_api/fields_test.rb +0 -96
- data/test/adapter/json_api/has_many_explicit_serializer_test.rb +0 -96
- data/test/adapter/json_api/has_many_test.rb +0 -173
- data/test/adapter/json_api/has_one_test.rb +0 -80
- data/test/adapter/json_api/include_data_if_sideloaded_test.rb +0 -213
- data/test/adapter/json_api/json_api_test.rb +0 -33
- data/test/adapter/json_api/linked_test.rb +0 -413
- data/test/adapter/json_api/links_test.rb +0 -95
- data/test/adapter/json_api/pagination_links_test.rb +0 -206
- data/test/adapter/json_api/parse_test.rb +0 -137
- data/test/adapter/json_api/relationship_test.rb +0 -397
- data/test/adapter/json_api/resource_meta_test.rb +0 -100
- data/test/adapter/json_api/toplevel_jsonapi_test.rb +0 -82
- data/test/adapter/json_api/transform_test.rb +0 -512
- data/test/adapter/json_api/type_test.rb +0 -193
- data/test/adapter/json_test.rb +0 -46
- data/test/adapter/null_test.rb +0 -22
- data/test/adapter/polymorphic_test.rb +0 -218
- data/test/adapter_test.rb +0 -67
- data/test/array_serializer_test.rb +0 -22
- data/test/benchmark/app.rb +0 -65
- data/test/benchmark/benchmarking_support.rb +0 -67
- data/test/benchmark/bm_active_record.rb +0 -81
- data/test/benchmark/bm_adapter.rb +0 -38
- data/test/benchmark/bm_caching.rb +0 -119
- data/test/benchmark/bm_lookup_chain.rb +0 -83
- data/test/benchmark/bm_transform.rb +0 -45
- data/test/benchmark/config.ru +0 -3
- data/test/benchmark/controllers.rb +0 -83
- data/test/benchmark/fixtures.rb +0 -219
- data/test/cache_test.rb +0 -651
- data/test/collection_serializer_test.rb +0 -127
- data/test/fixtures/active_record.rb +0 -113
- data/test/fixtures/poro.rb +0 -225
- data/test/generators/scaffold_controller_generator_test.rb +0 -24
- data/test/generators/serializer_generator_test.rb +0 -75
- data/test/grape_test.rb +0 -196
- data/test/lint_test.rb +0 -49
- data/test/logger_test.rb +0 -20
- data/test/poro_test.rb +0 -9
- data/test/serializable_resource_test.rb +0 -79
- data/test/serializers/association_macros_test.rb +0 -37
- data/test/serializers/associations_test.rb +0 -468
- data/test/serializers/attribute_test.rb +0 -153
- data/test/serializers/attributes_test.rb +0 -52
- data/test/serializers/caching_configuration_test_isolated.rb +0 -170
- data/test/serializers/configuration_test.rb +0 -32
- data/test/serializers/fieldset_test.rb +0 -14
- data/test/serializers/meta_test.rb +0 -202
- data/test/serializers/options_test.rb +0 -32
- data/test/serializers/read_attribute_for_serialization_test.rb +0 -79
- data/test/serializers/reflection_test.rb +0 -427
- data/test/serializers/root_test.rb +0 -21
- data/test/serializers/serialization_test.rb +0 -55
- data/test/serializers/serializer_for_test.rb +0 -136
- data/test/serializers/serializer_for_with_namespace_test.rb +0 -88
- data/test/support/custom_schemas/active_model_serializers/test/schema_test/my/index.json +0 -6
- data/test/support/isolated_unit.rb +0 -84
- data/test/support/rails5_shims.rb +0 -53
- data/test/support/rails_app.rb +0 -38
- 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 -79
- data/test/test_helper.rb +0 -70
metadata
CHANGED
@@ -1,16 +1,17 @@
|
|
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.10
|
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: 2019-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: activemodel
|
14
15
|
requirement: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
17
|
- - ">="
|
@@ -18,10 +19,9 @@ dependencies:
|
|
18
19
|
version: '4.1'
|
19
20
|
- - "<"
|
20
21
|
- !ruby/object:Gem::Version
|
21
|
-
version: '6'
|
22
|
-
name: activemodel
|
23
|
-
prerelease: false
|
22
|
+
version: '6.1'
|
24
23
|
type: :runtime
|
24
|
+
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
@@ -29,8 +29,9 @@ 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
|
+
name: actionpack
|
34
35
|
requirement: !ruby/object:Gem::Requirement
|
35
36
|
requirements:
|
36
37
|
- - ">="
|
@@ -38,10 +39,9 @@ dependencies:
|
|
38
39
|
version: '4.1'
|
39
40
|
- - "<"
|
40
41
|
- !ruby/object:Gem::Version
|
41
|
-
version: '6'
|
42
|
-
name: actionpack
|
43
|
-
prerelease: false
|
42
|
+
version: '6.1'
|
44
43
|
type: :runtime
|
44
|
+
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - ">="
|
@@ -49,8 +49,9 @@ 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
|
+
name: railties
|
54
55
|
requirement: !ruby/object:Gem::Requirement
|
55
56
|
requirements:
|
56
57
|
- - ">="
|
@@ -58,10 +59,9 @@ dependencies:
|
|
58
59
|
version: '4.1'
|
59
60
|
- - "<"
|
60
61
|
- !ruby/object:Gem::Version
|
61
|
-
version: '6'
|
62
|
-
name: railties
|
63
|
-
prerelease: false
|
62
|
+
version: '6.1'
|
64
63
|
type: :development
|
64
|
+
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
@@ -69,8 +69,29 @@ dependencies:
|
|
69
69
|
version: '4.1'
|
70
70
|
- - "<"
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version: '6'
|
72
|
+
version: '6.1'
|
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'
|
73
93
|
- !ruby/object:Gem::Dependency
|
94
|
+
name: jsonapi-renderer
|
74
95
|
requirement: !ruby/object:Gem::Requirement
|
75
96
|
requirements:
|
76
97
|
- - ">="
|
@@ -79,9 +100,8 @@ dependencies:
|
|
79
100
|
- - "<"
|
80
101
|
- !ruby/object:Gem::Version
|
81
102
|
version: '0.3'
|
82
|
-
name: jsonapi-renderer
|
83
|
-
prerelease: false
|
84
103
|
type: :runtime
|
104
|
+
prerelease: false
|
85
105
|
version_requirements: !ruby/object:Gem::Requirement
|
86
106
|
requirements:
|
87
107
|
- - ">="
|
@@ -91,20 +111,21 @@ dependencies:
|
|
91
111
|
- !ruby/object:Gem::Version
|
92
112
|
version: '0.3'
|
93
113
|
- !ruby/object:Gem::Dependency
|
114
|
+
name: case_transform
|
94
115
|
requirement: !ruby/object:Gem::Requirement
|
95
116
|
requirements:
|
96
117
|
- - ">="
|
97
118
|
- !ruby/object:Gem::Version
|
98
119
|
version: '0.2'
|
99
|
-
name: case_transform
|
100
|
-
prerelease: false
|
101
120
|
type: :runtime
|
121
|
+
prerelease: false
|
102
122
|
version_requirements: !ruby/object:Gem::Requirement
|
103
123
|
requirements:
|
104
124
|
- - ">="
|
105
125
|
- !ruby/object:Gem::Version
|
106
126
|
version: '0.2'
|
107
127
|
- !ruby/object:Gem::Dependency
|
128
|
+
name: activerecord
|
108
129
|
requirement: !ruby/object:Gem::Requirement
|
109
130
|
requirements:
|
110
131
|
- - ">="
|
@@ -112,10 +133,9 @@ dependencies:
|
|
112
133
|
version: '4.1'
|
113
134
|
- - "<"
|
114
135
|
- !ruby/object:Gem::Version
|
115
|
-
version: '6'
|
116
|
-
name: activerecord
|
117
|
-
prerelease: false
|
136
|
+
version: '6.1'
|
118
137
|
type: :development
|
138
|
+
prerelease: false
|
119
139
|
version_requirements: !ruby/object:Gem::Requirement
|
120
140
|
requirements:
|
121
141
|
- - ">="
|
@@ -123,22 +143,23 @@ dependencies:
|
|
123
143
|
version: '4.1'
|
124
144
|
- - "<"
|
125
145
|
- !ruby/object:Gem::Version
|
126
|
-
version: '6'
|
146
|
+
version: '6.1'
|
127
147
|
- !ruby/object:Gem::Dependency
|
148
|
+
name: kaminari
|
128
149
|
requirement: !ruby/object:Gem::Requirement
|
129
150
|
requirements:
|
130
151
|
- - "~>"
|
131
152
|
- !ruby/object:Gem::Version
|
132
153
|
version: 0.16.3
|
133
|
-
name: kaminari
|
134
|
-
prerelease: false
|
135
154
|
type: :development
|
155
|
+
prerelease: false
|
136
156
|
version_requirements: !ruby/object:Gem::Requirement
|
137
157
|
requirements:
|
138
158
|
- - "~>"
|
139
159
|
- !ruby/object:Gem::Version
|
140
160
|
version: 0.16.3
|
141
161
|
- !ruby/object:Gem::Dependency
|
162
|
+
name: will_paginate
|
142
163
|
requirement: !ruby/object:Gem::Requirement
|
143
164
|
requirements:
|
144
165
|
- - "~>"
|
@@ -147,9 +168,8 @@ dependencies:
|
|
147
168
|
- - ">="
|
148
169
|
- !ruby/object:Gem::Version
|
149
170
|
version: 3.0.7
|
150
|
-
name: will_paginate
|
151
|
-
prerelease: false
|
152
171
|
type: :development
|
172
|
+
prerelease: false
|
153
173
|
version_requirements: !ruby/object:Gem::Requirement
|
154
174
|
requirements:
|
155
175
|
- - "~>"
|
@@ -159,48 +179,49 @@ dependencies:
|
|
159
179
|
- !ruby/object:Gem::Version
|
160
180
|
version: 3.0.7
|
161
181
|
- !ruby/object:Gem::Dependency
|
182
|
+
name: bundler
|
162
183
|
requirement: !ruby/object:Gem::Requirement
|
163
184
|
requirements:
|
164
185
|
- - "~>"
|
165
186
|
- !ruby/object:Gem::Version
|
166
187
|
version: '1.6'
|
167
|
-
name: bundler
|
168
|
-
prerelease: false
|
169
188
|
type: :development
|
189
|
+
prerelease: false
|
170
190
|
version_requirements: !ruby/object:Gem::Requirement
|
171
191
|
requirements:
|
172
192
|
- - "~>"
|
173
193
|
- !ruby/object:Gem::Version
|
174
194
|
version: '1.6'
|
175
195
|
- !ruby/object:Gem::Dependency
|
196
|
+
name: simplecov
|
176
197
|
requirement: !ruby/object:Gem::Requirement
|
177
198
|
requirements:
|
178
199
|
- - "~>"
|
179
200
|
- !ruby/object:Gem::Version
|
180
201
|
version: '0.11'
|
181
|
-
name: simplecov
|
182
|
-
prerelease: false
|
183
202
|
type: :development
|
203
|
+
prerelease: false
|
184
204
|
version_requirements: !ruby/object:Gem::Requirement
|
185
205
|
requirements:
|
186
206
|
- - "~>"
|
187
207
|
- !ruby/object:Gem::Version
|
188
208
|
version: '0.11'
|
189
209
|
- !ruby/object:Gem::Dependency
|
210
|
+
name: timecop
|
190
211
|
requirement: !ruby/object:Gem::Requirement
|
191
212
|
requirements:
|
192
213
|
- - "~>"
|
193
214
|
- !ruby/object:Gem::Version
|
194
215
|
version: '0.7'
|
195
|
-
name: timecop
|
196
|
-
prerelease: false
|
197
216
|
type: :development
|
217
|
+
prerelease: false
|
198
218
|
version_requirements: !ruby/object:Gem::Requirement
|
199
219
|
requirements:
|
200
220
|
- - "~>"
|
201
221
|
- !ruby/object:Gem::Version
|
202
222
|
version: '0.7'
|
203
223
|
- !ruby/object:Gem::Dependency
|
224
|
+
name: grape
|
204
225
|
requirement: !ruby/object:Gem::Requirement
|
205
226
|
requirements:
|
206
227
|
- - ">="
|
@@ -209,9 +230,8 @@ dependencies:
|
|
209
230
|
- - "<"
|
210
231
|
- !ruby/object:Gem::Version
|
211
232
|
version: 0.19.1
|
212
|
-
name: grape
|
213
|
-
prerelease: false
|
214
233
|
type: :development
|
234
|
+
prerelease: false
|
215
235
|
version_requirements: !ruby/object:Gem::Requirement
|
216
236
|
requirements:
|
217
237
|
- - ">="
|
@@ -221,20 +241,21 @@ dependencies:
|
|
221
241
|
- !ruby/object:Gem::Version
|
222
242
|
version: 0.19.1
|
223
243
|
- !ruby/object:Gem::Dependency
|
244
|
+
name: json_schema
|
224
245
|
requirement: !ruby/object:Gem::Requirement
|
225
246
|
requirements:
|
226
247
|
- - ">="
|
227
248
|
- !ruby/object:Gem::Version
|
228
249
|
version: '0'
|
229
|
-
name: json_schema
|
230
|
-
prerelease: false
|
231
250
|
type: :development
|
251
|
+
prerelease: false
|
232
252
|
version_requirements: !ruby/object:Gem::Requirement
|
233
253
|
requirements:
|
234
254
|
- - ">="
|
235
255
|
- !ruby/object:Gem::Version
|
236
256
|
version: '0'
|
237
257
|
- !ruby/object:Gem::Dependency
|
258
|
+
name: rake
|
238
259
|
requirement: !ruby/object:Gem::Requirement
|
239
260
|
requirements:
|
240
261
|
- - ">="
|
@@ -243,9 +264,8 @@ dependencies:
|
|
243
264
|
- - "<"
|
244
265
|
- !ruby/object:Gem::Version
|
245
266
|
version: '12.0'
|
246
|
-
name: rake
|
247
|
-
prerelease: false
|
248
267
|
type: :development
|
268
|
+
prerelease: false
|
249
269
|
version_requirements: !ruby/object:Gem::Requirement
|
250
270
|
requirements:
|
251
271
|
- - ">="
|
@@ -262,55 +282,9 @@ executables: []
|
|
262
282
|
extensions: []
|
263
283
|
extra_rdoc_files: []
|
264
284
|
files:
|
265
|
-
- ".github/ISSUE_TEMPLATE.md"
|
266
|
-
- ".github/PULL_REQUEST_TEMPLATE.md"
|
267
|
-
- ".gitignore"
|
268
|
-
- ".rubocop.yml"
|
269
|
-
- ".simplecov"
|
270
|
-
- ".travis.yml"
|
271
285
|
- CHANGELOG.md
|
272
|
-
- CODE_OF_CONDUCT.md
|
273
|
-
- CONTRIBUTING.md
|
274
|
-
- Gemfile
|
275
286
|
- MIT-LICENSE
|
276
287
|
- README.md
|
277
|
-
- Rakefile
|
278
|
-
- active_model_serializers.gemspec
|
279
|
-
- appveyor.yml
|
280
|
-
- bin/bench
|
281
|
-
- bin/bench_regression
|
282
|
-
- bin/rubocop
|
283
|
-
- bin/serve_benchmark
|
284
|
-
- docs/README.md
|
285
|
-
- docs/STYLE.md
|
286
|
-
- docs/general/adapters.md
|
287
|
-
- docs/general/caching.md
|
288
|
-
- docs/general/configuration_options.md
|
289
|
-
- docs/general/deserialization.md
|
290
|
-
- docs/general/fields.md
|
291
|
-
- docs/general/getting_started.md
|
292
|
-
- docs/general/instrumentation.md
|
293
|
-
- docs/general/key_transforms.md
|
294
|
-
- docs/general/logging.md
|
295
|
-
- docs/general/rendering.md
|
296
|
-
- docs/general/serializers.md
|
297
|
-
- docs/how-open-source-maintained.jpg
|
298
|
-
- docs/howto/add_pagination_links.md
|
299
|
-
- docs/howto/add_relationship_links.md
|
300
|
-
- docs/howto/add_root_key.md
|
301
|
-
- docs/howto/grape_integration.md
|
302
|
-
- docs/howto/outside_controller_use.md
|
303
|
-
- docs/howto/passing_arbitrary_options.md
|
304
|
-
- docs/howto/serialize_poro.md
|
305
|
-
- docs/howto/test.md
|
306
|
-
- docs/howto/upgrade_from_0_8_to_0_10.md
|
307
|
-
- docs/integrations/ember-and-json-api.md
|
308
|
-
- docs/integrations/grape.md
|
309
|
-
- docs/jsonapi/errors.md
|
310
|
-
- docs/jsonapi/schema.md
|
311
|
-
- docs/jsonapi/schema/schema.json
|
312
|
-
- docs/rfcs/0000-namespace.md
|
313
|
-
- docs/rfcs/template.md
|
314
288
|
- lib/action_controller/serialization.rb
|
315
289
|
- lib/active_model/serializable_resource.rb
|
316
290
|
- lib/active_model/serializer.rb
|
@@ -333,6 +307,7 @@ files:
|
|
333
307
|
- lib/active_model/serializer/has_many_reflection.rb
|
334
308
|
- lib/active_model/serializer/has_one_reflection.rb
|
335
309
|
- lib/active_model/serializer/lazy_association.rb
|
310
|
+
- lib/active_model/serializer/link.rb
|
336
311
|
- lib/active_model/serializer/lint.rb
|
337
312
|
- lib/active_model/serializer/null.rb
|
338
313
|
- lib/active_model/serializer/reflection.rb
|
@@ -374,111 +349,11 @@ files:
|
|
374
349
|
- lib/grape/formatters/active_model_serializers.rb
|
375
350
|
- lib/grape/helpers/active_model_serializers.rb
|
376
351
|
- lib/tasks/rubocop.rake
|
377
|
-
- test/action_controller/adapter_selector_test.rb
|
378
|
-
- test/action_controller/explicit_serializer_test.rb
|
379
|
-
- test/action_controller/json/include_test.rb
|
380
|
-
- test/action_controller/json_api/deserialization_test.rb
|
381
|
-
- test/action_controller/json_api/errors_test.rb
|
382
|
-
- test/action_controller/json_api/fields_test.rb
|
383
|
-
- test/action_controller/json_api/linked_test.rb
|
384
|
-
- test/action_controller/json_api/pagination_test.rb
|
385
|
-
- test/action_controller/json_api/transform_test.rb
|
386
|
-
- test/action_controller/lookup_proc_test.rb
|
387
|
-
- test/action_controller/namespace_lookup_test.rb
|
388
|
-
- test/action_controller/serialization_scope_name_test.rb
|
389
|
-
- test/action_controller/serialization_test.rb
|
390
|
-
- test/active_model_serializers/adapter_for_test.rb
|
391
|
-
- test/active_model_serializers/json_pointer_test.rb
|
392
|
-
- test/active_model_serializers/logging_test.rb
|
393
|
-
- test/active_model_serializers/model_test.rb
|
394
|
-
- test/active_model_serializers/railtie_test_isolated.rb
|
395
|
-
- test/active_model_serializers/register_jsonapi_renderer_test_isolated.rb
|
396
|
-
- test/active_model_serializers/serialization_context_test_isolated.rb
|
397
|
-
- test/active_model_serializers/test/schema_test.rb
|
398
|
-
- test/active_model_serializers/test/serializer_test.rb
|
399
|
-
- test/active_record_test.rb
|
400
|
-
- test/adapter/attributes_test.rb
|
401
|
-
- test/adapter/deprecation_test.rb
|
402
|
-
- test/adapter/json/belongs_to_test.rb
|
403
|
-
- test/adapter/json/collection_test.rb
|
404
|
-
- test/adapter/json/has_many_test.rb
|
405
|
-
- test/adapter/json/transform_test.rb
|
406
|
-
- test/adapter/json_api/belongs_to_test.rb
|
407
|
-
- test/adapter/json_api/collection_test.rb
|
408
|
-
- test/adapter/json_api/errors_test.rb
|
409
|
-
- test/adapter/json_api/fields_test.rb
|
410
|
-
- test/adapter/json_api/has_many_explicit_serializer_test.rb
|
411
|
-
- test/adapter/json_api/has_many_test.rb
|
412
|
-
- test/adapter/json_api/has_one_test.rb
|
413
|
-
- test/adapter/json_api/include_data_if_sideloaded_test.rb
|
414
|
-
- test/adapter/json_api/json_api_test.rb
|
415
|
-
- test/adapter/json_api/linked_test.rb
|
416
|
-
- test/adapter/json_api/links_test.rb
|
417
|
-
- test/adapter/json_api/pagination_links_test.rb
|
418
|
-
- test/adapter/json_api/parse_test.rb
|
419
|
-
- test/adapter/json_api/relationship_test.rb
|
420
|
-
- test/adapter/json_api/resource_meta_test.rb
|
421
|
-
- test/adapter/json_api/toplevel_jsonapi_test.rb
|
422
|
-
- test/adapter/json_api/transform_test.rb
|
423
|
-
- test/adapter/json_api/type_test.rb
|
424
|
-
- test/adapter/json_test.rb
|
425
|
-
- test/adapter/null_test.rb
|
426
|
-
- test/adapter/polymorphic_test.rb
|
427
|
-
- test/adapter_test.rb
|
428
|
-
- test/array_serializer_test.rb
|
429
|
-
- test/benchmark/app.rb
|
430
|
-
- test/benchmark/benchmarking_support.rb
|
431
|
-
- test/benchmark/bm_active_record.rb
|
432
|
-
- test/benchmark/bm_adapter.rb
|
433
|
-
- test/benchmark/bm_caching.rb
|
434
|
-
- test/benchmark/bm_lookup_chain.rb
|
435
|
-
- test/benchmark/bm_transform.rb
|
436
|
-
- test/benchmark/config.ru
|
437
|
-
- test/benchmark/controllers.rb
|
438
|
-
- test/benchmark/fixtures.rb
|
439
|
-
- test/cache_test.rb
|
440
|
-
- test/collection_serializer_test.rb
|
441
|
-
- test/fixtures/active_record.rb
|
442
|
-
- test/fixtures/poro.rb
|
443
|
-
- test/generators/scaffold_controller_generator_test.rb
|
444
|
-
- test/generators/serializer_generator_test.rb
|
445
|
-
- test/grape_test.rb
|
446
|
-
- test/lint_test.rb
|
447
|
-
- test/logger_test.rb
|
448
|
-
- test/poro_test.rb
|
449
|
-
- test/serializable_resource_test.rb
|
450
|
-
- test/serializers/association_macros_test.rb
|
451
|
-
- test/serializers/associations_test.rb
|
452
|
-
- test/serializers/attribute_test.rb
|
453
|
-
- test/serializers/attributes_test.rb
|
454
|
-
- test/serializers/caching_configuration_test_isolated.rb
|
455
|
-
- test/serializers/configuration_test.rb
|
456
|
-
- test/serializers/fieldset_test.rb
|
457
|
-
- test/serializers/meta_test.rb
|
458
|
-
- test/serializers/options_test.rb
|
459
|
-
- test/serializers/read_attribute_for_serialization_test.rb
|
460
|
-
- test/serializers/reflection_test.rb
|
461
|
-
- test/serializers/root_test.rb
|
462
|
-
- test/serializers/serialization_test.rb
|
463
|
-
- test/serializers/serializer_for_test.rb
|
464
|
-
- test/serializers/serializer_for_with_namespace_test.rb
|
465
|
-
- test/support/custom_schemas/active_model_serializers/test/schema_test/my/index.json
|
466
|
-
- test/support/isolated_unit.rb
|
467
|
-
- test/support/rails5_shims.rb
|
468
|
-
- test/support/rails_app.rb
|
469
|
-
- test/support/schemas/active_model_serializers/test/schema_test/my/index.json
|
470
|
-
- test/support/schemas/active_model_serializers/test/schema_test/my/show.json
|
471
|
-
- test/support/schemas/custom/show.json
|
472
|
-
- test/support/schemas/hyper_schema.json
|
473
|
-
- test/support/schemas/render_using_json_api.json
|
474
|
-
- test/support/schemas/simple_json_pointers.json
|
475
|
-
- test/support/serialization_testing.rb
|
476
|
-
- test/test_helper.rb
|
477
352
|
homepage: https://github.com/rails-api/active_model_serializers
|
478
353
|
licenses:
|
479
354
|
- MIT
|
480
355
|
metadata: {}
|
481
|
-
post_install_message:
|
356
|
+
post_install_message:
|
482
357
|
rdoc_options: []
|
483
358
|
require_paths:
|
484
359
|
- lib
|
@@ -493,109 +368,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
493
368
|
- !ruby/object:Gem::Version
|
494
369
|
version: '0'
|
495
370
|
requirements: []
|
496
|
-
|
497
|
-
|
498
|
-
signing_key:
|
371
|
+
rubygems_version: 3.0.3
|
372
|
+
signing_key:
|
499
373
|
specification_version: 4
|
500
374
|
summary: Conventions-based JSON generation for Rails.
|
501
|
-
test_files:
|
502
|
-
- test/action_controller/adapter_selector_test.rb
|
503
|
-
- test/action_controller/explicit_serializer_test.rb
|
504
|
-
- test/action_controller/json/include_test.rb
|
505
|
-
- test/action_controller/json_api/deserialization_test.rb
|
506
|
-
- test/action_controller/json_api/errors_test.rb
|
507
|
-
- test/action_controller/json_api/fields_test.rb
|
508
|
-
- test/action_controller/json_api/linked_test.rb
|
509
|
-
- test/action_controller/json_api/pagination_test.rb
|
510
|
-
- test/action_controller/json_api/transform_test.rb
|
511
|
-
- test/action_controller/lookup_proc_test.rb
|
512
|
-
- test/action_controller/namespace_lookup_test.rb
|
513
|
-
- test/action_controller/serialization_scope_name_test.rb
|
514
|
-
- test/action_controller/serialization_test.rb
|
515
|
-
- test/active_model_serializers/adapter_for_test.rb
|
516
|
-
- test/active_model_serializers/json_pointer_test.rb
|
517
|
-
- test/active_model_serializers/logging_test.rb
|
518
|
-
- test/active_model_serializers/model_test.rb
|
519
|
-
- test/active_model_serializers/railtie_test_isolated.rb
|
520
|
-
- test/active_model_serializers/register_jsonapi_renderer_test_isolated.rb
|
521
|
-
- test/active_model_serializers/serialization_context_test_isolated.rb
|
522
|
-
- test/active_model_serializers/test/schema_test.rb
|
523
|
-
- test/active_model_serializers/test/serializer_test.rb
|
524
|
-
- test/active_record_test.rb
|
525
|
-
- test/adapter/attributes_test.rb
|
526
|
-
- test/adapter/deprecation_test.rb
|
527
|
-
- test/adapter/json/belongs_to_test.rb
|
528
|
-
- test/adapter/json/collection_test.rb
|
529
|
-
- test/adapter/json/has_many_test.rb
|
530
|
-
- test/adapter/json/transform_test.rb
|
531
|
-
- test/adapter/json_api/belongs_to_test.rb
|
532
|
-
- test/adapter/json_api/collection_test.rb
|
533
|
-
- test/adapter/json_api/errors_test.rb
|
534
|
-
- test/adapter/json_api/fields_test.rb
|
535
|
-
- test/adapter/json_api/has_many_explicit_serializer_test.rb
|
536
|
-
- test/adapter/json_api/has_many_test.rb
|
537
|
-
- test/adapter/json_api/has_one_test.rb
|
538
|
-
- test/adapter/json_api/include_data_if_sideloaded_test.rb
|
539
|
-
- test/adapter/json_api/json_api_test.rb
|
540
|
-
- test/adapter/json_api/linked_test.rb
|
541
|
-
- test/adapter/json_api/links_test.rb
|
542
|
-
- test/adapter/json_api/pagination_links_test.rb
|
543
|
-
- test/adapter/json_api/parse_test.rb
|
544
|
-
- test/adapter/json_api/relationship_test.rb
|
545
|
-
- test/adapter/json_api/resource_meta_test.rb
|
546
|
-
- test/adapter/json_api/toplevel_jsonapi_test.rb
|
547
|
-
- test/adapter/json_api/transform_test.rb
|
548
|
-
- test/adapter/json_api/type_test.rb
|
549
|
-
- test/adapter/json_test.rb
|
550
|
-
- test/adapter/null_test.rb
|
551
|
-
- test/adapter/polymorphic_test.rb
|
552
|
-
- test/adapter_test.rb
|
553
|
-
- test/array_serializer_test.rb
|
554
|
-
- test/benchmark/app.rb
|
555
|
-
- test/benchmark/benchmarking_support.rb
|
556
|
-
- test/benchmark/bm_active_record.rb
|
557
|
-
- test/benchmark/bm_adapter.rb
|
558
|
-
- test/benchmark/bm_caching.rb
|
559
|
-
- test/benchmark/bm_lookup_chain.rb
|
560
|
-
- test/benchmark/bm_transform.rb
|
561
|
-
- test/benchmark/config.ru
|
562
|
-
- test/benchmark/controllers.rb
|
563
|
-
- test/benchmark/fixtures.rb
|
564
|
-
- test/cache_test.rb
|
565
|
-
- test/collection_serializer_test.rb
|
566
|
-
- test/fixtures/active_record.rb
|
567
|
-
- test/fixtures/poro.rb
|
568
|
-
- test/generators/scaffold_controller_generator_test.rb
|
569
|
-
- test/generators/serializer_generator_test.rb
|
570
|
-
- test/grape_test.rb
|
571
|
-
- test/lint_test.rb
|
572
|
-
- test/logger_test.rb
|
573
|
-
- test/poro_test.rb
|
574
|
-
- test/serializable_resource_test.rb
|
575
|
-
- test/serializers/association_macros_test.rb
|
576
|
-
- test/serializers/associations_test.rb
|
577
|
-
- test/serializers/attribute_test.rb
|
578
|
-
- test/serializers/attributes_test.rb
|
579
|
-
- test/serializers/caching_configuration_test_isolated.rb
|
580
|
-
- test/serializers/configuration_test.rb
|
581
|
-
- test/serializers/fieldset_test.rb
|
582
|
-
- test/serializers/meta_test.rb
|
583
|
-
- test/serializers/options_test.rb
|
584
|
-
- test/serializers/read_attribute_for_serialization_test.rb
|
585
|
-
- test/serializers/reflection_test.rb
|
586
|
-
- test/serializers/root_test.rb
|
587
|
-
- test/serializers/serialization_test.rb
|
588
|
-
- test/serializers/serializer_for_test.rb
|
589
|
-
- test/serializers/serializer_for_with_namespace_test.rb
|
590
|
-
- test/support/custom_schemas/active_model_serializers/test/schema_test/my/index.json
|
591
|
-
- test/support/isolated_unit.rb
|
592
|
-
- test/support/rails5_shims.rb
|
593
|
-
- test/support/rails_app.rb
|
594
|
-
- test/support/schemas/active_model_serializers/test/schema_test/my/index.json
|
595
|
-
- test/support/schemas/active_model_serializers/test/schema_test/my/show.json
|
596
|
-
- test/support/schemas/custom/show.json
|
597
|
-
- test/support/schemas/hyper_schema.json
|
598
|
-
- test/support/schemas/render_using_json_api.json
|
599
|
-
- test/support/schemas/simple_json_pointers.json
|
600
|
-
- test/support/serialization_testing.rb
|
601
|
-
- test/test_helper.rb
|
375
|
+
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
|