lapine 1.2.2 → 1.99.0

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: e8285bfd1148472650488e3124f518401c42f0e2
4
- data.tar.gz: 86e1d988c0ffb209a66a0a90fe37b6c48a773eca
3
+ metadata.gz: b3f024aa4a9120e4dd4efec02b757f97f2bf157e
4
+ data.tar.gz: 34dce2a8861845158bcd88e39f0f875bd1e3805c
5
5
  SHA512:
6
- metadata.gz: f2740483f5cffa44e1a5fe2d142cd99e2f0f87b71423bc3fceaf028011b9c25b2bcd6dc65bd21cf40ed73080e975c4efa0b55ce3f72f58b9a62eb720d538e08d
7
- data.tar.gz: d1f84f3a6c19a923ee810dfaeeef1ef5cb3cf11081ccd3f83946548956d6f63688c899686ec110e935ea5f70396a9a63afc5be8f8bdc27e0cccacdb42d9a3041
6
+ metadata.gz: 48ab14ac31fc757d9faef15c98e006a9252b8cba6128111b94c77052a49de9991a0b882f93ed2e5eb803a5adb18ae560ab6f284d9521d943517dc4ad3d02f45d
7
+ data.tar.gz: fce1cd4be86a643d24b8bfeac44637e1f7f56bb162ed9e06f2e15dac86b5be096cd66944e35a837486948df5c95566e800989e972f13b97113fdaf2750eee94d
@@ -1,6 +1,27 @@
1
1
  Change Log
2
2
  ==========
3
3
 
4
+ ## 2.0.0
5
+
6
+ **BREAKING CHANGES**
7
+
8
+ Queues are now declared as `durable: true`. This breaks the ability of consumers to connect to existing
9
+ queues in a way that fails silently in the `ruby-amqp` gem.
10
+
11
+ Migration strategy:
12
+
13
+ * Update gemfile to use version `1.99.0`
14
+ * All queues will need to be renamed, so that they can be declared anew with `durable: true`
15
+ * Old queues should be deleted with `delete_queues`
16
+ * Update gemfile to use version `2.0.0`
17
+
18
+ ## 1.99.0 - Migration version to 2.0.0
19
+
20
+ **BREAKING CHANGES**
21
+
22
+ * `queues` are declared as `durable: true`
23
+ * `delete_queues` are declared as `durable: false`
24
+
4
25
  ## 1.2.2
5
26
 
6
27
  * Add routing key to dispatcher log
@@ -40,7 +40,7 @@ module Lapine
40
40
  topology.each_queue_to_delete do |q, conn, routing_key, handlers|
41
41
  # if queue does not exist in RabbitMQ, skip processing
42
42
  # else
43
- queue = conn.channel.queue(q, @queue_properties)
43
+ queue = conn.channel.queue(q, @queue_properties.merge(durable: false))
44
44
  queues_to_delete << queue
45
45
 
46
46
  queue.subscribe(ack: true) do |metadata, payload|
@@ -85,6 +85,7 @@ module Lapine
85
85
  def queue_properties
86
86
  {}.tap do |props|
87
87
  props.merge!(auto_delete: true) if config.transient?
88
+ props.merge!(durable: true) unless config.transient?
88
89
  end
89
90
  end
90
91
 
@@ -1,3 +1,3 @@
1
1
  module Lapine
2
- VERSION = '1.2.2'
2
+ VERSION = '1.99.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lapine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.99.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Saxby
@@ -242,4 +242,3 @@ test_files:
242
242
  - spec/lib/lapine_spec.rb
243
243
  - spec/spec_helper.rb
244
244
  - spec/support/rspec_test_helper.rb
245
- has_rdoc: