rails_state_machine 1.1.2 → 1.1.3

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
- SHA256:
3
- metadata.gz: 12a75ae1120da43e7d488a16a8ce4432d27aa0533706b07a103e351009d06ee8
4
- data.tar.gz: 5caa677e32ab319d2fd7d96581785760db68da444a6a1a1efc529c4203305f2f
2
+ SHA1:
3
+ metadata.gz: 9600103349aae06d290487b42d571e2c3128068b
4
+ data.tar.gz: 6599f3c3ae8aa457876917b082a9394d17bd3af3
5
5
  SHA512:
6
- metadata.gz: 6ba9b68bb748d2601a36245d06c7ebab4903337186e1317d822d6edf22e47bdcc97a5a542313de9de7b7a17eefec76280df92088785a8220a9ad862f2a370df6
7
- data.tar.gz: bed69a6350a4a44320f7c65913b13624dadc7c9410b147882842a56ccb0ce92ceeb1e2d5c4a7a5a56a3fefee96a365beb12a58cf2cbcd39bd293837bd6997174
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_state_machine (1.1.2)
4
+ rails_state_machine (1.1.3)
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.2)
4
+ rails_state_machine (1.1.3)
5
5
  activerecord
6
6
 
7
7
  GEM
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RailsStateMachine
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
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.2
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-03-22 00:00:00.000000000 Z
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.7.6
121
+ rubygems_version: 2.6.14.1
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: ActiveRecord-bound state machine