# -*- coding: utf-8 -*- # name spaces reservation module TDiary; end module TDiary::Cache; end # Set up gems listed in the Gemfile. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __FILE__) require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) # FIXME: workaround fix for tainted path from Gemfile.local $LOAD_PATH.each{|lp| $LOAD_PATH << $LOAD_PATH.shift.dup.untaint} if defined?(Bundler) env = [:default] env << :development if ENV['RACK_ENV'].nil? || ENV['RACK_ENV'].empty? env << ENV['RACK_ENV'].intern if ENV['RACK_ENV'] env = env.reject{|e| Bundler.settings.without.include? e } Bundler.require *env end