sequel-cacheable 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -44,8 +44,8 @@ module Sequel::Plugins
44
44
  @store.expire(key, time)
45
45
  end
46
46
 
47
- def fetch(key, *args, &block)
48
- get(key) || set(key, block.call(*args))
47
+ def fetch(key, ttl = nil, &block)
48
+ get(key) || set(key, block.call, ttl)
49
49
  end
50
50
  end
51
51
  end
@@ -1,7 +1,7 @@
1
1
  module Sequel
2
2
  module Plugins
3
3
  module Cacheable
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-cacheable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-30 00:00:00.000000000 Z
12
+ date: 2013-01-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sequel
@@ -102,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  segments:
104
104
  - 0
105
- hash: -455532070542796088
105
+ hash: -3930861181546816959
106
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  version: '0'
112
112
  segments:
113
113
  - 0
114
- hash: -455532070542796088
114
+ hash: -3930861181546816959
115
115
  requirements: []
116
116
  rubyforge_project:
117
117
  rubygems_version: 1.8.23