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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cbfbe1f528a76df294a8a0a481287bae62501177d7ce4a61d9123b0f86b324ad
4
- data.tar.gz: fd176efc51674471cf7626e8e88bb9bd67c7b6a4f3c9349be1f9526969abb1de
3
+ metadata.gz: 8f568763ae7429ac9d060433ca9b95ac7c22642bea54b615e27325976b2fe9ec
4
+ data.tar.gz: e613aab3c612acef0077905839d63f87b15ecf698b16a5df6d7103daa47e904c
5
5
  SHA512:
6
- metadata.gz: 1b8d633ae1d043fd0093a767da7bc75b37d771bbc1ea9188d28a2ae0645023f5c8cf54b20733f3d0b5d4f234df0ed017c850d3b5a2a8dae2f29f865dbd9bf6df
7
- data.tar.gz: 8ec5c9f89365950a92ae56400898bf9b1a5b8e372905d6be66024b6f733d11b85cd23bf2374eccb0d82e21b25c377f3b67cef2514db7ffd9b378605986bb2ea7
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.method] = Field.new(field.method, field.name, field.options)
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.method] = Association.new(field.method, field.name, blueprint, view, field.options)
66
+ obj[field.name] = Association.new(field.method, field.name, blueprint, view, field.options)
67
67
  end
68
68
  end
69
69
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Blueprinter
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
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.1
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-01-19 00:00:00.000000000 Z
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