lib/rubydns.rb in rubydns-0.7.3 vs lib/rubydns.rb in rubydns-0.8.0

- old
+ new

@@ -16,34 +16,24 @@ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -require 'rubydns/version' +require_relative 'rubydns/version' -require 'rubydns/message' -require 'rubydns/server' -require 'rubydns/resolver' -require 'rubydns/handler' +require_relative 'rubydns/message' +require_relative 'rubydns/server' +require_relative 'rubydns/resolver' +require_relative 'rubydns/handler' -require 'logger' - -require 'rexec' -require 'rexec/daemon' - -require 'rubydns/handler' - module RubyDNS - # Run a server with the given rules. def self.run_server (options = {}, &block) server = RubyDNS::RuleBasedServer.new(&block) EventMachine.run do server.run(options) end server.fire(:stop) end - - end