sensu-em 2.4.0 → 2.4.1

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: b4b0b14ffb2cc39b7058811db726fa9bef75b1ab
4
- data.tar.gz: a981cef70f86fac70c68b8e38b35192c6cabe103
3
+ metadata.gz: b96bf3888d5f207e1510d20bb81790e84b2d1180
4
+ data.tar.gz: 2b478bee9b3e1108511f8238e889d4ad3f32b9ec
5
5
  SHA512:
6
- metadata.gz: d4b774b0c1fd6c67ee7f60ef24aeddfd45b026877cd3280dd247b40afeff98e07fb5cbb64cbf3fcd29e8cb7268e3b3cfc442c509d43170b9cf7c370ef2c408ae
7
- data.tar.gz: 7a3308c870c216b4572266afc7fe7b39ed045c96572ea777d6ab9a889253f61b265aa66cb9adf6e5645aafb682b9e0a8af95659bd9974084c9eb53ee12393690
6
+ metadata.gz: bbfb7462ffadc0c5447e349bc4e5b7233832421099c8f194d8244f9a2059b922cf9618dd3cb648a8c5ef4f2978d84d46ad16dbc8371ba55ec0b1baa445c3bf92
7
+ data.tar.gz: b7c4945f38bf515f30ac6ff89ea5210282c1064ceb8804507a618ae756ac7d5a3a257fde382b8123dee5f3fddf586c9f7b1c92b7be33573d041f641ea53f31a7
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
 
@@ -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: ruby
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
@@ -291,7 +291,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
291
291
  version: '0'
292
292
  requirements: []
293
293
  rubyforge_project: eventmachine
294
- rubygems_version: 2.2.0
294
+ rubygems_version: 2.2.2
295
295
  signing_key:
296
296
  specification_version: 4
297
297
  summary: Ruby/EventMachine library