From 75806f33ad492bba30e8c23c6bb71dbcf7586521 Mon Sep 17 00:00:00 2001 From: Daniel Colson Date: Sat, 5 Jan 2019 22:54:07 -0500 Subject: [PATCH] Bump version to 5.0.0.rc1 [ci skip] --- Gemfile.lock | 2 +- NEWS | 8 ++++++++ RELEASING.md | 7 ++++--- factory_bot_rails.gemspec | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 3249e3f..355a53b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - factory_bot_rails (4.11.1) + factory_bot_rails (5.0.0.rc1) factory_bot (~> 5.0.0.rc1) railties (>= 4.2.0) diff --git a/NEWS b/NEWS index 5596626..c32a4ab 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,14 @@ factory_bot_rails versioning is synced with factory_bot releases. For this reason there might not be any notable changes in new versions of this project. +5.0.0 + Added: calling reload! in the Rails console will reload any factory definition files that have changed + Added: support for custom generator templates + Added: definition_file_paths configuration option, making it easier to place factories in custom locations + Changed: namespaced models are now generated inside a directory matching the namespace + Changed: added newline between factories generated into the same file + Removed: support for EOL version of Ruby and Rails + 4.11.1 (September 7, 2018) Update generator to use dynamic attributes instead of deprecated static attributes diff --git a/RELEASING.md b/RELEASING.md index 8f6a336..e382251 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -1,14 +1,15 @@ # Releasing -1. Update the version in the gemspec (and the factory_bot version, if necessary) +1. Update the version in the gemspec (and the factory\_bot version, if necessary) + and run `bundle install` 1. Update `NEWS.md` to reflect the changes since last release. 1. Commit changes. There shouldn't be code changes, and thus CI doesn't need to run, - you can then add "[ci skip]" to the commit message. + so you can add "[ci skip]" to the commit message. 1. Tag the release: `git tag -s vVERSION` - We recommend the [_quick guide on how to sign a release_] from git ready. -1. Push changes: `git push --tags` +1. Push changes: `git push && git push --tags` 1. Build and publish: ```bash gem build factory_bot_rails.gemspec diff --git a/factory_bot_rails.gemspec b/factory_bot_rails.gemspec index bd6fe58..d69ce9c 100644 --- a/factory_bot_rails.gemspec +++ b/factory_bot_rails.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = "factory_bot_rails" - s.version = "4.11.1" + s.version = "5.0.0.rc1" s.authors = ["Joe Ferris"] s.email = "jferris@thoughtbot.com" s.homepage = "https://github.com/thoughtbot/factory_bot_rails"