async-dns 1.2.3 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/dns/handler.rb +2 -2
- data/lib/async/dns/resolver.rb +2 -2
- data/lib/async/dns/server.rb +1 -1
- data/lib/async/dns/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +79 -76
- metadata.gz.sig +4 -0
- data/.editorconfig +0 -6
- data/.gitignore +0 -14
- data/.rspec +0 -3
- data/.travis.yml +0 -27
- data/Gemfile +0 -18
- data/README.md +0 -148
- data/Rakefile +0 -32
- data/async-dns.gemspec +0 -31
- data/examples/cloudflare.rb +0 -24
- data/spec/async/dns/handler_spec.rb +0 -60
- data/spec/async/dns/hosts.txt +0 -2
- data/spec/async/dns/ipv6_spec.rb +0 -78
- data/spec/async/dns/junk_server_context.rb +0 -62
- data/spec/async/dns/message_spec.rb +0 -56
- data/spec/async/dns/origin_spec.rb +0 -106
- data/spec/async/dns/replace_spec.rb +0 -44
- data/spec/async/dns/resolver_performance_spec.rb +0 -106
- data/spec/async/dns/resolver_spec.rb +0 -104
- data/spec/async/dns/server/bind9/generate-local.rb +0 -25
- data/spec/async/dns/server/bind9/local.zone +0 -5014
- data/spec/async/dns/server/bind9/named.conf +0 -14
- data/spec/async/dns/server/bind9/named.run +0 -0
- data/spec/async/dns/server/million.rb +0 -83
- data/spec/async/dns/server_performance_spec.rb +0 -159
- data/spec/async/dns/slow_server_spec.rb +0 -97
- data/spec/async/dns/socket_spec.rb +0 -72
- data/spec/async/dns/system_spec.rb +0 -57
- data/spec/async/dns/transaction_spec.rb +0 -140
- data/spec/async/dns/truncation_spec.rb +0 -61
- data/spec/spec_helper.rb +0 -57
data/spec/spec_helper.rb
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
|
2
|
-
if ENV['COVERAGE'] || ENV['TRAVIS']
|
3
|
-
begin
|
4
|
-
require 'simplecov'
|
5
|
-
|
6
|
-
SimpleCov.start do
|
7
|
-
add_filter "/spec/"
|
8
|
-
end
|
9
|
-
|
10
|
-
# Work correctly across forks:
|
11
|
-
pid = Process.pid
|
12
|
-
SimpleCov.at_exit do
|
13
|
-
SimpleCov.result.format! if Process.pid == pid
|
14
|
-
end
|
15
|
-
|
16
|
-
if ENV['TRAVIS']
|
17
|
-
require 'coveralls'
|
18
|
-
Coveralls.wear!
|
19
|
-
end
|
20
|
-
rescue LoadError
|
21
|
-
warn "Could not load simplecov: #{$!}"
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
require "bundler/setup"
|
26
|
-
require "async/rspec"
|
27
|
-
require "async/dns"
|
28
|
-
|
29
|
-
begin
|
30
|
-
require 'ruby-prof'
|
31
|
-
|
32
|
-
RSpec.shared_context "profile" do
|
33
|
-
around(:each) do |example|
|
34
|
-
profile = RubyProf.profile(merge_fibers: true) do
|
35
|
-
example.run
|
36
|
-
end
|
37
|
-
|
38
|
-
printer = RubyProf::FlatPrinter.new(profile)
|
39
|
-
printer.print(STDOUT)
|
40
|
-
end
|
41
|
-
end
|
42
|
-
rescue LoadError
|
43
|
-
RSpec.shared_context "profile" do
|
44
|
-
before(:all) do
|
45
|
-
puts "Profiling not supported on this platform."
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
RSpec.configure do |config|
|
51
|
-
# Enable flags like --only-failures and --next-failure
|
52
|
-
config.example_status_persistence_file_path = ".rspec_status"
|
53
|
-
|
54
|
-
config.expect_with :rspec do |c|
|
55
|
-
c.syntax = :expect
|
56
|
-
end
|
57
|
-
end
|