second_level_cache 2.5.0 → 2.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/second_level_cache/active_record/persistence.rb +6 -2
- data/lib/second_level_cache/version.rb +1 -1
- data/second_level_cache.gemspec +0 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb263a78785d298fbaccbcb46bb71250f021e66d69f0cf5c89f9d1cd97651c50
|
4
|
+
data.tar.gz: f861c5fc32002720f2e83b30444ad3f2ac368427406a1c832ca4ba0f5620da89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cacc9218aed1c33fd4470c8fa6a5bf21a7e89c22da09f522594e6ab5fb4830a168a7c930c0e3b4470086ac0193e1a906ca27f6543d0cba44fe1b2e9c6cc02f5
|
7
|
+
data.tar.gz: df2b8f074ce143b141d8fb34d4f5799da505c1e72fdda03dbeaa7284cfd10d9074ca87b93481ba2cafe9df7d578ef40fb11e4afa2a172d351cfcdabc77e7efc4
|
data/CHANGELOG.md
CHANGED
@@ -4,17 +4,21 @@ module SecondLevelCache
|
|
4
4
|
module ActiveRecord
|
5
5
|
module Persistence
|
6
6
|
# update_column will call update_columns
|
7
|
+
# https://github.com/rails/rails/blob/5-0-stable/activerecord/lib/active_record/persistence.rb#L315
|
7
8
|
def update_columns(attributes)
|
8
9
|
super(attributes).tap { update_second_level_cache }
|
9
10
|
end
|
10
11
|
|
12
|
+
# https://github.com/rails/rails/blob/5-0-stable/activerecord/lib/active_record/persistence.rb#L441
|
11
13
|
def reload(options = nil)
|
12
14
|
expire_second_level_cache
|
13
15
|
super(options)
|
14
16
|
end
|
15
17
|
|
16
|
-
|
17
|
-
|
18
|
+
# https://github.com/rails/rails/blob/5-0-stable/activerecord/lib/active_record/persistence.rb#L490
|
19
|
+
def touch(*names, **opts)
|
20
|
+
# super: touch(*names, time: nil)
|
21
|
+
super(*names, **opts).tap { update_second_level_cache }
|
18
22
|
end
|
19
23
|
end
|
20
24
|
end
|
data/second_level_cache.gemspec
CHANGED
@@ -35,7 +35,6 @@ Gem::Specification.new do |gem|
|
|
35
35
|
|
36
36
|
gem.add_development_dependency 'sqlite3', '> 1.4'
|
37
37
|
gem.add_development_dependency 'rake'
|
38
|
-
gem.add_development_dependency 'pry'
|
39
38
|
gem.add_development_dependency 'database_cleaner'
|
40
39
|
gem.add_development_dependency 'rubocop', "~> 0.52.0"
|
41
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: second_level_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hooopo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -78,20 +78,6 @@ dependencies:
|
|
78
78
|
- - ">="
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: pry
|
83
|
-
requirement: !ruby/object:Gem::Requirement
|
84
|
-
requirements:
|
85
|
-
- - ">="
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version: '0'
|
88
|
-
type: :development
|
89
|
-
prerelease: false
|
90
|
-
version_requirements: !ruby/object:Gem::Requirement
|
91
|
-
requirements:
|
92
|
-
- - ">="
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version: '0'
|
95
81
|
- !ruby/object:Gem::Dependency
|
96
82
|
name: database_cleaner
|
97
83
|
requirement: !ruby/object:Gem::Requirement
|