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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fa9e9656814a686af1e5abcbb7eb2a1006cacc1
4
- data.tar.gz: d8a279910b969766532e2c12e5e379698361305b
3
+ metadata.gz: 61314ff2ef5b58121e4e081d4e7541a7371e1712
4
+ data.tar.gz: 1aa88cc40ee08ad0f8ee5ca63cbed7d7beced2ec
5
5
  SHA512:
6
- metadata.gz: 8564d21100fca4cee63dd06efcc322342221c1ac5ec121cc4036cc5ada6f97842b04bbe2a5dcd2753ba424f47c3840a1d7e5b051fa1cb1b08f18341794ff168c
7
- data.tar.gz: bddf72e118a7cec99ea14367621dd6dd027957b4127e1d8f20229e86ad878fdcd4bcb4fa6de826ad525de3c6b358bd88eacd07dd5a3ac4b2f181013bcda3c598
6
+ metadata.gz: 499ed08070d7d38fcf493c1b14caf5839b5c562600d7f337fc63d5595d715aac69e4ca6514d40ad40f03c9e6b7716c7eff3b7c04ed2e19698c089d3523803ed6
7
+ data.tar.gz: c808abf6000bcb62b63dfa4a56c84b0fafebb770b7fca5f89f8747f0883b856be597433eb909ae29db8eb0768d7174157eb51e9168ee4f059f9e071535b2675e
data/.travis.yml CHANGED
@@ -6,7 +6,7 @@ rvm:
6
6
  - 1.9.3
7
7
  - 2.0.0
8
8
  - 2.1.0
9
- - jruby
9
+ - jruby-1.7.18
10
10
  services:
11
11
  - rabbitmq
12
12
  - redis
@@ -1,4 +1,4 @@
1
- gem "sensu-em"
1
+ require "eventmachine"
2
2
 
3
3
  module Sensu
4
4
  module Transport
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "sensu-transport"
5
- spec.version = "3.2.1"
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("sensu-em")
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
@@ -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.2.1
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-08-17 00:00:00.000000000 Z
11
+ date: 2015-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: sensu-em
14
+ name: eventmachine
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="