async-http 0.37.5 → 0.37.6

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
  SHA256:
3
- metadata.gz: 771487116c50684fea732ddb13dbb138fb19d46b52f350381c50d88a18fa4596
4
- data.tar.gz: d5caf23a339fb34bab9fc3ef7a815b0f47086f6173b8362b5aaab68b134fe331
3
+ metadata.gz: cd8279a618284d40c1e906c54b42508b73cb47f3665b4a6925024f8349510772
4
+ data.tar.gz: 9c067c157a475baecbf27869200401a75aa55d3a545372df336ecf168c2c4d95
5
5
  SHA512:
6
- metadata.gz: 145856ee41b3fe07b8494e53199d7aa14f77d8aa32ac98be3c365b485948cca90e8882926f1449211ab8d779e4ccf3b75792c13c4e38dd63f493027feece7c79
7
- data.tar.gz: d4384e672f5cdb01df22cc7520724192a71e7207ad1af1a0b4c4252f4a62e1d35a0a9612178467761427b49da40ee242e47464a116166d40ab17cb2c86ab4c6a
6
+ metadata.gz: b5d089c9ac099ebbfeba3e1f946e5e925790eb61ae1aca8301f4f77658e57fe6f8f0bfef131b80c4284637933105b4a32ad2d421c149b2f5d2ae15834ef21266
7
+ data.tar.gz: aa4f58a159c3ea1f8205aada55efe3bc0e68489b0a63b5c82ec8688750f360aad88da2b591fc71690c3f6c79acf9e5fe575b397e1341cf3ac39644c5b0aa32ba
@@ -43,8 +43,22 @@ module Async
43
43
  @endpoint = endpoint
44
44
  end
45
45
 
46
+ def to_url
47
+ url = @url.dup
48
+
49
+ unless default_port?
50
+ url.port = self.port
51
+ end
52
+
53
+ return url
54
+ end
55
+
46
56
  def to_s
47
- "\#<#{self.class} #{@url} #{@options.inspect}>"
57
+ "\#<#{self.class} #{self.to_url}>"
58
+ end
59
+
60
+ def inspect
61
+ "\#<#{self.class} #{self.to_url} #{@options.inspect}>"
48
62
  end
49
63
 
50
64
  attr :url
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module HTTP
23
- VERSION = "0.37.5"
23
+ VERSION = "0.37.6"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.37.5
4
+ version: 0.37.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-30 00:00:00.000000000 Z
11
+ date: 2018-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async