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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 107bcbbe1708fd38efdb7943673c11112350eeee1e457e67e50934641e8081e7
4
- data.tar.gz: dbb8a8732f99088318ae2d7c16b11dc219bb96357347d1d2174b106216e82599
3
+ metadata.gz: e3ceb7a2dea10b4bc18d98eb9d0425f6a77caf1f3f9be3ca104063651bb64461
4
+ data.tar.gz: 18d9ba2eccf240725e53ee2ffd56398a1baa0df1642379c5ff5a9efefbf9fac9
5
5
  SHA512:
6
- metadata.gz: d6e0dc57e64062a6934f0e3f336412c897ec4fe5d7497b65536bf45c59c270f39e278fc183f299bfe0cdc6b55769e652d3f6b153bb298bc2f311a0edf2a8e3ad
7
- data.tar.gz: 00f07fd96b3e9fa907b457969d227e641cfcce1c9e2f67a56bb9f5d9f07b8222d8861144737eb443508ed50024d31992836a3285a1c739e9588817912a6ca168
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
- options.except!(:type, :optional)
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module TypesFromSerializers
4
4
  # Public: This library adheres to semantic versioning.
5
- VERSION = "2.0.0"
5
+ VERSION = "2.0.1"
6
6
  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.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-02 00:00:00.000000000 Z
11
+ date: 2023-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties