cachetastic 3.0.1 → 3.0.2

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 +6 -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: cachetastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
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 -04:00
12
+ date: 2009-07-20 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -66,6 +66,8 @@ files:
66
66
  - LICENSE
67
67
  has_rdoc: true
68
68
  homepage: http://www.metabates.com
69
+ licenses: []
70
+
69
71
  post_install_message:
70
72
  rdoc_options: []
71
73
 
@@ -86,9 +88,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
88
  requirements: []
87
89
 
88
90
  rubyforge_project: magrathea
89
- rubygems_version: 1.3.1
91
+ rubygems_version: 1.3.4
90
92
  signing_key:
91
- specification_version: 2
93
+ specification_version: 3
92
94
  summary: A very simple, yet very powerful caching framework for Ruby.
93
95
  test_files: []
94
96