awis-sdk-ruby 0.0.8 → 0.0.9
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/awis/connection.rb +3 -2
- data/lib/awis/version.rb +1 -1
- metadata +3 -3
data/lib/awis/connection.rb
CHANGED
|
@@ -7,13 +7,14 @@ require "time"
|
|
|
7
7
|
|
|
8
8
|
module Awis
|
|
9
9
|
class Connection
|
|
10
|
-
attr_accessor :debug
|
|
10
|
+
attr_accessor :debug, :protocol
|
|
11
11
|
attr_writer :params
|
|
12
12
|
|
|
13
13
|
def initialize
|
|
14
14
|
raise CertificateError.new("Amazon access certificate is missing!") if Awis.config.access_key_id.nil? || Awis.config.secret_access_key.nil?
|
|
15
15
|
|
|
16
16
|
@debug = Awis.config.debug || false
|
|
17
|
+
@protocol = Awis.config.protocol || 'https'
|
|
17
18
|
end
|
|
18
19
|
|
|
19
20
|
def params
|
|
@@ -66,7 +67,7 @@ module Awis
|
|
|
66
67
|
end
|
|
67
68
|
|
|
68
69
|
def uri
|
|
69
|
-
URI.parse("
|
|
70
|
+
URI.parse("#{protocol}://#{Awis::API_HOST}/?" + query_params + "&Signature=" + CGI::escape(signature))
|
|
70
71
|
end
|
|
71
72
|
|
|
72
73
|
def default_params
|
data/lib/awis/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: awis-sdk-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.9
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-
|
|
12
|
+
date: 2017-08-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: multi_xml
|
|
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
167
167
|
version: '0'
|
|
168
168
|
segments:
|
|
169
169
|
- 0
|
|
170
|
-
hash:
|
|
170
|
+
hash: 235396105501276368
|
|
171
171
|
requirements: []
|
|
172
172
|
rubyforge_project:
|
|
173
173
|
rubygems_version: 1.8.23
|