activerecord-simpledb-adapter 0.4.3 → 0.4.4

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.3"
8
+ s.version = "0.4.4"
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-26}
12
+ s.date = %q{2011-04-27}
13
13
  s.email = %q{ilia@flamefork.ru}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE.txt",
@@ -71,13 +71,13 @@ module ActiveRecord
71
71
  clear_batch and return unless count
72
72
 
73
73
  log({:count => count }.inspect, "SimpleDB Batch Operation") do
74
- pool = batch_pool[:update]
74
+ pool = batch_pool[:update] || []
75
75
  @connection.batch_put_attributes(domain_name, pool) \
76
- if pool && (type.nil? || type == :update)
76
+ if pool.any? && (type.nil? || type == :update)
77
77
 
78
- pool = batch_pool[:delete]
78
+ pool = batch_pool[:delete] || []
79
79
  @connection.batch_delete_attributes(domain_name, pool) \
80
- if pool && (type.nil? || type == :delete)
80
+ if pool.any? && (type.nil? || type == :delete)
81
81
 
82
82
  clear_batch type
83
83
  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: 9
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 3
10
- version: 0.4.3
9
+ - 4
10
+ version: 0.4.4
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-26 00:00:00 +04:00
20
+ date: 2011-04-27 00:00:00 +04:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency