rails_state_machine 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.travis.yml +2 -4
- data/CHANGELOG.md +16 -0
- data/Gemfile.5.1.pg.lock +1 -1
- data/Gemfile.5.2.pg.lock +1 -1
- data/lib/rails_state_machine/state_machine.rb +2 -2
- data/lib/rails_state_machine/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 9600103349aae06d290487b42d571e2c3128068b
|
|
4
|
+
data.tar.gz: 6599f3c3ae8aa457876917b082a9394d17bd3af3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f824cc7e14c0a452dcec86193967825d8d98a83fffa18e1330ac18532d31b46a2121b509391b37e7594c0b9c44dce39ec73fe72a290aaa2ce9bea98b9dd1b149
|
|
7
|
+
data.tar.gz: a39eef615eefffb383c1f9a0576de0f56022e49275a056ebef9f9b792305247968805f879fe7287c5a50ac51440c3a8bc479c1a9852734951d63962e73875ad4
|
data/.travis.yml
CHANGED
|
@@ -6,10 +6,6 @@ before_script:
|
|
|
6
6
|
- psql -c 'create database rails_state_machine_test;' -U postgres
|
|
7
7
|
- mysql -e 'create database IF NOT EXISTS rails_state_machine_test;'
|
|
8
8
|
|
|
9
|
-
notifications:
|
|
10
|
-
email:
|
|
11
|
-
- fail@makandra.de
|
|
12
|
-
|
|
13
9
|
install:
|
|
14
10
|
# Replace default Travis CI bundler script with a version that doesn't
|
|
15
11
|
# explode when lockfile doesn't match recently bumped version
|
|
@@ -25,3 +21,5 @@ rvm:
|
|
|
25
21
|
gemfile:
|
|
26
22
|
- Gemfile.5.1.pg
|
|
27
23
|
- Gemfile.5.2.pg
|
|
24
|
+
|
|
25
|
+
dist: trusty
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file.
|
|
|
3
3
|
|
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## Unreleased
|
|
7
|
+
|
|
8
|
+
### Breaking changes
|
|
9
|
+
|
|
10
|
+
-
|
|
11
|
+
|
|
12
|
+
### Compatible changes
|
|
13
|
+
|
|
14
|
+
-
|
|
15
|
+
|
|
16
|
+
## 1.1.3 2019-08-12
|
|
17
|
+
|
|
18
|
+
### Compatible changes
|
|
19
|
+
|
|
20
|
+
- Fix a bug sometimes causing unsaved changes to be lost on state transitions.
|
|
21
|
+
|
|
6
22
|
## 1.1.2 2019-03-22
|
|
7
23
|
|
|
8
24
|
### Compatible changes
|
data/Gemfile.5.1.pg.lock
CHANGED
data/Gemfile.5.2.pg.lock
CHANGED
|
@@ -209,8 +209,8 @@ module RailsStateMachine
|
|
|
209
209
|
end
|
|
210
210
|
|
|
211
211
|
def prepare_state_event_change(attributes)
|
|
212
|
-
if saved_changes?
|
|
213
|
-
# After calling `save`, ActiveRecord will flag the changes that it just stored as saved.
|
|
212
|
+
if ActiveRecord::VERSION::STRING <= '5.2' && saved_changes?
|
|
213
|
+
# After calling `save`, ActiveRecord 5.1 will flag the changes that it just stored as saved.
|
|
214
214
|
# https://github.com/rails/rails/blob/v5.1.4/activerecord/lib/active_record/attribute_methods/dirty.rb#L33-L46
|
|
215
215
|
#
|
|
216
216
|
# When taking multiple state events (e.g. a second event called inside an `after_save` callback) and thus
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_state_machine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Arne Hartherz
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2019-
|
|
12
|
+
date: 2019-08-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activerecord
|
|
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
118
118
|
version: '0'
|
|
119
119
|
requirements: []
|
|
120
120
|
rubyforge_project:
|
|
121
|
-
rubygems_version: 2.
|
|
121
|
+
rubygems_version: 2.6.14.1
|
|
122
122
|
signing_key:
|
|
123
123
|
specification_version: 4
|
|
124
124
|
summary: ActiveRecord-bound state machine
|