Permalink
Browse files

recover if bundler isn't installed

  • Loading branch information...
joshbuddy committed Mar 28, 2012
1 parent e614f43 commit 8498fbdb07d44d354136ddded9825027f67181ac
Showing with 4 additions and 3 deletions.
  1. +3 −2 lib/noexec.rb
  2. +1 −1 lib/noexec/auto.rb
View
@@ -1,3 +1,5 @@
DEBUG = ENV.key?('NOEXEC_DEBUG')
begin
require "bundler"
@@ -11,7 +13,6 @@ def reset!
module Noexec
CURRENT = Dir.pwd
DEBUG = ENV.key?('NOEXEC_DEBUG')
extend self
@@ -50,5 +51,5 @@ def setup
end
end
rescue LoadError
warn "bundler not being used, unable to load"
warn "bundler not being used, unable to load" if DEBUG
end
View
@@ -1,3 +1,3 @@
require File.expand_path('../../noexec', __FILE__)
Noexec.setup
Noexec.setup if Object.const_defined?(:Noexec)

0 comments on commit 8498fbd

Please sign in to comment.