active_model_serializers 0.10.10 → 0.10.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -1
- data/README.md +18 -19
- data/lib/active_model/serializer/collection_serializer.rb +11 -2
- data/lib/active_model/serializer/concerns/caching.rb +2 -1
- data/lib/active_model/serializer/fieldset.rb +1 -1
- data/lib/active_model/serializer/reflection.rb +4 -4
- data/lib/active_model/serializer/version.rb +1 -1
- data/lib/active_model/serializer.rb +3 -2
- data/lib/active_model_serializers/adapter/json_api/pagination_links.rb +5 -1
- data/lib/active_model_serializers/model/caching.rb +26 -0
- metadata +19 -44
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 94ecdeeabcad7f33e6b2891f2354edeb1fdabf444d9938014d839b554f0a5ab7
|
|
4
|
+
data.tar.gz: cd43b9ceddf4920feb4efae6c5d0748bbb6e37111328c015cdcca06ba8f9d86d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 93b28755ff8f015277534dfc971cab0ef5bf30745bebb34c90e2f6e17c1cb611ef1100ba9e484ebdd1dc415d2c9d1c7e715984a1052e75daada8f712b1126850
|
|
7
|
+
data.tar.gz: 86d257304d0e58b87e82a8c32f55a7722ffdc568dd394ac93214dfe382bf8ff27c8bed24c11f6a948184a16a67ad5fa7bbaf98f2443b2d11c017ce5463c58947
|
data/CHANGELOG.md
CHANGED
|
@@ -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.
|
|
3
|
+
### [master (unreleased)](https://github.com/rails-api/active_model_serializers/compare/v0.10.13...0-10-stable)
|
|
4
4
|
|
|
5
5
|
Breaking changes:
|
|
6
6
|
|
|
@@ -10,6 +10,29 @@ Fixes:
|
|
|
10
10
|
|
|
11
11
|
Misc:
|
|
12
12
|
|
|
13
|
+
### [v0.10.13 (2022-01013)](https://github.com/rails-api/active_model_serializers/compare/v0.10.12...v0.10.13)
|
|
14
|
+
|
|
15
|
+
Fixes:
|
|
16
|
+
|
|
17
|
+
- [#2399](https://github.com/rails-api/active_model_serializers/pull/2399) Handles edge case where requested current_page > total_pages (@f3z0)
|
|
18
|
+
|
|
19
|
+
### [v0.10.12 (2020-12-10)](https://github.com/rails-api/active_model_serializers/compare/v0.10.11...v0.10.12)
|
|
20
|
+
|
|
21
|
+
Fixes:
|
|
22
|
+
|
|
23
|
+
- [#2398](https://github.com/rails-api/active_model_serializers/pull/2398) Update rails dependency to < 6.2 (@ritikesh)
|
|
24
|
+
|
|
25
|
+
### [v0.10.11 (2020-12-04)](https://github.com/rails-api/active_model_serializers/compare/v0.10.10...v0.10.11)
|
|
26
|
+
|
|
27
|
+
Features:
|
|
28
|
+
|
|
29
|
+
- [#2361](https://github.com/rails-api/active_model_serializers/pull/2361) Add `ActiveModelSerializers.config.use_sha1_digests` to allow customization of the hashing algorithm used for serializer caching (@alexzherdev)
|
|
30
|
+
|
|
31
|
+
Fixes:
|
|
32
|
+
|
|
33
|
+
- [#2344](https://github.com/rails-api/active_model_serializers/pull/2344) Fixes #2341 introduced since #2223 (@wasifhossain)
|
|
34
|
+
- [#2395](https://github.com/rails-api/active_model_serializers/pull/2395) remove explicit require for thread_safe (@ritikesh)
|
|
35
|
+
|
|
13
36
|
### [v0.10.10 (2019-07-13)](https://github.com/rails-api/active_model_serializers/compare/v0.10.9...v0.10.10)
|
|
14
37
|
|
|
15
38
|
Fixes:
|
data/README.md
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<tr>
|
|
5
5
|
<td>Build Status</td>
|
|
6
6
|
<td>
|
|
7
|
-
<a href="https://travis-ci.org/rails-api/active_model_serializers"><img src="https://travis-ci.org/rails-api/active_model_serializers.svg?branch=
|
|
8
|
-
<a href="https://ci.appveyor.com/project/
|
|
7
|
+
<a href="https://travis-ci.org/rails-api/active_model_serializers"><img src="https://api.travis-ci.org/rails-api/active_model_serializers.svg?branch=0-10-stable" alt="Build Status" ></a>
|
|
8
|
+
<a href="https://ci.appveyor.com/project/bf4/active-model-serializers/branch/0-10-stable"><img src="https://ci.appveyor.com/api/projects/status/x6xdjydutm54gvyt/branch/master?svg=true" alt="Build status"></a>
|
|
9
9
|
</td>
|
|
10
10
|
</tr>
|
|
11
11
|
<tr>
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
<td>
|
|
14
14
|
<a href="https://codeclimate.com/github/rails-api/active_model_serializers"><img src="https://codeclimate.com/github/rails-api/active_model_serializers/badges/gpa.svg" alt="Code Quality"></a>
|
|
15
15
|
<a href="https://codebeat.co/projects/github-com-rails-api-active_model_serializers"><img src="https://codebeat.co/badges/a9ab35fa-8b5a-4680-9d4e-a81f9a55ebcd" alt="codebeat" ></a>
|
|
16
|
-
<a href="https://codeclimate.com/github/rails-api/active_model_serializers/coverage"><img src="https://codeclimate.com/github/rails-api/active_model_serializers/badges/coverage.svg" alt="Test Coverage"></a>
|
|
17
16
|
</td>
|
|
18
17
|
</tr>
|
|
19
18
|
<tr>
|
|
@@ -41,7 +40,7 @@ these methods to the adapter.)
|
|
|
41
40
|
|
|
42
41
|
By default ActiveModelSerializers will use the **Attributes Adapter** (no JSON root).
|
|
43
42
|
But we strongly advise you to use **JsonApi Adapter**, which
|
|
44
|
-
follows 1.0 of the format specified in [jsonapi.org/format](
|
|
43
|
+
follows 1.0 of the format specified in [jsonapi.org/format](https://jsonapi.org/format).
|
|
45
44
|
Check how to change the adapter in the sections below.
|
|
46
45
|
|
|
47
46
|
`0.10.x` is **not** backward compatible with `0.9.x` nor `0.8.x`.
|
|
@@ -75,9 +74,9 @@ More information is available in the [Guides](docs) and
|
|
|
75
74
|
If you find a bug, please report an [Issue](https://github.com/rails-api/active_model_serializers/issues/new)
|
|
76
75
|
and see our [contributing guide](CONTRIBUTING.md).
|
|
77
76
|
|
|
78
|
-
If you have a question, please [post to Stack Overflow](
|
|
77
|
+
If you have a question, please [post to Stack Overflow](https://stackoverflow.com/questions/tagged/active-model-serializers).
|
|
79
78
|
|
|
80
|
-
If you'd like to chat, we have a [community slack](
|
|
79
|
+
If you'd like to chat, we have a [community slack](https://amserializers.herokuapp.com).
|
|
81
80
|
|
|
82
81
|
Thanks!
|
|
83
82
|
|
|
@@ -87,14 +86,14 @@ If you're reading this at https://github.com/rails-api/active_model_serializers
|
|
|
87
86
|
reading documentation for our `master`, which may include features that have not
|
|
88
87
|
been released yet. Please see below for the documentation relevant to you.
|
|
89
88
|
|
|
90
|
-
- [0.10 (
|
|
91
|
-
- [0.10.
|
|
92
|
-
|
|
93
|
-
|
|
89
|
+
- [0.10 (0-10-stable) Documentation](https://github.com/rails-api/active_model_serializers/tree/0-10-stable)
|
|
90
|
+
- [0.10.10 (latest release) Documentation](https://github.com/rails-api/active_model_serializers/tree/v0.10.10)
|
|
91
|
+
- [](https://www.rubydoc.info/gems/active_model_serializers/0.10.10)
|
|
92
|
+
- [Guides](docs)
|
|
94
93
|
- [0.9 (0-9-stable) Documentation](https://github.com/rails-api/active_model_serializers/tree/0-9-stable)
|
|
95
|
-
|
|
94
|
+
- [](https://www.rubydoc.info/gems/active_model_serializers/0.9.7)
|
|
96
95
|
- [0.8 (0-8-stable) Documentation](https://github.com/rails-api/active_model_serializers/tree/0-8-stable)
|
|
97
|
-
|
|
96
|
+
- [](https://www.rubydoc.info/gems/active_model_serializers/0.8.4)
|
|
98
97
|
|
|
99
98
|
|
|
100
99
|
## High-level behavior
|
|
@@ -171,12 +170,12 @@ The original design is also available [here](https://github.com/rails-api/active
|
|
|
171
170
|
|
|
172
171
|
### ActiveModel::Serializer
|
|
173
172
|
|
|
174
|
-
An **`ActiveModel::Serializer`** wraps a [serializable resource](https://github.com/rails/rails/blob/
|
|
173
|
+
An **`ActiveModel::Serializer`** wraps a [serializable resource](https://github.com/rails/rails/blob/master/activemodel/lib/active_model/serialization.rb)
|
|
175
174
|
and exposes an `attributes` method, among a few others.
|
|
176
175
|
It allows you to specify which attributes and associations should be represented in the serializatation of the resource.
|
|
177
176
|
It requires an adapter to transform its attributes into a JSON document; it cannot be serialized itself.
|
|
178
177
|
It may be useful to think of it as a
|
|
179
|
-
[presenter](
|
|
178
|
+
[presenter](https://blog.steveklabnik.com/posts/2011-09-09-better-ruby-presenters).
|
|
180
179
|
|
|
181
180
|
#### ActiveModel::CollectionSerializer
|
|
182
181
|
|
|
@@ -188,7 +187,7 @@ and, if there is no serializer, primitives.
|
|
|
188
187
|
The **`ActiveModelSerializers::Adapter::Base`** describes the structure of the JSON document generated from a
|
|
189
188
|
serializer. For example, the `Attributes` example represents each serializer as its
|
|
190
189
|
unmodified attributes. The `JsonApi` adapter represents the serializer as a [JSON
|
|
191
|
-
API](
|
|
190
|
+
API](https://jsonapi.org/) document.
|
|
192
191
|
|
|
193
192
|
### ActiveModelSerializers::SerializableResource
|
|
194
193
|
|
|
@@ -229,7 +228,7 @@ High-level overview:
|
|
|
229
228
|
- `:each_serializer` specifies the serializer for each resource in the collection.
|
|
230
229
|
- For a **single resource**, the `:serializer` option is the resource serializer.
|
|
231
230
|
- Options are partitioned in serializer options and adapter options. Keys for adapter options are specified by
|
|
232
|
-
[`ADAPTER_OPTION_KEYS`](
|
|
231
|
+
[`ADAPTER_OPTION_KEYS`](lib/active_model_serializers/serializable_resource.rb#L5).
|
|
233
232
|
The remaining options are serializer options.
|
|
234
233
|
|
|
235
234
|
Details:
|
|
@@ -254,7 +253,7 @@ Details:
|
|
|
254
253
|
2. `adapter_instance = ActiveModel::Serializer::Adapter.create(serializer_instance, adapter_opts)`
|
|
255
254
|
1. **ActiveModel::Serializer::CollectionSerializer#new**
|
|
256
255
|
1. If the `serializer_instance` was a `CollectionSerializer` and the `:serializer` serializer_opts
|
|
257
|
-
is present, then [that serializer is passed into each resource](https://github.com/rails-api/active_model_serializers/blob/
|
|
256
|
+
is present, then [that serializer is passed into each resource](https://github.com/rails-api/active_model_serializers/blob/0-10-stable/lib/active_model/serializer/collection_serializer.rb#L77-L79).
|
|
258
257
|
1. **ActiveModel::Serializer#attributes** is used by the adapter to get the attributes for
|
|
259
258
|
resource as defined by the serializer.
|
|
260
259
|
|
|
@@ -270,7 +269,7 @@ to know about, but not part of ActiveModelSerializers.)
|
|
|
270
269
|
[(code)](lib/active_model/serializer/lint.rb).
|
|
271
270
|
|
|
272
271
|
ActiveModelSerializers provides a
|
|
273
|
-
[`ActiveModelSerializers::Model`](
|
|
272
|
+
[`ActiveModelSerializers::Model`](lib/active_model_serializers/model.rb),
|
|
274
273
|
which is a simple serializable PORO (Plain-Old Ruby Object).
|
|
275
274
|
|
|
276
275
|
`ActiveModelSerializers::Model` may be used either as a reference implementation, or in production code.
|
|
@@ -298,7 +297,7 @@ ActiveModelSerializers::SerializableResource.new(MyModel.new(level: 'awesome'),
|
|
|
298
297
|
|
|
299
298
|
## Semantic Versioning
|
|
300
299
|
|
|
301
|
-
This project adheres to [semver](
|
|
300
|
+
This project adheres to [semver](https://semver.org/)
|
|
302
301
|
|
|
303
302
|
## Contributing
|
|
304
303
|
|
|
@@ -48,8 +48,11 @@ module ActiveModel
|
|
|
48
48
|
key ||= object.respond_to?(:name) ? object.name && object.name.underscore : nil
|
|
49
49
|
# 4. key may be nil for empty collection and no serializer option
|
|
50
50
|
key &&= key.pluralize
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
if raise_cannot_infer_root_key_error?
|
|
52
|
+
# 5. fail if the key cannot be determined
|
|
53
|
+
key || fail(CannotInferRootKeyError, 'Cannot infer root key from collection type. Please specify the root or each_serializer option, or render a JSON String')
|
|
54
|
+
end
|
|
55
|
+
key
|
|
53
56
|
end
|
|
54
57
|
# rubocop:enable Metrics/CyclomaticComplexity
|
|
55
58
|
|
|
@@ -60,12 +63,18 @@ module ActiveModel
|
|
|
60
63
|
object.respond_to?(:size)
|
|
61
64
|
end
|
|
62
65
|
|
|
66
|
+
class CannotInferRootKeyError < StandardError; end
|
|
67
|
+
|
|
63
68
|
protected
|
|
64
69
|
|
|
65
70
|
attr_reader :serializers, :options
|
|
66
71
|
|
|
67
72
|
private
|
|
68
73
|
|
|
74
|
+
def raise_cannot_infer_root_key_error?
|
|
75
|
+
ActiveModelSerializers.config.raise_cannot_infer_root_key_error
|
|
76
|
+
end
|
|
77
|
+
|
|
69
78
|
def serializers_from_resources
|
|
70
79
|
serializer_context_class = options.fetch(:serializer_context_class, ActiveModel::Serializer)
|
|
71
80
|
object.map do |resource|
|
|
@@ -56,7 +56,8 @@ module ActiveModel
|
|
|
56
56
|
def digest_caller_file(caller_line)
|
|
57
57
|
serializer_file_path = caller_line[CALLER_FILE]
|
|
58
58
|
serializer_file_contents = IO.read(serializer_file_path)
|
|
59
|
-
Digest::MD5
|
|
59
|
+
algorithm = ActiveModelSerializers.config.use_sha1_digests ? Digest::SHA1 : Digest::MD5
|
|
60
|
+
algorithm.hexdigest(serializer_file_contents)
|
|
60
61
|
rescue TypeError, Errno::ENOENT
|
|
61
62
|
warn <<-EOF.strip_heredoc
|
|
62
63
|
Cannot digest non-existent file: '#{caller_line}'.
|
|
@@ -87,8 +87,8 @@ module ActiveModel
|
|
|
87
87
|
# meta ids: ids
|
|
88
88
|
# end
|
|
89
89
|
# end
|
|
90
|
-
def link(name, value = nil)
|
|
91
|
-
options[:links][name] = block_given? ?
|
|
90
|
+
def link(name, value = nil, &block)
|
|
91
|
+
options[:links][name] = block_given? ? block : value
|
|
92
92
|
:nil
|
|
93
93
|
end
|
|
94
94
|
|
|
@@ -102,8 +102,8 @@ module ActiveModel
|
|
|
102
102
|
# href object.blog.id.to_s
|
|
103
103
|
# meta(id: object.blog.id)
|
|
104
104
|
# end
|
|
105
|
-
def meta(value = nil)
|
|
106
|
-
options[:meta] = block_given? ?
|
|
105
|
+
def meta(value = nil, &block)
|
|
106
|
+
options[:meta] = block_given? ? block : value
|
|
107
107
|
:nil
|
|
108
108
|
end
|
|
109
109
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'thread_safe'
|
|
4
3
|
require 'jsonapi/include_directive'
|
|
5
4
|
require 'active_model/serializer/collection_serializer'
|
|
6
5
|
require 'active_model/serializer/array_serializer'
|
|
@@ -73,7 +72,7 @@ module ActiveModel
|
|
|
73
72
|
# Used to cache serializer name => serializer class
|
|
74
73
|
# when looked up by Serializer.get_serializer_for.
|
|
75
74
|
def self.serializers_cache
|
|
76
|
-
@serializers_cache ||=
|
|
75
|
+
@serializers_cache ||= Concurrent::Map.new
|
|
77
76
|
end
|
|
78
77
|
|
|
79
78
|
# @api private
|
|
@@ -147,6 +146,8 @@ module ActiveModel
|
|
|
147
146
|
config.jsonapi_include_toplevel_object = false
|
|
148
147
|
config.jsonapi_use_foreign_key_on_belongs_to_relationship = false
|
|
149
148
|
config.include_data_default = true
|
|
149
|
+
# Raise ActiveModel::Serializer::CollectionSerializer::CannotInferRootKeyError when cannot infer root key from collection type
|
|
150
|
+
config.raise_cannot_infer_root_key_error = true
|
|
150
151
|
|
|
151
152
|
# For configuring how serializers are found.
|
|
152
153
|
# This should be an array of procs.
|
|
@@ -55,11 +55,15 @@ module ActiveModelSerializers
|
|
|
55
55
|
|
|
56
56
|
def prev_page_url
|
|
57
57
|
return nil if collection.current_page == FIRST_PAGE
|
|
58
|
+
if collection.current_page > collection.total_pages
|
|
59
|
+
return url_for_page(collection.total_pages)
|
|
60
|
+
end
|
|
58
61
|
url_for_page(collection.current_page - FIRST_PAGE)
|
|
59
62
|
end
|
|
60
63
|
|
|
61
64
|
def next_page_url
|
|
62
|
-
return nil if collection.total_pages == 0 ||
|
|
65
|
+
return nil if collection.total_pages == 0 ||
|
|
66
|
+
collection.current_page >= collection.total_pages
|
|
63
67
|
url_for_page(collection.next_page)
|
|
64
68
|
end
|
|
65
69
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
module ActiveModelSerializers
|
|
3
|
+
class Model
|
|
4
|
+
module Caching
|
|
5
|
+
extend ActiveSupport::Concern
|
|
6
|
+
|
|
7
|
+
included do
|
|
8
|
+
attr_writer :updated_at
|
|
9
|
+
attributes :id
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# Defaults to the downcased model name and updated_at
|
|
13
|
+
def cache_key
|
|
14
|
+
ActiveSupport::Cache.expand_cache_key([
|
|
15
|
+
self.class.model_name.name.downcase,
|
|
16
|
+
"#{id}-#{updated_at.strftime('%Y%m%d%H%M%S%9N')}"
|
|
17
|
+
].compact)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# Defaults to the time the serializer file was modified.
|
|
21
|
+
def updated_at
|
|
22
|
+
defined?(@updated_at) ? @updated_at : File.mtime(__FILE__)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
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.
|
|
4
|
+
version: 0.10.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steve Klabnik
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-01-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|
|
@@ -19,7 +19,7 @@ dependencies:
|
|
|
19
19
|
version: '4.1'
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: '
|
|
22
|
+
version: '7.1'
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -29,7 +29,7 @@ dependencies:
|
|
|
29
29
|
version: '4.1'
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: '
|
|
32
|
+
version: '7.1'
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: actionpack
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -39,7 +39,7 @@ dependencies:
|
|
|
39
39
|
version: '4.1'
|
|
40
40
|
- - "<"
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: '
|
|
42
|
+
version: '7.1'
|
|
43
43
|
type: :runtime
|
|
44
44
|
prerelease: false
|
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -49,7 +49,7 @@ dependencies:
|
|
|
49
49
|
version: '4.1'
|
|
50
50
|
- - "<"
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
|
-
version: '
|
|
52
|
+
version: '7.1'
|
|
53
53
|
- !ruby/object:Gem::Dependency
|
|
54
54
|
name: railties
|
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -59,7 +59,7 @@ dependencies:
|
|
|
59
59
|
version: '4.1'
|
|
60
60
|
- - "<"
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: '
|
|
62
|
+
version: '7.1'
|
|
63
63
|
type: :development
|
|
64
64
|
prerelease: false
|
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -69,7 +69,7 @@ dependencies:
|
|
|
69
69
|
version: '4.1'
|
|
70
70
|
- - "<"
|
|
71
71
|
- !ruby/object:Gem::Version
|
|
72
|
-
version: '
|
|
72
|
+
version: '7.1'
|
|
73
73
|
- !ruby/object:Gem::Dependency
|
|
74
74
|
name: minitest
|
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -133,7 +133,7 @@ dependencies:
|
|
|
133
133
|
version: '4.1'
|
|
134
134
|
- - "<"
|
|
135
135
|
- !ruby/object:Gem::Version
|
|
136
|
-
version: '
|
|
136
|
+
version: '7.1'
|
|
137
137
|
type: :development
|
|
138
138
|
prerelease: false
|
|
139
139
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -143,7 +143,7 @@ dependencies:
|
|
|
143
143
|
version: '4.1'
|
|
144
144
|
- - "<"
|
|
145
145
|
- !ruby/object:Gem::Version
|
|
146
|
-
version: '
|
|
146
|
+
version: '7.1'
|
|
147
147
|
- !ruby/object:Gem::Dependency
|
|
148
148
|
name: kaminari
|
|
149
149
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -182,30 +182,16 @@ dependencies:
|
|
|
182
182
|
name: bundler
|
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
|
184
184
|
requirements:
|
|
185
|
-
- - "
|
|
186
|
-
- !ruby/object:Gem::Version
|
|
187
|
-
version: '1.6'
|
|
188
|
-
type: :development
|
|
189
|
-
prerelease: false
|
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
191
|
-
requirements:
|
|
192
|
-
- - "~>"
|
|
193
|
-
- !ruby/object:Gem::Version
|
|
194
|
-
version: '1.6'
|
|
195
|
-
- !ruby/object:Gem::Dependency
|
|
196
|
-
name: simplecov
|
|
197
|
-
requirement: !ruby/object:Gem::Requirement
|
|
198
|
-
requirements:
|
|
199
|
-
- - "~>"
|
|
185
|
+
- - ">="
|
|
200
186
|
- !ruby/object:Gem::Version
|
|
201
|
-
version: '0
|
|
187
|
+
version: '0'
|
|
202
188
|
type: :development
|
|
203
189
|
prerelease: false
|
|
204
190
|
version_requirements: !ruby/object:Gem::Requirement
|
|
205
191
|
requirements:
|
|
206
|
-
- - "
|
|
192
|
+
- - ">="
|
|
207
193
|
- !ruby/object:Gem::Version
|
|
208
|
-
version: '0
|
|
194
|
+
version: '0'
|
|
209
195
|
- !ruby/object:Gem::Dependency
|
|
210
196
|
name: timecop
|
|
211
197
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -227,9 +213,6 @@ dependencies:
|
|
|
227
213
|
- - ">="
|
|
228
214
|
- !ruby/object:Gem::Version
|
|
229
215
|
version: '0.13'
|
|
230
|
-
- - "<"
|
|
231
|
-
- !ruby/object:Gem::Version
|
|
232
|
-
version: 0.19.1
|
|
233
216
|
type: :development
|
|
234
217
|
prerelease: false
|
|
235
218
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -237,9 +220,6 @@ dependencies:
|
|
|
237
220
|
- - ">="
|
|
238
221
|
- !ruby/object:Gem::Version
|
|
239
222
|
version: '0.13'
|
|
240
|
-
- - "<"
|
|
241
|
-
- !ruby/object:Gem::Version
|
|
242
|
-
version: 0.19.1
|
|
243
223
|
- !ruby/object:Gem::Dependency
|
|
244
224
|
name: json_schema
|
|
245
225
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -261,9 +241,6 @@ dependencies:
|
|
|
261
241
|
- - ">="
|
|
262
242
|
- !ruby/object:Gem::Version
|
|
263
243
|
version: '10.0'
|
|
264
|
-
- - "<"
|
|
265
|
-
- !ruby/object:Gem::Version
|
|
266
|
-
version: '12.0'
|
|
267
244
|
type: :development
|
|
268
245
|
prerelease: false
|
|
269
246
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -271,9 +248,6 @@ dependencies:
|
|
|
271
248
|
- - ">="
|
|
272
249
|
- !ruby/object:Gem::Version
|
|
273
250
|
version: '10.0'
|
|
274
|
-
- - "<"
|
|
275
|
-
- !ruby/object:Gem::Version
|
|
276
|
-
version: '12.0'
|
|
277
251
|
description: ActiveModel::Serializers allows you to generate your JSON in an object-oriented
|
|
278
252
|
and convention-driven manner.
|
|
279
253
|
email:
|
|
@@ -334,6 +308,7 @@ files:
|
|
|
334
308
|
- lib/active_model_serializers/logging.rb
|
|
335
309
|
- lib/active_model_serializers/lookup_chain.rb
|
|
336
310
|
- lib/active_model_serializers/model.rb
|
|
311
|
+
- lib/active_model_serializers/model/caching.rb
|
|
337
312
|
- lib/active_model_serializers/railtie.rb
|
|
338
313
|
- lib/active_model_serializers/register_jsonapi_renderer.rb
|
|
339
314
|
- lib/active_model_serializers/serializable_resource.rb
|
|
@@ -353,7 +328,7 @@ homepage: https://github.com/rails-api/active_model_serializers
|
|
|
353
328
|
licenses:
|
|
354
329
|
- MIT
|
|
355
330
|
metadata: {}
|
|
356
|
-
post_install_message:
|
|
331
|
+
post_install_message:
|
|
357
332
|
rdoc_options: []
|
|
358
333
|
require_paths:
|
|
359
334
|
- lib
|
|
@@ -368,8 +343,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
368
343
|
- !ruby/object:Gem::Version
|
|
369
344
|
version: '0'
|
|
370
345
|
requirements: []
|
|
371
|
-
rubygems_version: 3.
|
|
372
|
-
signing_key:
|
|
346
|
+
rubygems_version: 3.1.4
|
|
347
|
+
signing_key:
|
|
373
348
|
specification_version: 4
|
|
374
349
|
summary: Conventions-based JSON generation for Rails.
|
|
375
350
|
test_files: []
|