Skip to content

Commit ec40a27

Browse files
committed
Travis CI matrix: add 2.4, 2.5
1 parent 32a7823 commit ec40a27

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ rvm:
1212
- 2.1.10
1313
- 2.2.5
1414
- 2.3.1
15+
- 2.4
16+
- 2.5
1517
script: rake travis

test/test_net_http_persistent.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def proxy_port
120120
def basic_connection
121121
raise "#{@uri} is not HTTP" unless @uri.scheme.downcase == 'http'
122122

123-
net_http_args = [@uri.host, @uri.port]
123+
net_http_args = [@uri.hostname, @uri.port]
124124

125125
connection = Net::HTTP::Persistent::Connection.allocate
126126
connection.ssl_generation = @http.ssl_generation
@@ -152,7 +152,7 @@ def r.read_body() :read_body end
152152
def ssl_connection
153153
raise "#{@uri} is not HTTPS" unless @uri.scheme.downcase == 'https'
154154

155-
net_http_args = [@uri.host, @uri.port]
155+
net_http_args = [@uri.hostname, @uri.port]
156156

157157
connection = Net::HTTP::Persistent::Connection.allocate
158158
connection.ssl_generation = @http.ssl_generation

0 commit comments

Comments
 (0)