lib/cockpit.rb in cockpit-0.1.1 vs lib/cockpit.rb in cockpit-0.2.0
- old
+ new
@@ -1,5 +1,6 @@
require 'rubygems'
+require 'defined-by'
this = File.expand_path(File.dirname(__FILE__))
Dir["#{this}/cockpit/*"].each { |c| require c unless File.directory?(c) }
Dir["#{this}/cockpit/core/*"].each { |c| require c unless File.directory?(c) }
Dir["#{this}/cockpit/adapters/*"].each { |c| require c unless File.directory?(c) }