gorg_message_sender 1.4.3 → 1.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 904c5d6bc4015a68b4690c44e29341e425e3851d
4
- data.tar.gz: 6f5f788855630bc1c1e8cefb975f01bf57955a8b
3
+ metadata.gz: f8fd2079bef070fdcf220a1ff7ca27c3661b2f75
4
+ data.tar.gz: f7e61a9f97cfeff1e73ce896dc902a63e6492905
5
5
  SHA512:
6
- metadata.gz: 873a16c909fae77aac1f0a359113f180d7ac8339db9e7229a50fc7e59bf04bf7295660a90b92dd21def4a2bd83a0d50e12b5faab3c4e3471cf00295aa53f00f7
7
- data.tar.gz: b17758819295667792a3faf9496983568f171cb12c7810d688c08805ece81b4b98574a3fad52fad274d608913b385884b958b26aace141a01ba7a16bd24b2c58
6
+ metadata.gz: 047e7c06a06f9028580568f4b08b36cc941ed9c8dd8c458c77e4a8133ee2949263ae1a848a56b84d4fad31253c7ae7c41495b0dca7ff9786ad90ecf5318b8e01
7
+ data.tar.gz: 8165d835317d6d1b254dd29b41b84672a3cfdd8c8f154c92ad2017b54f326fde82cf8cd552b46cf55f35f208dca3e169c3b1ce33a4c382afc14c08d67261897e
@@ -68,7 +68,16 @@ class GorgMessageSender
68
68
  protected
69
69
 
70
70
  def conn_id
71
- URI.escape("amqp://#{@r_user}:#{@r_pass}@#{@r_host}:#{@r_port}/#{@r_vhost}")
71
+ userpart=""
72
+ if @r_user
73
+ userpart=URI.escape(@r_user.to_s,"@:/")
74
+ userpart+=":#{URI.escape(@r_pass.to_s,'%@:/\#')}" if @r_pass
75
+ userpart+="@"
76
+ end
77
+ portpart= @r_port ? ":#{URI.escape(@r_port.to_s,"@:/")}" : ""
78
+ vhostpart= @r_vhost ? "/#{URI.escape(@r_vhost.to_s,"@:/")}" : ""
79
+
80
+ "amqp://#{userpart}#{URI.escape(@r_host,"@:/")}#{portpart}#{vhostpart}"
72
81
  end
73
82
 
74
83
  def self.conn(url)
@@ -1,3 +1,3 @@
1
1
  class GorgMessageSender
2
- VERSION = "1.4.3"
2
+ VERSION = "1.4.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gorg_message_sender
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Narbonne