blueprinter 1.1.1 → 1.1.2
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/CHANGELOG.md +4 -0
- data/lib/blueprinter/helpers/base_helpers.rb +1 -1
- data/lib/blueprinter/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: ca694fd9e2b31d1b48e7fafb2637a67b2e83835d90d51126dfa5c2520147b4b1
|
|
4
|
+
data.tar.gz: eb7dbb1f64149a475a4b768883fac8d9b8d20e6dad061a1f2ceadd5f1aa10a35
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a8fee9e8d383bd1f7fcf92124373cd06070327e16264f5d8dd281c18a8393f7bea9eea6a93252e30d46f899063c4e2bf2a79e0b7d7af2e890a847b8a03af766a
|
|
7
|
+
data.tar.gz: 8971833f761e56d13e41a93c688ecca7d7c1213e432db0f61ba8786c9f68851b1978f0bbb6618e5c935bd8e07c6268d3e8bcc5f5e57f6e188e78a83322253bc0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 1.1.2 - 2024/10/3
|
|
2
|
+
- 🐛 [BUGFIX] Fixes an issue where a `Blueprinter::BlueprinterError` would be raised on render when providing `view: nil`, instead of falling back on the `:default` view. See
|
|
3
|
+
[#472](https://github.com/procore-oss/blueprinter/pull/472). Thanks to [@lessthanjacob](https://github.com/lessthanjacob).
|
|
4
|
+
|
|
1
5
|
## 1.1.1 - 2024/10/2
|
|
2
6
|
* 🐛 [BUGFIX] Fixes an issue when when calling `.render` multiple times on a Blueprint using the same `options` hash, which would result in the `options` changing unexpectedly between calls. See [#453](https://github.com/procore-oss/blueprinter/pull/453). Thanks to [@ryanmccarthypdx](https://github.com/ryanmccarthypdx).
|
|
3
7
|
* 🐛 [BUGFIX] Fixes an issue when passing in a `Symbol` (representing a method) to the `if:` condition on an association. The provided `Symbol` would be erroneously sent to the association's Blueprint, instead of the Blueprint in which the association was defined within. See [#464](https://github.com/procore-oss/blueprinter/pull/464). Thanks to [@lessthanjacob](https://github.com/lessthanjacob).
|
|
@@ -15,7 +15,7 @@ module Blueprinter
|
|
|
15
15
|
private
|
|
16
16
|
|
|
17
17
|
def prepare_for_render(object, options)
|
|
18
|
-
view_name = options.fetch(:view, :default)
|
|
18
|
+
view_name = options.fetch(:view, :default) || :default
|
|
19
19
|
root = options[:root]
|
|
20
20
|
meta = options[:meta]
|
|
21
21
|
validate_root_and_meta!(root, meta)
|
data/lib/blueprinter/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: blueprinter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Procore Technologies, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-10-
|
|
11
|
+
date: 2024-10-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Blueprinter is a JSON Object Presenter for Ruby that takes business objects
|
|
14
14
|
and breaks them down into simple hashes and serializes them to JSON. It can be used
|