cacheable_delegator 1.4.1 → 1.4.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.
- checksums.yaml +8 -8
- data/Gemfile.lock +19 -19
- data/VERSION +1 -1
- data/cacheable_delegator.gemspec +2 -2
- data/lib/cacheable_delegator.rb +2 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NWJkN2Q5NTU5NmQyMDdlYTBkYzhmNWM3ZjVmYjRhZDBmYzU2OTgwYg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZTBjYWM0MjA5Y2ViZjFjZDk4NzlhZjkxMDI0ODRiM2ViMmE2NmU1Yg==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MGMyMmQ0YmYxYTRlZWRkODI2MWMxNjQyYzAzZjljZGIwNmJjN2FlNmNhNDlm
|
|
10
|
+
MzFjNDdiMDRjM2Q1NWUxMjdhYmY1ODAzMGI5YmY1NDhiMTBhNzk3YjhlNTU5
|
|
11
|
+
N2I3Yzc3NzNmYTgxZTBkNGQwNjg3Mzc0MGVkMjdkMzM2MjM1ZGE=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZTNhYzFjMzdlN2E5MTFkNTRhYjExZTUyYzQ3ZjhkYWVkZTg0ZWFhMGRmZDY3
|
|
14
|
+
ZjExYzkyNzE4OWJiMTdhYzQ3ZGRkMWU5Nzc4ZTU0MzlmNTZmYTFiMDI3YzRk
|
|
15
|
+
ZjU4NTRjZTZiNTJhOWFmYmExMzhlOTJhNTQ1NmQ3NTgxN2Y0NGE=
|
data/Gemfile.lock
CHANGED
|
@@ -4,23 +4,23 @@ GEM
|
|
|
4
4
|
active_record_inline_schema (0.6.1)
|
|
5
5
|
activerecord (>= 3)
|
|
6
6
|
activesupport
|
|
7
|
-
activemodel (3.2.
|
|
8
|
-
activesupport (= 3.2.
|
|
7
|
+
activemodel (3.2.15)
|
|
8
|
+
activesupport (= 3.2.15)
|
|
9
9
|
builder (~> 3.0.0)
|
|
10
|
-
activerecord (3.2.
|
|
11
|
-
activemodel (= 3.2.
|
|
12
|
-
activesupport (= 3.2.
|
|
10
|
+
activerecord (3.2.15)
|
|
11
|
+
activemodel (= 3.2.15)
|
|
12
|
+
activesupport (= 3.2.15)
|
|
13
13
|
arel (~> 3.0.2)
|
|
14
14
|
tzinfo (~> 0.3.29)
|
|
15
|
-
activesupport (3.2.
|
|
15
|
+
activesupport (3.2.15)
|
|
16
16
|
i18n (~> 0.6, >= 0.6.4)
|
|
17
17
|
multi_json (~> 1.0)
|
|
18
18
|
addressable (2.3.5)
|
|
19
|
-
arel (3.0.
|
|
19
|
+
arel (3.0.3)
|
|
20
20
|
builder (3.0.4)
|
|
21
|
-
coderay (1.0
|
|
21
|
+
coderay (1.1.0)
|
|
22
22
|
database_cleaner (1.0.1)
|
|
23
|
-
diff-lcs (1.2.
|
|
23
|
+
diff-lcs (1.2.5)
|
|
24
24
|
faraday (0.8.8)
|
|
25
25
|
multipart-post (~> 1.2.0)
|
|
26
26
|
git (1.2.6)
|
|
@@ -32,7 +32,7 @@ GEM
|
|
|
32
32
|
nokogiri (~> 1.5.2)
|
|
33
33
|
oauth2
|
|
34
34
|
hashie (2.0.5)
|
|
35
|
-
highline (1.6.
|
|
35
|
+
highline (1.6.20)
|
|
36
36
|
httpauth (0.2.0)
|
|
37
37
|
i18n (0.6.5)
|
|
38
38
|
jeweler (1.8.8)
|
|
@@ -44,11 +44,11 @@ GEM
|
|
|
44
44
|
nokogiri (= 1.5.10)
|
|
45
45
|
rake
|
|
46
46
|
rdoc
|
|
47
|
-
json (1.8.
|
|
47
|
+
json (1.8.1)
|
|
48
48
|
jwt (0.1.8)
|
|
49
49
|
multi_json (>= 1.5)
|
|
50
50
|
method_source (0.8.2)
|
|
51
|
-
multi_json (1.8.
|
|
51
|
+
multi_json (1.8.2)
|
|
52
52
|
multi_xml (0.5.5)
|
|
53
53
|
multipart-post (1.2.0)
|
|
54
54
|
nokogiri (1.5.10)
|
|
@@ -59,8 +59,8 @@ GEM
|
|
|
59
59
|
multi_json (~> 1.0)
|
|
60
60
|
multi_xml (~> 0.5)
|
|
61
61
|
rack (~> 1.2)
|
|
62
|
-
pry (0.9.12.
|
|
63
|
-
coderay (~> 1.0
|
|
62
|
+
pry (0.9.12.4)
|
|
63
|
+
coderay (~> 1.0)
|
|
64
64
|
method_source (~> 0.8)
|
|
65
65
|
slop (~> 3.4)
|
|
66
66
|
rack (1.5.2)
|
|
@@ -71,13 +71,13 @@ GEM
|
|
|
71
71
|
rspec-core (~> 2.14.0)
|
|
72
72
|
rspec-expectations (~> 2.14.0)
|
|
73
73
|
rspec-mocks (~> 2.14.0)
|
|
74
|
-
rspec-core (2.14.
|
|
75
|
-
rspec-expectations (2.14.
|
|
74
|
+
rspec-core (2.14.7)
|
|
75
|
+
rspec-expectations (2.14.4)
|
|
76
76
|
diff-lcs (>= 1.1.3, < 2.0)
|
|
77
|
-
rspec-mocks (2.14.
|
|
78
|
-
slop (3.4.
|
|
77
|
+
rspec-mocks (2.14.4)
|
|
78
|
+
slop (3.4.7)
|
|
79
79
|
sqlite3 (1.3.8)
|
|
80
|
-
tzinfo (0.3.
|
|
80
|
+
tzinfo (0.3.38)
|
|
81
81
|
|
|
82
82
|
PLATFORMS
|
|
83
83
|
ruby
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.4.
|
|
1
|
+
1.4.2
|
data/cacheable_delegator.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "cacheable_delegator"
|
|
8
|
-
s.version = "1.4.
|
|
8
|
+
s.version = "1.4.2"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Dan Nguyen"]
|
|
12
|
-
s.date = "2013-
|
|
12
|
+
s.date = "2013-12-02"
|
|
13
13
|
s.description = "Create a cache model for your active records"
|
|
14
14
|
s.email = "dansonguyen@gmail.com"
|
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/cacheable_delegator.rb
CHANGED
|
@@ -27,13 +27,11 @@ module CacheableDelegator
|
|
|
27
27
|
cache_record_class(klass)
|
|
28
28
|
# This is why you have to define custom columns in the given block
|
|
29
29
|
# or after the call to cache and delegate
|
|
30
|
-
|
|
31
30
|
reset_custom_columns!
|
|
32
31
|
if block_given?
|
|
33
32
|
yield self
|
|
34
33
|
end
|
|
35
34
|
|
|
36
|
-
|
|
37
35
|
self.source_class
|
|
38
36
|
end
|
|
39
37
|
|
|
@@ -168,7 +166,7 @@ module CacheableDelegator
|
|
|
168
166
|
def respond_to?(meth, x=false)
|
|
169
167
|
if meth.match(DELEGATING_REGEX)
|
|
170
168
|
true
|
|
171
|
-
elsif
|
|
169
|
+
elsif source_class.method_defined?(meth)
|
|
172
170
|
true
|
|
173
171
|
else
|
|
174
172
|
super
|
|
@@ -219,6 +217,7 @@ module CacheableDelegator
|
|
|
219
217
|
|
|
220
218
|
def refresh_cache!(opts={})
|
|
221
219
|
refresh_cache(opts)
|
|
220
|
+
|
|
222
221
|
self.save
|
|
223
222
|
end
|
|
224
223
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cacheable_delegator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dan Nguyen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pry
|