markbates-cachetastic 3.0.1.20090625224017 → 3.0.2.20090720150919

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/cache.rb +2 -2
  2. metadata +4 -4
@@ -136,7 +136,7 @@ module Cachetastic # :nodoc:
136
136
  end
137
137
  return val unless val.nil?
138
138
 
139
- val = yield if block_given?
139
+ val = yield key if block_given?
140
140
  return val
141
141
  end
142
142
 
@@ -155,7 +155,7 @@ module Cachetastic # :nodoc:
155
155
  logger.debug(:finished, action, cache_klass.name, key, (end_time - start_time), str)
156
156
  return res
157
157
  else
158
- return yield if block_given?
158
+ return yield(key) if block_given?
159
159
  end
160
160
  end
161
161
 
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.1.20090625224017
4
+ version: 3.0.2.20090720150919
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-06-25 00:00:00 -07:00
12
+ date: 2009-07-20 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -64,7 +64,7 @@ files:
64
64
  - lib/cachetastic.rb
65
65
  - README
66
66
  - LICENSE
67
- has_rdoc: true
67
+ has_rdoc: false
68
68
  homepage: http://www.metabates.com
69
69
  post_install_message:
70
70
  rdoc_options: []
@@ -88,7 +88,7 @@ requirements: []
88
88
  rubyforge_project: magrathea
89
89
  rubygems_version: 1.2.0
90
90
  signing_key:
91
- specification_version: 2
91
+ specification_version: 3
92
92
  summary: A very simple, yet very powerful caching framework for Ruby.
93
93
  test_files: []
94
94