sequel-cacheable 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -0
- data/Gemfile +1 -1
- data/lib/sequel-cacheable.rb +6 -0
- data/lib/sequel-cacheable/instance_methods.rb +0 -5
- data/lib/sequel-cacheable/version.rb +1 -1
- data/spec/shared/cacheable.rb +1 -1
- metadata +4 -4
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/lib/sequel-cacheable.rb
CHANGED
@@ -10,6 +10,12 @@ require 'sequel-cacheable/dataset_methods'
|
|
10
10
|
|
11
11
|
module Sequel::Plugins
|
12
12
|
module Cacheable
|
13
|
+
def self.apply(model, store, options = {})
|
14
|
+
model.instance_eval do
|
15
|
+
plugin :after_initialize
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
13
19
|
def self.configure(model, store, options = {})
|
14
20
|
model.instance_eval do
|
15
21
|
@cache_options = {
|
data/spec/shared/cacheable.rb
CHANGED
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
|
4
|
+
version: 1.1.0
|
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: 2013-
|
12
|
+
date: 2013-06-27 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: -
|
105
|
+
hash: -2632164670776576366
|
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: -
|
114
|
+
hash: -2632164670776576366
|
115
115
|
requirements: []
|
116
116
|
rubyforge_project:
|
117
117
|
rubygems_version: 1.8.23
|