bright_serializer 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/bright_serializer/serializer.rb +1 -1
- data/lib/bright_serializer/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98c7320c0fc88a3b81e2ae0e56c7079d581ef5954acfc97ac8e71fccc16e264a
|
4
|
+
data.tar.gz: 9b34e3aa9a463b7297a5611bf7d8168cc4a9f5a385f365603d784f3080770e34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c735bfdf750c7ac4607c358980d024facef6216184c9892461b28fb9d5a2217d3a169649cb5c42fde81183b04736f6719186d9bd3bf28c0dc7a7ace8839dcd9
|
7
|
+
data.tar.gz: 5f6ec3b66e308f90599d9fb6acf090146a92722de736792c7c297808c0efb3bb1de551e8e054d4f86775cda9830f23c3b8016d5b9b853337efc0777ba424faaa
|
data/README.md
CHANGED
@@ -27,7 +27,7 @@ module BrightSerializer
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def serialize(object, attributes_to_serialize)
|
30
|
-
return
|
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)
|
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.
|
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-
|
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.
|
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: []
|