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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a66ec99246e9a7b1bc203ab80ebeeddc3406205
4
- data.tar.gz: c272ecc33b6e5cd3703c4e4384cf9ed0ff5ea169
3
+ metadata.gz: e5ecb9eabdc26d477252dae1b1092e41c0270470
4
+ data.tar.gz: 642ce5f7fdbf9c5cb9a58e37f3840eef5f6129e0
5
5
  SHA512:
6
- metadata.gz: c470cd05d0becaee2895b07e37da0a08c599eb2d226b38a333a62588f9a27958f9701833ef6f4096a0959231bcd877d58aa6fb97eeba72ec27084f4cdb58224e
7
- data.tar.gz: 0705f6f78d7f0d72043285f7a221ab2666bebbc41f0d5d9832a7a9e5421af9717a51144b538f833d1f9bb2f2e429fa516843ef1f74e8826fab1b3e6d98e618b7
6
+ metadata.gz: 44c67284d284c639aea668440b7f9b29a4c0d2d9ac1df15ce156dc36fdbce439bd0b058ca78ac3e3b7480bd90156cf24cd8f05a48113608d4320dec45636c15e
7
+ data.tar.gz: 0c842f611e66cdeb6cf3d38354d36252caa4cb1a29fdec1f5db6ad3bb7a1640d3151ee8574c2f0f33403b7025ecc883ceb35dca9ebc2784ae5eb74ee4c79e095
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Synapse
2
2
  module Easy
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synapse-easy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Kaufmann