async-rspec 1.10.0 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/async/rspec/buffer.rb +1 -1
- data/lib/async/rspec/leaks.rb +1 -1
- data/lib/async/rspec/memory.rb +1 -1
- data/lib/async/rspec/profile.rb +2 -2
- data/lib/async/rspec/reactor.rb +1 -1
- data/lib/async/rspec/ssl.rb +5 -5
- data/lib/async/rspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da30dec2de05f9fccdc82d6cd9f465698127c1f8b7cc31824512f39226746731
|
4
|
+
data.tar.gz: c921ccb18f48a4ac8280d01cb487eaba63c474a2da27840f44f42e8d418fcbed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ed3b17e95bf59fa4e3869ac9ae3dfc844f4733b8469c3724ccc32d00a3e5481d2b7fa27bdf91235d6bb575376f5c4f297707ececcfd5c9c27d52375bf4fd259
|
7
|
+
data.tar.gz: cca13d5fdf7f27926cc56e86f5c0c71a6c27821a3f911d8e192cd36578b570d15ca9cd5e9aac8901ad418b818c9e8a9593264ac1cf500ac9d7e1597560dd5c50
|
data/lib/async/rspec/buffer.rb
CHANGED
data/lib/async/rspec/leaks.rb
CHANGED
data/lib/async/rspec/memory.rb
CHANGED
data/lib/async/rspec/profile.rb
CHANGED
@@ -26,7 +26,7 @@ module Async
|
|
26
26
|
begin
|
27
27
|
require 'ruby-prof'
|
28
28
|
|
29
|
-
RSpec.shared_context Profile do
|
29
|
+
::RSpec.shared_context Profile do
|
30
30
|
around(:each) do |example|
|
31
31
|
profile = RubyProf::Profile.new(merge_fibers: true)
|
32
32
|
|
@@ -43,7 +43,7 @@ module Async
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
rescue LoadError
|
46
|
-
RSpec.shared_context Profile do
|
46
|
+
::RSpec.shared_context Profile do
|
47
47
|
before(:all) do
|
48
48
|
warn "Profiling not enabled/supported."
|
49
49
|
end
|
data/lib/async/rspec/reactor.rb
CHANGED
data/lib/async/rspec/ssl.rb
CHANGED
@@ -39,7 +39,7 @@ module Async
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
RSpec.shared_context SSL::CertificateAuthority do
|
42
|
+
::RSpec.shared_context SSL::CertificateAuthority do
|
43
43
|
# This key size is generally considered insecure, but it's fine for testing.
|
44
44
|
let(:certificate_authority_key) {OpenSSL::PKey::RSA.new(1024)}
|
45
45
|
let(:certificate_authority_name) {OpenSSL::X509::Name.parse("O=Test/CN=localhost")}
|
@@ -79,7 +79,7 @@ module Async
|
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
82
|
-
RSpec.shared_context SSL::ValidCertificate do
|
82
|
+
::RSpec.shared_context SSL::ValidCertificate do
|
83
83
|
include_context SSL::CertificateAuthority
|
84
84
|
|
85
85
|
# The private key to use on the server side:
|
@@ -110,7 +110,7 @@ module Async
|
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
-
RSpec.shared_context SSL::HostCertificates do
|
113
|
+
::RSpec.shared_context SSL::HostCertificates do
|
114
114
|
include_context SSL::CertificateAuthority
|
115
115
|
|
116
116
|
let(:keys) do
|
@@ -173,7 +173,7 @@ module Async
|
|
173
173
|
end
|
174
174
|
end
|
175
175
|
|
176
|
-
RSpec.shared_context SSL::InvalidCertificate do
|
176
|
+
::RSpec.shared_context SSL::InvalidCertificate do
|
177
177
|
include_context SSL::CertificateAuthority
|
178
178
|
|
179
179
|
# The private key to use on the server side:
|
@@ -205,7 +205,7 @@ module Async
|
|
205
205
|
end
|
206
206
|
end
|
207
207
|
|
208
|
-
RSpec.shared_context SSL::VerifiedContexts do
|
208
|
+
::RSpec.shared_context SSL::VerifiedContexts do
|
209
209
|
let(:server_context) do
|
210
210
|
OpenSSL::SSL::SSLContext.new.tap do |context|
|
211
211
|
context.cert = certificate
|
data/lib/async/rspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|