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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3d60f7f52e3d34b0d49447bab88db697f929bf270435765ac8fed80d8d2da1c
4
- data.tar.gz: 8f4cde5b59a3b37112d0471f2e0a5ccf1218745b7e63b07d125401f15203f693
3
+ metadata.gz: bb263a78785d298fbaccbcb46bb71250f021e66d69f0cf5c89f9d1cd97651c50
4
+ data.tar.gz: f861c5fc32002720f2e83b30444ad3f2ac368427406a1c832ca4ba0f5620da89
5
5
  SHA512:
6
- metadata.gz: cddaaae90ae703a7b9ec9febdc3471b9839417a63d75c55b88d622e6d016358467ff8cc19e0a292adacc3c4391c3b7d679e56c544369bfac877d6a2f85a12dfb
7
- data.tar.gz: c5968feec18ad66efa1cee8f379330695276703b65d8a36f0f4943957cdcb107cb855fa2ae660a4e91d90f64abd39556e510b108cad728085fd191f08e502bc7
6
+ metadata.gz: 9cacc9218aed1c33fd4470c8fa6a5bf21a7e89c22da09f522594e6ab5fb4830a168a7c930c0e3b4470086ac0193e1a906ca27f6543d0cba44fe1b2e9c6cc02f5
7
+ data.tar.gz: df2b8f074ce143b141d8fb34d4f5799da505c1e72fdda03dbeaa7284cfd10d9074ca87b93481ba2cafe9df7d578ef40fb11e4afa2a172d351cfcdabc77e7efc4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ 2.5.2
2
+ -------
3
+
4
+ - Fix methods argument as keyword warning in Ruby 2.7. (#94)
5
+
6
+ 2.5.1
7
+ -------
8
+
9
+ - Fix cache expire issue for SoftDelete cases.
10
+
1
11
  2.5.0
2
12
  -------
3
13
 
@@ -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
- def touch(*names)
17
- super(*names).tap { update_second_level_cache }
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SecondLevelCache
4
- VERSION = "2.5.0"
4
+ VERSION = "2.5.2"
5
5
  end
@@ -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.0
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: 2019-08-19 00:00:00.000000000 Z
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