Sha256: 84b79fb9e6ef4da42ae47458384ba529cdb0d6199819e66203755f47b93dffe5
Contents?: true
Size: 746 Bytes
Versions: 2
Compression:
Stored size: 746 Bytes
Contents
# Load dependent gems into $LOAD_PATH and # invoke all necessary *require*s using Bundler if !$toaster_bundler_loaded TOASTER_ROOT_DIR = File.join(File.dirname(__FILE__), "..","..","..") ENV['BUNDLE_GEMFILE'] = File.join(TOASTER_ROOT_DIR, "Gemfile") require 'rubygems' require 'bundler/setup' # bug fix for ruby 1.9+ required to load gem tidy original_verbosity = $VERBOSE $VERBOSE = nil # disable warning "DL is deprecated, please use Fiddle" require 'dl/import' DL::Importable = DL::Importer $VERBOSE = original_verbosity # call bundler Bundler.require(:default) # $LOAD_PATH changed by Bundler, we have to add toaster again $LOAD_PATH << File.join(TOASTER_ROOT_DIR, "lib") $toaster_bundler_loaded = true end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cloud-toaster-1.1.6 | lib/toaster/util/load_bundler.rb |
cloud-toaster-1.1.5 | lib/toaster/util/load_bundler.rb |