sequel_acts_as_cacheable 1.0 → 1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NjdhY2EyMjAzNDQ4ZDFjNTkyMjM3NmIxYTQ1N2I4MDUwMjljNDFjMQ==
5
+ data.tar.gz: !binary |-
6
+ Y2I4OGY4OWMxYzI3NTM0ZThlMGNmZTJlOTgxNTMzMDdhZjRkMzUzYg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YTgxOTgyN2EyMmRlOTYwMDQyNDAyNTNkMzlmOTBjZGYzMWI5NjBmZDRhZTg0
10
+ N2E0YTUyOTk5ZjgzNWIxZTc0MmRjYmZjZmMwNzg1MmRjYzYzOGVlZjA0M2Mw
11
+ MWFlYjg1YTY2NmQ0YTkzMGQ2YzA2MDdjNzI0MTAzMGZmNTFkZDc=
12
+ data.tar.gz: !binary |-
13
+ NjAwYjhlZTc4NDlmODA3MWFmZjgzNjU2YWUyZTY3NTExMTVhM2JlM2VmYjQw
14
+ OWMzZTU4MDgzNTk3MTNkYzAyZjQyZDdjNzIxZGQwZWYwMzc5NTBhMGEyZTgz
15
+ NTcwYmM4ODQ2ODE4MjRkMzgyNGZmYjVmYjdhMjAwNWJlZDVhZjI=
@@ -60,7 +60,11 @@ module Sequel
60
60
  cache_value.cache! if cache_value
61
61
  end
62
62
 
63
- cache_value
63
+ if cache_value.kind_of? self
64
+ cache_value
65
+ else
66
+ nil
67
+ end
64
68
  else
65
69
  super *args
66
70
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel_acts_as_cacheable
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
5
- prerelease:
4
+ version: '1.1'
6
5
  platform: ruby
7
6
  authors:
8
7
  - Misha Conway
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-12-13 00:00:00.000000000 Z
11
+ date: 2013-11-19 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description:
15
14
  email: MishaAConway@gmail.com
@@ -20,6 +19,7 @@ files:
20
19
  - lib/sequel_acts_as_cacheable.rb
21
20
  homepage:
22
21
  licenses: []
22
+ metadata: {}
23
23
  post_install_message:
24
24
  rdoc_options: []
25
25
  require_paths:
@@ -29,17 +29,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
29
29
  - - ! '>='
30
30
  - !ruby/object:Gem::Version
31
31
  version: '0'
32
- none: false
33
32
  required_rubygems_version: !ruby/object:Gem::Requirement
34
33
  requirements:
35
34
  - - ! '>='
36
35
  - !ruby/object:Gem::Version
37
36
  version: '0'
38
- none: false
39
37
  requirements: []
40
38
  rubyforge_project: nowarning
41
- rubygems_version: 1.8.24
39
+ rubygems_version: 2.0.3
42
40
  signing_key:
43
- specification_version: 3
41
+ specification_version: 4
44
42
  summary: Memcaching for sequel models.
45
43
  test_files: []