sensu-em 2.4.0-java → 2.4.1-java

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: 2ddbbdeebbaa9d14cbd2504fee0d59280a9f1244
4
- data.tar.gz: 096108e026c9ec5c9fcc80b06056ae4c9621114b
3
+ metadata.gz: d02036176fdcb5e9afe3b5231109fb088a4969d5
4
+ data.tar.gz: 5fe622e3a485c9068f85880848c0c8ae2c28c9df
5
5
  SHA512:
6
- metadata.gz: de8cfd2e3ed0647857304a113740bfea43a8e4f3309224bc24c7ccccbcf1d416050d1d1405f32515aa6c91a3a813fbc5b371b5926c64b87051ed5b33f67f0afd
7
- data.tar.gz: 194a96db13c4a05cb3754dd5c52d59ab5aaba622573376b65dbbe12491d29c9e589e11077aa8eb45aed054a429c46065c3eb61ee7f35d621541cc97ec825107c
6
+ metadata.gz: db0093bf36a2b276c2eb78793e3c44b945dfc93e42b0d8de18d597a05bd447ef1dd6a00d8df8065e25363d143f38ccd956058fd215aeb7a3ed1b2f2feece0224
7
+ data.tar.gz: 5aceb1eb85e1c2613ef4cb3c4ec70d5c47e190f6dfccebdca4058b1ed9b8df6f6064240193f2e4161491a81786bce16dca833ab66b85589abb1cb9cd0e41b113
data/eventmachine.gemspec CHANGED
@@ -5,7 +5,7 @@ require "em/version"
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = 'sensu-em'
8
- s.version = '2.4.0'
8
+ s.version = '2.4.1'
9
9
  s.homepage = 'http://rubyeventmachine.com'
10
10
  s.rubyforge_project = 'eventmachine'
11
11
  s.licenses = ["Ruby", "GPL"]
data/lib/em/connection.rb CHANGED
@@ -413,10 +413,19 @@ module EventMachine
413
413
  [priv_key, cert_chain].each do |file|
414
414
  next if file.nil? or file.empty?
415
415
  raise FileNotFoundException,
416
- "Could not find #{file} for start_tls" unless File.exists? file
416
+ "Could not find #{file} for start_tls" unless File.exist?(file)
417
417
  end
418
418
 
419
- EventMachine::set_tls_parms(@signature, priv_key || '', cert_chain || '', verify_peer, (use_tls ? true : false), cipher_list || '')
419
+ tls_parms = [
420
+ @signature,
421
+ priv_key || '',
422
+ cert_chain || '',
423
+ verify_peer,
424
+ !!use_tls,
425
+ cipher_list || ''
426
+ ].shift(EventMachine.method(:set_tls_parms).arity.abs)
427
+
428
+ EventMachine::set_tls_parms(*tls_parms)
420
429
  EventMachine::start_tls @signature
421
430
  end
422
431
 
Binary file
@@ -45,7 +45,7 @@ class TestSslArgs < Test::Unit::TestCase
45
45
  def test_tls_params_file_doesnt_exist
46
46
  priv_file, cert_file = 'foo_priv_key', 'bar_cert_file'
47
47
  [priv_file, cert_file].all? do |f|
48
- assert(!File.exists?(f), "Cert file #{f} seems to exist, and should not for the tests")
48
+ assert(!File.exist?(f), "Cert file #{f} seems to exist, and should not for the tests")
49
49
  end
50
50
 
51
51
  # associate_callback_target is a pain! (build!)
@@ -75,4 +75,4 @@ class TestSslArgs < Test::Unit::TestCase
75
75
  assert(false, 'should not have raised an exception')
76
76
  end
77
77
  end
78
- end if EM.ssl?
78
+ end if EM.ssl?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-em
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: java
6
6
  authors:
7
7
  - Francis Cianfrocca
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-08 00:00:00.000000000 Z
12
+ date: 2015-02-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler
@@ -183,7 +183,6 @@ files:
183
183
  - lib/em/version.rb
184
184
  - lib/eventmachine.rb
185
185
  - lib/jeventmachine.rb
186
- - lib/rubyeventmachine.jar
187
186
  - rakelib/cpp.rake_example
188
187
  - rakelib/package.rake
189
188
  - rakelib/test.rake
@@ -247,6 +246,7 @@ files:
247
246
  - tests/test_timers.rb
248
247
  - tests/test_ud.rb
249
248
  - tests/test_unbind_reason.rb
249
+ - lib/rubyeventmachine.jar
250
250
  homepage: http://rubyeventmachine.com
251
251
  licenses:
252
252
  - Ruby
@@ -276,7 +276,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
276
276
  version: '0'
277
277
  requirements: []
278
278
  rubyforge_project: eventmachine
279
- rubygems_version: 2.2.2
279
+ rubygems_version: 2.1.9
280
280
  signing_key:
281
281
  specification_version: 4
282
282
  summary: Ruby/EventMachine library