kimchi 0.0.11 → 0.0.12

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/kimchi/version.rb +1 -1
  3. data/lib/wire.rb +5 -3
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a575fa11fa0270976bc434095a473316edd6a2c1
4
- data.tar.gz: bc8022e91a81f83b02aec5593d3be21e00f29a51
3
+ metadata.gz: 50be63f68126fd189265feaeecfa47d6fd26fff4
4
+ data.tar.gz: 517917d868b5133200cd51c167219dc0b85687f3
5
5
  SHA512:
6
- metadata.gz: 85987605736d7054cda5b78b688c3d43993121513cff6abc6e7aa801188acd2501a2634f9e016a3464e279691bf4ff9c0d3e095359f55cbb535317753d6e4dd5
7
- data.tar.gz: ac9f51445e1eb97bad9c65c5962491d7a08053698d88f9c4a515794bd220ab12221f5f1d12e66b2f57c8d8350896d39d465bafacc1f1897f43015a00bb9fbf6a
6
+ metadata.gz: d1914caa884c20a3842e0941a7e4b1acf4776819f66be697ec75724d0eb051b8b379792781e606ddcf6d86fd5177bf2dfa3f8d80eb3d2dd6266b3fb8c808e581
7
+ data.tar.gz: a9683d576c905eb44ae74048cd16e206c88244a812d874f84dd960818ac88fce0f9897e50c3a3503a61040bb0e8c94e0b32ec0075aa8ba39d52080c47778d211
@@ -1,3 +1,3 @@
1
1
  module Kimchi
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
data/lib/wire.rb CHANGED
@@ -152,16 +152,18 @@ module Wire
152
152
  end
153
153
 
154
154
  class HttpTransport
155
- def initialize (host, port)
155
+ def initialize (host, port = nil)
156
156
  @host = host
157
- @port = port
157
+ if !port.nil?
158
+ @host += ":" + port
159
+ end
158
160
  end
159
161
 
160
162
  def transmit (service_name, version, invocation_signal, timeout_seconds)
161
163
  message = Message.new
162
164
 
163
165
  begin
164
- uri = URI("#{@host}:#{@port}/api/message")
166
+ uri = URI("#{@host}/api/message")
165
167
  headers = {"Content-Type" => "application/json"}
166
168
  http = Net::HTTP.new(uri.host, uri.port)
167
169
  http.read_timeout = timeout_seconds
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kimchi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Gautier
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  requirements: []
105
105
  rubyforge_project:
106
- rubygems_version: 2.1.10
106
+ rubygems_version: 2.1.9
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: Various frameworks and utilities to accelerate ICIX bdd tests