awis-sdk-ruby 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -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("http://#{Awis::API_HOST}/?" + query_params + "&Signature=" + CGI::escape(signature))
70
+ URI.parse("#{protocol}://#{Awis::API_HOST}/?" + query_params + "&Signature=" + CGI::escape(signature))
70
71
  end
71
72
 
72
73
  def default_params
@@ -1,3 +1,3 @@
1
1
  module Awis
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
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.8
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-03-16 00:00:00.000000000 Z
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: 4148590925117238172
170
+ hash: 235396105501276368
171
171
  requirements: []
172
172
  rubyforge_project:
173
173
  rubygems_version: 1.8.23