kasket 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
data/lib/kasket.rb CHANGED
@@ -34,13 +34,14 @@ module Kasket
34
34
  Kasket.cache.clear_local
35
35
  end
36
36
  rescue NameError => e
37
+ puts('WARNING: The kasket before filter did not register (this is OK in the test environment)')
37
38
  end
38
39
 
39
40
  #sets up local cache clearing on rack
40
41
  begin
41
42
  ActionController::Dispatcher.middleware.use(Kasket::RackMiddleware)
42
43
  rescue NameError => e
43
- puts('WARNING: The kasket rack middleware is not in your rack stack')
44
+ puts('WARNING: The kasket rack middleware is not in your rack stack (this is OK in the test environment)')
44
45
  end
45
46
 
46
47
  #sets up local cache clearing after each test case
@@ -30,7 +30,9 @@ module Kasket
30
30
 
31
31
  def kasket_key_for(attribute_value_pairs)
32
32
  kasket_key_prefix + attribute_value_pairs.map do |attribute, value|
33
- if (column = columns_hash[attribute.to_s]) && column.number?
33
+ if value.nil?
34
+ attribute.to_s + '='
35
+ elsif (column = columns_hash[attribute.to_s]) && column.number?
34
36
  attribute.to_s + '=' + convert_number_column_value(value.to_s)
35
37
  else
36
38
  attribute.to_s + '=' + connection.quote(value.to_s)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kasket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mick Staugaard