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 +4 -4
- data/Changelog.md +21 -0
- data/lib/lapine/consumer/runner.rb +2 -1
- data/lib/lapine/version.rb +1 -1
- metadata +1 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3f024aa4a9120e4dd4efec02b757f97f2bf157e
|
4
|
+
data.tar.gz: 34dce2a8861845158bcd88e39f0f875bd1e3805c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48ab14ac31fc757d9faef15c98e006a9252b8cba6128111b94c77052a49de9991a0b882f93ed2e5eb803a5adb18ae560ab6f284d9521d943517dc4ad3d02f45d
|
7
|
+
data.tar.gz: fce1cd4be86a643d24b8bfeac44637e1f7f56bb162ed9e06f2e15dac86b5be096cd66944e35a837486948df5c95566e800989e972f13b97113fdaf2750eee94d
|
data/Changelog.md
CHANGED
@@ -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
|
|
data/lib/lapine/version.rb
CHANGED
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.
|
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:
|