simple_record 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/lib/simple_record.rb CHANGED
@@ -25,11 +25,10 @@
25
25
 
26
26
  require 'right_aws'
27
27
  require 'sdb/active_sdb'
28
- require 'local_cache'
29
28
 
30
29
  module SimpleRecord
31
30
 
32
- VERSION = '1.0.7'
31
+ VERSION = '1.0.8'
33
32
 
34
33
  class Base < RightAws::ActiveSdb::Base
35
34
 
@@ -409,7 +408,7 @@ module SimpleRecord
409
408
  # puts @attributes.inspect
410
409
  # puts @attributes[i.to_s].inspect
411
410
  arr = @attributes[i.to_s]
412
- puts 'padding date=' + i.to_s
411
+ #puts 'padding date=' + i.to_s
413
412
  arr.collect!{ |x| self.class.pad_and_offset(x) }
414
413
  @attributes[i.to_s] = arr
415
414
  # puts 'after: ' + @attributes[i.to_s].inspect
@@ -36,6 +36,10 @@ class TestSimpleRecord < Test::Unit::TestCase
36
36
  assert mm2.cool == mm.cool
37
37
  end
38
38
 
39
+ def test_bad_query
40
+ mm2 = MyModel.find(:all, :conditions=>["name =4?", "1"])
41
+ end
42
+
39
43
  def test_batch_save
40
44
  items = []
41
45
  mm = MyModel.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder