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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9d628c97cd9755d31e310c6fdc8094b0d815d2f
4
- data.tar.gz: f739480da18963717a07196e7cfb390acf9f0252
3
+ metadata.gz: 8440039ba0d15621ccf48f689f2a10d65cb35fed
4
+ data.tar.gz: c60d259030e5457d26ba69fac06f226ef3a93e78
5
5
  SHA512:
6
- metadata.gz: fc631d12e28639232b9312de45e3f37195b9ab776a56e80ece1d935f5bb6967dfeabb34c99c06ded86c2657ad2225403576e20b70eb96ee9362b7b12fa286662
7
- data.tar.gz: 44cb5f6321ec4c1f66203b486e6468bd470f8d1776da538f793370c12f78c118852fd18787e46ea71550e52d9868b1ea0e21e4783a8c4a18108163ee4db7aefd
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: options[:exchange_options][:type],
15
+ type: "topic",
16
16
  durable: options[:exchange_options][:durable],
17
17
  })
18
18
 
19
- dlx_queue = channel.queue("#{queue.name}.dlx", durable: options[:queue_options][:durable])
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: options[:exchange_options][:type],
62
+ type: "topic",
63
63
  durable: options[:exchange_options][:durable],
64
64
  })
65
65
 
66
- @dlx_queue = channel.queue("#{queue.name}.dlx", durable: options[:queue_options][:durable])
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
 
@@ -1,3 +1,3 @@
1
1
  module SneakersHandlers
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
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-01-10 00:00:00.000000000 Z
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.5.1
141
+ rubygems_version: 2.6.13
141
142
  signing_key:
142
143
  specification_version: 4
143
144
  summary: Adds Handlers to use with Sneakers