summarylogtreecommitdiffstats
path: root/bundler.patch
blob: cb23ecce50f0ddce423a7fbbc1709f9adceee2aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/bin/compass	2014-03-19 14:28:01.666995210 +0100
+++ b/bin/compass	2014-03-19 14:27:04.653662867 +0100
@@ -1,6 +1,10 @@
 #!/usr/bin/env ruby
 # The compass command line utility
 
+ENV["BUNDLE_GEMFILE"] = File.expand_path('../../Gemfile', File.realpath(__FILE__))
+require 'rubygems'
+require 'bundler/setup'
+
 # This allows compass to run easily from a git checkout without install.
 def fallback_load_path(path)
   retried = false
@@ -16,7 +20,7 @@
   end
 end
 
-fallback_load_path(File.join(File.dirname(__FILE__), '..', 'lib')) do
+fallback_load_path(File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')) do
   require 'compass'
   require 'compass/exec'
 end