fast_serializer_ruby 0.6.2 → 0.6.3
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 +4 -4
- data/Gemfile +1 -0
- data/Gemfile.lock +5 -0
- data/lib/fast_serializer/schema.rb +3 -4
- data/lib/fast_serializer/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: 8d8ad37dfcd016a3db647dd533569d8d9f70850eb2bf6fe825867175eb9b6dc2
|
4
|
+
data.tar.gz: cf9225cb0900f487bbe5b066127dfde74aec433e79eddc9303d008b4242f30f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2168332398602023551252abc1d458cf3f37d1449d80a701ac316bd44d2270381e8cd70e72dc2aa52e54c4701167f1d4f30050be8a059822158d1de438bd285
|
7
|
+
data.tar.gz: 396590ae7497cc7eae403cf7db3f0a6a6045cefb833442ddfc750ad34077a8bdbf1d7ed9056d011b31af20b9d8e90d3fd402c46b6ae3a78735f34d441961ed99
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -38,6 +38,7 @@ GEM
|
|
38
38
|
benchmark-perf (0.6.0)
|
39
39
|
benchmark-trend (0.4.0)
|
40
40
|
builder (3.2.4)
|
41
|
+
byebug (11.1.3)
|
41
42
|
case_transform (0.2)
|
42
43
|
activesupport
|
43
44
|
coderay (1.1.2)
|
@@ -73,6 +74,9 @@ GEM
|
|
73
74
|
coderay (~> 1.1.0)
|
74
75
|
method_source (~> 0.9.0)
|
75
76
|
spoon (~> 0.0)
|
77
|
+
pry-byebug (3.8.0)
|
78
|
+
byebug (~> 11.0)
|
79
|
+
pry (~> 0.10)
|
76
80
|
rack (2.2.2)
|
77
81
|
rack-test (1.1.0)
|
78
82
|
rack (>= 1.0, < 3)
|
@@ -125,6 +129,7 @@ DEPENDENCIES
|
|
125
129
|
faker
|
126
130
|
fast_serializer_ruby!
|
127
131
|
pry
|
132
|
+
pry-byebug
|
128
133
|
rake
|
129
134
|
rspec (~> 3.0)
|
130
135
|
rspec-benchmark
|
@@ -135,10 +135,11 @@ module FastSerializer
|
|
135
135
|
_params_dup = FastSerializer::Utils.symbolize_keys(self.params)
|
136
136
|
meta = _params_dup.delete(:meta)
|
137
137
|
|
138
|
-
is_collection = if
|
138
|
+
is_collection = if _params_dup.key?(:is_collection)
|
139
|
+
_params_dup.delete(:is_collection)
|
139
140
|
params.delete(:is_collection)
|
140
141
|
else
|
141
|
-
resource.respond_to?(:
|
142
|
+
resource.respond_to?(:each) && !resource.respond_to?(:each_pair)
|
142
143
|
end
|
143
144
|
|
144
145
|
root = (_root || _params_dup.delete(:root))
|
@@ -153,9 +154,7 @@ module FastSerializer
|
|
153
154
|
end
|
154
155
|
|
155
156
|
else
|
156
|
-
|
157
157
|
serialization_schema.serialize(resource, _params_dup, context)
|
158
|
-
|
159
158
|
end
|
160
159
|
|
161
160
|
res = { root => res } if root && !root.empty?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fast_serializer_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evgeny Stepanov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This library intends to solve such a typical and on the other hand important
|
14
14
|
problem as efficient ruby object to hash transformation.
|