rubydns 0.5.2 → 0.5.3

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.
Files changed (49) hide show
  1. data/.gitignore +17 -0
  2. data/.travis.yml +7 -0
  3. data/Gemfile +3 -6
  4. data/README.md +48 -44
  5. data/{rakefile.rb → Rakefile} +2 -3
  6. data/bin/rd-dns-check +1 -1
  7. data/bin/rd-resolve-test +1 -1
  8. data/lib/rubydns.rb +2 -3
  9. data/lib/rubydns/chunked.rb +1 -1
  10. data/lib/rubydns/extensions/hexdump.rb +1 -1
  11. data/lib/rubydns/extensions/logger.rb +30 -0
  12. data/lib/rubydns/extensions/resolv.rb +1 -1
  13. data/lib/rubydns/extensions/string-1.8.rb +1 -1
  14. data/lib/rubydns/extensions/string-1.9.2.rb +1 -1
  15. data/lib/rubydns/extensions/string-1.9.3.rb +1 -1
  16. data/lib/rubydns/extensions/string.rb +1 -1
  17. data/lib/rubydns/handler.rb +1 -1
  18. data/lib/rubydns/message.rb +2 -1
  19. data/lib/rubydns/resolver.rb +22 -17
  20. data/lib/rubydns/server.rb +3 -5
  21. data/lib/rubydns/system.rb +1 -1
  22. data/lib/rubydns/transaction.rb +2 -2
  23. data/lib/rubydns/version.rb +2 -8
  24. data/rubydns.gemspec +33 -0
  25. data/test/examples/dropping-dns.rb +1 -1
  26. data/test/examples/fortune-dns.rb +1 -1
  27. data/test/examples/geoip-dns.rb +1 -1
  28. data/test/examples/soa-dns.rb +1 -1
  29. data/test/examples/test-dns-1.rb +1 -1
  30. data/test/examples/test-dns-2.rb +2 -5
  31. data/test/test_daemon.rb +21 -0
  32. data/test/test_passthrough.rb +21 -0
  33. data/test/test_resolver.rb +52 -0
  34. data/test/test_rules.rb +21 -0
  35. data/test/test_slow_server.rb +21 -0
  36. data/test/test_system.rb +21 -0
  37. data/test/test_truncation.rb +21 -0
  38. metadata +38 -25
  39. data/test/examples/GeoLiteCountry.dat +0 -0
  40. data/test/examples/log/DroppingDaemon.log +0 -107
  41. data/test/examples/log/FortuneDNS.log +0 -5
  42. data/test/examples/log/GeoIPDNSDaemon.log +0 -0
  43. data/test/examples/log/TestDaemon.log +0 -340
  44. data/test/examples/run/DroppingDaemon.pid +0 -1
  45. data/test/examples/run/GeoIPDNSDaemon.pid +0 -1
  46. data/test/log/BasicTestServer.log +0 -96
  47. data/test/log/SlowServer.log +0 -72
  48. data/test/log/TestPassthroughServer.log +0 -36
  49. data/test/log/TruncatedServer.log +0 -78
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
1
+ # Copyright, 2009, 2012, by Samuel G. D. Williams. <http://www.codeotaku.com>
2
2
  #
3
3
  # Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  # of this software and associated documentation files (the "Software"), to deal
@@ -19,11 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module RubyDNS
22
- module VERSION #:nodoc:
23
- MAJOR = 0
24
- MINOR = 5
25
- TINY = 2
26
-
27
- STRING = [MAJOR, MINOR, TINY].join('.')
28
- end
22
+ VERSION = "0.5.3"
29
23
  end
data/rubydns.gemspec ADDED
@@ -0,0 +1,33 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'rubydns/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "rubydns"
8
+ gem.version = RubyDNS::VERSION
9
+ gem.authors = ["Samuel Williams"]
10
+ gem.email = ["samuel.williams@oriontransfer.co.nz"]
11
+ gem.description = <<-EOF
12
+ RubyDNS is a high-performance DNS server which can be easily integrated into
13
+ other projects or used as a stand-alone daemon (via RExec). By default it uses
14
+ rule-based pattern matching. Results can be hard-coded, computed, fetched from
15
+ a remote DNS server or fetched from a local cache, depending on requirements.
16
+
17
+ In addition, RubyDNS includes a high-performance asynchronous DNS resolver
18
+ built on top of EventMachine. This module can be used by itself in client
19
+ applications without using the full RubyDNS server stack.
20
+ EOF
21
+ gem.summary = "An easy to use DNS server and resolver for Ruby."
22
+ gem.homepage = "https://github.com/ioquatix/rubydns"
23
+
24
+ gem.files = `git ls-files`.split($/)
25
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
26
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
27
+ gem.require_paths = ["lib"]
28
+
29
+ gem.add_dependency("rexec", "~> 1.5.1")
30
+ gem.add_dependency("eventmachine", "~> 1.0.0")
31
+
32
+ gem.has_rdoc = "yard"
33
+ end
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
3
+ # Copyright, 2009, 2012, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
3
 
4
- # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
4
+ # Copyright, 2009, 2012, by Samuel G. D. Williams. <http://www.codeotaku.com>
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
3
+ # Copyright, 2009, 2012, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
3
+ # Copyright, 2009, 2012, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
3
+ # Copyright, 2009, 2012, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
3
+ # Copyright, 2009, 2012, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -21,11 +21,8 @@
21
21
  # THE SOFTWARE.
22
22
 
23
23
  require 'rubygems'
24
-
25
24
  require 'rexec'
26
25
  require 'rexec/daemon'
27
-
28
- require 'rubygems'
29
26
  require 'rubydns'
30
27
 
31
28
  # To run this command, use the standard daemon syntax as root
@@ -58,7 +55,7 @@ class Server < RExec::Daemon::Base
58
55
  Name = Resolv::DNS::Name
59
56
  IN = Resolv::DNS::Resource::IN
60
57
 
61
- # Use upstream DNS for name resolution (These ones are Orcon DNS in NZ)
58
+ # Use upstream DNS for name resolution.
62
59
  UPSTREAM = RubyDNS::Resolver.new([[:udp, "8.8.8.8", 53], [:tcp, "8.8.8.8", 53]])
63
60
 
64
61
  def self.run
data/test/test_daemon.rb CHANGED
@@ -1,3 +1,24 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # Copyright, 2012, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ # THE SOFTWARE.
1
22
 
2
23
  require 'helper'
3
24
  require 'pathname'
@@ -1,3 +1,24 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # Copyright, 2012, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ # THE SOFTWARE.
1
22
 
2
23
  require 'helper'
3
24
  require 'pathname'
@@ -1,5 +1,25 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ # Copyright, 2012, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ # THE SOFTWARE.
22
+
3
23
  require 'helper'
4
24
  require 'rubydns'
5
25
 
@@ -28,11 +48,43 @@ class ResolverTest < Test::Unit::TestCase
28
48
  EventMachine::run do
29
49
  resolver.query('google.com') do |response|
30
50
  assert_equal RubyDNS::ResolutionFailure, response.class
51
+
31
52
  EventMachine::stop
32
53
  end
33
54
  end
34
55
  end
35
56
 
57
+ class MockRequest
58
+ attr :response
59
+
60
+ def process_response!(response)
61
+ @response = response
62
+ end
63
+ end
64
+
65
+ def test_dirty_packets_udp
66
+ mock_request = MockRequest.new
67
+
68
+ handler_class = Class.new{ include RubyDNS::Resolver::Request::UDPRequestHandler }
69
+ handler = handler_class.new(mock_request, nil, nil)
70
+
71
+ handler.receive_data("This is not a real message!")
72
+
73
+ assert_equal Resolv::DNS::DecodeError, mock_request.response.class
74
+ end
75
+
76
+ def test_dirty_packets_tcp
77
+ mock_request = MockRequest.new
78
+
79
+ handler_class = Class.new{ include RubyDNS::Resolver::Request::TCPRequestHandler }
80
+ handler = handler_class.new(mock_request)
81
+
82
+ data = "This is not a real message!"
83
+ handler.receive_data([data.length].pack('n') + data)
84
+
85
+ assert_equal Resolv::DNS::DecodeError, mock_request.response.class
86
+ end
87
+
36
88
  def test_addresses_for
37
89
  resolver = RubyDNS::Resolver.new([[:udp, "8.8.8.8", 53], [:tcp, "8.8.8.8", 53]])
38
90
  resolved_addresses = nil
data/test/test_rules.rb CHANGED
@@ -1,3 +1,24 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # Copyright, 2012, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ # THE SOFTWARE.
1
22
 
2
23
  require 'helper'
3
24
  require 'pathname'
@@ -1,3 +1,24 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # Copyright, 2012, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ # THE SOFTWARE.
1
22
 
2
23
  require 'helper'
3
24
  require 'pathname'
data/test/test_system.rb CHANGED
@@ -1,3 +1,24 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # Copyright, 2012, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ # THE SOFTWARE.
1
22
 
2
23
  require 'helper'
3
24
  require 'pathname'
@@ -1,3 +1,24 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # Copyright, 2012, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ # THE SOFTWARE.
1
22
 
2
23
  require 'helper'
3
24
  require 'pathname'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubydns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-21 00:00:00.000000000 Z
12
+ date: 2012-10-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rexec
@@ -43,18 +43,32 @@ dependencies:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
45
  version: 1.0.0
46
- description:
47
- email: samuel@oriontransfer.org
46
+ description: ! "\tRubyDNS is a high-performance DNS server which can be easily integrated
47
+ into\n\tother projects or used as a stand-alone daemon (via RExec). By default it
48
+ uses\n\trule-based pattern matching. Results can be hard-coded, computed, fetched
49
+ from\n\ta remote DNS server or fetched from a local cache, depending on requirements.\n\n\tIn
50
+ addition, RubyDNS includes a high-performance asynchronous DNS resolver\n\tbuilt
51
+ on top of EventMachine. This module can be used by itself in client\n\tapplications
52
+ without using the full RubyDNS server stack.\n"
53
+ email:
54
+ - samuel.williams@oriontransfer.co.nz
48
55
  executables:
49
- - rd-resolve-test
50
56
  - rd-dns-check
57
+ - rd-resolve-test
51
58
  extensions: []
52
59
  extra_rdoc_files: []
53
60
  files:
61
+ - .gitignore
62
+ - .travis.yml
63
+ - Gemfile
64
+ - README.md
65
+ - Rakefile
54
66
  - bin/rd-dns-check
55
67
  - bin/rd-resolve-test
68
+ - lib/rubydns.rb
56
69
  - lib/rubydns/chunked.rb
57
70
  - lib/rubydns/extensions/hexdump.rb
71
+ - lib/rubydns/extensions/logger.rb
58
72
  - lib/rubydns/extensions/resolv.rb
59
73
  - lib/rubydns/extensions/string-1.8.rb
60
74
  - lib/rubydns/extensions/string-1.9.2.rb
@@ -67,26 +81,15 @@ files:
67
81
  - lib/rubydns/system.rb
68
82
  - lib/rubydns/transaction.rb
69
83
  - lib/rubydns/version.rb
70
- - lib/rubydns.rb
71
- - test/examples/GeoLiteCountry.dat
84
+ - rubydns.gemspec
72
85
  - test/examples/dropping-dns.rb
73
86
  - test/examples/fortune-dns.rb
74
87
  - test/examples/geoip-dns.rb
75
- - test/examples/log/DroppingDaemon.log
76
- - test/examples/log/FortuneDNS.log
77
- - test/examples/log/GeoIPDNSDaemon.log
78
- - test/examples/log/TestDaemon.log
79
- - test/examples/run/DroppingDaemon.pid
80
- - test/examples/run/GeoIPDNSDaemon.pid
81
88
  - test/examples/soa-dns.rb
82
89
  - test/examples/test-dns-1.rb
83
90
  - test/examples/test-dns-2.rb
84
91
  - test/helper.rb
85
92
  - test/hosts.txt
86
- - test/log/BasicTestServer.log
87
- - test/log/SlowServer.log
88
- - test/log/TestPassthroughServer.log
89
- - test/log/TruncatedServer.log
90
93
  - test/test_daemon.rb
91
94
  - test/test_domains.txt
92
95
  - test/test_passthrough.rb
@@ -95,10 +98,7 @@ files:
95
98
  - test/test_slow_server.rb
96
99
  - test/test_system.rb
97
100
  - test/test_truncation.rb
98
- - rakefile.rb
99
- - Gemfile
100
- - README.md
101
- homepage: http://www.codeotaku.com/projects/rubydns
101
+ homepage: https://github.com/ioquatix/rubydns
102
102
  licenses: []
103
103
  post_install_message:
104
104
  rdoc_options: []
@@ -110,9 +110,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
110
  - - ! '>='
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
- segments:
114
- - 0
115
- hash: -2570367066356706581
116
113
  required_rubygems_version: !ruby/object:Gem::Requirement
117
114
  none: false
118
115
  requirements:
@@ -125,4 +122,20 @@ rubygems_version: 1.8.24
125
122
  signing_key:
126
123
  specification_version: 3
127
124
  summary: An easy to use DNS server and resolver for Ruby.
128
- test_files: []
125
+ test_files:
126
+ - test/examples/dropping-dns.rb
127
+ - test/examples/fortune-dns.rb
128
+ - test/examples/geoip-dns.rb
129
+ - test/examples/soa-dns.rb
130
+ - test/examples/test-dns-1.rb
131
+ - test/examples/test-dns-2.rb
132
+ - test/helper.rb
133
+ - test/hosts.txt
134
+ - test/test_daemon.rb
135
+ - test/test_domains.txt
136
+ - test/test_passthrough.rb
137
+ - test/test_resolver.rb
138
+ - test/test_rules.rb
139
+ - test/test_slow_server.rb
140
+ - test/test_system.rb
141
+ - test/test_truncation.rb