rails_state_machine 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18bcb4caf99db451a480f12823a2aa9f57dfdef482748aa87db546b8257a2d87
4
- data.tar.gz: 8c298c12ed67f7853a8cf3485750e1d51e7c72959aabf9eda73a043a0d299b84
3
+ metadata.gz: 12a75ae1120da43e7d488a16a8ce4432d27aa0533706b07a103e351009d06ee8
4
+ data.tar.gz: 5caa677e32ab319d2fd7d96581785760db68da444a6a1a1efc529c4203305f2f
5
5
  SHA512:
6
- metadata.gz: 0d1ee1b350ffac45ffd350c545cca1881e8fd257c36cd834737a4f1d27453fa955afa0d519a778c853cfa7c96da192e71b87dfbd98d7f947e28daa86b5a4a12a
7
- data.tar.gz: 6472e5f907ff5c1df21dbf01309b28a09e0ba1cab72611b8f5d8e2e647261f5d59ba4684284908b224da49b403892ab04d074cdc975ce15b8dc86b08b56a42d6
6
+ metadata.gz: 6ba9b68bb748d2601a36245d06c7ebab4903337186e1317d822d6edf22e47bdcc97a5a542313de9de7b7a17eefec76280df92088785a8220a9ad862f2a370df6
7
+ data.tar.gz: bed69a6350a4a44320f7c65913b13624dadc7c9410b147882842a56ccb0ce92ceeb1e2d5c4a7a5a56a3fefee96a365beb12a58cf2cbcd39bd293837bd6997174
data/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@ 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
+ ## 1.1.2 2019-03-22
7
+
8
+ ### Compatible changes
9
+
10
+ - Fix bug where state was set to an older state when making a record invalid after successfully transitioning to a new state.
11
+
6
12
  ## 1.1.1 2019-03-22
7
13
 
8
14
  ### Compatible changes
data/Gemfile.5.1.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_state_machine (1.1.1)
4
+ rails_state_machine (1.1.2)
5
5
  activerecord
6
6
 
7
7
  GEM
data/Gemfile.5.2.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_state_machine (1.1.1)
4
+ rails_state_machine (1.1.2)
5
5
  activerecord
6
6
 
7
7
  GEM
@@ -127,6 +127,7 @@ module RailsStateMachine
127
127
  before_save :register_state_events_for_callbacks
128
128
  before_save { flush_state_event_callbacks(:before_save) }
129
129
  after_save { flush_state_event_callbacks(:after_save) }
130
+ after_save :unset_next_state_machine_event
130
131
  after_commit { flush_state_event_callbacks(:after_commit) }
131
132
  end
132
133
  end
@@ -1,3 +1,3 @@
1
1
  module RailsStateMachine
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
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.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arne Hartherz