rails_state_machine 1.1.0 → 1.1.1

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
- SHA1:
3
- metadata.gz: 7405883d16ed97fea524d9e02c5cdb77bbf10f74
4
- data.tar.gz: d89cd3f18ac39922e0967c0ba38954fb344a63fe
2
+ SHA256:
3
+ metadata.gz: 18bcb4caf99db451a480f12823a2aa9f57dfdef482748aa87db546b8257a2d87
4
+ data.tar.gz: 8c298c12ed67f7853a8cf3485750e1d51e7c72959aabf9eda73a043a0d299b84
5
5
  SHA512:
6
- metadata.gz: c5fb9fbf06507497454af5c86b217c2169ce2b43b364af076f2813496b891875ac70c66885fd054fdfc91e4f439ad11553414814f5d8594f86afd18af5f64349
7
- data.tar.gz: 5287318598d58c7725b05be343440a0c39c98f2da735bb7f27a25e6ff3bf8a648f455e4d7dbd3afca69c3e2324364b452566525e35e6b18256bdd2feb9b54dca
6
+ metadata.gz: 0d1ee1b350ffac45ffd350c545cca1881e8fd257c36cd834737a4f1d27453fa955afa0d519a778c853cfa7c96da192e71b87dfbd98d7f947e28daa86b5a4a12a
7
+ data.tar.gz: 6472e5f907ff5c1df21dbf01309b28a09e0ba1cab72611b8f5d8e2e647261f5d59ba4684284908b224da49b403892ab04d074cdc975ce15b8dc86b08b56a42d6
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.1 2019-03-22
7
+
8
+ ### Compatible changes
9
+
10
+ - Fix bug where state was set to `nil` by calling `valid?` on invalid records without making a state transition.
11
+
6
12
  ## 1.1.0 2019-02-07
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.0)
4
+ rails_state_machine (1.1.1)
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.0)
4
+ rails_state_machine (1.1.1)
5
5
  activerecord
6
6
 
7
7
  GEM
@@ -204,7 +204,7 @@ module RailsStateMachine
204
204
  end
205
205
 
206
206
  def revert_state
207
- self.state = @state_before_state_event
207
+ self.state = @state_before_state_event if @next_state_machine_event
208
208
  end
209
209
 
210
210
  def prepare_state_event_change(attributes)
@@ -1,3 +1,3 @@
1
1
  module RailsStateMachine
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
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.0
4
+ version: 1.1.1
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-02-07 00:00:00.000000000 Z
12
+ date: 2019-03-22 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.6.14.1
121
+ rubygems_version: 2.7.6
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: ActiveRecord-bound state machine