2011-10-30 23:02:41 +00:00
|
|
|
require 'rubygems'
|
|
|
|
gemfile = File.expand_path('../../../../Gemfile', __FILE__)
|
|
|
|
|
2011-11-27 09:33:45 +00:00
|
|
|
# Need to explicitly use syck for yaml. This fixes a problem with the current
|
|
|
|
# delayed job parsing of YAML
|
|
|
|
#
|
|
|
|
# FIXME: I don't expect end users to have to modify their config/boot.rb for an
|
|
|
|
# app using the locomotiveCMS gem. Perhaps we can remove this when a newer
|
|
|
|
# delayed job version is released?
|
|
|
|
#
|
|
|
|
require 'yaml'
|
2011-12-15 14:29:07 +00:00
|
|
|
YAML::ENGINE.yamler = 'syck' if defined?(YAML::ENGINE)
|
2011-11-27 09:33:45 +00:00
|
|
|
|
2011-10-30 23:02:41 +00:00
|
|
|
if File.exist?(gemfile)
|
|
|
|
ENV['BUNDLE_GEMFILE'] = gemfile
|
|
|
|
require 'bundler'
|
|
|
|
Bundler.setup
|
|
|
|
end
|
|
|
|
|
2011-11-27 09:33:45 +00:00
|
|
|
$:.unshift File.expand_path('../../../../lib', __FILE__)
|