kasket 1.0.2 → 1.0.3.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kasket.rb +1 -1
- data/lib/kasket/read_mixin.rb +2 -0
- metadata +13 -9
data/lib/kasket.rb
CHANGED
data/lib/kasket/read_mixin.rb
CHANGED
@@ -58,6 +58,8 @@ module Kasket
|
|
58
58
|
if records.first.kasket_cacheable?
|
59
59
|
Kasket.cache.write(key, records.first.instance_variable_get(:@attributes).dup)
|
60
60
|
end
|
61
|
+
elsif records.empty?
|
62
|
+
ActiveRecord::Base.logger.info("[KASKET] would have stored an empty resultset") if ActiveRecord::Base.logger
|
61
63
|
elsif records.size <= Kasket::CONFIGURATION[:max_collection_size]
|
62
64
|
if records.all?(&:kasket_cacheable?)
|
63
65
|
instance_keys = records.map do |record|
|
metadata
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kasket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 62196377
|
5
|
+
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
|
9
|
+
- 3
|
10
|
+
- beta
|
11
|
+
- 1
|
12
|
+
version: 1.0.3.beta1
|
11
13
|
platform: ruby
|
12
14
|
authors:
|
13
15
|
- Mick Staugaard
|
@@ -16,7 +18,7 @@ autorequire:
|
|
16
18
|
bindir: bin
|
17
19
|
cert_chain: []
|
18
20
|
|
19
|
-
date: 2011-07-
|
21
|
+
date: 2011-07-14 00:00:00 -07:00
|
20
22
|
default_executable:
|
21
23
|
dependencies:
|
22
24
|
- !ruby/object:Gem::Dependency
|
@@ -177,12 +179,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
177
179
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
178
180
|
none: false
|
179
181
|
requirements:
|
180
|
-
- - "
|
182
|
+
- - ">"
|
181
183
|
- !ruby/object:Gem::Version
|
182
|
-
hash:
|
184
|
+
hash: 25
|
183
185
|
segments:
|
184
|
-
-
|
185
|
-
|
186
|
+
- 1
|
187
|
+
- 3
|
188
|
+
- 1
|
189
|
+
version: 1.3.1
|
186
190
|
requirements: []
|
187
191
|
|
188
192
|
rubyforge_project:
|