Recent Releases of https://github.com/thoughtbot/factory_bot
https://github.com/thoughtbot/factory_bot - v6.5.6
What's Changed
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in https://github.com/thoughtbot/factory_bot/pull/1765
- fix(yard): resolve yard doc warnings by @vburzynski in https://github.com/thoughtbot/factory_bot/pull/1764
- Refactor factory calculator by @vburzynski in https://github.com/thoughtbot/factory_bot/pull/1770
- Update link to FactoryGirl upgrade guide by @imRohan in https://github.com/thoughtbot/factory_bot/pull/1769
- chore: tag slow specs by @vburzynski in https://github.com/thoughtbot/factory_bot/pull/1776
- Fix ruby syntax highlighting in yard docs by @djbender in https://github.com/thoughtbot/factory_bot/pull/1777
- fix(gemspec): add ostruct as a development dependency by @ydah in https://github.com/thoughtbot/factory_bot/pull/1778
- Bump standard from v1.44.0 to v1.51.1 by @ydah in https://github.com/thoughtbot/factory_bot/pull/1779
- docs: update RELEASING.md by @vburzynski in https://github.com/thoughtbot/factory_bot/pull/1763
- feat(build): add Ruby 3.4 to CI matrix by @ydah in https://github.com/thoughtbot/factory_bot/pull/1780
- chore(gemspec): remove unnecessary development dependencies (cucumber, mutex_m) by @ydah in https://github.com/thoughtbot/factory_bot/pull/1781
- Fix some typos by @ydah in https://github.com/thoughtbot/factory_bot/pull/1783
- chore(Gemfile.lock): update gem versions and dependencies by @ydah in https://github.com/thoughtbot/factory_bot/pull/1782
- fix: revert removal of mutex_m by @vburzynski in https://github.com/thoughtbot/factory_bot/pull/1784
- Fix association override precedence over trait foreign keys by @JinOketani in https://github.com/thoughtbot/factory_bot/pull/1768
- build: Release v6.5.6 by @vburzynski in https://github.com/thoughtbot/factory_bot/pull/1785
- fix: update Gemfile.lock by @vburzynski in https://github.com/thoughtbot/factory_bot/pull/1786
New Contributors
- @imRohan made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1769
- @djbender made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1777
- @JinOketani made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1768
Full Changelog: https://github.com/thoughtbot/factory_bot/compare/v6.5.5...v6.5.6
- Ruby
Published by vburzynski 4 months ago
https://github.com/thoughtbot/factory_bot - v6.5.5
What's Changed
- Developer Console Feature by @CodeMeister in https://github.com/thoughtbot/factory_bot/pull/1755
- BugFix: standardise parity on :increment_sequence by @CodeMeister in https://github.com/thoughtbot/factory_bot/pull/1756
- Cleanup Active Support core extensions by @neilvcarvalho in https://github.com/thoughtbot/factory_bot/pull/1757
- add vburzynski as codeowner by @DoodlingDev in https://github.com/thoughtbot/factory_bot/pull/1759
- BugFix: '' and '_id' conflict. by @CodeMeister in https://github.com/thoughtbot/factory_bot/pull/1709
- FEATURE: Before(:all) and after(:all) callbacks added by @CodeMeister in https://github.com/thoughtbot/factory_bot/pull/1740
- BugFix: Ensure callbacks only run once per instance. by @CodeMeister in https://github.com/thoughtbot/factory_bot/pull/1712
- Add support for before build callback by @mohammednasser-32 in https://github.com/thoughtbot/factory_bot/pull/1760
- Update docs to require full namespace by @johnpitchko in https://github.com/thoughtbot/factory_bot/pull/1669
- Allow the initial value of a sequence to be lazy loaded by @ajesler in https://github.com/thoughtbot/factory_bot/pull/1761
- Build: release v6.5.5 by @vburzynski in https://github.com/thoughtbot/factory_bot/pull/1762
New Contributors
- @ajesler made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1761
- @vburzynski made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1762
- @mohammednasser-32 made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1760
Full Changelog: https://github.com/thoughtbot/factory_bot/compare/v6.5.4...v6.5.5
- Ruby
Published by vburzynski 7 months ago
https://github.com/thoughtbot/factory_bot - v6.5.4
- Fix bug where user-defined method named
definitioncould not be set throughmethod_missingin factories. (CodeMeister)
- Ruby
Published by neilvcarvalho 9 months ago
https://github.com/thoughtbot/factory_bot - v6.5.3
- Fix: Factory sequences without blocks (CodeMeister)
- Added: New methods for setting, generating and rewinding sequences (CodeMeister)
- Ruby
Published by neilvcarvalho 9 months ago
https://github.com/thoughtbot/factory_bot - v6.5.2
- Changed: Updated "verbose linting" test to allow for backtrace changes in Ruby 3.4 (CodeMeister)
- Fix: Set the same timestamps for
created_atandupdated_atonbuild_stubbed(Kim Emmanuel) - Fix: Refactored sequences to ensure cloned traits use parent sequences. (CodeMeister)
- Docs: Fix definition_file_paths comment (Milo Winningham)
- Docs: Add ruby-lsp extensions to Useful Tools in README.md (johansenja)
- Docs: Fix docs about definition file paths (Ryo Nakamura)
- Docs: Update has_many-associations.md to mention that traits can use inline associations (Matthew Zagaja)
- Docs: Fix "Transitioning from Factory Girl" guide link (Neil Carvalho)
- Ruby
Published by neilvcarvalho 9 months ago
https://github.com/thoughtbot/factory_bot - v6.5.1
What's Changed
- Changed: execute linting tests within ActiveRecord transactions when available (Sean Doyle)
- Fix: Random test failure when tracking compilation time (CodeMeister)
- Fix: Bump the minimum required activesupport version to 6.1 (Earlopain)
- Internal: Update development dependencies (Neil Carvalho)
New Contributors
@CodeMeinster made their first contribution on https://github.com/thoughtbot/factory_bot/pull/1713
Full Changelog: https://github.com/thoughtbot/factory_bot/compare/v6.5.0...v6.5.1
- Ruby
Published by neilvcarvalho about 1 year ago
https://github.com/thoughtbot/factory_bot - v6.5.0
What's Changed
- fix: issue 1621 broken links in ref/factory.md by @elasticspoon in https://github.com/thoughtbot/factory_bot/pull/1623
- Add standard settings by @ydah in https://github.com/thoughtbot/factory_bot/pull/1625
- Call dynamic-readme reusable workflow by @stefannibrasil in https://github.com/thoughtbot/factory_bot/pull/1628
- Update README again by @stefannibrasil in https://github.com/thoughtbot/factory_bot/pull/1630
- Only run this workflow if the README has been updated by @stefannibrasil in https://github.com/thoughtbot/factory_bot/pull/1635
- Automatically Generated: Update Dynamic Section in README by @github-actions in https://github.com/thoughtbot/factory_bot/pull/1637
- Added a case for build_class to handle class names with underscores passed as a string by @m-gizzi in https://github.com/thoughtbot/factory_bot/pull/1642
- Add Ruby 3.3 to CI by @berkos in https://github.com/thoughtbot/factory_bot/pull/1615
- Update Dependabot configuration by @smaboshe in https://github.com/thoughtbot/factory_bot/pull/1655
- Add new maintainers to CODEOWNERS by @sarahraqueld in https://github.com/thoughtbot/factory_bot/pull/1651
- Improve docs formatting and fix filename conflicts by @sarahraqueld in https://github.com/thoughtbot/factory_bot/pull/1666
- Add a dynamic security workflow and a SECURITY.md file by @sarahraqueld in https://github.com/thoughtbot/factory_bot/pull/1677
- Automatically Generated: Update Dynamic Section in SECURITY by @github-actions in https://github.com/thoughtbot/factory_bot/pull/1678
- Ensure rails 7.2 compatibility by @Earlopain in https://github.com/thoughtbot/factory_bot/pull/1686
- Fix the factory definition in traits documentation by @ddieulivol in https://github.com/thoughtbot/factory_bot/pull/1688
New Contributors
- @elasticspoon made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1623
- @github-actions made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1637
- @m-gizzi made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1642
- @berkos made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1615
- @smaboshe made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1655
- @sarahraqueld made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1651
- @dependabot made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1689
- @ddieulivol made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1688
Full Changelog: https://github.com/thoughtbot/factory_bot/compare/v6.4.6...v6.5.0
- Ruby
Published by sarahraqueld over 1 year ago
https://github.com/thoughtbot/factory_bot - 6.4.6
- Fix: Bump minimum required Ruby in gemspec (Earlopain).
- Fix: Broken link in
FactoryBot.modifydocs (Matt Brictson). - Fix: Broken link in
FactoryBot.lintdocs (Anton Dieterle).
- Ruby
Published by mike-burns about 2 years ago
https://github.com/thoughtbot/factory_bot - 6.4.5
- Changed: Support Ruby 3.0+, Rails 6.1+ (Mike Burns).
- Ruby
Published by mike-burns about 2 years ago
https://github.com/thoughtbot/factory_bot - 6.4.4
- Internal: Remove observer dependency (Earlopain).
- Ruby
Published by mike-burns about 2 years ago
https://github.com/thoughtbot/factory_bot - 6.4.3
- Fix: Support models without ID setters in build_stubbed (Olivier Bellone).
- Fix: Explicit observer dependency (Oleg Antonyan).
- Internal: Add Rails 7.1 to CI (Olivier Bellone).
- Internal: Bump github actions/checkout to v4 (Lorenzo Zabot)
- Internal: Stop passing disable-error_highlight in CI (Mike Burns).
- Internal: Relax the exception message check (Mike Burns).
- Ruby
Published by mike-burns about 2 years ago
https://github.com/thoughtbot/factory_bot - 6.4.2
- Fix: top-level traits pass their class to ActiveSupport::Notifications (makicamel).
- Ruby
Published by mike-burns over 2 years ago
https://github.com/thoughtbot/factory_bot - 6.4.1
- Fix: factories with traits pass their class to ActiveSupport::Notifications
(makicamel).
- Ruby
Published by mike-burns over 2 years ago
https://github.com/thoughtbot/factory_bot - Version 6.4.0
- Added: if
build_stubbeddetects a UUID primary key, generate the correct type (Peter Boling, Alexandre Ruban). - Docs: show examples of Ruby 3 syntactic sugars (Sean Doyle).
- Internal: resolve test warning messages (Mike Burns).
- Ruby
Published by mike-burns over 2 years ago
https://github.com/thoughtbot/factory_bot - v6.3.0
- Fix: link to changelog for RubyGems (Berkan Ünal).
- Fix: integrate with Ruby 3.2's
did_you_meanlibrary (Daniel Colson). - Changed: explicitly define
#destroyed?within theStubstrategy to returnfalseto be consistent
with ActiveRecord (Benjamin Fleischer). - Added: announce
factory_bot.compile_factorynotification (Sean Doyle). - Docs: clarify that custom strategies need to define
#to_sym(Edmund Korley, Jonas S). - Docs: fix CI link in README (Mark Huk).
- Docs: fix GitHub links (Robert Fletcher).
- Docs: install this library with
bundle add(Glauco Custódio). - Docs: re-write into mdBook (Mike Burns, Sara Jackson, Stefanni Brasil)
- Docs: clarify that automatic trait definitions could introduce new linting errors (Lawrence Chou).
- Internal: skip TruffleRuby on Rails 5.0, 5.1, 5.2 (Andrii Konchyn).
- Internal: fix typoes throughout codebase (Yudai Takada).
- Internal: run CI on
actions/checkoutv3 (Yudai Takada). - Internal: follow standardrb code style (Yudai Takada).
- Internal: stop using Hound (Daniel Nolan).
- Internal: only run simplecov on C Ruby (Daniel Colson).
- Internal: quieter Cucumber (Daniel Colson).
- Internal: Ruby 3.2 support (Daniel Colson).
- Internal: Mike Burns is the CODEOWNER (Stefanni Brasil).
New Contributors
- @ydah made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1542
- @vimutter made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1543
- @andrykonchin made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1547
- @danielnolan made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1550
- @rocket-turtle made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1537
- @glaucocustodio made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1535
- @mike-burns made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1570
- @stefannibrasil made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1572
- @choznerol made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1523
- @bf4 made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1576
- @brkn made their first contribution in https://github.com/thoughtbot/factory_bot/pull/1590
Full diff: https://github.com/thoughtbot/factory_bot/compare/v6.2.1...v6.3.0
- Ruby
Published by mike-burns over 2 years ago
https://github.com/thoughtbot/factory_bot -
- Added: CI testing against truffleruby
- Changed: Documentation improvements for sequences and traits
- Fixed: ActiveSupport::Notifications reporting strategy through associations now report as symbols
- Fixed:
add_attributewith reserved keywords assigns values correctly
- Ruby
Published by joshuaclayton almost 4 years ago
https://github.com/thoughtbot/factory_bot -
- Added: support for Ruby 3.0
- Changed: Include factory or trait name in error messages for missing traits. d05a9a3c
- Changed: Switched from Travis CI to GitHub Actions
- Fixed: More Ruby 2.7 kwarg deprecation warnings
- Ruby
Published by composerinteralia almost 5 years ago
https://github.com/thoughtbot/factory_bot -
- Added: public reader for the evaluation instance, helpful for building interrelated associations
- Changed: raise a more helpful error when passing an invalid argument to an association
- Fixed: Ruby 2.7 kwarg deprecation warnings
- Ruby
Published by composerinteralia over 5 years ago
https://github.com/thoughtbot/factory_bot -
Fixed: bug causing traits to consume more memory each time they were used
- Ruby
Published by composerinteralia over 5 years ago
https://github.com/thoughtbot/factory_bot -
Fixed: bug with constant resolution causing unexpected uninitialized constant errors
- Ruby
Published by composerinteralia over 5 years ago
https://github.com/thoughtbot/factory_bot -
- Added: automatic definition of traits for Active Record enum attributes, enabled by default
- Added:
traits_for_enummethod to define traits for non-Active Record enums - Added:
build_stubbed_starting_id=option to define the starting id forbuild_stubbed - Removed: deprecated methods on the top-level
FactoryBotmodule meant only for internal use - Removed: support for EOL versions of Ruby (2.3, 2.4) and Rails (4.2)
- Removed: support for "abstract" factories with no associated class; use traits instead.
- Ruby
Published by composerinteralia over 5 years ago
https://github.com/thoughtbot/factory_bot -
- Added: Pass index to block for
*_listmethods - Deprecated: top-level methods meant only for internal use:
callbacks,configuration,constructor,initialize_with,register_sequence,resent_configuration,skip_create,to_create
- Ruby
Published by composerinteralia almost 6 years ago
https://github.com/thoughtbot/factory_bot -
- Fixed: Ruby 2.7 keyword deprecation warning in FactoryBot.lint
- Ruby
Published by composerinteralia almost 6 years ago
https://github.com/thoughtbot/factory_bot -
- Improved: performance of traits
- Fixed: registering strategies on JRuby
- Ruby
Published by composerinteralia over 6 years ago
https://github.com/thoughtbot/factory_bot -
- Added: "Did you mean?" style error message to help with typos in association declarations
- Changed:
NoMethodErrorfor static attributes now offers a "Did you mean?" style message - Fixed: avoid undefining inherited evaluator methods
- Fixed: avoid stubbing id for records without a primary key
- Fixed: raise a helpful error for self-referencing traits to avoid a
SystemStackError - Deprecated: top-level methods meant only for internal use:
allow_class_lookup,allow_class_lookup=,register_trait,trait_by_name,traits,sequence_by_name,sequences,factory_by_name,register_factory,callback_names,register_callback,register_default_callbacks,register_default_strategies,strategies
- Ruby
Published by composerinteralia over 6 years ago
https://github.com/thoughtbot/factory_bot - v5.0.2
Bugfix: raise "Trait not registered" error when passing invalid trait arguments
- Ruby
Published by composerinteralia about 7 years ago
https://github.com/thoughtbot/factory_bot - v5.0.1
- Bugfix: Do not raise error when two sequences have the same name
in two traits that have the same name
- Ruby
Published by hellosweta about 7 years ago
https://github.com/thoughtbot/factory_bot - v5.0.0
- Added: Verbose option to include full backtraces in the linting output
- Changed: use_parent_strategy now defaults to true, so by default the build strategy will build, rather than create associations
- Changed: Passing a block when defining associations now raises an error
- Bugfix: use_parent_strategy is no longer reset by FactoryBot.reload
- Bugfix: rewind_sequences will now rewind local sequences along with the global ones
- Bugfix: the build_stubbed strategy now sets timestamps without changing the original behavior of the timestamp methods
- Bugfix: avoid a stack error when referring to an "attributes" attribute in initialize_with
- Removed: support for EOL versions of Ruby and Rails
- Removed: static attributes (use dynamic attributes with a block instead)
- Removed: looking up factories by class
- Removed: ignore method (use transient instead)
- Removed: duplicate_attribute_assignment_from_initialize_with configuration option
- Deprecated: allow_class_lookup configuration option
- Ruby
Published by composerinteralia about 7 years ago
https://github.com/thoughtbot/factory_bot - v5.0.0.rc2
- Set
use_parent_strategydefault to true for all versions of Rails - Add missing *_pair documentation
- Ruby
Published by composerinteralia about 7 years ago
https://github.com/thoughtbot/factory_bot - v5.0.0.rc1
- Added: Verbose option to include full backtraces in the linting output
- Changed: use_parent_strategy now defaults to true, so by default the build strategy will build, rather than create associations
- Changed: Passing a block when defining associations now raises an error
- Bugfix: use_parent_strategy is no longer reset by FactoryBot.reload
- Bugfix: rewind_sequences will now rewind local sequences along with the global ones
- Bugfix: the build_stubbed strategy now sets timestamps without changing the original behavior of the timestamp methods
- Bugfix: avoid a stack error when referring to an "attributes" attribute in initialize_with
- Removed: support for EOL versions of Ruby and Rails
- Removed: static attributes (use dynamic attributes with a block instead)
- Removed: looking up factories by class
- Removed: ignore method (use transient instead)
- Removed: duplicate_attribute_assignment_from_initialize_with configuration option
- Deprecated: allow_class_lookup configuration option
- Ruby
Published by composerinteralia about 7 years ago
https://github.com/thoughtbot/factory_bot - v4.11.1
Documentation: Include .yardopts in the gem to fix broken RubyDoc links
- Ruby
Published by composerinteralia over 7 years ago
https://github.com/thoughtbot/factory_bot - v4.11.0
- Bugfix: Do not raise error for valid build_stubbed methods: decrement, increment, and toggle
- Bugfix: Do not add timestamps with build_stubbed for objects that shouldn't have timestamps
- Deprecate static attributes
- Ruby
Published by composerinteralia over 7 years ago