Browse files

make sure rubber in gemfile not commented out

  • Loading branch information...
1 parent cbc6355 commit 2add6abba8441d80f12c405581f4b3ffa8c7ae90 Matt Conway committed Jan 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/rubber
View
2 bin/rubber
@@ -5,7 +5,7 @@ root = File.expand_path(ENV['RUBBER_ROOT'] || '.')
# Only load gemfile if there and contains rubber in order
# to allow vulcanize to work in bootstrap case
gemfile = ENV['BUNDLE_GEMFILE'] || "#{root}/Gemfile"
-if File.exists?(gemfile) && File.read(gemfile).lines.grep(/gem.*["']rubber["']/).size > 0
+if File.exists?(gemfile) && File.read(gemfile).lines.grep(/^[^#]*gem.*["']rubber["']/).size > 0
require "bundler"
Bundler.setup(:default, env.to_sym)
end

0 comments on commit 2add6ab

Please sign in to comment.