sneakers_handlers 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +21 -0
- data/README.md +0 -2
- data/lib/sneakers_handlers/dead_letter_handler.rb +2 -2
- data/lib/sneakers_handlers/retry_handler.rb +2 -2
- data/lib/sneakers_handlers/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8440039ba0d15621ccf48f689f2a10d65cb35fed
|
4
|
+
data.tar.gz: c60d259030e5457d26ba69fac06f226ef3a93e78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95e4838602450a620d46c54ce06e4a824f1fb626205cf49beb2274864a575d9ac220592187cb3470874943342658f0f1245a22cc2b9fd2537c2e8f82e13b1387
|
7
|
+
data.tar.gz: 214017ab5ad81f7714278b943a759ee57016f902573c59fd6e438eb6a373c4658d9d46fd7175d2fac6230d73e028cc969a5fd5ee7d025b0bbe0d0a515e96339b
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2017 AlphaSights
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -142,8 +142,6 @@ Or install it yourself as:
|
|
142
142
|
|
143
143
|
$ gem install sneakers_handlers
|
144
144
|
|
145
|
-
For a more detailed explanation of how the backoff handler works, check out the [blog post](https://m.alphasights.com/exponential-backoff-with-rabbitmq-78386b9bec81) we wrote about it.
|
146
|
-
|
147
145
|
## Development
|
148
146
|
|
149
147
|
After checking out the repository, run `bin/setup` to install dependencies. Then, run `rake` to run the tests (you will need to have a real `RabbitMQ` instance running). You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -12,11 +12,11 @@ module SneakersHandlers
|
|
12
12
|
arguments = options[:queue_options][:arguments]
|
13
13
|
|
14
14
|
dlx = channel.exchange(arguments.fetch("x-dead-letter-exchange"), {
|
15
|
-
type:
|
15
|
+
type: "topic",
|
16
16
|
durable: options[:exchange_options][:durable],
|
17
17
|
})
|
18
18
|
|
19
|
-
dlx_queue = channel.queue("#{queue.name}.
|
19
|
+
dlx_queue = channel.queue("#{queue.name}.error", durable: options[:queue_options][:durable])
|
20
20
|
dlx_queue.bind(dlx, routing_key: arguments.fetch("x-dead-letter-routing-key"))
|
21
21
|
end
|
22
22
|
end
|
@@ -59,11 +59,11 @@ module SneakersHandlers
|
|
59
59
|
|
60
60
|
dlx_exchange_name = arguments.fetch("x-dead-letter-exchange")
|
61
61
|
dlx_exchange = channel.exchange(dlx_exchange_name, {
|
62
|
-
type:
|
62
|
+
type: "topic",
|
63
63
|
durable: options[:exchange_options][:durable],
|
64
64
|
})
|
65
65
|
|
66
|
-
@dlx_queue = channel.queue("#{queue.name}.
|
66
|
+
@dlx_queue = channel.queue("#{queue.name}.error", durable: options[:queue_options][:durable])
|
67
67
|
@dlx_queue.bind(dlx_exchange, routing_key: arguments.fetch("x-dead-letter-routing-key"))
|
68
68
|
end
|
69
69
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sneakers_handlers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Bohn, Abe Petrillo, Brian Storti
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sneakers
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- ".env-example"
|
105
105
|
- ".gitignore"
|
106
106
|
- Gemfile
|
107
|
+
- LICENSE
|
107
108
|
- README.md
|
108
109
|
- Rakefile
|
109
110
|
- bin/console
|
@@ -137,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
138
|
version: '0'
|
138
139
|
requirements: []
|
139
140
|
rubyforge_project:
|
140
|
-
rubygems_version: 2.
|
141
|
+
rubygems_version: 2.6.13
|
141
142
|
signing_key:
|
142
143
|
specification_version: 4
|
143
144
|
summary: Adds Handlers to use with Sneakers
|