postcard_rb 0.0.1 → 0.0.2

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
  SHA256:
3
- metadata.gz: c0c9ef85ecce7e4def474a858b5986f57ad37eacbcff630ceb856a8d7abbd539
4
- data.tar.gz: 7c1175345e90501559519d30880b15b8359f5f5d2d3b5235a0f1a01be2b433fd
3
+ metadata.gz: f2f1b32fcee109eba9adcc296d43ff1a215543dd62b117ecd48a284bc9541ff8
4
+ data.tar.gz: 65930075c18d8a49fbf3978060387b0fb0f999d697d592ce3630cc64992716f6
5
5
  SHA512:
6
- metadata.gz: 8724318c2adfe1df3b1d6142cb523fac544e247007812c94a1fbee2d26d2aa2444b5de3d13b909b8f02b4f3e02df63010de7c840308dc850f61656ee5bc84e91
7
- data.tar.gz: a3c8c987e09ae388c740f0638422298b59c3e8fa42d9cdbb294c2b5e02268b35bb3a4f9959c1a779aadba93a5645034406bf1c18f8cbd9cbcdae97831d7a062d
6
+ metadata.gz: 9291a49a1d4b0e9be94a39142f10665e806d6d8964473037107a291b7e46ea60b556207738a94b0e8082e2802c77101d553903a316f465e551b49aedd08e9dc6
7
+ data.tar.gz: 53bb4b438d42a5015bb47c9754e90c34c932815d6bcf2c7df53dddea8e28375049ecb62c213c385aa56d5211474d33320f91fd0fa710ea5ed95b16e4767619ac
@@ -3,7 +3,6 @@ require_relative '../BaseRabbitMQRoom'
3
3
  class ExplicitRabbitMQRoom < BaseRabbitMQRoom
4
4
  def initialize name:, exclusive: false, channel:, exchange:
5
5
  queueName = ""
6
-
7
6
  queueName = name if exclusive
8
7
 
9
8
  queue = channel.queue(queueName).bind(exchange, :routing_key => name, :durable => false)
@@ -2,8 +2,11 @@ require_relative '../BaseRabbitMQRoom'
2
2
 
3
3
  class PatternMatchingRabbitMQRoom < BaseRabbitMQRoom
4
4
  def initialize name:, channel:, exchange:
5
- queue = channel.queue("").bind(exchange, :routing_key => name, :durable => false)
5
+ queueName = ""
6
+ queueName = name if exclusive
6
7
 
7
- super(queue: queue)
8
+ queue = channel.queue(queueName).bind(exchange, :routing_key => name, :durable => false)
9
+
10
+ super(channel: channel, queue: queue, exclusive: exclusive)
8
11
  end
9
12
  end
@@ -2,8 +2,11 @@ require_relative '../BaseRabbitMQRoom'
2
2
 
3
3
  class WideRabbitMQRoom < BaseRabbitMQRoom
4
4
  def initialize name:, channel:, exchange:
5
- queue = channel.queue("").bind(exchange, :durable => false)
5
+ queueName = ""
6
+ queueName = name if exclusive
6
7
 
7
- super(queue: queue)
8
+ queue = channel.queue(queueName).bind(exchange, :durable => false)
9
+
10
+ super(channel: channel, queue: queue, exclusive: exclusive)
8
11
  end
9
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postcard_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simone Adelchino