sensu-transport 2.0.0 → 2.1.0

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: 453c7441cdd99a8ac5db0aa1a73bf2122ecd628d
4
- data.tar.gz: 9fa00ddc17d02956b06983109ab190e5290a4fe8
3
+ metadata.gz: 9ba0412fd3f05cc39acbe4e6909568ee116fe75e
4
+ data.tar.gz: 5367a01571a3086a7f4c2c77844c123b54660ed3
5
5
  SHA512:
6
- metadata.gz: 0e50c0f00787c8764fc01e0ef2afed3f15cc7fbf18c1ca16919c82f4a3461f7e56e4eb697ab3d2bc94536e2b344ce42b3f3d50a0f9068a7b95a0d711a8bd65ff
7
- data.tar.gz: 088f59bf49ce59e4b8f5ce3adacb34ff31828d15b8f23b9084c2e0b6b849af2c707f719c75a7496f338b749e7d191836e0eb1ecd0cfc7e5cd733f80187ababca
6
+ metadata.gz: aae4e8279b5a9235605164f6b454fb111a0c82022eb929d002ec3e19a53c27616bfbd0b4e2c91555a12da35042c23890c99d467d9ceb6c215c117e08b66bd9f3
7
+ data.tar.gz: c58dc6225ef2d3f34c987a7722e3c7d8afc7274154ab8189108ef6247f03524edf9e3a07526f5ec59315c62f5b0616f2c35b4c311e31c6c248794b92aad60639
@@ -103,7 +103,7 @@ module Sensu
103
103
  end
104
104
 
105
105
  def set_connection_options(options)
106
- @connection_options = Array(options)
106
+ @connection_options = [options].flatten
107
107
  end
108
108
 
109
109
  def create_connection_timeout
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "sensu-transport"
5
- spec.version = "2.0.0"
5
+ spec.version = "2.1.0"
6
6
  spec.authors = ["Sean Porter"]
7
7
  spec.email = ["portertech@gmail.com"]
8
8
  spec.summary = "The Sensu transport abstraction library"
@@ -108,6 +108,16 @@ describe "Sensu::Transport::RabbitMQ" do
108
108
  end
109
109
  end
110
110
 
111
+ it "can be configured for multiple brokers" do
112
+ async_wrapper do
113
+ @transport.connect([{:port => 5672}, {:port => 5672}])
114
+ timer(2) do
115
+ expect(@transport.connected?).to be(true)
116
+ async_done
117
+ end
118
+ end
119
+ end
120
+
111
121
  it "can use TLS", :ssl => true do
112
122
  ssl_dir = File.join(File.dirname(__FILE__), "assets", "ssl", "client")
113
123
  async_wrapper do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-transport
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-23 00:00:00.000000000 Z
11
+ date: 2014-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-em
@@ -156,4 +156,3 @@ test_files:
156
156
  - spec/helpers.rb
157
157
  - spec/rabbitmq_spec.rb
158
158
  - spec/transport_spec.rb
159
- has_rdoc: