Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update factory_bot requirement from ~> 4.8.2 to ~> 6.1.0 #153

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link
Contributor

Updates the requirements on factory_bot to permit the latest version.

Release notes

Sourced from factory_bot's releases.

v6.1.0

  • 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

v6.0.2

Fixed: bug causing traits to consume more memory each time they were used

v6.0.1

Fixed: bug with constant resolution causing unexpected uninitialized constant errors

v6.0.0

  • Added: automatic definition of traits for Active Record enum attributes, enabled by default
  • Added: traits_for_enum method to define traits for non-Active Record enums
  • Added: build_stubbed_starting_id= option to define the starting id for build_stubbed
  • Removed: deprecated methods on the top-level FactoryBot module meant only for internal use
  • Removed: support for EOL versions of Ruby (2.3, 2.4) and Rails (4.2)

v5.2.0

  • Added: Pass index to block for *_list methods
  • Deprecated: top-level methods meant only for internal use: callbacks, configuration, constructor, initialize_with, register_sequence, resent_configuration, skip_create, to_create

v5.1.2

  • Fixed: Ruby 2.7 keyword deprecation warning in FactoryBot.lint

v5.1.1

  • Improved: performance of traits
  • Fixed: registering strategies on JRuby

v5.1.0

  • Added: "Did you mean?" style error message to help with typos in association declarations
  • Changed: NoMethodError for 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

v5.0.2

Bugfix: raise "Trait not registered" error when passing invalid trait arguments

v5.0.1

  • Bugfix: Do not raise error when two sequences have the same name in two traits that have the same name

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
Changelog

Sourced from factory_bot's changelog.

6.1.0 (July 8, 2020)

  • 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

6.0.2 (June 19, 2020)

  • Fixed: bug causing traits to consume more memory each time they were used

6.0.1 (June 19, 2020)

  • Fixed: bug with constant resolution causing unexpected uninitialized constant errors

6.0.0 (June 18, 2020)

  • Added: automatic definition of traits for Active Record enum attributes, enabled by default (Note that this required changing where factory_bot constantizes the build class, which may affect applications that were using abstract factories for inheritance. See issue #1409.)
  • Added: traits_for_enum method to define traits for non-Active Record enums
  • Added: build_stubbed_starting_id= option to define the starting id for build_stubbed
  • Removed: deprecated methods on the top-level FactoryBot module meant only for internal use
  • Removed: support for EOL versions of Ruby (2.3, 2.4) and Rails (4.2)

5.2.0 (April 24, 2020)

  • Added: Pass index to block for *_list methods
  • Deprecated: methods on the top-level FactoryBot module meant only for internal use: callbacks, configuration, constructor, initialize_with, register_sequence, resent_configuration, skip_create, to_create

5.1.2 (March 25, 2020)

  • Fixed: Ruby 2.7 keyword deprecation warning in FactoryBot.lint

5.1.1 (October 2, 2019)

  • Improved: performance of traits
  • Fixed: registering strategies on JRuby

5.1.0 (September 21, 2019)

  • Added: "Did you mean?" style error message to help with typos in association declarations
  • Changed: NoMethodError for 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: methods on the top-level FactoryBot module 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

5.0.2 (February 22, 2019)

  • Bugfix: raise "Trait not registered" error when passing invalid trait arguments

5.0.1 (February 15, 2019)

  • Bugfix: Do not raise error when two sequences have the same name in two traits that have the same name

5.0.0 (February 1, 2019)

  • Added: Verbose option to include full backtraces in the linting output
  • Changed: use_parent_strategy now defaults to true, so by default the
Commits
  • 781eba9 Bump version to 6.1.0 [ci skip]
  • ebc4cd5 Make the evaluator instance public
  • 5c071d4 Fix ruby 2.7 kwargs warning
  • 468536f Update rails versions used in test
  • 93179bd Bump version for the reproduction script [ci skip]
  • f606018 Raise more helpful error for invalid attribute
  • 218eb72 Add note about sequences and uniqueness [ci skip]
  • f223c7d Use attr_readers in association declaration
  • a7379af Simplify list of supported Ruby versions [ci skip]
  • 3d76aec Remove Hound badge [ci skip]
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Updates the requirements on [factory_bot](https://github.com/thoughtbot/factory_bot) to permit the latest version.
- [Release notes](https://github.com/thoughtbot/factory_bot/releases)
- [Changelog](https://github.com/thoughtbot/factory_bot/blob/master/NEWS.md)
- [Commits](thoughtbot/factory_bot@v4.8.2...v6.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants