gripcontrol 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb685268f1ea61c39270498828601e45855428dc
4
- data.tar.gz: c21e473c4e1eb219f60b15907821635f2062c28e
3
+ metadata.gz: 16274f20ad0271cdb79b75bca8cbd3eb9beb4276
4
+ data.tar.gz: cac939fe70dfd017825b8239b354c8af842e1249
5
5
  SHA512:
6
- metadata.gz: 5255d6bd37494a6577e7611d1affdca5f2ba4cd6100904e92cd76c16b0a484e9aa0075a438c7eefdefc61010d104570328a1b94ed5b87d8c8b2a23f9a1e00505
7
- data.tar.gz: c9bc4d2e40a22f9573c221f218b552ecbce972e0af034677a9802bfc4972199f97d35cf3bf139df84b617e986d23d700378b76996e07e06c26bdc69ade452d90
6
+ metadata.gz: 01920e37ea6c1b6b710dd166ccc476f6d60a104b871f9302f184d331675e86e1010f544da3b9f5c62867e30b7d25604c1dc6a2947b8c59c49f54f42df92b5733
7
+ data.tar.gz: 38ca7b1309b29030c730a83fe738a53a4f3c2fe0883d4e650c6237cc586e827d037c1f2dbcfd7decb4e245b286c67a8bdf211bbd49bc97ba5db1b29b175d02c2
data/lib/gripcontrol.rb CHANGED
@@ -98,7 +98,11 @@ class GripControl
98
98
  if path.end_with?('/')
99
99
  path = path[0..-2]
100
100
  end
101
- control_uri = uri.scheme + '://' + uri.host + path
101
+ port = ''
102
+ if uri.port != 80
103
+ port = ':' + uri.port
104
+ end
105
+ control_uri = uri.scheme + '://' + uri.host + port + path
102
106
  if !qs.nil? and !qs.empty?
103
107
  control_uri += '?' + qs
104
108
  end
@@ -37,7 +37,6 @@ class HttpResponseFormat < Format
37
37
  out['headers'] = @headers
38
38
  end
39
39
  if !@body.nil?
40
- # REVIEW is this the right way to check for binary encoding?
41
40
  if @body.encoding.name == 'ASCII-8BIT'
42
41
  out['body-bin'] = Base64.encode64(@body)
43
42
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gripcontrol
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Bokarius
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-11 00:00:00.000000000 Z
11
+ date: 2015-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pubcontrol