ace-client 0.0.20 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ace-client/base.rb +1 -0
- data/lib/ace-client/query2.rb +2 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.21
|
data/lib/ace-client/base.rb
CHANGED
@@ -23,6 +23,7 @@ module AceClient
|
|
23
23
|
@http_proxy = options[:http_proxy] || ENV['HTTP_PROXY']
|
24
24
|
@http_method = options[:http_method] || :post
|
25
25
|
@access_key_id_key = options[:access_key_id_key] || ENV['ACE_ACCESS_KEY_ID_KEY'] || 'AWSAccessKeyId'
|
26
|
+
@host = options[:host]
|
26
27
|
if @timeout = options[:timeout] || ENV['ACE_TIMEOUT']
|
27
28
|
self.class.default_timeout @timeout
|
28
29
|
end
|
data/lib/ace-client/query2.rb
CHANGED
@@ -104,7 +104,8 @@ module AceClient
|
|
104
104
|
end
|
105
105
|
|
106
106
|
def string_to_sign
|
107
|
-
host = @
|
107
|
+
host = @host ? @host : @endpoint
|
108
|
+
host = @host_with_port ? host : host.gsub(/\:\d+$/, '')
|
108
109
|
[@http_method.to_s.upcase, host, @path, canonical_query_string].join("\n")
|
109
110
|
end
|
110
111
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ace-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.21
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-02-
|
12
|
+
date: 2015-02-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -165,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
165
165
|
version: '0'
|
166
166
|
segments:
|
167
167
|
- 0
|
168
|
-
hash:
|
168
|
+
hash: 1934536385053298791
|
169
169
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
170
|
none: false
|
171
171
|
requirements:
|