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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd4fc058feafaaee85e9acf0f0a2ec2c3ab92bd92e4ac73e3f46d14b03d97578
4
- data.tar.gz: c1805c3241d533c7f1a3013f1d84b32af9906b68f1a9ea2473f512069af40afc
3
+ metadata.gz: da30dec2de05f9fccdc82d6cd9f465698127c1f8b7cc31824512f39226746731
4
+ data.tar.gz: c921ccb18f48a4ac8280d01cb487eaba63c474a2da27840f44f42e8d418fcbed
5
5
  SHA512:
6
- metadata.gz: 1c66d571d6735d91a5580764046cf48cc4ec14f20b3b57737c5fcfcf6e1816234ae8549f503b5e567dbd2973a87cd2912823834054b47e7083adad79af296f05
7
- data.tar.gz: 8ee06a9db6ebb397ace13829979c6ee45593e2ff1be5b968d7be0b061f6b287d6c56e6cc2df7422aaee7ce6c316d5783683d9df44605d6e919ebe8b922c28b2a
6
+ metadata.gz: 9ed3b17e95bf59fa4e3869ac9ae3dfc844f4733b8469c3724ccc32d00a3e5481d2b7fa27bdf91235d6bb575376f5c4f297707ececcfd5c9c27d52375bf4fd259
7
+ data.tar.gz: cca13d5fdf7f27926cc56e86f5c0c71a6c27821a3f911d8e192cd36578b570d15ca9cd5e9aac8901ad418b818c9e8a9593264ac1cf500ac9d7e1597560dd5c50
@@ -41,7 +41,7 @@ module Async
41
41
  end
42
42
  end
43
43
 
44
- RSpec.shared_context Buffer do
44
+ ::RSpec.shared_context Buffer do
45
45
  let(:buffer) {Buffer.open}
46
46
  after(:each) {buffer.close}
47
47
  end
@@ -29,7 +29,7 @@ module Async
29
29
  end
30
30
  end
31
31
 
32
- RSpec.shared_context Leaks do
32
+ ::RSpec.shared_context Leaks do
33
33
  include Leaks
34
34
 
35
35
  let(:before_ios) {current_ios}
@@ -22,7 +22,7 @@ require_relative 'memory/limit_allocations'
22
22
 
23
23
  module Async
24
24
  module RSpec
25
- RSpec.shared_context Memory do
25
+ ::RSpec.shared_context Memory do
26
26
  include Memory
27
27
  end
28
28
  end
@@ -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
@@ -68,7 +68,7 @@ module Async
68
68
  end
69
69
  end
70
70
 
71
- RSpec.shared_context Reactor do
71
+ ::RSpec.shared_context Reactor do
72
72
  include Reactor
73
73
 
74
74
  let(:reactor) {Async::Reactor.new(selector: Async::Debug::Selector.new)}
@@ -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
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module RSpec
23
- VERSION = "1.10.0"
23
+ VERSION = "1.11.0"
24
24
  end
25
25
  end
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.10.0
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-07-09 00:00:00.000000000 Z
11
+ date: 2018-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec