covercache 0.2 → 0.2.1
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/README.md +2 -4
- data/lib/covercache/version.rb +1 -1
- data/lib/covercache.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MDc3NGNkYmExMmJlMzJkYWExM2ZkZWFmYWQ4OTk4OGIyNjRmOTVjOA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZDRmYzdhNzc4YmE0NDI3MTE0MzE5OGYyMjMxNTE1NjY3N2RjZjBlYg==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MGQyYWExYzdmZmNiODAzM2ZhOTA3ZjVlOTZiNmFlNzkzMGY0NjczNDRiNDM1
|
|
10
|
+
ZWYxYzBlZjRiY2ZjNWNkMzg2ZTgwNDM2ZGRjZWM5NGQxOTVhY2I0ZjJlZGQw
|
|
11
|
+
YzdkOTEzMTk5Y2VhN2YwNTgwMWU5YWRmZWRhMTU2YmE1ZDZmOGQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YTc0Yzk5ZDVhZTg3NzBkMzQxODQ5OGYwMzMyYjRmNDU0Mzc2OTYxNGFlMGQx
|
|
14
|
+
OTA3NGI2YjI0NGJjZWEwMzIzZGFlMTcxYWNlYmMwNTFkNjQ1MmIyNWUxYzhj
|
|
15
|
+
ZTk1YTNlYTVlMzBiNzMyNzg4N2UzMDkxOTI1OTJiNDg4ZTgyY2U=
|
data/README.md
CHANGED
|
@@ -75,7 +75,7 @@ To wrap instance methods you should use a name of already defined method or set
|
|
|
75
75
|
# [keys], debug: true, expires_in: 10.minutes
|
|
76
76
|
define_cached :all_comments, expires_in: 1.minute
|
|
77
77
|
|
|
78
|
-
define_cached :all_comments_authors, debug: true
|
|
78
|
+
define_cached :all_comments_authors, debug: true do |record|
|
|
79
79
|
record.author
|
|
80
80
|
end
|
|
81
81
|
# ...
|
|
@@ -86,9 +86,7 @@ To wrap instance methods you should use a name of already defined method or set
|
|
|
86
86
|
|
|
87
87
|
To wrap class methods you can also use blocks:
|
|
88
88
|
|
|
89
|
-
class_define_cached :for_post_ids,
|
|
90
|
-
debug: true,
|
|
91
|
-
expires_in: 10.minutes do |post_ids|
|
|
89
|
+
class_define_cached :for_post_ids, debug: true, expires_in: 10.minutes do |post_ids|
|
|
92
90
|
where(post_id: post_ids).all
|
|
93
91
|
end
|
|
94
92
|
|
data/lib/covercache/version.rb
CHANGED
data/lib/covercache.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: covercache
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tõnis Simo
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-05-
|
|
12
|
+
date: 2013-05-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|