unless defined?(Gem) && defined?(ActiveSupport::Dependencies) && defined?(ActionController::Base) require 'rubygems' gem 'hpricot', ">= 0.8.2" gem 'sc-core-ext', ">= 1.1.1" gem 'activesupport', '>= 2.3.5' gem 'actionpack', '>= 2.3.5' gem 'activerecord', '>= 2.3.5' require 'active_support' require 'action_controller' require 'action_view' require 'active_record' require 'active_resource' end require 'hpricot' require 'sc-core-ext' path = File.expand_path(File.join(File.dirname(__FILE__), '../..')) %w(lib builtin/controllers builtin/models builtin/views).each do |p| $LOAD_PATH << File.join(path, p) ActiveSupport::Dependencies.load_paths << File.join(path, p) ActiveSupport::Dependencies.load_once_paths << File.join(path, p) end