markbates-cachetastic 3.0.2.20090720150919 → 3.0.3.20090803115537

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/cachetastic/cacheable.rb +2 -0
  2. metadata +4 -3
@@ -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: markbates-cachetastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2.20090720150919
4
+ version: 3.0.3.20090803115537
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 -07:00
12
+ date: 2009-08-03 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -66,6 +66,7 @@ files:
66
66
  - LICENSE
67
67
  has_rdoc: false
68
68
  homepage: http://www.metabates.com
69
+ licenses:
69
70
  post_install_message:
70
71
  rdoc_options: []
71
72
 
@@ -86,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
87
  requirements: []
87
88
 
88
89
  rubyforge_project: magrathea
89
- rubygems_version: 1.2.0
90
+ rubygems_version: 1.3.5
90
91
  signing_key:
91
92
  specification_version: 3
92
93
  summary: A very simple, yet very powerful caching framework for Ruby.