trx_ext 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +4 -4
- data/lib/trx_ext/version.rb +2 -2
- data/trx_ext.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cc78b1346a3cff23d72f3114aab76b882ddd1f798a16e21e0fed7b25ee85198
|
4
|
+
data.tar.gz: 90bc0d7a9810d5307c3eda6571f3d7480eb95c8c2163d036e52cba184c251c00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5dfa0cfc9b312211374a01beeafd5482822222820654645a1a7fbc18ead7769e7d6ae42a981735228ad45be6721740e1a5b7206ba6f87f3d3747465e04cd15c
|
7
|
+
data.tar.gz: 876604b2fc3a6bd44009cf4ca3d746dc94c45947a3fa525db1c3db69d5337ee2c346381bf2e2984ceadbeac3bf9768db8639cc5f91220ff528834638793d8666
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Currently, the implementation only works for ActiveRecord PostgreSQL adapter. Fe
|
|
8
8
|
|
9
9
|
Because the implementation of this gem is a patch for `ActiveRecord::ConnectionAdapters::PostgreSQLAdapter` - carefully test its integration into your project. For example, if your project patches ActiveRecord or if some of your gems patches ActiveRecord - there might be conflicts in the implementation which could potentially lead to the data loss.
|
10
10
|
|
11
|
-
Currently, the implementation is tested for `6.0.4.
|
11
|
+
Currently, the implementation is tested for `6.0.4.4` and `6.1.4.4` versions of ActiveRecord(see [TrxExt::SUPPORTED_AR_VERSIONS](lib/trx_ext/version.rb))
|
12
12
|
|
13
13
|
## Requirements
|
14
14
|
|
@@ -38,7 +38,7 @@ Or install it yourself as:
|
|
38
38
|
require 'trx_ext'
|
39
39
|
require 'active_record'
|
40
40
|
|
41
|
-
# Object
|
41
|
+
# Object#trx is a shorthand of ActiveRecord::Base.transaction
|
42
42
|
trx do
|
43
43
|
DummyRecord.first || DummyRecord.create
|
44
44
|
end
|
@@ -154,8 +154,8 @@ There is "On complete" feature that allows you to define callbacks(blocks of cod
|
|
154
154
|
|
155
155
|
```ruby
|
156
156
|
trx do
|
157
|
-
@posts = Post.all
|
158
|
-
@users = User.all
|
157
|
+
@posts = Post.all.load
|
158
|
+
@users = User.all.load
|
159
159
|
end
|
160
160
|
```
|
161
161
|
|
data/lib/trx_ext/version.rb
CHANGED
data/trx_ext.gemspec
CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
32
32
|
spec.require_paths = ["lib"]
|
33
33
|
|
34
|
-
spec.add_dependency 'activerecord', '
|
34
|
+
spec.add_dependency 'activerecord', '>= 6'
|
35
35
|
spec.add_dependency 'pg', '~> 1.2'
|
36
36
|
spec.add_development_dependency 'rspec', "~> 3.10"
|
37
37
|
spec.add_development_dependency 'timecop', "~> 0.9.4"
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trx_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Dzyzenko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '6'
|
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
26
|
version: '6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -143,8 +143,8 @@ licenses:
|
|
143
143
|
metadata:
|
144
144
|
allowed_push_host: https://rubygems.org
|
145
145
|
homepage_uri: https://github.com/intale/trx_ext
|
146
|
-
source_code_uri: https://github.com/intale/trx_ext/tree/v1.0.
|
147
|
-
changelog_uri: https://github.com/intale/trx_ext/blob/v1.0.
|
146
|
+
source_code_uri: https://github.com/intale/trx_ext/tree/v1.0.1
|
147
|
+
changelog_uri: https://github.com/intale/trx_ext/blob/v1.0.1/CHANGELOG.md
|
148
148
|
post_install_message:
|
149
149
|
rdoc_options: []
|
150
150
|
require_paths:
|