identity_cache 1.4.1 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/CHANGELOG.md +6 -0
- data/Gemfile +1 -1
- data/dev.yml +1 -1
- data/gemfiles/Gemfile.min-supported +4 -4
- data/identity_cache.gemspec +3 -3
- data/lib/identity_cache/version.rb +1 -1
- data/lib/identity_cache.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d664c4b120abe1a0aa9258143d60856d2da9773ac9ced3635f547de02533105
|
4
|
+
data.tar.gz: 21ea5ee371633511dd2f92394ebec26daa986ac847e4c4ab8150489b1062f12b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a1059452a1a21efe5ccaf2f434290bf50dfb9326f99785f442a02b6d0c9c0005fb2019ca952ad65dbe744fda3886556fc0902f066dd4962dbfb924d2237bcfc
|
7
|
+
data.tar.gz: ab0a8e434920d83e984052fb91ebd98e65caab07596a144d93159faed56e668a92003d6f7aba5c696404c6ad41b6178fa0d32deb087dd52cc17a8a849959b110
|
data/.github/workflows/ci.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -10,7 +10,7 @@ gem "rubocop-shopify", "~> 2.9.0", require: false
|
|
10
10
|
gem "mysql2", "~> 0.5.3", platform: :mri
|
11
11
|
gem "pg", ">= 0.18", "< 2.0", platform: :mri
|
12
12
|
gem "memcached", "~> 1.8.0", platform: :mri
|
13
|
-
gem "memcached_store", "~>
|
13
|
+
gem "memcached_store", "~> 2.3.2", platform: :mri
|
14
14
|
gem "dalli", "~> 2.7.11"
|
15
15
|
gem "cityhash", "~> 0.6.0", platform: :mri
|
16
16
|
|
data/dev.yml
CHANGED
@@ -3,10 +3,10 @@ gemspec path: ".."
|
|
3
3
|
|
4
4
|
gem "ar_transaction_changes", "~> 1.1.0"
|
5
5
|
|
6
|
-
gem "activerecord", "~>
|
7
|
-
gem "mysql2", "~> 0.
|
8
|
-
gem "pg", "~>
|
6
|
+
gem "activerecord", "~> 7.0.0"
|
7
|
+
gem "mysql2", "~> 0.5"
|
8
|
+
gem "pg", "~> 1.1"
|
9
9
|
gem "memcached", "~> 1.8.0"
|
10
|
-
gem "memcached_store", "~>
|
10
|
+
gem "memcached_store", "~> 2.3.2"
|
11
11
|
gem "dalli", "~> 2.7.11"
|
12
12
|
gem "cityhash", "~> 0.6.0"
|
data/identity_cache.gemspec
CHANGED
@@ -31,15 +31,15 @@ Gem::Specification.new do |gem|
|
|
31
31
|
gem.require_paths = ["lib"]
|
32
32
|
gem.version = IdentityCache::VERSION
|
33
33
|
|
34
|
-
gem.required_ruby_version = ">=
|
34
|
+
gem.required_ruby_version = ">= 3.0.0"
|
35
35
|
|
36
36
|
gem.metadata["allowed_push_host"] = "https://rubygems.org"
|
37
37
|
|
38
|
-
gem.add_dependency("activerecord", ">=
|
38
|
+
gem.add_dependency("activerecord", ">= 7.0")
|
39
39
|
gem.add_dependency("ar_transaction_changes", "~> 1.1")
|
40
40
|
|
41
41
|
gem.add_development_dependency("minitest", "~> 5.14")
|
42
|
-
gem.add_development_dependency("mocha", "~>
|
42
|
+
gem.add_development_dependency("mocha", "~> 2.0")
|
43
43
|
gem.add_development_dependency("rake", "~> 13.0")
|
44
44
|
gem.add_development_dependency("spy", "~> 1.0")
|
45
45
|
end
|
data/lib/identity_cache.rb
CHANGED
@@ -116,7 +116,7 @@ module IdentityCache
|
|
116
116
|
end
|
117
117
|
|
118
118
|
def should_use_cache? # :nodoc:
|
119
|
-
ActiveRecord::Base.connection_handler.connection_pool_list.none? do |pool|
|
119
|
+
ActiveRecord::Base.connection_handler.connection_pool_list(ActiveRecord::Base.current_role).none? do |pool|
|
120
120
|
pool.active_connection? &&
|
121
121
|
# Rails wraps each of your tests in a transaction, so that any changes
|
122
122
|
# made to the database during the test can be rolled back afterwards.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: identity_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Camilo Lopez
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2023-
|
17
|
+
date: 2023-11-23 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: activerecord
|
@@ -22,14 +22,14 @@ dependencies:
|
|
22
22
|
requirements:
|
23
23
|
- - ">="
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: '
|
25
|
+
version: '7.0'
|
26
26
|
type: :runtime
|
27
27
|
prerelease: false
|
28
28
|
version_requirements: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '7.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: ar_transaction_changes
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -64,14 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
67
|
+
version: '2.0'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
74
|
+
version: '2.0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: rake
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -183,14 +183,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
183
183
|
requirements:
|
184
184
|
- - ">="
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version:
|
186
|
+
version: 3.0.0
|
187
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
188
|
requirements:
|
189
189
|
- - ">="
|
190
190
|
- !ruby/object:Gem::Version
|
191
191
|
version: '0'
|
192
192
|
requirements: []
|
193
|
-
rubygems_version: 3.4.
|
193
|
+
rubygems_version: 3.4.21
|
194
194
|
signing_key:
|
195
195
|
specification_version: 4
|
196
196
|
summary: IdentityCache lets you specify how you want to cache your model objects,
|