lib/arachni/rpc.rb in arachni-rpc-0.1.3 vs lib/arachni/rpc.rb in arachni-rpc-0.2.0
- old
+ new
@@ -4,14 +4,10 @@
redistribution and commercial restrictions. Please see the Arachni-RPC
web site for more information on licensing and terms of use.
=end
-require 'set'
+require 'arachni/reactor'
-require File.join( File.expand_path( File.dirname( __FILE__ ) ), 'rpc', 'version' )
-require File.join( File.expand_path( File.dirname( __FILE__ ) ), 'rpc', 'exceptions' )
-require File.join( File.expand_path( File.dirname( __FILE__ ) ), 'rpc', 'message' )
-require File.join( File.expand_path( File.dirname( __FILE__ ) ), 'rpc', 'request' )
-require File.join( File.expand_path( File.dirname( __FILE__ ) ), 'rpc', 'response' )
-require File.join( File.expand_path( File.dirname( __FILE__ ) ), 'rpc', 'remote_object_mapper' )
-
+%w(version exceptions message request response proxy protocol client server).each do |f|
+ require_relative "rpc/#{f}"
+end