blueprinter 0.12.0 → 0.12.1

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
  SHA1:
3
- metadata.gz: 56d342a22edbc9e7bc26d13d955b04a0a810a257
4
- data.tar.gz: a6866070a40dc666f43bb04bb461a1065b45104b
3
+ metadata.gz: c7119c095ce28afa7d7645ed67c2f6c18e9d930f
4
+ data.tar.gz: 576c31713e9e5e8993c0986ed49886d2f54a0d11
5
5
  SHA512:
6
- metadata.gz: 7f697e391cfc1ebf5ef3967ca73447b4ad96a2f1f5424289d865d096e7a24de84e97b19116e9c8cfdef16bac05dab71637c90c26c0d679d36b4823d3c855fb35
7
- data.tar.gz: a2a88c85b099bf56c1eaa97eeb409d4aaec9567f8582cdd2abba34ea157abf21e3a7fb24511c3bb3be87f314d957ab51a43ee39ea9df11ba9091487d93e6bb93
6
+ metadata.gz: 4aeb3a9af16e89e066fd23c4dd8c5829914d30cb5996da89f1d9ec93bb0703155d89c8f84f773103ebf944e8c0b6c350095b5f7ef60e179f6482ed90a255d807
7
+ data.tar.gz: 25df4ff051176e5f558743d221e68a71ecec6128e914af5d0d0d1c6479fdae88af9bb0d1d30cb1c834a6cf821ff91e8370ff2daaba3cd248d7aa7a2299b424a7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.12.1 - 2019/1/24
2
+
3
+ * 🐛 [BUGFIX] Fix boolean `false` values getting serialized as `null`. Please see PR [#132](https://github.com/procore/blueprinter/pull/132).
4
+
1
5
  ## 0.12.0 - 2019/1/16
2
6
 
3
7
  * 🚀 [FEATURE] Enables the setting of global `:field_default` and `:association_default` option value in the Blueprinter Configuration that will be used as default values for fields and associations that evaluate to nil. [#128](https://github.com/procore/blueprinter/pull/128). Thanks to [@mcclayton](https://github.com/mcclayton).
@@ -1,7 +1,7 @@
1
1
  module Blueprinter
2
2
  class HashExtractor < Extractor
3
- def extract(field_name, object, local_options, options = {})
4
- object[field_name] || object[field_name.to_s]
3
+ def extract(field_name, object, _local_options, _options = {})
4
+ object[field_name]
5
5
  end
6
6
  end
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module Blueprinter
2
- VERSION = '0.12.0'
2
+ VERSION = '0.12.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blueprinter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Hess
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-01-24 00:00:00.000000000 Z
12
+ date: 2019-01-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: factory_bot