Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use absolute paths for Gemfile includes

The supplementary Gemfiles located in the application's root were
causing bundler to fail if bundle commands were run from a different
directory, for example a subdirectory or if referencing the binaries
elsewhere. This just finds those files based on the Gemfile's own
location.
  • Loading branch information...
commit 2198277929b81d049000242529da080be38570d7 1 parent 3f297e2
@mikldt mikldt authored
Showing with 11 additions and 2 deletions.
  1. +11 −2 Gemfile
View
13 Gemfile
@@ -3,11 +3,20 @@ source 'http://rubygems.org'
gem "rails", "3.2.9"
+# Get the absolute path of this Gemfile so the includes below still work
+# when the current directory for a bundler command isn't the application's
+# root directory.
+basedir = File.dirname(__FILE__)
+
# Load the gems used for remote reporting.
-eval File.read('Gemfile-reporting') if File.exists?('Gemfile-reporting')
+if File.exists?(basedir+'/Gemfile-reporting')
+ eval File.read(basedir+'/Gemfile-reporting')
+end
+# The Gemfile-plugins gem list is managed by Concerto itself,
+# through the ConcertoPlugins controller.
group :concerto_plugins do
- eval File.read('Gemfile-plugins')
+ eval File.read(basedir+'/Gemfile-plugins')
end
# Gems used only for assets and not required
Please sign in to comment.
Something went wrong with that request. Please try again.