rabbitmq 1.1.7 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/rabbitmq.rb +15 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61e9902c2879005d809db69838f9df9fdd4e98f2
4
- data.tar.gz: 6bbb9be877be0f402cae44b69d3eb08ba86f4aa3
3
+ metadata.gz: 5494c4587deb3e8e1e22f9126ddcfecf0f4b89ba
4
+ data.tar.gz: 97902e6dd5a1ee4877e81c31a014fae2f6feaedb
5
5
  SHA512:
6
- metadata.gz: eaa9700afe3266b5dd5635c6b24f146a806c8335ca81939a67b848e00ec602eb12af8a2422289d88cd489ed70a4aa007854459091f3d8f97839b090a8955c252
7
- data.tar.gz: 0b1fcfcbf0417afcb536a1f9083924f064180d57a5bf602ecf82ab5639dd76642911cb0c3fa0ac0f3903f2aa4361601e0b680cd106b3ecb375217c0b1f8e64ef
6
+ metadata.gz: a7b46c8035af7a0382d29ab3ebbc46b1a517bee2978dae158a2d8cda2fbf292df1df0212c1e9ed9354ef3c042671385a3bd02f6cb51a0c2940b709d56d61b7e7
7
+ data.tar.gz: 99fb612f0e292011be754911b876f3803b5df931c0e36d9de2f1a87324762c9350d6e0a94c0be88f4fd7d84ade5ea10fec478661cb43f4c24c988984d1320938
data/README.md CHANGED
@@ -35,7 +35,7 @@ require 'rabbitmq'
35
35
 
36
36
  publisher = RabbitMQ::Client.new.start.channel
37
37
  queue = "some_queue"
38
- exchange = "" # default exchange
38
+ exchange = RabbitMQ::DEFAULT_EXCHANGE
39
39
  publisher.queue_delete(queue)
40
40
  publisher.queue_declare(queue)
41
41
 
@@ -9,3 +9,18 @@ require_relative 'rabbitmq/server_error'
9
9
 
10
10
  require_relative 'rabbitmq/client'
11
11
  require_relative 'rabbitmq/channel'
12
+
13
+
14
+ module RabbitMQ
15
+ # The RabbitMQ default exchange.
16
+ DEFAULT_EXCHANGE = "".freeze
17
+
18
+ # An array of errors that indicate an availabilty issue.
19
+ AVAILABILITY_ERRORS = [
20
+ RabbitMQ::ServerError::ConnectionError,
21
+ RabbitMQ::FFI::Error::Timeout,
22
+ RabbitMQ::FFI::Error::ConnectionClosed,
23
+ RabbitMQ::FFI::Error::SocketError,
24
+ RabbitMQ::FFI::Error::BadAmqpData,
25
+ ].freeze
26
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbitmq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe McIlvain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-17 00:00:00.000000000 Z
11
+ date: 2016-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi