sensu-transport 3.2.1 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/lib/sensu/transport/base.rb +1 -1
- data/sensu-transport.gemspec +2 -3
- data/spec/rabbitmq_spec.rb +7 -1
- data/spec/redis_spec.rb +7 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61314ff2ef5b58121e4e081d4e7541a7371e1712
|
4
|
+
data.tar.gz: 1aa88cc40ee08ad0f8ee5ca63cbed7d7beced2ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 499ed08070d7d38fcf493c1b14caf5839b5c562600d7f337fc63d5595d715aac69e4ca6514d40ad40f03c9e6b7716c7eff3b7c04ed2e19698c089d3523803ed6
|
7
|
+
data.tar.gz: c808abf6000bcb62b63dfa4a56c84b0fafebb770b7fca5f89f8747f0883b856be597433eb909ae29db8eb0768d7174157eb51e9168ee4f059f9e071535b2675e
|
data/.travis.yml
CHANGED
data/lib/sensu/transport/base.rb
CHANGED
data/sensu-transport.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "sensu-transport"
|
5
|
-
spec.version = "3.
|
5
|
+
spec.version = "3.3.0"
|
6
6
|
spec.authors = ["Sean Porter"]
|
7
7
|
spec.email = ["portertech@gmail.com"]
|
8
8
|
spec.summary = "The Sensu transport abstraction library"
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
16
16
|
spec.require_paths = ["lib"]
|
17
17
|
|
18
|
-
spec.add_dependency("
|
18
|
+
spec.add_dependency("eventmachine")
|
19
19
|
spec.add_dependency("amq-protocol", "1.9.2")
|
20
20
|
spec.add_dependency("amqp", "1.5.0")
|
21
21
|
spec.add_dependency("em-redis-unified", ">= 1.0.0")
|
@@ -23,6 +23,5 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.6"
|
24
24
|
spec.add_development_dependency "rake"
|
25
25
|
spec.add_development_dependency "rspec"
|
26
|
-
spec.add_development_dependency "bouncy-castle-java" if RUBY_PLATFORM =~ /java/
|
27
26
|
spec.add_development_dependency "codeclimate-test-reporter" unless RUBY_VERSION < "1.9"
|
28
27
|
end
|
data/spec/rabbitmq_spec.rb
CHANGED
@@ -110,9 +110,15 @@ describe "Sensu::Transport::RabbitMQ" do
|
|
110
110
|
|
111
111
|
it "will throw an error if it cannot resolve a hostname" do
|
112
112
|
async_wrapper do
|
113
|
+
expected_error_class = case RUBY_PLATFORM
|
114
|
+
when "java"
|
115
|
+
Java::JavaNioChannels::UnresolvedAddressException
|
116
|
+
else
|
117
|
+
EventMachine::ConnectionError
|
118
|
+
end
|
113
119
|
expect {
|
114
120
|
@transport.connect(:host => "2def33c3-cfbb-4993-b5ee-08d47f6d8793")
|
115
|
-
}.to raise_error
|
121
|
+
}.to raise_error(expected_error_class)
|
116
122
|
async_done
|
117
123
|
end
|
118
124
|
end
|
data/spec/redis_spec.rb
CHANGED
@@ -150,9 +150,15 @@ describe "Sensu::Transport::Redis" do
|
|
150
150
|
|
151
151
|
it "will throw an error if it cannot resolve a hostname" do
|
152
152
|
async_wrapper do
|
153
|
+
expected_error_class = case RUBY_PLATFORM
|
154
|
+
when "java"
|
155
|
+
Java::JavaNioChannels::UnresolvedAddressException
|
156
|
+
else
|
157
|
+
EventMachine::ConnectionError
|
158
|
+
end
|
153
159
|
expect {
|
154
160
|
@transport.connect(:host => "2def33c3-cfbb-4993-b5ee-08d47f6d8793")
|
155
|
-
}.to raise_error
|
161
|
+
}.to raise_error(expected_error_class)
|
156
162
|
async_done
|
157
163
|
end
|
158
164
|
end
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-transport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.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: 2015-
|
11
|
+
date: 2015-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: eventmachine
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|