From 525c6c87a626e1b50ac01d161272ed8fd635f77d Mon Sep 17 00:00:00 2001 From: Daniel Wakefield Date: Mon, 11 Nov 2019 14:31:44 +0000 Subject: [PATCH] v5.0.0 --- CHANGELOG.md | 4 ++++ README.md | 10 +++++----- lib/statesman/version.rb | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cfe26c49..6b1e9224 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## v5.0.0, 11th November 2019 + +- Adds new syntax and restrictions to ActiveRecordQueries [PR#358](https://github.com/gocardless/statesman/pull/358). With the introduction of this, defining `self.transition_class` or `self.initial_state` is deprecated and will be removed in the next major release. + ## v4.1.4, 11th November 2019 - Reverts the breaking changes from [PR#358](https://github.com/gocardless/statesman/pull/358) & `v4.1.3` that where included in the last minor release. If you have changed your code to work with these changes `v5.0.0` will be a copy of `v4.1.3` with a bugfix applied. diff --git a/README.md b/README.md index cba0acea..a09b99b7 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ protection. To get started, just add Statesman to your `Gemfile`, and then run `bundle`: ```ruby -gem 'statesman', '~> 4.1.4' +gem 'statesman', '~> 5.0.0' ``` ## Usage @@ -353,10 +353,10 @@ A mixin is provided for the ActiveRecord adapter which adds scopes to easily find all models currently in (or not in) a given state. Include it into your model and passing in `transition_class` and `initial_state` as options. -In 4.1.1 and below, these two options had to be defined as methods on the model, -but 4.2.0 and above allow this style of configuration as well. The old method -pollutes the model with extra class methods, and is deprecated, to be removed -in 5.0.0. +In 4.1.2 and below, these two options had to be defined as methods on the model, +but 5.0.0 and above allow this style of configuration as well. +The old method pollutes the model with extra class methods, and is deprecated, +to be removed in 6.0.0. ```ruby class Order < ActiveRecord::Base diff --git a/lib/statesman/version.rb b/lib/statesman/version.rb index 7a1f4394..d4ebae44 100644 --- a/lib/statesman/version.rb +++ b/lib/statesman/version.rb @@ -1,3 +1,3 @@ module Statesman - VERSION = "4.1.4".freeze + VERSION = "5.0.0".freeze end