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 +4 -4
- data/lib/async/http/url_endpoint.rb +15 -1
- data/lib/async/http/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd8279a618284d40c1e906c54b42508b73cb47f3665b4a6925024f8349510772
|
4
|
+
data.tar.gz: 9c067c157a475baecbf27869200401a75aa55d3a545372df336ecf168c2c4d95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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} #{
|
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
|
data/lib/async/http/version.rb
CHANGED
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.
|
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
|
+
date: 2018-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|