simple_cacheable 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,4 +1,2 @@
1
- require 'bundler'
2
-
3
- include Rake::DSL
4
- Bundler::GemHelper.install_tasks
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
data/lib/cacheable.rb CHANGED
@@ -117,9 +117,8 @@ module Cacheable
117
117
 
118
118
  def expire_attribute_cache
119
119
  self.class.cached_indices.each do |attribute, values|
120
- values.each do |value|
121
- Rails.cache.delete self.class.attribute_cache_key(attribute, value)
122
- end
120
+ value = self.send(attribute)
121
+ Rails.cache.delete self.class.attribute_cache_key(attribute, value)
123
122
  end
124
123
  end
125
124
 
@@ -1,3 +1,3 @@
1
1
  module Cacheable
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_cacheable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-15 00:00:00.000000000 Z
12
+ date: 2012-03-28 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70163156859760 !ruby/object:Gem::Requirement
16
+ requirement: &70220191384840 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70163156859760
24
+ version_requirements: *70220191384840
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70163156857940 !ruby/object:Gem::Requirement
27
+ requirement: &70220191384420 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70163156857940
35
+ version_requirements: *70220191384420
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: mocha
38
- requirement: &70163156856080 !ruby/object:Gem::Requirement
38
+ requirement: &70220191414920 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70163156856080
46
+ version_requirements: *70220191414920
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sqlite3-ruby
49
- requirement: &70163156854980 !ruby/object:Gem::Requirement
49
+ requirement: &70220191414500 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70163156854980
57
+ version_requirements: *70220191414500
58
58
  description: a simple cache implementation based on activerecord
59
59
  email:
60
60
  - flyerhzm@gmail.com
@@ -89,21 +89,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
89
  - - ! '>='
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
- segments:
93
- - 0
94
- hash: -440418373925162315
95
92
  required_rubygems_version: !ruby/object:Gem::Requirement
96
93
  none: false
97
94
  requirements:
98
95
  - - ! '>='
99
96
  - !ruby/object:Gem::Version
100
97
  version: '0'
101
- segments:
102
- - 0
103
- hash: -440418373925162315
104
98
  requirements: []
105
99
  rubyforge_project:
106
- rubygems_version: 1.8.17
100
+ rubygems_version: 1.8.15
107
101
  signing_key:
108
102
  specification_version: 3
109
103
  summary: a simple cache implementation based on activerecord