sensu-em 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/eventmachine.gemspec +1 -1
- data/lib/em/connection.rb +11 -2
- data/tests/test_ssl_args.rb +2 -2
- 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: b96bf3888d5f207e1510d20bb81790e84b2d1180
|
4
|
+
data.tar.gz: 2b478bee9b3e1108511f8238e889d4ad3f32b9ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbfb7462ffadc0c5447e349bc4e5b7233832421099c8f194d8244f9a2059b922cf9618dd3cb648a8c5ef4f2978d84d46ad16dbc8371ba55ec0b1baa445c3bf92
|
7
|
+
data.tar.gz: b7c4945f38bf515f30ac6ff89ea5210282c1064ceb8804507a618ae756ac7d5a3a257fde382b8123dee5f3fddf586c9f7b1c92b7be33573d041f641ea53f31a7
|
data/eventmachine.gemspec
CHANGED
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.
|
416
|
+
"Could not find #{file} for start_tls" unless File.exist?(file)
|
417
417
|
end
|
418
418
|
|
419
|
-
|
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
|
|
data/tests/test_ssl_args.rb
CHANGED
@@ -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.
|
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.
|
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:
|
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.
|
294
|
+
rubygems_version: 2.2.2
|
295
295
|
signing_key:
|
296
296
|
specification_version: 4
|
297
297
|
summary: Ruby/EventMachine library
|