bright_serializer 0.5.1 → 0.5.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b1e6a74356becfd673dd4dac712c8928aeea165d28c2a8f32ae95721b2e3a8c
4
- data.tar.gz: 555e6f814e3ae8f2a7bd2754f6084bfa5a52bae88f129928afdad4e20beed8f0
3
+ metadata.gz: 98c7320c0fc88a3b81e2ae0e56c7079d581ef5954acfc97ac8e71fccc16e264a
4
+ data.tar.gz: 9b34e3aa9a463b7297a5611bf7d8168cc4a9f5a385f365603d784f3080770e34
5
5
  SHA512:
6
- metadata.gz: d7b819bcdef793f0e4cb07d575ec7a23632ae11f51352db4d561cf9e705345eca0f77086bc5f9962e660368bb512b5d982040b4b89dfcfc99560abcc1d5b5140
7
- data.tar.gz: a94b5dabd9b6ad3a7b5ebe47f3ef50247f02cd21c42de603e25372969268d60be00572943f740e780c97129673bc7189d3f7f7d9226390a89e693f055f51e447
6
+ metadata.gz: 9c735bfdf750c7ac4607c358980d024facef6216184c9892461b28fb9d5a2217d3a169649cb5c42fde81183b04736f6719186d9bd3bf28c0dc7a7ace8839dcd9
7
+ data.tar.gz: 5f6ec3b66e308f90599d9fb6acf090146a92722de736792c7c297808c0efb3bb1de551e8e054d4f86775cda9830f23c3b8016d5b9b853337efc0777ba424faaa
data/README.md CHANGED
@@ -80,7 +80,7 @@ end
80
80
 
81
81
  ### Transform keys
82
82
 
83
- By default, keys or not transformed.
83
+ By default, keys are not transformed.
84
84
 
85
85
  ```ruby
86
86
  class AccountSerializer
@@ -27,7 +27,7 @@ module BrightSerializer
27
27
  end
28
28
 
29
29
  def serialize(object, attributes_to_serialize)
30
- return nil if @object.nil?
30
+ return if object.nil?
31
31
 
32
32
  attributes_to_serialize.each_with_object({}) do |attribute, result|
33
33
  next unless attribute.condition?(object, @params)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrightSerializer
4
- VERSION = '0.5.1'
4
+ VERSION = '0.5.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bright_serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Francis Bastien
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-05 00:00:00.000000000 Z
11
+ date: 2023-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -68,7 +68,7 @@ metadata:
68
68
  source_code_uri: https://github.com/petalmd/bright_serializer
69
69
  bug_tracker_uri: https://github.com/petalmd/bright_serializer/issues
70
70
  rubygems_mfa_required: 'true'
71
- post_install_message:
71
+ post_install_message:
72
72
  rdoc_options: []
73
73
  require_paths:
74
74
  - lib
@@ -83,8 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubygems_version: 3.4.1
87
- signing_key:
86
+ rubygems_version: 3.2.3
87
+ signing_key:
88
88
  specification_version: 4
89
89
  summary: Light and fast Ruby serializer
90
90
  test_files: []