Releases: thoughtbot/factory_bot
Releases · thoughtbot/factory_bot
v6.5.0
What's Changed
- fix: issue 1621 broken links in ref/factory.md by @elasticspoon in #1623
- Add standard settings by @ydah in #1625
- Call dynamic-readme reusable workflow by @stefannibrasil in #1628
- Update README again by @stefannibrasil in #1630
- Only run this workflow if the README has been updated by @stefannibrasil in #1635
- Automatically Generated: Update Dynamic Section in README by @github-actions in #1637
- Added a case for build_class to handle class names with underscores passed as a string by @m-gizzi in #1642
- Add Ruby 3.3 to CI by @berkos in #1615
- Update Dependabot configuration by @smaboshe in #1655
- Add new maintainers to CODEOWNERS by @sarahraqueld in #1651
- Improve docs formatting and fix filename conflicts by @sarahraqueld in #1666
- Add a dynamic security workflow and a SECURITY.md file by @sarahraqueld in #1677
- Automatically Generated: Update Dynamic Section in SECURITY by @github-actions in #1678
- Ensure rails 7.2 compatibility by @Earlopain in #1686
- Fix the factory definition in traits documentation by @ddieulivol in #1688
New Contributors
- @elasticspoon made their first contribution in #1623
- @github-actions made their first contribution in #1637
- @m-gizzi made their first contribution in #1642
- @berkos made their first contribution in #1615
- @smaboshe made their first contribution in #1655
- @sarahraqueld made their first contribution in #1651
- @dependabot made their first contribution in #1689
- @ddieulivol made their first contribution in #1688
Full Changelog: v6.4.6...v6.5.0
6.4.6
- Fix: Bump minimum required Ruby in gemspec (Earlopain).
- Fix: Broken link in
FactoryBot.modify
docs (Matt Brictson). - Fix: Broken link in
FactoryBot.lint
docs (Anton Dieterle).
6.4.5
- Changed: Support Ruby 3.0+, Rails 6.1+ (Mike Burns).
6.4.4
- Internal: Remove observer dependency (Earlopain).
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).
6.4.2
- Fix: top-level traits pass their class to ActiveSupport::Notifications (makicamel).
6.4.1
- Fix: factories with traits pass their class to ActiveSupport::Notifications
(makicamel).
Version 6.4.0
- Added: if
build_stubbed
detects 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).
v6.3.0
- Fix: link to changelog for RubyGems (Berkan Ünal).
- Fix: integrate with Ruby 3.2's
did_you_mean
library (Daniel Colson). - Changed: explicitly define
#destroyed?
within theStub
strategy to returnfalse
to be consistent
with ActiveRecord (Benjamin Fleischer). - Added: announce
factory_bot.compile_factory
notification (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/checkout
v3 (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 #1542
- @vimutter made their first contribution in #1543
- @andrykonchin made their first contribution in #1547
- @danielnolan made their first contribution in #1550
- @rocket-turtle made their first contribution in #1537
- @glaucocustodio made their first contribution in #1535
- @mike-burns made their first contribution in #1570
- @stefannibrasil made their first contribution in #1572
- @choznerol made their first contribution in #1523
- @bf4 made their first contribution in #1576
- @brkn made their first contribution in #1590
Full diff: v6.2.1...v6.3.0
v6.2.1
- 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_attribute
with reserved keywords assigns values correctly