manage_cache 0.0.3 → 0.0.4

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: 8c6b89b1174e6e8de32dd2c4377c0a7c8310667b
4
- data.tar.gz: a63333addfe87c886664560ebb213593ca801747
3
+ metadata.gz: 5ec215d42d1220af0f9d531d8128392d156f6b88
4
+ data.tar.gz: 6491ed7f5dbcc10871c1f4e8c56b6589cb426707
5
5
  SHA512:
6
- metadata.gz: ac15c9377dd6b2f8aeaa0eb75425f061c5898751f8d0ef857a23c48d3f8cfdb25ff4d9d9ac0fb3cb8fa9728de0f0b43e1edcfa591a66f28d185033b94ac2e87b
7
- data.tar.gz: ca9c366286f894fbce112fd34cfef6e8c194046e385ffe49492aa0e4f5be4a5fdaae9db836c93157c4dcf81fbb342de19b5d528ac1b6989a284ecc6a64eb5ba0
6
+ metadata.gz: 54e6a07d3f77d5b76f8e3ceacf14fc8ebbc3dc0865474a490d2ee0e05ac7655e425078715c715fa047489e725644456dfc6ccb8fd824f14ba2473c625408c9bf
7
+ data.tar.gz: b566c0381c9c34bc72ec25390aa46dda1c3062f8a8379b7072c3986a385ad41d14694a1cc3a1f29115d1f96f8950945ff8bda41697ac1516f6f69568c7e43dda
@@ -1,3 +1,3 @@
1
1
  module ManageCache
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/manage_cache.rb CHANGED
@@ -131,7 +131,7 @@ module ManageCache
131
131
  #
132
132
  def delete_cache_w_regexp(key, specs)
133
133
  regexp = specs[:regexp].inject([]){|m, (k,v)| m << "#{k}=#{v}" }.join('-')
134
- Rails.cache.delete_matched(/^#{Regexp.escape(key)}-#{regexp}$/)
134
+ Rails.cache.delete_matched("#{Regexp.escape(key)}-#{regexp}")
135
135
  end
136
136
 
137
137
  # if some attributes are specified in :if_changed
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manage_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - cgregor
@@ -112,7 +112,6 @@ files:
112
112
  - test/dummy/test/models/shoe_test.rb
113
113
  - test/dummy/test/models/user_test.rb
114
114
  - test/dummy/tmp/cache/A4A/A50/spec%3Dshoe_color-shoe_id%3D1
115
- - test/dummy/tmp/pids/server.pid
116
115
  - test/test_helper.rb
117
116
  homepage: https://github.com/grgr/manage_cache
118
117
  licenses:
@@ -200,6 +199,5 @@ test_files:
200
199
  - test/dummy/config/locales/en.yml
201
200
  - test/dummy/config/boot.rb
202
201
  - test/dummy/tmp/cache/A4A/A50/spec%3Dshoe_color-shoe_id%3D1
203
- - test/dummy/tmp/pids/server.pid
204
202
  - test/cache_dumper_test.rb
205
203
  has_rdoc:
@@ -1 +0,0 @@
1
- 8960