appoxy-aws 1.11.31 → 1.11.32
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/awsbase/right_awsbase.rb +5 -3
- data/lib/sdb/active_sdb.rb +2 -2
- data/lib/sdb/right_sdb_interface.rb +4 -4
- metadata +4 -3
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
module RightAws
|
|
26
26
|
require 'digest/md5'
|
|
27
27
|
require 'pp'
|
|
28
|
+
require 'cgi'
|
|
28
29
|
|
|
29
30
|
class AwsUtils #:nodoc:
|
|
30
31
|
@@digest1 = OpenSSL::Digest::Digest.new("sha1")
|
|
@@ -40,9 +41,10 @@ module RightAws
|
|
|
40
41
|
# Escape a string accordingly Amazon rulles
|
|
41
42
|
# http://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/DeveloperGuide/index.html?REST_RESTAuth.html
|
|
42
43
|
def self.amz_escape(param)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
return CGI.escape(param).gsub("%7E", "~").gsub("+", "%20") # from: http://umlaut.rubyforge.org/svn/trunk/lib/aws_product_sign.rb
|
|
45
|
+
#param.to_s.gsub(/([^a-zA-Z0-9._~-]+)/n) do
|
|
46
|
+
# '%' + $1.unpack('H2' * $1.size).join('%').upcase
|
|
47
|
+
#end
|
|
46
48
|
end
|
|
47
49
|
|
|
48
50
|
# Set a timestamp and a signature version
|
data/lib/sdb/active_sdb.rb
CHANGED
|
@@ -106,7 +106,7 @@ module RightAws
|
|
|
106
106
|
# { :server => 'sdb.amazonaws.com' # Amazon service host: 'sdb.amazonaws.com'(default)
|
|
107
107
|
# :port => 443 # Amazon service port: 80 or 443(default)
|
|
108
108
|
# :protocol => 'https' # Amazon service protocol: 'http' or 'https'(default)
|
|
109
|
-
# :signature_version => '
|
|
109
|
+
# :signature_version => '2' # The signature version : '0', '1' or '2' (default)
|
|
110
110
|
# DEPRECATED :multi_thread => true|false # Multi-threaded (connection per each thread): true or false(default)
|
|
111
111
|
# :connection_mode => :default # options are :default (will use best known option, may change in the future)
|
|
112
112
|
# :per_request (opens and closes a connection on every request to SDB)
|
|
@@ -391,7 +391,7 @@ module RightAws
|
|
|
391
391
|
fields = format_str.to_s.sub(/^select_(all_)?by_/, '').split('_and_')
|
|
392
392
|
conditions = fields.map { |field| "#{field}=?" }.join(' AND ')
|
|
393
393
|
options[:conditions] = [conditions, *args]
|
|
394
|
-
|
|
394
|
+
find(:all, options)
|
|
395
395
|
end
|
|
396
396
|
|
|
397
397
|
def select_by_(format_str, args, options) # :nodoc:
|
|
@@ -30,9 +30,9 @@ module RightAws
|
|
|
30
30
|
include RightAwsBaseInterface
|
|
31
31
|
|
|
32
32
|
DEFAULT_HOST = 'sdb.amazonaws.com'
|
|
33
|
-
DEFAULT_PORT =
|
|
34
|
-
DEFAULT_PROTOCOL = '
|
|
35
|
-
API_VERSION = '
|
|
33
|
+
DEFAULT_PORT = 443
|
|
34
|
+
DEFAULT_PROTOCOL = 'https'
|
|
35
|
+
API_VERSION = '2009-04-15'
|
|
36
36
|
DEFAULT_NIL_REPRESENTATION = 'nil'
|
|
37
37
|
|
|
38
38
|
@@bench = AwsBenchmarkingBlock.new
|
|
@@ -47,7 +47,7 @@ module RightAws
|
|
|
47
47
|
# { :server => 'sdb.amazonaws.com' # Amazon service host: 'sdb.amazonaws.com'(default)
|
|
48
48
|
# :port => 443 # Amazon service port: 80(default) or 443
|
|
49
49
|
# :protocol => 'https' # Amazon service protocol: 'http'(default) or 'https'
|
|
50
|
-
# :signature_version => '
|
|
50
|
+
# :signature_version => '2' # The signature version : '0', '1' or '2' (default)
|
|
51
51
|
# DEPRECATED :multi_thread => true|false # Multi-threaded (connection per each thread): true or false(default)
|
|
52
52
|
# :connection_mode => :default # options are :default (will use best known option, may change in the future)
|
|
53
53
|
# :per_request (opens and closes a connection on every request to SDB)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: appoxy-aws
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.11.
|
|
4
|
+
version: 1.11.32
|
|
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-09-
|
|
14
|
+
date: 2009-09-16 00:00:00 -07:00
|
|
15
15
|
default_executable:
|
|
16
16
|
dependencies: []
|
|
17
17
|
|
|
@@ -40,6 +40,7 @@ files:
|
|
|
40
40
|
- README.markdown
|
|
41
41
|
has_rdoc: true
|
|
42
42
|
homepage: http://github.com/appoxy/aws/
|
|
43
|
+
licenses:
|
|
43
44
|
post_install_message:
|
|
44
45
|
rdoc_options:
|
|
45
46
|
- --charset=UTF-8
|
|
@@ -60,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
60
61
|
requirements: []
|
|
61
62
|
|
|
62
63
|
rubyforge_project:
|
|
63
|
-
rubygems_version: 1.
|
|
64
|
+
rubygems_version: 1.3.5
|
|
64
65
|
signing_key:
|
|
65
66
|
specification_version: 2
|
|
66
67
|
summary: AWS Ruby Library for interfacing with Amazon Web Services.
|