ace-client 0.0.15 → 0.0.16

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.15
1
+ 0.0.16
@@ -37,6 +37,17 @@ module AceClient
37
37
  else
38
38
  @use_ssl = true
39
39
  end
40
+ if options.key?(:host_with_port)
41
+ @host_with_port = options[:host_with_port]
42
+ elsif ENV['ACE_HOST_WITH_PORT']
43
+ if ENV['ACE_HOST_WITH_PORT'] == 'false'
44
+ @host_with_port = false
45
+ else
46
+ @host_with_port = true
47
+ end
48
+ else
49
+ @host_with_port = false
50
+ end
40
51
  if options[:debug_output]
41
52
  self.class.debug_output(options[:debug_output])
42
53
  elsif %w(STDOUT STDERR).include?(ENV['ACE_DEBUG_OUTPUT'])
@@ -103,6 +103,7 @@ module AceClient
103
103
  end
104
104
 
105
105
  def string_to_sign
106
+ host = @host_with_port ? @endpoint : @endpoint.gsub(/\:\d+$/, '')
106
107
  [@http_method.to_s.upcase, @endpoint, @path, canonical_query_string].join("\n")
107
108
  end
108
109
 
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.15
4
+ version: 0.0.16
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: 2014-11-19 00:00:00.000000000 Z
12
+ date: 2014-12-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -161,7 +161,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
161
  version: '0'
162
162
  segments:
163
163
  - 0
164
- hash: -549746705402205216
164
+ hash: 2697402469122249656
165
165
  required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  none: false
167
167
  requirements: