cachetastic 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/cachetastic/cacheable.rb +2 -0
  2. metadata +2 -2
@@ -91,6 +91,7 @@ module Cachetastic # :nodoc:
91
91
  if block_given?
92
92
  res = yield
93
93
  cache_class.set(key, res, expiry)
94
+ return res
94
95
  end
95
96
  end
96
97
  end
@@ -145,6 +146,7 @@ module Cachetastic # :nodoc:
145
146
  # Person.get_from_cache("Mark Bates") # => "Mark Bates"
146
147
  def cache_self
147
148
  cache_class.set(self.cachetastic_key, self) unless self.cachetastic_key.nil?
149
+ return self
148
150
  end
149
151
 
150
152
  # Unless the object's cachetastic_key method returns nil this method will delete
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cachetastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Bates
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-20 00:00:00 -04:00
12
+ date: 2009-08-03 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency