rails-cache-tags 1.3.2 → 1.3.3

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
  SHA1:
3
- metadata.gz: ffa3ee36a2bbbdb72b538b31309db833ca3b5edd
4
- data.tar.gz: d3e0272f5c56ec204d27f64b2eec55809c8f25bc
3
+ metadata.gz: f4b353fedb116bc1b8d576beb054b76a8dba9530
4
+ data.tar.gz: 7bc4378c384faf161f3dd4887e0b162375a57429
5
5
  SHA512:
6
- metadata.gz: 61f8d07dfb0a900e18d82ffb4ec53b760d68e4aebc36fd134dbecdce4052bf0a753d6fb47e82cae24e04de19cee164c6aaef8050216cc1bad2ebaf02d126305a
7
- data.tar.gz: 3e15df9a5b8aa84b1e5e875c9736d6bba08da4d1f0e946009d38f64d08abc3d9a6169bd8df40238d157bfa0da2d489939a9968a7095a19c3a443c8bf57fd7fa7
6
+ metadata.gz: 1e453e001334ad6ffbc62401436fd4e6673ca567d93bc11cc5d51d6c351af1329ff686fbb8dbefde9572eec5beaf1ba3679cf7cfffddf6b5baa3ec9de9e187f8
7
+ data.tar.gz: 917d425de030d371e3ef44556cd280a2dab22626fa469a13c9881a708aaa993875dc97fcf19dcf1481e4d058ef114f5289b544d04c74321fc7339664a0413ff0
@@ -29,6 +29,7 @@ module Rails
29
29
 
30
30
  def read_with_tags(name, options = nil)
31
31
  result = read_without_tags(name, options)
32
+ return if result.nil?
32
33
  entry = tag_set.check(result)
33
34
 
34
35
  if entry
@@ -1,7 +1,7 @@
1
1
  module Rails
2
2
  module Cache
3
3
  module Tags
4
- VERSION = "1.3.2"
4
+ VERSION = "1.3.3"
5
5
  end
6
6
  end
7
7
  end
@@ -50,6 +50,11 @@ describe Rails::Cache::Tags do
50
50
  assert_blank 'foo'
51
51
  end
52
52
 
53
+ it 'does not delete a nonexistent key' do
54
+ expect(cache).not_to receive(:delete).with('not_exist_key', options)
55
+ expect(cache.read('not_exist_key', options)).to eq nil
56
+ end
57
+
53
58
  #it 'does not read a key if it is expired' do
54
59
  # ttl = 0.01
55
60
  # # dalli does not support float TTLs
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-cache-tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexei Mikhailov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-30 00:00:00.000000000 Z
11
+ date: 2017-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -184,11 +184,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  version: '0'
185
185
  requirements: []
186
186
  rubyforge_project:
187
- rubygems_version: 2.4.3
187
+ rubygems_version: 2.4.8
188
188
  signing_key:
189
189
  specification_version: 4
190
190
  summary: Tagged caching support for Rails
191
191
  test_files:
192
192
  - spec/cache_tags_spec.rb
193
193
  - spec/spec_helper.rb
194
- has_rdoc: