Added support for Gemfile.local
parent
998fa06912
commit
fcfb48fda1
|
@ -1,4 +1,6 @@
|
|||
.bundle
|
||||
Gemfile.local
|
||||
Gemfile.local.lock
|
||||
# Rubymine project directory
|
||||
.idea
|
||||
# Sublime Text project directory (not created by ST by default)
|
||||
|
|
|
@ -2,7 +2,13 @@
|
|||
# Use bundler to load dependencies
|
||||
#
|
||||
|
||||
ENV['BUNDLE_GEMFILE'] ||= ::File.expand_path(::File.join(::File.dirname(__FILE__), "..", "Gemfile"))
|
||||
gemfile_base = ::File.expand_path(::File.join(::File.dirname(__FILE__), ".."))
|
||||
if File.readable?(::File.join(gemfile_base,"Gemfile.local"))
|
||||
ENV['BUNDLE_GEMFILE'] ||= ::File.join(gemfile_base, "Gemfile.local")
|
||||
else
|
||||
ENV['BUNDLE_GEMFILE'] ||= ::File.join(gemfile_base, "Gemfile")
|
||||
end
|
||||
|
||||
begin
|
||||
require 'bundler/setup'
|
||||
rescue ::LoadError
|
||||
|
|
Loading…
Reference in New Issue