Loading
Commits on Source 80
-
Paul Elliott authored
Pull some compatible changes from the fabrication-3 branch to master Closes #14 and #15 See merge request !11
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
Install rubocop-performance and address issues See merge request !12
-
Paul Elliott authored
This reverts commit da7a3c2e.
-
Paul Elliott authored
Closes #19
-
Paul Elliott authored
Ensure the presence of `attributes=` doesn't break things Closes #19 See merge request !13
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
Add rails 7 to appraisals See merge request !14
-
Paul Elliott authored
Closes #18
-
Paul Elliott authored
-
Paul Elliott authored
Add support for specifying individual files in fabricator_paths Closes #18 See merge request !15
-
Paul Elliott authored
-
Kelly Redding authored
This allows you to use transients like you would in the callbacks and allows you to pass in explicit values when doing custom initialization. E.g. ```ruby Fabricator(:widget, class_name: "Widget") do transient :name initialize_with do |attrs| Widget.new(name: attrs[:name] || "DEFAULT_NAME") end end Fabricate(:widget).name #=> "DEFAULT_NAME" Fabricate(:widget, name: "CUSTOM_NAME") #=> "CUSTOM_NAME" Fabricator(:widget, class_name: "Widget") do transient :name on_init { |attrs| init_with(attrs[:name] || "DEFAULT_NAME") } end Fabricate(:widget).name #=> "DEFAULT_NAME" Fabricate(:widget, name: "CUSTOM_NAME") #=> "CUSTOM_NAME" ``` This is especially helpful when you e.g. have two ActiveRecords that validate two of their associations "match". In this case you'd fabricate the first association normally. Then you'd fabricate the second association passing in the input that must match the first association using a transient. -
Paul Elliott authored
pass any transients when calling `initialize_with` or `on_init` blocks See merge request !16
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
Replace cucumber step object registration with generic notifiers See merge request !17
-
Paul Elliott authored
-
Paul Elliott authored
Closes #21
-
Paul Elliott authored
Add metadata section specifying accurate project links Closes #21 See merge request !18
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
Bundle update See merge request !19
-
Paul Elliott authored
Closes #26
-
Paul Elliott authored
Ignore LoadError when invoking the rails generator Closes #26 See merge request !20
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
Bundle update test environment See merge request !21
-
Paul Elliott authored
Apparently we weren't using it at all
-
Paul Elliott authored
Remove ffaker Closes #32 See merge request !22
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
Rubocop thread safety See merge request !23
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
This makes them easier to address than broadly disabling
-
Paul Elliott authored
Refactor and expand on Fabrication::Support.class_for See merge request !24
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
Replace _klass with resolved_class See merge request !25
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
Drop ruby 2 6 Closes #36 See merge request !26
-
Paul Elliott authored
And include fabrication gem name in every message
-
Paul Elliott authored
Use logger to print deprecation warnings Closes #35 See merge request !27
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
Use a memoized getter for transients in base generator Closes #31 See merge request !28
-
Paul Elliott authored
- before_validation => before_create - after_validation => before_create - before_save => before_create - after_save => after_create Closes #33
-
Paul Elliott authored
This has been replaced by initialize_with Closes #29
-
Paul Elliott authored
Alert the user to usage of deprecated callbacks Closes #29 and #33 See merge request !29
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
Bundle update See merge request !30
-
Paul Elliott authored
-
Paul Elliott authored
-
Paul Elliott authored
Refactor Generator::Sequel to reduce AbcSize See merge request !31
-
Paul Elliott authored
-
Paul Elliott authored
Refactor Support#variable_name_to_class_name to fix Style/MultilineBlockChain rubocop error See merge request !32
-
Paul Elliott authored