qsagi 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1dab63c0f440425bb5340012aea1b400223cda34
4
- data.tar.gz: a288c4482fe6696e4468863596988ce8fbbb5259
3
+ metadata.gz: fd1566a492930270cc3892296d4a9e758a31ed08
4
+ data.tar.gz: e13ae0189c47927e52e7c8686cc3c0d087e79467
5
5
  SHA512:
6
- metadata.gz: cee22fdddd00c0b593e79d4088d1a47701f7687f8c037419b3dc30ad42663479bf1a2dc65c01df57bc00b8f23f5659ee5220b01b5b71afe0f8e04046a12d6744
7
- data.tar.gz: ba88e9d7c4e1cc249cf99dbd6db4746bf03d9d473cf1a19d17d07daa5a5ed52c29e0b2ae1bff05f5cf912e36a98f6adec0100da0bd15141ba1a2876cec190347
6
+ metadata.gz: 66085d118940a0a6fa01d375467af8c8044ee607211188b22c4c7454fd95cac5a4b79238911a2a34549c6150584865badd31cd16f76ce8247f94a90bea17c830
7
+ data.tar.gz: 97d4f26f7060568b565fbed5aa8776ed5ee3105945f4a39b129db37fa19a73d221652b40414efc7086461a18a81ab79e21b9ccaad10b3e153d5ebff53bc57b09
@@ -44,7 +44,8 @@ module Qsagi
44
44
  :exchange => _exchange,
45
45
  :connect_timeout => 5,
46
46
  :read_timeout => 5,
47
- :write_timeout => 5
47
+ :write_timeout => 5,
48
+ :logger => nil
48
49
  }
49
50
  end
50
51
 
@@ -19,7 +19,7 @@ module Qsagi
19
19
  end
20
20
 
21
21
  def connect
22
- @client = Bunny.new(
22
+ client_options = {
23
23
  :host => options[:host],
24
24
  :port => options[:port],
25
25
  :heartbeat => options[:heartbeat],
@@ -28,8 +28,12 @@ module Qsagi
28
28
  :password => options[:password],
29
29
  :connect_timeout => options[:connect_timeout],
30
30
  :read_timeout => options[:read_timeout],
31
- :write_timeout => options[:write_timeout]
32
- )
31
+ :write_timeout => options[:write_timeout],
32
+ :logger => options[:logger]
33
+ }
34
+ client_options.delete(:logger) if client_options[:logger].nil?
35
+
36
+ @client = Bunny.new(client_options)
33
37
  @client.start
34
38
  @channel = @client.create_channel
35
39
  @exchange = @channel.exchange(options[:exchange], options[:exchange_options])
@@ -1,3 +1,3 @@
1
1
  module Qsagi
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qsagi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Braintree
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-01 00:00:00.000000000 Z
11
+ date: 2018-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny