activerecord-wrapped_transaction 0.5.1 → 0.9.0
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 +5 -5
- data/.github/workflows/main.yml +89 -0
- data/.rspec +0 -1
- data/Appraisals +29 -0
- data/README.md +43 -16
- data/Rakefile +1 -1
- data/activerecord-wrapped_transaction.gemspec +5 -7
- data/bin/appraisal +29 -0
- data/bin/rake +29 -0
- data/bin/rspec +29 -0
- data/bin/setup +1 -1
- data/db/connection.rb +34 -16
- data/db/models.rb +1 -1
- data/db/schema.rb +2 -0
- data/gemfiles/rails_5_mysql2.gemfile +8 -0
- data/gemfiles/rails_5_mysql2.gemfile.lock +80 -0
- data/gemfiles/rails_5_pg.gemfile +8 -0
- data/gemfiles/rails_5_pg.gemfile.lock +80 -0
- data/gemfiles/rails_5_sqlite3.gemfile +8 -0
- data/gemfiles/rails_5_sqlite3.gemfile.lock +80 -0
- data/gemfiles/rails_6_mysql2.gemfile +8 -0
- data/gemfiles/rails_6_mysql2.gemfile.lock +80 -0
- data/gemfiles/rails_6_pg.gemfile +8 -0
- data/gemfiles/rails_6_pg.gemfile.lock +80 -0
- data/gemfiles/rails_6_sqlite3.gemfile +8 -0
- data/gemfiles/rails_6_sqlite3.gemfile.lock +80 -0
- data/lib/activerecord/wrapped_transaction.rb +22 -3
- data/lib/activerecord/wrapped_transaction/context.rb +95 -0
- data/lib/activerecord/wrapped_transaction/result.rb +34 -29
- data/lib/activerecord/wrapped_transaction/version.rb +1 -1
- metadata +41 -53
- data/.travis.yml +0 -10
@@ -0,0 +1,80 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
activerecord-wrapped_transaction (0.9.0)
|
5
|
+
activerecord (>= 5, < 7)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (5.2.4.3)
|
11
|
+
activesupport (= 5.2.4.3)
|
12
|
+
activerecord (5.2.4.3)
|
13
|
+
activemodel (= 5.2.4.3)
|
14
|
+
activesupport (= 5.2.4.3)
|
15
|
+
arel (>= 9.0)
|
16
|
+
activesupport (5.2.4.3)
|
17
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
+
i18n (>= 0.7, < 2)
|
19
|
+
minitest (~> 5.1)
|
20
|
+
tzinfo (~> 1.1)
|
21
|
+
appraisal (2.3.0)
|
22
|
+
bundler
|
23
|
+
rake
|
24
|
+
thor (>= 0.14.0)
|
25
|
+
arel (9.0.0)
|
26
|
+
coderay (1.1.3)
|
27
|
+
concurrent-ruby (1.1.6)
|
28
|
+
database_cleaner (1.8.5)
|
29
|
+
database_cleaner-active_record (1.8.0)
|
30
|
+
activerecord
|
31
|
+
database_cleaner (~> 1.8.0)
|
32
|
+
diff-lcs (1.3)
|
33
|
+
docile (1.3.2)
|
34
|
+
i18n (1.8.3)
|
35
|
+
concurrent-ruby (~> 1.0)
|
36
|
+
method_source (1.0.0)
|
37
|
+
minitest (5.14.1)
|
38
|
+
mysql2 (0.5.3)
|
39
|
+
pry (0.13.1)
|
40
|
+
coderay (~> 1.1)
|
41
|
+
method_source (~> 1.0)
|
42
|
+
rake (13.0.1)
|
43
|
+
rspec (3.9.0)
|
44
|
+
rspec-core (~> 3.9.0)
|
45
|
+
rspec-expectations (~> 3.9.0)
|
46
|
+
rspec-mocks (~> 3.9.0)
|
47
|
+
rspec-core (3.9.2)
|
48
|
+
rspec-support (~> 3.9.3)
|
49
|
+
rspec-expectations (3.9.2)
|
50
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
51
|
+
rspec-support (~> 3.9.0)
|
52
|
+
rspec-mocks (3.9.1)
|
53
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
54
|
+
rspec-support (~> 3.9.0)
|
55
|
+
rspec-support (3.9.3)
|
56
|
+
simplecov (0.18.5)
|
57
|
+
docile (~> 1.1)
|
58
|
+
simplecov-html (~> 0.11)
|
59
|
+
simplecov-html (0.12.2)
|
60
|
+
thor (1.0.1)
|
61
|
+
thread_safe (0.3.6)
|
62
|
+
tzinfo (1.2.7)
|
63
|
+
thread_safe (~> 0.1)
|
64
|
+
|
65
|
+
PLATFORMS
|
66
|
+
ruby
|
67
|
+
|
68
|
+
DEPENDENCIES
|
69
|
+
activerecord (~> 5, < 6)
|
70
|
+
activerecord-wrapped_transaction!
|
71
|
+
appraisal (~> 2.3.0)
|
72
|
+
database_cleaner-active_record (~> 1.8.0)
|
73
|
+
mysql2
|
74
|
+
pry
|
75
|
+
rake (>= 12.3.3)
|
76
|
+
rspec (~> 3.5)
|
77
|
+
simplecov (~> 0.18.5)
|
78
|
+
|
79
|
+
BUNDLED WITH
|
80
|
+
2.1.4
|
@@ -0,0 +1,80 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
activerecord-wrapped_transaction (0.9.0)
|
5
|
+
activerecord (>= 5, < 7)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (5.2.4.3)
|
11
|
+
activesupport (= 5.2.4.3)
|
12
|
+
activerecord (5.2.4.3)
|
13
|
+
activemodel (= 5.2.4.3)
|
14
|
+
activesupport (= 5.2.4.3)
|
15
|
+
arel (>= 9.0)
|
16
|
+
activesupport (5.2.4.3)
|
17
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
+
i18n (>= 0.7, < 2)
|
19
|
+
minitest (~> 5.1)
|
20
|
+
tzinfo (~> 1.1)
|
21
|
+
appraisal (2.3.0)
|
22
|
+
bundler
|
23
|
+
rake
|
24
|
+
thor (>= 0.14.0)
|
25
|
+
arel (9.0.0)
|
26
|
+
coderay (1.1.3)
|
27
|
+
concurrent-ruby (1.1.6)
|
28
|
+
database_cleaner (1.8.5)
|
29
|
+
database_cleaner-active_record (1.8.0)
|
30
|
+
activerecord
|
31
|
+
database_cleaner (~> 1.8.0)
|
32
|
+
diff-lcs (1.3)
|
33
|
+
docile (1.3.2)
|
34
|
+
i18n (1.8.3)
|
35
|
+
concurrent-ruby (~> 1.0)
|
36
|
+
method_source (1.0.0)
|
37
|
+
minitest (5.14.1)
|
38
|
+
pg (1.2.3)
|
39
|
+
pry (0.13.1)
|
40
|
+
coderay (~> 1.1)
|
41
|
+
method_source (~> 1.0)
|
42
|
+
rake (13.0.1)
|
43
|
+
rspec (3.9.0)
|
44
|
+
rspec-core (~> 3.9.0)
|
45
|
+
rspec-expectations (~> 3.9.0)
|
46
|
+
rspec-mocks (~> 3.9.0)
|
47
|
+
rspec-core (3.9.2)
|
48
|
+
rspec-support (~> 3.9.3)
|
49
|
+
rspec-expectations (3.9.2)
|
50
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
51
|
+
rspec-support (~> 3.9.0)
|
52
|
+
rspec-mocks (3.9.1)
|
53
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
54
|
+
rspec-support (~> 3.9.0)
|
55
|
+
rspec-support (3.9.3)
|
56
|
+
simplecov (0.18.5)
|
57
|
+
docile (~> 1.1)
|
58
|
+
simplecov-html (~> 0.11)
|
59
|
+
simplecov-html (0.12.2)
|
60
|
+
thor (1.0.1)
|
61
|
+
thread_safe (0.3.6)
|
62
|
+
tzinfo (1.2.7)
|
63
|
+
thread_safe (~> 0.1)
|
64
|
+
|
65
|
+
PLATFORMS
|
66
|
+
ruby
|
67
|
+
|
68
|
+
DEPENDENCIES
|
69
|
+
activerecord (~> 5, < 6)
|
70
|
+
activerecord-wrapped_transaction!
|
71
|
+
appraisal (~> 2.3.0)
|
72
|
+
database_cleaner-active_record (~> 1.8.0)
|
73
|
+
pg
|
74
|
+
pry
|
75
|
+
rake (>= 12.3.3)
|
76
|
+
rspec (~> 3.5)
|
77
|
+
simplecov (~> 0.18.5)
|
78
|
+
|
79
|
+
BUNDLED WITH
|
80
|
+
2.1.4
|
@@ -0,0 +1,80 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
activerecord-wrapped_transaction (0.9.0)
|
5
|
+
activerecord (>= 5, < 7)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (5.2.4.3)
|
11
|
+
activesupport (= 5.2.4.3)
|
12
|
+
activerecord (5.2.4.3)
|
13
|
+
activemodel (= 5.2.4.3)
|
14
|
+
activesupport (= 5.2.4.3)
|
15
|
+
arel (>= 9.0)
|
16
|
+
activesupport (5.2.4.3)
|
17
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
+
i18n (>= 0.7, < 2)
|
19
|
+
minitest (~> 5.1)
|
20
|
+
tzinfo (~> 1.1)
|
21
|
+
appraisal (2.3.0)
|
22
|
+
bundler
|
23
|
+
rake
|
24
|
+
thor (>= 0.14.0)
|
25
|
+
arel (9.0.0)
|
26
|
+
coderay (1.1.3)
|
27
|
+
concurrent-ruby (1.1.6)
|
28
|
+
database_cleaner (1.8.5)
|
29
|
+
database_cleaner-active_record (1.8.0)
|
30
|
+
activerecord
|
31
|
+
database_cleaner (~> 1.8.0)
|
32
|
+
diff-lcs (1.3)
|
33
|
+
docile (1.3.2)
|
34
|
+
i18n (1.8.3)
|
35
|
+
concurrent-ruby (~> 1.0)
|
36
|
+
method_source (1.0.0)
|
37
|
+
minitest (5.14.1)
|
38
|
+
pry (0.13.1)
|
39
|
+
coderay (~> 1.1)
|
40
|
+
method_source (~> 1.0)
|
41
|
+
rake (13.0.1)
|
42
|
+
rspec (3.9.0)
|
43
|
+
rspec-core (~> 3.9.0)
|
44
|
+
rspec-expectations (~> 3.9.0)
|
45
|
+
rspec-mocks (~> 3.9.0)
|
46
|
+
rspec-core (3.9.2)
|
47
|
+
rspec-support (~> 3.9.3)
|
48
|
+
rspec-expectations (3.9.2)
|
49
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
+
rspec-support (~> 3.9.0)
|
51
|
+
rspec-mocks (3.9.1)
|
52
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
+
rspec-support (~> 3.9.0)
|
54
|
+
rspec-support (3.9.3)
|
55
|
+
simplecov (0.18.5)
|
56
|
+
docile (~> 1.1)
|
57
|
+
simplecov-html (~> 0.11)
|
58
|
+
simplecov-html (0.12.2)
|
59
|
+
sqlite3 (1.4.2)
|
60
|
+
thor (1.0.1)
|
61
|
+
thread_safe (0.3.6)
|
62
|
+
tzinfo (1.2.7)
|
63
|
+
thread_safe (~> 0.1)
|
64
|
+
|
65
|
+
PLATFORMS
|
66
|
+
ruby
|
67
|
+
|
68
|
+
DEPENDENCIES
|
69
|
+
activerecord (~> 5, < 6)
|
70
|
+
activerecord-wrapped_transaction!
|
71
|
+
appraisal (~> 2.3.0)
|
72
|
+
database_cleaner-active_record (~> 1.8.0)
|
73
|
+
pry
|
74
|
+
rake (>= 12.3.3)
|
75
|
+
rspec (~> 3.5)
|
76
|
+
simplecov (~> 0.18.5)
|
77
|
+
sqlite3
|
78
|
+
|
79
|
+
BUNDLED WITH
|
80
|
+
2.1.4
|
@@ -0,0 +1,80 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
activerecord-wrapped_transaction (0.9.0)
|
5
|
+
activerecord (>= 5, < 7)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (6.0.3.1)
|
11
|
+
activesupport (= 6.0.3.1)
|
12
|
+
activerecord (6.0.3.1)
|
13
|
+
activemodel (= 6.0.3.1)
|
14
|
+
activesupport (= 6.0.3.1)
|
15
|
+
activesupport (6.0.3.1)
|
16
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
|
+
i18n (>= 0.7, < 2)
|
18
|
+
minitest (~> 5.1)
|
19
|
+
tzinfo (~> 1.1)
|
20
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
21
|
+
appraisal (2.3.0)
|
22
|
+
bundler
|
23
|
+
rake
|
24
|
+
thor (>= 0.14.0)
|
25
|
+
coderay (1.1.3)
|
26
|
+
concurrent-ruby (1.1.6)
|
27
|
+
database_cleaner (1.8.5)
|
28
|
+
database_cleaner-active_record (1.8.0)
|
29
|
+
activerecord
|
30
|
+
database_cleaner (~> 1.8.0)
|
31
|
+
diff-lcs (1.3)
|
32
|
+
docile (1.3.2)
|
33
|
+
i18n (1.8.3)
|
34
|
+
concurrent-ruby (~> 1.0)
|
35
|
+
method_source (1.0.0)
|
36
|
+
minitest (5.14.1)
|
37
|
+
mysql2 (0.5.3)
|
38
|
+
pry (0.13.1)
|
39
|
+
coderay (~> 1.1)
|
40
|
+
method_source (~> 1.0)
|
41
|
+
rake (13.0.1)
|
42
|
+
rspec (3.9.0)
|
43
|
+
rspec-core (~> 3.9.0)
|
44
|
+
rspec-expectations (~> 3.9.0)
|
45
|
+
rspec-mocks (~> 3.9.0)
|
46
|
+
rspec-core (3.9.2)
|
47
|
+
rspec-support (~> 3.9.3)
|
48
|
+
rspec-expectations (3.9.2)
|
49
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
+
rspec-support (~> 3.9.0)
|
51
|
+
rspec-mocks (3.9.1)
|
52
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
+
rspec-support (~> 3.9.0)
|
54
|
+
rspec-support (3.9.3)
|
55
|
+
simplecov (0.18.5)
|
56
|
+
docile (~> 1.1)
|
57
|
+
simplecov-html (~> 0.11)
|
58
|
+
simplecov-html (0.12.2)
|
59
|
+
thor (1.0.1)
|
60
|
+
thread_safe (0.3.6)
|
61
|
+
tzinfo (1.2.7)
|
62
|
+
thread_safe (~> 0.1)
|
63
|
+
zeitwerk (2.3.0)
|
64
|
+
|
65
|
+
PLATFORMS
|
66
|
+
ruby
|
67
|
+
|
68
|
+
DEPENDENCIES
|
69
|
+
activerecord (~> 6, < 7)
|
70
|
+
activerecord-wrapped_transaction!
|
71
|
+
appraisal (~> 2.3.0)
|
72
|
+
database_cleaner-active_record (~> 1.8.0)
|
73
|
+
mysql2
|
74
|
+
pry
|
75
|
+
rake (>= 12.3.3)
|
76
|
+
rspec (~> 3.5)
|
77
|
+
simplecov (~> 0.18.5)
|
78
|
+
|
79
|
+
BUNDLED WITH
|
80
|
+
2.1.4
|
@@ -0,0 +1,80 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
activerecord-wrapped_transaction (0.9.0)
|
5
|
+
activerecord (>= 5, < 7)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (6.0.3.1)
|
11
|
+
activesupport (= 6.0.3.1)
|
12
|
+
activerecord (6.0.3.1)
|
13
|
+
activemodel (= 6.0.3.1)
|
14
|
+
activesupport (= 6.0.3.1)
|
15
|
+
activesupport (6.0.3.1)
|
16
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
|
+
i18n (>= 0.7, < 2)
|
18
|
+
minitest (~> 5.1)
|
19
|
+
tzinfo (~> 1.1)
|
20
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
21
|
+
appraisal (2.3.0)
|
22
|
+
bundler
|
23
|
+
rake
|
24
|
+
thor (>= 0.14.0)
|
25
|
+
coderay (1.1.3)
|
26
|
+
concurrent-ruby (1.1.6)
|
27
|
+
database_cleaner (1.8.5)
|
28
|
+
database_cleaner-active_record (1.8.0)
|
29
|
+
activerecord
|
30
|
+
database_cleaner (~> 1.8.0)
|
31
|
+
diff-lcs (1.3)
|
32
|
+
docile (1.3.2)
|
33
|
+
i18n (1.8.3)
|
34
|
+
concurrent-ruby (~> 1.0)
|
35
|
+
method_source (1.0.0)
|
36
|
+
minitest (5.14.1)
|
37
|
+
pg (1.2.3)
|
38
|
+
pry (0.13.1)
|
39
|
+
coderay (~> 1.1)
|
40
|
+
method_source (~> 1.0)
|
41
|
+
rake (13.0.1)
|
42
|
+
rspec (3.9.0)
|
43
|
+
rspec-core (~> 3.9.0)
|
44
|
+
rspec-expectations (~> 3.9.0)
|
45
|
+
rspec-mocks (~> 3.9.0)
|
46
|
+
rspec-core (3.9.2)
|
47
|
+
rspec-support (~> 3.9.3)
|
48
|
+
rspec-expectations (3.9.2)
|
49
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
+
rspec-support (~> 3.9.0)
|
51
|
+
rspec-mocks (3.9.1)
|
52
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
+
rspec-support (~> 3.9.0)
|
54
|
+
rspec-support (3.9.3)
|
55
|
+
simplecov (0.18.5)
|
56
|
+
docile (~> 1.1)
|
57
|
+
simplecov-html (~> 0.11)
|
58
|
+
simplecov-html (0.12.2)
|
59
|
+
thor (1.0.1)
|
60
|
+
thread_safe (0.3.6)
|
61
|
+
tzinfo (1.2.7)
|
62
|
+
thread_safe (~> 0.1)
|
63
|
+
zeitwerk (2.3.0)
|
64
|
+
|
65
|
+
PLATFORMS
|
66
|
+
ruby
|
67
|
+
|
68
|
+
DEPENDENCIES
|
69
|
+
activerecord (~> 6, < 7)
|
70
|
+
activerecord-wrapped_transaction!
|
71
|
+
appraisal (~> 2.3.0)
|
72
|
+
database_cleaner-active_record (~> 1.8.0)
|
73
|
+
pg
|
74
|
+
pry
|
75
|
+
rake (>= 12.3.3)
|
76
|
+
rspec (~> 3.5)
|
77
|
+
simplecov (~> 0.18.5)
|
78
|
+
|
79
|
+
BUNDLED WITH
|
80
|
+
2.1.4
|