bright_serializer 0.2.3 → 0.2.4

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: 77aa6c33f823a9f96b4d8a73fac9f7a87cf7892431d6e0f3cd1186b9da9fdf6b
4
- data.tar.gz: b9820f01f3cf1d5d86588741b0f7af93521c4b55c5dc7352940b3cb1bebdc3e7
3
+ metadata.gz: d34ca348e2b3543d6cf6c92a43c2d29e83989a0a5b2547a679503aeb89fab290
4
+ data.tar.gz: cb4c301a3b999b5f1a392da16d2e334196a822b5936404f4c575e3e3ce87911b
5
5
  SHA512:
6
- metadata.gz: 2093dc003212c566476fb83ebb95cc0e9951e5652d0e4a0e1ee667a110581c09cf48ea6170948d3636792f70fa7c10be8acc5f1ff068d567c51fee81fa87235b
7
- data.tar.gz: f1163513f3b3d2085f13165fd9f9f29712a9f2cab7486c8041daa7fb04d6719dc102df7fea428451c14eb7ff8677c7bde0c62f8ba4d64f0cef0262e7604387bd
6
+ metadata.gz: 3213d27c0d4271028350bc835f119e23ec1417a00b7d55a5d7acb19b30488797863f92a217a495d007c765e12a0955de5a280bd7384948c079b8780bddd75cee
7
+ data.tar.gz: cbf3d45247712a2ed0ab2d2fbc069fbc2e9a8893b865fb0da5a37344f9d3ff1575fdeca2e65c7673321435d5db1d086d2706ca1e923dc49da974aa55f48b47b1
data/.rubocop.yml CHANGED
@@ -33,4 +33,7 @@ Metrics/CyclomaticComplexity:
33
33
  Enabled: false
34
34
 
35
35
  Metrics/AbcSize:
36
- Enabled: false
36
+ Enabled: false
37
+
38
+ RSpec/NestedGroups:
39
+ Enabled: false
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  * Your contribution
6
6
 
7
+ ## 0.2.4 (2021-02-19)
8
+
9
+ * Try symbol and string keys when the object to serialize is an Hash ([#54](https://github.com/petalmd/bright_serializer/pull/54))
10
+
7
11
  ## 0.2.3 (2021-01-04)
8
12
 
9
13
  * Update dependencies ([v0.2.2...v0.2.3](https://github.com/petalmd/bright_serializer/compare/v0.2.2...v0.2.3))
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bright_serializer (0.2.3)
4
+ bright_serializer (0.2.4)
5
5
  oj (~> 3)
6
6
 
7
7
  GEM
@@ -14,7 +14,7 @@ GEM
14
14
  i18n (>= 1.6, < 2)
15
15
  i18n (1.8.5)
16
16
  concurrent-ruby (~> 1.0)
17
- oj (3.10.18)
17
+ oj (3.11.1)
18
18
  parallel (1.20.1)
19
19
  parser (3.0.0.0)
20
20
  ast (~> 2.4.1)
@@ -21,7 +21,7 @@ module BrightSerializer
21
21
  if @block
22
22
  @block.arity.abs == 1 ? object.instance_eval(&@block) : object.instance_exec(object, params, &@block)
23
23
  elsif object.is_a?(Hash)
24
- object[key]
24
+ object[key] || object[key.to_s]
25
25
  else
26
26
  object.send(key)
27
27
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrightSerializer
4
- VERSION = '0.2.3'
4
+ VERSION = '0.2.4'
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.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Francis Bastien
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-05 00:00:00.000000000 Z
11
+ date: 2021-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj