fast_serializer_ruby 0.6.8 → 0.6.9

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: 9c4af5f498164053b8b9a53fd9b8946385d4f541710cd6c3ce76ea4a4840fc64
4
- data.tar.gz: 1ec8e454473467c832669016032c8305ba859cbee0f51acdd5e8a6c3c012d7e0
3
+ metadata.gz: f2940f6fcbb0acd2b9606012952b2a49f2a50e2ae1af63ea42d7d31868783204
4
+ data.tar.gz: dae74a23431c7230147e1285cd3920c25ebb6573a012c13cabdbcc1607293ddc
5
5
  SHA512:
6
- metadata.gz: 391ce5281f4ed65dbb0c6d505e008bf3c1fe90da341a1f2648cd488757ce0d763f63249aab56de2b2a8af2cdcaf33383816d3c2e477cead34267465671be6e30
7
- data.tar.gz: 2cea4c882c7b081422d9043136b749d82894dd07515893566ae47ff11f7f4aebc9a1ff15a38173c1bd5b8364c9fe43f966b2df39eb737050239e600a9c6ebb8a
6
+ metadata.gz: 208cac4f8ace7a76264b5d5175d290c884f1364978a2c3687ed80cc9bad9ad3d9874701547cd1c95a7a2eaeffe06678b9ed18b2e3069905a6b5a011b8685414e
7
+ data.tar.gz: 389bce4ee62355324e7aaffcc187f6201305a987fed082f83c339f01d662017f2c2303e0a8399d66193f2167589f7f638f220c859aa10aacfcf7672c4222ea67
@@ -132,8 +132,10 @@ module FastSerializer
132
132
  end
133
133
 
134
134
  def serialize_resource(resource, params = {}, context = self)
135
- Utils.ref_merge(self.params, params)
136
135
  _params_dup = FastSerializer::Utils.symbolize_keys(self.params)
136
+ Utils.ref_merge(_params_dup, params)
137
+ self.params.delete(:meta)
138
+
137
139
  meta = _params_dup.delete(:meta)
138
140
 
139
141
  is_collection = if _params_dup.key?(:is_collection)
@@ -5,7 +5,7 @@ module FastSerializer
5
5
  def self.symbolize_keys(hash)
6
6
  res = {}
7
7
  hash.each { |key, value| res[key.to_sym] = value }
8
- hash
8
+ res
9
9
  end
10
10
 
11
11
  def self.ref_merge(hash_a, hash_b)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FastSerializer
4
- VERSION = '0.6.8'
4
+ VERSION = '0.6.9'
5
5
  end
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.8
4
+ version: 0.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeny Stepanov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-25 00:00:00.000000000 Z
11
+ date: 2022-08-10 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.