aws 2.1.12 → 2.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/sdb/active_sdb.rb +7 -2
  2. metadata +2 -2
@@ -939,11 +939,16 @@ module Aws
939
939
  attrs = {}
940
940
  attributes.each do |attribute, values|
941
941
  attribute = attribute.to_s
942
- attrs[attribute] = attribute == 'id' ? values.to_s : values.is_a?(Array) ? values.uniq : [values]
943
- attrs.delete(attribute) if values.blank?
942
+ newval = attribute == 'id' ? values.to_s : values.is_a?(Array) ? values.uniq : [values]
943
+ attrs[attribute] = newval
944
+ if newval.blank?
945
+ # puts "VALUE IS BLANK " + attribute.to_s + " val=" + values.inspect
946
+ attrs.delete(attribute)
947
+ end
944
948
  end
945
949
  attrs
946
950
  end
951
+
947
952
  end
948
953
  end
949
954
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.12
4
+ version: 2.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-12-18 00:00:00 -08:00
14
+ date: 2010-02-01 00:00:00 -08:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency