simply_serializable 1.4.0 → 1.4.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: 3c8d4b8bac053837979a76fd390dd98f9d4d1c979abb46b3f17a2f3094d54113
4
- data.tar.gz: f78b56037f33b5484c018128ac0137e40617bc4ee08007620c8b875c341b58d7
3
+ metadata.gz: adb38d8e9d6729fa9e19de685b9f4f02589cd5bb62c7bd21308e76bba3fc3528
4
+ data.tar.gz: eed2b75138cc3c6737c05af4834c8f4467000e15d0c6783100613b6f7b5fb596
5
5
  SHA512:
6
- metadata.gz: 1e758c6b099e9ef620b4917850471d96e1f9dbf834cc7352a294fd67c428c38af55c556713894abe2a91d812c94c9f0fb8c8ca5fd58b5ca7df777405b30c610c
7
- data.tar.gz: 112f164154044178c370deb26801fa6a7095e4d3c8fc7d4c39bc4459a66b68ce942daaaf7eb7c942306eb1dcfe595f264055ee746088c57f8cc4a8802b480bb0
6
+ metadata.gz: be5b0182bc04138f03c2ba693312386b481946308a886bdcdfac2878622abdb73de4bc60ef5b7ef9b02201f08af32c00a65abdc3764f0ef389d2dfccb2fd3376
7
+ data.tar.gz: e3f7066504a6ad0b080f38be16866eb3c5fb2e975ccc237cd2d111c87316fd87256f24c3cc98fb272045f8e97e6fe1f1294cc307a3634b6de1365ecb256bcfe0
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simply_serializable (1.4.0)
4
+ simply_serializable (1.4.1)
5
5
  fingerprintable (>= 1.2.1)
6
6
 
7
7
  GEM
@@ -8,8 +8,9 @@ module SimplySerializable
8
8
  super(subclass)
9
9
  end
10
10
 
11
- def serialize(attributes: [], except: nil, only: nil)
11
+ def serialize(attributes: [], except: nil, only: nil, **keywords)
12
12
  serializable_config[:attributes] = serializable_config[:attributes] |= attributes
13
+
13
14
  unless except.nil?
14
15
  serializable_config[:except] ||= []
15
16
  serializable_config[:except] = serializable_config[:except] |= except
@@ -19,6 +20,8 @@ module SimplySerializable
19
20
  serializable_config[:only] ||= []
20
21
  serializable_config[:only] = serializable_config[:only] |= only
21
22
  end
23
+
24
+ serializable_config.merge!(keywords)
22
25
  end
23
26
 
24
27
  def serializable_config
@@ -1,3 +1,3 @@
1
1
  module SimplySerializable
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simply_serializable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Jackson