blueprinter 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/blueprinter/reflection.rb +2 -2
- 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: 8f568763ae7429ac9d060433ca9b95ac7c22642bea54b615e27325976b2fe9ec
|
4
|
+
data.tar.gz: e613aab3c612acef0077905839d63f87b15ecf698b16a5df6d7103daa47e904c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f81f013c2a94c7acad72dea46d2c8e0d472311f13e2588fd78c53c0ab23b2c8a86e55be64b49c690485d6aaca8d506545255c29bed456cef1c6aece5d0271fd
|
7
|
+
data.tar.gz: ac3eaa8b6c4d1f9883ae1117d9c30b3c8801cab831ae9d474e3d5bafc3417cfaeef18f52305059909234f7b60a03906645b5fcdd7615f8dc4e880c859610830a
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 1.0.2 - 2024/02/02
|
2
|
+
* 🐛 [BUGFIX] Fixes an issue with reflection where fields are incorrectly override by their definitions in the default view. See [#391](https://github.com/procore-oss/blueprinter/pull/391). Thanks to [@elliothursh](https://github.com/elliothursh).
|
3
|
+
|
1
4
|
## 1.0.1 - 2024/01/19
|
2
5
|
* 🐛 [BUGFIX] Fixes an issue where serialization performance would become degraded when using a Blueprint that leverages transformers. See [#381](https://github.com/procore-oss/blueprinter/pull/381). Thanks to [@Pritilender](https://github.com/Pritilender).
|
3
6
|
|
@@ -48,7 +48,7 @@ module Blueprinter
|
|
48
48
|
@fields ||= @view_collection.fields_for(name).each_with_object({}) do |field, obj|
|
49
49
|
next if field.options[:association]
|
50
50
|
|
51
|
-
obj[field.
|
51
|
+
obj[field.name] = Field.new(field.method, field.name, field.options)
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
@@ -63,7 +63,7 @@ module Blueprinter
|
|
63
63
|
|
64
64
|
blueprint = field.options.fetch(:blueprint)
|
65
65
|
view = field.options[:view] || :default
|
66
|
-
obj[field.
|
66
|
+
obj[field.name] = Association.new(field.method, field.name, blueprint, view, field.options)
|
67
67
|
end
|
68
68
|
end
|
69
69
|
end
|
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.0.
|
4
|
+
version: 1.0.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-
|
11
|
+
date: 2024-02-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
|