types_from_serializers 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/types_from_serializers/dsl.rb +2 -3
- data/lib/types_from_serializers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3ceb7a2dea10b4bc18d98eb9d0425f6a77caf1f3f9be3ca104063651bb64461
|
4
|
+
data.tar.gz: 18d9ba2eccf240725e53ee2ffd56398a1baa0df1642379c5ff5a9efefbf9fac9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b5f49158e7e4b81ee3f2645177200e727868827e8a0a81500c1445729dabc693e19a45a593b9fd264341a66abc53ac1f76b138664958eda64a39d0950e61728
|
7
|
+
data.tar.gz: 9d0d6711c70947f4a11f66b59523048982f5ab05914b35269be018ad415f789c959cff9977c6bb8fe5f43f4e53e126b7934881544b059db1c6c583952db28b5e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## [2.0.1](https://github.com/ElMassimo/types_from_serializers/compare/types_from_serializers@2.0.0...types_from_serializers@2.0.1) (2023-04-03)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* `add_attribute` now expects keyword arguments ([154b49e](https://github.com/ElMassimo/types_from_serializers/commit/154b49e463e3e6533b21520b7f0d699e6f0f47ba))
|
7
|
+
|
8
|
+
|
9
|
+
|
1
10
|
## [2.0.0](https://github.com/ElMassimo/types_from_serializers/compare/types_from_serializers@0.1.2...types_from_serializers@2.0.0) (2023-04-02)
|
2
11
|
|
3
12
|
This version adds support for `oj_serializers-2.0.2`, supporting all changes in:
|
@@ -37,9 +37,8 @@ module TypesFromSerializers
|
|
37
37
|
# Override: Remove unnecessary options in production, types are only
|
38
38
|
# used when generating code in development.
|
39
39
|
unless Rails.env.development?
|
40
|
-
def add_attribute(name, options)
|
41
|
-
|
42
|
-
super
|
40
|
+
def add_attribute(name, type: nil, optional: nil, **options)
|
41
|
+
super(name, **options)
|
43
42
|
end
|
44
43
|
end
|
45
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: types_from_serializers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Máximo Mussini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|