activerecord-simpledb-adapter 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{activerecord-simpledb-adapter}
8
- s.version = "0.4.1"
8
+ s.version = "0.4.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ilia Ablamonov", "Alex Gorkunov", "Cloud Castle Inc."]
12
- s.date = %q{2011-04-22}
12
+ s.date = %q{2011-04-25}
13
13
  s.email = %q{ilia@flamefork.ru}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE.txt",
@@ -174,7 +174,6 @@ module ActiveRecord
174
174
  log first_query, "SimpleDB (offset partial)" do
175
175
  response = @connection.select(first_query, nil, false) #without consistent read
176
176
  end
177
- puts response[:request_id]
178
177
  response = @connection.select(sql, response[:request_id], true)
179
178
  else
180
179
  response = @connection.select(sql, nil, true)
@@ -49,7 +49,7 @@ describe "SimpleDBAdapter ActiveRecord batches operation" do
49
49
  items.count.should == count
50
50
  items.each { |item| item.login.should == 'test' }
51
51
  end
52
- #this test doesn't work with fakesdb
52
+
53
53
  it "should work with usual destroy statments" do
54
54
  count = 5
55
55
  items = []
@@ -103,4 +103,9 @@ describe "SimpleDBAdapter ActiveRecord attributes" do
103
103
  p1.updated_at.class.should == Time
104
104
  p1.updated_at.should > p2.updated_at
105
105
  end
106
+ it "should update attributes with update_attributes" do
107
+ p1 = Person.create_valid
108
+ p1.update_attributes!({:login =>"123"})
109
+ p1.login.should == "123"
110
+ end
106
111
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-simpledb-adapter
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ilia Ablamonov
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-04-22 00:00:00 +04:00
20
+ date: 2011-04-25 00:00:00 +04:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency