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.
Files changed (3) hide show
  1. data/lib/kasket.rb +1 -1
  2. data/lib/kasket/read_mixin.rb +2 -0
  3. metadata +13 -9
data/lib/kasket.rb CHANGED
@@ -14,7 +14,7 @@ module Kasket
14
14
  class Version
15
15
  MAJOR = 1
16
16
  MINOR = 0
17
- PATCH = 2
17
+ PATCH = '3.beta1'
18
18
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
19
19
  end
20
20
 
@@ -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: 19
5
- prerelease:
4
+ hash: 62196377
5
+ prerelease: 6
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
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-13 00:00:00 -07:00
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: 3
184
+ hash: 25
183
185
  segments:
184
- - 0
185
- version: "0"
186
+ - 1
187
+ - 3
188
+ - 1
189
+ version: 1.3.1
186
190
  requirements: []
187
191
 
188
192
  rubyforge_project: