diff --git a/.gitignore b/.gitignore index 51fd921a..321d6186 100644 --- a/.gitignore +++ b/.gitignore @@ -18,9 +18,11 @@ test/fixtures/stylesheets/*/sass/.sass-cache pkg/* compass-*.gem coverage* +bin/* docs doc-src/tmp doc-src/.bundle .bundle attic +.rvmrc devbin diff --git a/bin/compass b/bin/compass index f816f3e9..e1ac7493 100755 --- a/bin/compass +++ b/bin/compass @@ -1,26 +1,16 @@ #!/usr/bin/env ruby -# The compass command line utility +# +# This file was generated by Bundler. +# +# The application 'compass' is installed as part of a gem, and +# this file is here to facilitate running it. +# -# This allows compass to run easily from a git checkout without install. -def fallback_load_path(path) - retried = false - begin - yield - rescue LoadError - unless retried - $: << path - retried = true - retry - end - raise - end -end +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -fallback_load_path(File.join(File.dirname(__FILE__), '..', 'lib')) do - require 'compass' - require 'compass/exec' -end +require 'rubygems' +require 'bundler/setup' - -command_line_class = Compass::Exec::Helpers.select_appropriate_command_line_ui(ARGV) -exit command_line_class.new(ARGV).run! +load Gem.bin_path('compass', 'compass')