after_transaction_commit 1.1.1 → 2.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 5d37205f04fd9dab8a6f219b2ff9ab0760b953d2
4
- data.tar.gz: '058120cf8588254d3ce383837752aaf0d575d5cc'
2
+ SHA256:
3
+ metadata.gz: cf36cf518e4b8a61e6839c82b6de9c0fb395f8cddc5eebd58ba3eaa83cf1ad6a
4
+ data.tar.gz: 2b3bbae3e8c7008f32ae3cead88823905b3b5206c0069757bd955143998f4d17
5
5
  SHA512:
6
- metadata.gz: 692045eb18c6ec174083466cb7d5e02b84a8eeca2c03ddb023238dad14ee4067b70946e5870899f86718577d3efbce1a0801986c2c8d57ce2b991a4db958df3f
7
- data.tar.gz: cb79f79c415901f0b4b2fec1875795fae2f515fe08aed3d015f0e31b277b4b21e57ccccd5f889985c5e9a67e21f1470ed2293c175e2b24500a2a152304b5b960
6
+ metadata.gz: 215d7a1649b5d659485af85c1f01d5147b15d8671bad891e0e592cb22fcbdacc78ac5e6a00d5db62f7c607bbf44ad9936eeca984903ccdc285860bd5c4027aea
7
+ data.tar.gz: 3368a5b925d32668e0dbd3ad096fa6fe118af53336032dbdc567e93cacfe0126e49523da14421ea3774974110916bc6b2b1365961a97b5233c4c4dcce78628c3
data/.gitignore CHANGED
@@ -1,10 +1,12 @@
1
1
  /.bundle/
2
+ /.byebug_history
2
3
  /.yardoc
3
4
  /Gemfile.lock
4
5
  /_yardoc/
5
6
  /coverage/
6
7
  /doc/
7
8
  /pkg/
9
+ /spec/gemfiles/*.lock
8
10
  /spec/reports/
9
11
  /tmp/
10
12
  *.bundle
@@ -2,21 +2,10 @@ bundler_args: ""
2
2
  language: ruby
3
3
 
4
4
  gemfile:
5
- - spec/gemfiles/40.gemfile
6
- - spec/gemfiles/41.gemfile
7
- - spec/gemfiles/42.gemfile
8
- - spec/gemfiles/50.gemfile
5
+ - spec/gemfiles/52.gemfile
6
+ - spec/gemfiles/60.gemfile
9
7
  rvm:
10
- - 2.1.10
11
- - 2.2.5
12
- - 2.3.1
13
- env:
14
- - REAL=1
15
- - TEST=1
16
-
17
- matrix:
18
- exclude:
19
- - gemfile: spec/gemfiles/50.gemfile
20
- rvm: 2.1.10
8
+ - 2.6.2
9
+ - 2.7.1
21
10
 
22
11
  script: bundle exec rake spec
data/Gemfile CHANGED
@@ -1,8 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- group :test do
4
- gem 'test_after_commit', git: 'https://github.com/codekitchen/test_after_commit.git', branch: 'nested-commit-callbacks'
5
- end
6
-
7
3
  # Specify your gem's dependencies in after_transaction_commit.gemspec
8
4
  gemspec
@@ -17,13 +17,14 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.required_ruby_version = ">= 2.1"
20
+ spec.required_ruby_version = ">= 2.6"
21
21
 
22
- spec.add_dependency "activerecord", ">= 4.0"
22
+ spec.add_dependency "activerecord", ">= 5.2"
23
23
 
24
24
  spec.add_development_dependency "bump"
25
- spec.add_development_dependency "bundler", "~> 1.11"
26
- spec.add_development_dependency "rake", "~> 11.0"
25
+ spec.add_development_dependency "bundler", ">= 1.17", "< 3.0"
26
+ spec.add_development_dependency "byebug"
27
+ spec.add_development_dependency "rake", "~> 13.0"
27
28
  spec.add_development_dependency "rspec"
28
29
  spec.add_development_dependency "sqlite3"
29
30
  spec.add_development_dependency "wwtd"
@@ -1,19 +1,10 @@
1
1
  module AfterTransactionCommit
2
2
  end
3
3
 
4
- unless ActiveRecord::VERSION::MAJOR.between? 4, 5
5
- raise "Unsupported Rails version"
6
- end
7
-
8
4
  require "after_transaction_commit/version"
9
5
  require "after_transaction_commit/database_statements"
10
6
  require "after_transaction_commit/transaction"
11
7
 
12
8
  # force autoloading if necessary
13
- _ = ActiveRecord::ConnectionAdapters::RealTransaction
14
-
15
- klass = defined?(ActiveRecord::ConnectionAdapters::OpenTransaction) ?
16
- ActiveRecord::ConnectionAdapters::OpenTransaction : # rails < 4.2
17
- ActiveRecord::ConnectionAdapters::Transaction # rails >= 4.2
18
-
19
- klass.prepend AfterTransactionCommit::Transaction
9
+ ActiveRecord::ConnectionAdapters::RealTransaction
10
+ ActiveRecord::ConnectionAdapters::Transaction.prepend(AfterTransactionCommit::Transaction)
@@ -1,49 +1,9 @@
1
+ # this is still a class eval because it has already been included into other
2
+ # classes, so if we include into it, the other classes won't get this method
1
3
  ActiveRecord::ConnectionAdapters::DatabaseStatements.class_eval do
2
4
  def after_transaction_commit(&block)
3
- if !_in_transaction_for_callbacks?
4
- block.call
5
- else
6
- @after_transaction_commit ||= []
7
- @after_transaction_commit << block
8
- end
9
- end
10
-
11
- private
12
-
13
- def _run_after_transaction_commit_callbacks
14
- if @after_transaction_commit.present?
15
- # the callback could trigger a new transaction on this connection,
16
- # and leaving the callbacks in @after_transaction_commit could put us in an
17
- # infinite loop.
18
- # so we store off the callbacks to a local var here.
19
- callbacks = @after_transaction_commit
20
- @after_transaction_commit = []
21
- callbacks.each { |cb| cb.call() }
22
- end
23
- ensure
24
- @after_transaction_commit = [] if @after_transaction_commit
25
- end
26
-
27
- def _remove_after_transaction_commit_callbacks
28
- @after_transaction_commit = [] if @after_transaction_commit
29
- end
30
-
31
- if ActiveRecord.version < Gem::Version.new('5')
32
- def _transaction_test_mode?
33
- defined?(TestAfterCommit)
34
- end
35
-
36
- def _in_transaction_for_callbacks?
37
- txn = _transaction_test_mode? ? _test_open_transactions : open_transactions
38
- txn > 0
39
- end
40
-
41
- def _test_open_transactions
42
- @test_open_transactions || 0
43
- end
44
- else
45
- def _in_transaction_for_callbacks?
46
- current_transaction.joinable?
47
- end
5
+ transaction = transaction_manager.current_transaction
6
+ return block.call unless transaction.joinable?
7
+ transaction.add_after_commit(block)
48
8
  end
49
9
  end
@@ -1,25 +1,21 @@
1
1
  module AfterTransactionCommit
2
2
  module Transaction
3
- if ActiveRecord.version < Gem::Version.new('5')
4
- def rollback_records
5
- super
6
- if self.is_a?(ActiveRecord::ConnectionAdapters::RealTransaction) ||
7
- (connection.send(:_transaction_test_mode?) && connection.send(:_test_open_transactions) == 0)
8
- connection.send(:_remove_after_transaction_commit_callbacks)
9
- end
10
- end
11
- else
12
- def rollback_records
13
- super
14
- unless connection.current_transaction.joinable?
15
- connection.send(:_remove_after_transaction_commit_callbacks)
16
- end
17
- end
3
+ def initialize(connection, options, run_commit_callbacks: false)
4
+ super
5
+ @after_commit_blocks = []
6
+ end
7
+
8
+ def add_after_commit(block)
9
+ @after_commit_blocks << block
18
10
  end
19
11
 
20
12
  def commit_records
21
13
  super
22
- connection.send(:_run_after_transaction_commit_callbacks)
14
+ if @run_commit_callbacks
15
+ @after_commit_blocks.each(&:call)
16
+ else
17
+ connection.current_transaction.instance_variable_get(:@after_commit_blocks).concat(@after_commit_blocks)
18
+ end
23
19
  end
24
20
  end
25
21
  end
@@ -1,3 +1,3 @@
1
1
  module AfterTransactionCommit
2
- VERSION = "1.1.1"
2
+ VERSION = "2.2.1"
3
3
  end
@@ -21,7 +21,6 @@ describe AfterTransactionCommit do
21
21
  end
22
22
 
23
23
  it "immediately executes the callback when in a non-joinable transaction" do
24
- skip "Rails 5 only" if ActiveRecord.version < Gem::Version.new('5')
25
24
  a = 0
26
25
  User.connection.transaction(joinable: false) do
27
26
  User.connection.after_transaction_commit { a += 1 }
@@ -31,7 +30,6 @@ describe AfterTransactionCommit do
31
30
  end
32
31
 
33
32
  it "executes the callback when a nested transaction commits within a non-joinable transaction" do
34
- skip "Rails 5 only" if ActiveRecord.version < Gem::Version.new('5')
35
33
  a = 0
36
34
  User.connection.transaction(joinable: false) do
37
35
  User.connection.transaction do
@@ -67,7 +65,6 @@ describe AfterTransactionCommit do
67
65
  end
68
66
 
69
67
  it "should execute the callback immediately if created during commit callback" do
70
- skip "Pre-Rails 5 only" if !ENV['REAL'] && ActiveRecord.version >= Gem::Version.new('5')
71
68
  a = 0
72
69
  User.connection.transaction do
73
70
  User.connection.after_transaction_commit { User.connection.after_transaction_commit { a += 1 } }
@@ -84,4 +81,42 @@ describe AfterTransactionCommit do
84
81
  end
85
82
  expect(a).to eql 1
86
83
  end
84
+
85
+ it "doesn't execute the callback if an intermediate transaction rolls back" do
86
+ a = 0
87
+ User.connection.transaction do
88
+ User.connection.transaction(requires_new: true) do
89
+ User.connection.transaction(requires_new: true) do
90
+ User.connection.after_transaction_commit { a += 1 }
91
+ end
92
+ raise ActiveRecord::Rollback
93
+ end
94
+ end
95
+ expect(a).to eql 0
96
+ end
97
+
98
+ it "doesn't lose a callback inside a callback inside a nested non-joinable transaction" do
99
+ a = 0
100
+ User.connection.transaction do
101
+ User.connection.transaction(:requires_new => true) do
102
+ User.connection.after_transaction_commit do
103
+ User.connection.after_transaction_commit { puts "inner callback"; a += 1 }
104
+ end
105
+ end
106
+ end
107
+ expect(a).to eql 1
108
+ end
109
+
110
+ it "doesn't call callbacks after a requires_new transaction" do
111
+ a = 0
112
+ User.connection.transaction do
113
+ User.connection.transaction(:requires_new => true) do
114
+ User.connection.after_transaction_commit do
115
+ a += 1
116
+ end
117
+ end
118
+ expect(a).to eq 0
119
+ end
120
+ expect(a).to eql 1
121
+ end
87
122
  end
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec :path=>"../../"
4
+
5
+ gem "activerecord", "~> 5.2.0"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec :path=>"../../"
4
+
5
+ gem "activerecord", "~> 6.0.0"
@@ -1,26 +1,5 @@
1
1
  $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
- require File.expand_path '../database', __FILE__
2
+ require_relative "database"
3
3
 
4
4
  require 'after_transaction_commit'
5
-
6
- if ENV['REAL']
7
- puts 'using real transactions'
8
- else
9
- puts 'using test-style transactions (use_transactional_fixtures)'
10
- require 'test_after_commit'
11
- end
12
-
13
- RSpec.configure do |config|
14
- unless ENV['REAL']
15
- config.around do |example|
16
- # open a transaction without using .transaction as activerecord use_transactional_fixtures does
17
- # code taken from https://github.com/grosser/test_after_commit/blob/master/spec/spec_helper.rb
18
- connection = ActiveRecord::Base.connection_handler.connection_pool_list.map(&:connection).first
19
- connection.begin_transaction :joinable => false
20
-
21
- example.call
22
-
23
- connection.rollback_db_transaction
24
- end
25
- end
26
- end
5
+ require 'byebug'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: after_transaction_commit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Palmer
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-17 00:00:00.000000000 Z
11
+ date: 2020-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: '5.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '4.0'
26
+ version: '5.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bump
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,30 +42,50 @@ dependencies:
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '1.17'
48
+ - - "<"
46
49
  - !ruby/object:Gem::Version
47
- version: '1.11'
50
+ version: '3.0'
48
51
  type: :development
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
- - - "~>"
55
+ - - ">="
53
56
  - !ruby/object:Gem::Version
54
- version: '1.11'
57
+ version: '1.17'
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '3.0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: byebug
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
55
75
  - !ruby/object:Gem::Dependency
56
76
  name: rake
57
77
  requirement: !ruby/object:Gem::Requirement
58
78
  requirements:
59
79
  - - "~>"
60
80
  - !ruby/object:Gem::Version
61
- version: '11.0'
81
+ version: '13.0'
62
82
  type: :development
63
83
  prerelease: false
64
84
  version_requirements: !ruby/object:Gem::Requirement
65
85
  requirements:
66
86
  - - "~>"
67
87
  - !ruby/object:Gem::Version
68
- version: '11.0'
88
+ version: '13.0'
69
89
  - !ruby/object:Gem::Dependency
70
90
  name: rspec
71
91
  requirement: !ruby/object:Gem::Requirement
@@ -108,7 +128,7 @@ dependencies:
108
128
  - - ">="
109
129
  - !ruby/object:Gem::Version
110
130
  version: '0'
111
- description:
131
+ description:
112
132
  email:
113
133
  - brianp@instructure.com
114
134
  executables: []
@@ -130,20 +150,14 @@ files:
130
150
  - lib/after_transaction_commit/version.rb
131
151
  - spec/after_transaction_commit_spec.rb
132
152
  - spec/database.rb
133
- - spec/gemfiles/40.gemfile
134
- - spec/gemfiles/40.gemfile.lock
135
- - spec/gemfiles/41.gemfile
136
- - spec/gemfiles/41.gemfile.lock
137
- - spec/gemfiles/42.gemfile
138
- - spec/gemfiles/42.gemfile.lock
139
- - spec/gemfiles/50.gemfile
140
- - spec/gemfiles/50.gemfile.lock
153
+ - spec/gemfiles/52.gemfile
154
+ - spec/gemfiles/60.gemfile
141
155
  - spec/spec_helper.rb
142
156
  homepage: https://github.com/instructure/after_transaction_commit
143
157
  licenses:
144
158
  - MIT
145
159
  metadata: {}
146
- post_install_message:
160
+ post_install_message:
147
161
  rdoc_options: []
148
162
  require_paths:
149
163
  - lib
@@ -151,27 +165,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
165
  requirements:
152
166
  - - ">="
153
167
  - !ruby/object:Gem::Version
154
- version: '2.1'
168
+ version: '2.6'
155
169
  required_rubygems_version: !ruby/object:Gem::Requirement
156
170
  requirements:
157
171
  - - ">="
158
172
  - !ruby/object:Gem::Version
159
173
  version: '0'
160
174
  requirements: []
161
- rubyforge_project:
162
- rubygems_version: 2.6.10
163
- signing_key:
175
+ rubygems_version: 3.1.4
176
+ signing_key:
164
177
  specification_version: 4
165
178
  summary: ActiveRecord::Base.connection.after_transaction_commit { ... }
166
179
  test_files:
167
180
  - spec/after_transaction_commit_spec.rb
168
181
  - spec/database.rb
169
- - spec/gemfiles/40.gemfile
170
- - spec/gemfiles/40.gemfile.lock
171
- - spec/gemfiles/41.gemfile
172
- - spec/gemfiles/41.gemfile.lock
173
- - spec/gemfiles/42.gemfile
174
- - spec/gemfiles/42.gemfile.lock
175
- - spec/gemfiles/50.gemfile
176
- - spec/gemfiles/50.gemfile.lock
182
+ - spec/gemfiles/52.gemfile
183
+ - spec/gemfiles/60.gemfile
177
184
  - spec/spec_helper.rb
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec :path=>"../../"
4
-
5
- gem "activerecord", "~> 4.0.0"
6
-
7
- group :test do
8
- gem 'test_after_commit', git: 'https://github.com/codekitchen/test_after_commit.git', branch: 'nested-commit-callbacks'
9
- end
@@ -1,74 +0,0 @@
1
- GIT
2
- remote: https://github.com/codekitchen/test_after_commit.git
3
- revision: 899ec8b6c699330d7804f91253e37beb610d097e
4
- branch: nested-commit-callbacks
5
- specs:
6
- test_after_commit (0.3.0)
7
- activerecord (>= 3.2)
8
-
9
- PATH
10
- remote: ../..
11
- specs:
12
- after_transaction_commit (1.1.0)
13
- activerecord (>= 4.0)
14
-
15
- GEM
16
- remote: https://rubygems.org/
17
- specs:
18
- activemodel (4.0.13)
19
- activesupport (= 4.0.13)
20
- builder (~> 3.1.0)
21
- activerecord (4.0.13)
22
- activemodel (= 4.0.13)
23
- activerecord-deprecated_finders (~> 1.0.2)
24
- activesupport (= 4.0.13)
25
- arel (~> 4.0.0)
26
- activerecord-deprecated_finders (1.0.4)
27
- activesupport (4.0.13)
28
- i18n (~> 0.6, >= 0.6.9)
29
- minitest (~> 4.2)
30
- multi_json (~> 1.3)
31
- thread_safe (~> 0.1)
32
- tzinfo (~> 0.3.37)
33
- arel (4.0.2)
34
- builder (3.1.4)
35
- bump (0.5.3)
36
- diff-lcs (1.2.5)
37
- i18n (0.7.0)
38
- minitest (4.7.5)
39
- multi_json (1.12.1)
40
- rake (11.3.0)
41
- rspec (3.5.0)
42
- rspec-core (~> 3.5.0)
43
- rspec-expectations (~> 3.5.0)
44
- rspec-mocks (~> 3.5.0)
45
- rspec-core (3.5.4)
46
- rspec-support (~> 3.5.0)
47
- rspec-expectations (3.5.0)
48
- diff-lcs (>= 1.2.0, < 2.0)
49
- rspec-support (~> 3.5.0)
50
- rspec-mocks (3.5.0)
51
- diff-lcs (>= 1.2.0, < 2.0)
52
- rspec-support (~> 3.5.0)
53
- rspec-support (3.5.0)
54
- sqlite3 (1.3.11)
55
- thread_safe (0.3.5)
56
- tzinfo (0.3.51)
57
- wwtd (1.3.0)
58
-
59
- PLATFORMS
60
- ruby
61
-
62
- DEPENDENCIES
63
- activerecord (~> 4.0.0)
64
- after_transaction_commit!
65
- bump
66
- bundler (~> 1.11)
67
- rake (~> 11.0)
68
- rspec
69
- sqlite3
70
- test_after_commit!
71
- wwtd
72
-
73
- BUNDLED WITH
74
- 1.14.3
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec :path=>"../../"
4
-
5
- gem "activerecord", "~> 4.1.0"
6
-
7
- group :test do
8
- gem 'test_after_commit', git: 'https://github.com/codekitchen/test_after_commit.git', branch: 'nested-commit-callbacks'
9
- end
@@ -1,73 +0,0 @@
1
- GIT
2
- remote: https://github.com/codekitchen/test_after_commit.git
3
- revision: 899ec8b6c699330d7804f91253e37beb610d097e
4
- branch: nested-commit-callbacks
5
- specs:
6
- test_after_commit (0.3.0)
7
- activerecord (>= 3.2)
8
-
9
- PATH
10
- remote: ../..
11
- specs:
12
- after_transaction_commit (1.1.0)
13
- activerecord (>= 4.0)
14
-
15
- GEM
16
- remote: https://rubygems.org/
17
- specs:
18
- activemodel (4.1.16)
19
- activesupport (= 4.1.16)
20
- builder (~> 3.1)
21
- activerecord (4.1.16)
22
- activemodel (= 4.1.16)
23
- activesupport (= 4.1.16)
24
- arel (~> 5.0.0)
25
- activesupport (4.1.16)
26
- i18n (~> 0.6, >= 0.6.9)
27
- json (~> 1.7, >= 1.7.7)
28
- minitest (~> 5.1)
29
- thread_safe (~> 0.1)
30
- tzinfo (~> 1.1)
31
- arel (5.0.1.20140414130214)
32
- builder (3.2.2)
33
- bump (0.5.3)
34
- diff-lcs (1.2.5)
35
- i18n (0.7.0)
36
- json (1.8.3)
37
- minitest (5.9.1)
38
- rake (11.3.0)
39
- rspec (3.5.0)
40
- rspec-core (~> 3.5.0)
41
- rspec-expectations (~> 3.5.0)
42
- rspec-mocks (~> 3.5.0)
43
- rspec-core (3.5.4)
44
- rspec-support (~> 3.5.0)
45
- rspec-expectations (3.5.0)
46
- diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.5.0)
48
- rspec-mocks (3.5.0)
49
- diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.5.0)
51
- rspec-support (3.5.0)
52
- sqlite3 (1.3.11)
53
- thread_safe (0.3.5)
54
- tzinfo (1.2.2)
55
- thread_safe (~> 0.1)
56
- wwtd (1.3.0)
57
-
58
- PLATFORMS
59
- ruby
60
-
61
- DEPENDENCIES
62
- activerecord (~> 4.1.0)
63
- after_transaction_commit!
64
- bump
65
- bundler (~> 1.11)
66
- rake (~> 11.0)
67
- rspec
68
- sqlite3
69
- test_after_commit!
70
- wwtd
71
-
72
- BUNDLED WITH
73
- 1.14.3
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec :path=>"../../"
4
-
5
- gem "activerecord", "~> 4.2.0.beta2"
6
-
7
- group :test do
8
- gem 'test_after_commit', git: 'https://github.com/codekitchen/test_after_commit.git', branch: 'nested-commit-callbacks'
9
- end
@@ -1,73 +0,0 @@
1
- GIT
2
- remote: https://github.com/codekitchen/test_after_commit.git
3
- revision: 899ec8b6c699330d7804f91253e37beb610d097e
4
- branch: nested-commit-callbacks
5
- specs:
6
- test_after_commit (0.3.0)
7
- activerecord (>= 3.2)
8
-
9
- PATH
10
- remote: ../..
11
- specs:
12
- after_transaction_commit (1.1.0)
13
- activerecord (>= 4.0)
14
-
15
- GEM
16
- remote: https://rubygems.org/
17
- specs:
18
- activemodel (4.2.7.1)
19
- activesupport (= 4.2.7.1)
20
- builder (~> 3.1)
21
- activerecord (4.2.7.1)
22
- activemodel (= 4.2.7.1)
23
- activesupport (= 4.2.7.1)
24
- arel (~> 6.0)
25
- activesupport (4.2.7.1)
26
- i18n (~> 0.7)
27
- json (~> 1.7, >= 1.7.7)
28
- minitest (~> 5.1)
29
- thread_safe (~> 0.3, >= 0.3.4)
30
- tzinfo (~> 1.1)
31
- arel (6.0.3)
32
- builder (3.2.2)
33
- bump (0.5.3)
34
- diff-lcs (1.2.5)
35
- i18n (0.7.0)
36
- json (1.8.3)
37
- minitest (5.9.1)
38
- rake (11.3.0)
39
- rspec (3.5.0)
40
- rspec-core (~> 3.5.0)
41
- rspec-expectations (~> 3.5.0)
42
- rspec-mocks (~> 3.5.0)
43
- rspec-core (3.5.4)
44
- rspec-support (~> 3.5.0)
45
- rspec-expectations (3.5.0)
46
- diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.5.0)
48
- rspec-mocks (3.5.0)
49
- diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.5.0)
51
- rspec-support (3.5.0)
52
- sqlite3 (1.3.11)
53
- thread_safe (0.3.5)
54
- tzinfo (1.2.2)
55
- thread_safe (~> 0.1)
56
- wwtd (1.3.0)
57
-
58
- PLATFORMS
59
- ruby
60
-
61
- DEPENDENCIES
62
- activerecord (~> 4.2.0.beta2)
63
- after_transaction_commit!
64
- bump
65
- bundler (~> 1.11)
66
- rake (~> 11.0)
67
- rspec
68
- sqlite3
69
- test_after_commit!
70
- wwtd
71
-
72
- BUNDLED WITH
73
- 1.14.3
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec :path=>"../../"
4
-
5
- gem "activerecord", "~> 5.0.0"
6
-
7
- group :test do
8
- gem 'test_after_commit', git: 'https://github.com/codekitchen/test_after_commit.git', branch: 'nested-commit-callbacks'
9
- end
@@ -1,70 +0,0 @@
1
- GIT
2
- remote: https://github.com/codekitchen/test_after_commit.git
3
- revision: 899ec8b6c699330d7804f91253e37beb610d097e
4
- branch: nested-commit-callbacks
5
- specs:
6
- test_after_commit (0.3.0)
7
- activerecord (>= 3.2)
8
-
9
- PATH
10
- remote: ../..
11
- specs:
12
- after_transaction_commit (1.1.0)
13
- activerecord (>= 4.0)
14
-
15
- GEM
16
- remote: https://rubygems.org/
17
- specs:
18
- activemodel (5.0.0.1)
19
- activesupport (= 5.0.0.1)
20
- activerecord (5.0.0.1)
21
- activemodel (= 5.0.0.1)
22
- activesupport (= 5.0.0.1)
23
- arel (~> 7.0)
24
- activesupport (5.0.0.1)
25
- concurrent-ruby (~> 1.0, >= 1.0.2)
26
- i18n (~> 0.7)
27
- minitest (~> 5.1)
28
- tzinfo (~> 1.1)
29
- arel (7.1.3)
30
- bump (0.5.3)
31
- concurrent-ruby (1.0.2)
32
- diff-lcs (1.2.5)
33
- i18n (0.7.0)
34
- minitest (5.9.1)
35
- rake (11.3.0)
36
- rspec (3.5.0)
37
- rspec-core (~> 3.5.0)
38
- rspec-expectations (~> 3.5.0)
39
- rspec-mocks (~> 3.5.0)
40
- rspec-core (3.5.4)
41
- rspec-support (~> 3.5.0)
42
- rspec-expectations (3.5.0)
43
- diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.5.0)
45
- rspec-mocks (3.5.0)
46
- diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.5.0)
48
- rspec-support (3.5.0)
49
- sqlite3 (1.3.11)
50
- thread_safe (0.3.5)
51
- tzinfo (1.2.2)
52
- thread_safe (~> 0.1)
53
- wwtd (1.3.0)
54
-
55
- PLATFORMS
56
- ruby
57
-
58
- DEPENDENCIES
59
- activerecord (~> 5.0.0)
60
- after_transaction_commit!
61
- bump
62
- bundler (~> 1.11)
63
- rake (~> 11.0)
64
- rspec
65
- sqlite3
66
- test_after_commit!
67
- wwtd
68
-
69
- BUNDLED WITH
70
- 1.14.3