aws 1.11.4 → 1.11.5
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.
- data/lib/right_aws.rb +1 -1
- data/lib/sdb/active_sdb.rb +2 -2
- data/lib/sdb/right_sdb_interface.rb +2 -2
- metadata +2 -2
data/lib/right_aws.rb
CHANGED
data/lib/sdb/active_sdb.rb
CHANGED
@@ -663,7 +663,7 @@ module RightAws
|
|
663
663
|
#
|
664
664
|
def []=(attribute, values)
|
665
665
|
attribute = attribute.to_s
|
666
|
-
@attributes[attribute] = attribute == 'id' ? values.to_s : [
|
666
|
+
@attributes[attribute] = attribute == 'id' ? values.to_s : values.is_a?(Array) ? values.uniq : [values]
|
667
667
|
end
|
668
668
|
|
669
669
|
# Reload attributes from SDB. Replaces in-memory attributes.
|
@@ -905,7 +905,7 @@ module RightAws
|
|
905
905
|
attrs = {}
|
906
906
|
attributes.each do |attribute, values|
|
907
907
|
attribute = attribute.to_s
|
908
|
-
attrs[attribute] = attribute == 'id' ? values.to_s :
|
908
|
+
attrs[attribute] = attribute == 'id' ? values.to_s : values.uniq
|
909
909
|
attrs.delete(attribute) if values.blank?
|
910
910
|
end
|
911
911
|
attrs
|
@@ -30,8 +30,8 @@ module RightAws
|
|
30
30
|
include RightAwsBaseInterface
|
31
31
|
|
32
32
|
DEFAULT_HOST = 'sdb.amazonaws.com'
|
33
|
-
DEFAULT_PORT =
|
34
|
-
DEFAULT_PROTOCOL = '
|
33
|
+
DEFAULT_PORT = 443
|
34
|
+
DEFAULT_PROTOCOL = 'https'
|
35
35
|
API_VERSION = '2007-11-07'
|
36
36
|
DEFAULT_NIL_REPRESENTATION = 'nil'
|
37
37
|
|
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: 1.11.
|
4
|
+
version: 1.11.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Reeder
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-06-02 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|