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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e9808d96281c682d1a21a40f34fedd04c272580fbf23cd5416a28ef0ee6fb1d
4
- data.tar.gz: aa42a719f9fad4a590b66f18a2e764da419c342b67268b545bd7b65001b1aa46
3
+ metadata.gz: 3cc78b1346a3cff23d72f3114aab76b882ddd1f798a16e21e0fed7b25ee85198
4
+ data.tar.gz: 90bc0d7a9810d5307c3eda6571f3d7480eb95c8c2163d036e52cba184c251c00
5
5
  SHA512:
6
- metadata.gz: 5de79266da41bee17a7ab592cfcca4d814d248896c896b622d590fad7f6214caf57d30cfe497f1928f7098e5e5d3e5bda141bd5add11dc5096d78145174e3fdf
7
- data.tar.gz: d7c7e052193e15f0b08e3fbae23d11472dc1abd3cc911761df11742214ec40b67117efe8ea6d731a4479d7d095181a5b1d75170860dc631eec5505df47a590ba
6
+ metadata.gz: e5dfa0cfc9b312211374a01beeafd5482822222820654645a1a7fbc18ead7769e7d6ae42a981735228ad45be6721740e1a5b7206ba6f87f3d3747465e04cd15c
7
+ data.tar.gz: 876604b2fc3a6bd44009cf4ca3d746dc94c45947a3fa525db1c3db69d5337ee2c346381bf2e2984ceadbeac3bf9768db8639cc5f91220ff528834638793d8666
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Nothing new yet
4
4
 
5
+ ## [1.0.1] - 2021-12-26
6
+
7
+ - Add support of ActiveRecord `6.0.4.4`, `6.1.4.4` and `7.0.0`
8
+ - Fix readme
9
+
5
10
  ## [1.0.0] - 2021-11-27
6
11
 
7
12
  - Initial release
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.1` and `6.1.4.1` versions of ActiveRecord(see [TrxExt::SUPPORTED_AR_VERSIONS](lib/trx_ext/version.rb))
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 #trx is a shorthand of ActiveRecord::Base.transaction
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
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TrxExt
4
- VERSION = "1.0.0"
5
- SUPPORTED_AR_VERSIONS = %w(6.0.4.1 6.1.4.1).freeze
4
+ VERSION = "1.0.1"
5
+ SUPPORTED_AR_VERSIONS = %w(6.0.4.4 6.1.4.4 7.0.0).freeze
6
6
  end
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', '~> 6'
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.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-08 00:00:00.000000000 Z
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.0
147
- changelog_uri: https://github.com/intale/trx_ext/blob/v1.0.0/CHANGELOG.md
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: