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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/blueprinter/extractors/hash_extractor.rb +2 -2
- data/lib/blueprinter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7119c095ce28afa7d7645ed67c2f6c18e9d930f
|
4
|
+
data.tar.gz: 576c31713e9e5e8993c0986ed49886d2f54a0d11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
4
|
-
object[field_name]
|
3
|
+
def extract(field_name, object, _local_options, _options = {})
|
4
|
+
object[field_name]
|
5
5
|
end
|
6
6
|
end
|
7
7
|
end
|
data/lib/blueprinter/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2019-01-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: factory_bot
|