factory_bot 6.5.3 → 6.5.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ccc22d510028071ae2280e2c34cb7320bf433337da499e8692aedce4b67edba
4
- data.tar.gz: 3c9b2f007fd5086de47e1a20f0ea721179aa2b39eb9007238dec107454923ae6
3
+ metadata.gz: '0658ea1fd8d3b33128d6a88be3b64855cf80238bc0d2bf109f85a59b4398504f'
4
+ data.tar.gz: 1cc9fb919e03d2ad95589e5519b19b1c8bd0ec1b6d0e45ee6479ff6d8f2541ad
5
5
  SHA512:
6
- metadata.gz: 9c466fd487ceaa143f8d021033af08519b2c804740279c0fa13337e2834003ce6b716b960db2aff75d283ab75a69d62c88b0193fbd7f1fe80247938cae8c28d7
7
- data.tar.gz: 5ba4abca5823566a808f4ebfd5ac8e65efadc90dad30cb9c501ec788a95c544969105f5b687550cc1cac5696e139eea536d96326167007ec7f485dc5c016ae88
6
+ metadata.gz: '092799b8ba784bb640a2422ff8556d5c13c92a67b8224bd4730c4b2791995d4f56797ccf2815416e2fb21a474c41b47cc87df61564adae4cb3d0dc832c22f520'
7
+ data.tar.gz: 1cc5060b814c06ed943ed825df2b913fb857b118837a850152f7b9044328de0a277f112365f10d8e66001d270b0059da77bef190ed712558c7186af00a1ccc4c
data/NEWS.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # News
2
2
 
3
+ ## 6.5.4 (June 13, 2025)
4
+
5
+ * Fix bug where user-defined method named `definition` could not be set through `method_missing` in factories. (CodeMeister)
6
+
3
7
  ## 6.5.3 (June 2, 2025)
4
8
 
5
9
  * Fix: Factory sequences without blocks (CodeMeister)
@@ -21,7 +21,7 @@ module FactoryBot
21
21
 
22
22
  delegate :before, :after, :callback, to: :@definition
23
23
 
24
- attr_reader :child_factories, :definition
24
+ attr_reader :child_factories
25
25
 
26
26
  def initialize(definition, ignore = false)
27
27
  @definition = definition
@@ -121,7 +121,7 @@ module FactoryBot
121
121
  # Except that no globally available sequence will be defined.
122
122
  def sequence(name, *args, &block)
123
123
  options = args.extract_options!
124
- options[:uri_paths] = definition.uri_manager.to_a
124
+ options[:uri_paths] = @definition.uri_manager.to_a
125
125
  args << options
126
126
 
127
127
  new_sequence = Sequence.new(name, *args, &block)
@@ -177,7 +177,7 @@ module FactoryBot
177
177
  end
178
178
 
179
179
  def trait(name, &block)
180
- @definition.define_trait(Trait.new(name, uri_paths: definition.uri_manager.to_a, &block))
180
+ @definition.define_trait(Trait.new(name, uri_paths: @definition.uri_manager.to_a, &block))
181
181
  end
182
182
 
183
183
  # Creates traits for enumerable values.
@@ -1,3 +1,3 @@
1
1
  module FactoryBot
2
- VERSION = "6.5.3".freeze
2
+ VERSION = "6.5.4".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factory_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.5.3
4
+ version: 6.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Clayton