lib/amqp.rb in amqp-0.6.6 vs lib/amqp.rb in amqp-0.6.7

- old
+ new

@@ -1,17 +1,12 @@ -module AMQP - VERSION = '0.5.9' - - DIR = File.expand_path(File.dirname(File.expand_path(__FILE__))) - $:.unshift DIR +require File.expand_path('../ext/em', __FILE__) +require File.expand_path('../ext/blankslate', __FILE__) - require 'ext/em' - require 'ext/blankslate' - - %w[ buffer spec protocol frame client ].each do |file| - require "amqp/#{file}" - end +%w[ version buffer spec protocol frame client ].each do |file| + require File.expand_path("../amqp/#{file}", __FILE__) +end +module AMQP class << self @logging = false attr_accessor :logging attr_reader :conn, :closing alias :closing? :closing