test_after_commit 0.4.0 → 0.4.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
2
  SHA1:
3
- metadata.gz: 8823861468a75a7bca2bb53477565b321df0b4d6
4
- data.tar.gz: ca3d17b225ca68cb1f27c15b98b3af6263fc79ef
3
+ metadata.gz: 1608cb8ff6912879949fa15813e2c0ddf8ed3842
4
+ data.tar.gz: 45d98ac0898d38149343f214660d6aff700ab199
5
5
  SHA512:
6
- metadata.gz: 8ff5bd019f7c9dac53ea5e3548fe2a53cdb7fc20e22c026259dadb5b2a14cbdace0249a51f8860bd6a053bd048e9e3ba48c9b8942c941444acfe048502593bcd
7
- data.tar.gz: abff3757960d644d0bbb414c29012e749d84dd5e01ca5d7fe8738755600de6a8fa19afe3428fd0d1f17dc414965206e3efd59e9608ac092b7fda5ea1f4101315
6
+ metadata.gz: a86d361057e8211f964d23e68e93d369213b6dc1939dad62ffde1a246ea1e99c3c125b7a42eca1a4ccbc176bca19048db80dba6e2295b2c2c979b71fba7adfa0
7
+ data.tar.gz: 938b6410eb30165805607c930b150884080337b344bd106e488b59cea85dc1ea252321adaa43228ffa8efbc6b814910af223a9d9be9805c67197730e34dcd7ea
data/Readme.md CHANGED
@@ -1,5 +1,7 @@
1
1
  Make after_commit callbacks fire in tests for Rails 3+ with transactional_fixtures = true.
2
2
 
3
+ **Deprecation** this is no longer needed on rails 5.0+ https://github.com/rails/rails/pull/18458
4
+
3
5
  Install
4
6
  =======
5
7
 
@@ -54,6 +54,7 @@ if ActiveRecord::VERSION::MAJOR >= 4
54
54
  ActiveRecord::Base.class_eval do
55
55
  alias_method :sync_with_transaction_state_with_state, :sync_with_transaction_state
56
56
  def sync_with_transaction_state
57
+ @reflects_state ||= []
57
58
  @reflects_state[0] = true
58
59
  sync_with_transaction_state_with_state
59
60
  end
@@ -1,3 +1,3 @@
1
1
  module TestAfterCommit
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_after_commit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-22 00:00:00.000000000 Z
11
+ date: 2015-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord