synapse-easy 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/synapse/easy/service.rb +9 -0
- data/lib/synapse/easy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5ecb9eabdc26d477252dae1b1092e41c0270470
|
4
|
+
data.tar.gz: 642ce5f7fdbf9c5cb9a58e37f3840eef5f6129e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44c67284d284c639aea668440b7f9b29a4c0d2d9ac1df15ce156dc36fdbce439bd0b058ca78ac3e3b7480bd90156cf24cd8f05a48113608d4320dec45636c15e
|
7
|
+
data.tar.gz: 0c842f611e66cdeb6cf3d38354d36252caa4cb1a29fdec1f5db6ad3bb7a1640d3151ee8574c2f0f33403b7025ecc883ceb35dca9ebc2784ae5eb74ee4c79e095
|
data/lib/synapse/easy/service.rb
CHANGED
@@ -106,6 +106,15 @@ module Synapse
|
|
106
106
|
format = format.gsub('%i',address.to_s)
|
107
107
|
format.gsub('%p',port.to_s)
|
108
108
|
end
|
109
|
+
alias_method :s, :to_s
|
110
|
+
def to_url
|
111
|
+
return unless mode.to_sym == :http
|
112
|
+
to_s()
|
113
|
+
end
|
114
|
+
alias_method :url, :to_url
|
115
|
+
def to_uri
|
116
|
+
URI to_s()
|
117
|
+
end
|
109
118
|
end
|
110
119
|
end
|
111
120
|
end
|
data/lib/synapse/easy/version.rb
CHANGED