Skip to content
Browse files

Remove debug prints

  • Loading branch information...
1 parent e81e133 commit 9bcf03b8895cae834ec50e3c8c2a8716086cb1ae @thetamind committed May 11, 2012
Showing with 0 additions and 8 deletions.
  1. +0 −4 lib/bundler/runtime.rb
  2. +0 −3 spec/runtime/require_spec.rb
  3. +0 −1 spec/support/helpers.rb
View
4 lib/bundler/runtime.rb
@@ -68,20 +68,16 @@ def require(*groups)
Kernel.require file
end
rescue LoadError => e
- puts "1LOAD ERROR: #{required_file}: #{e.message}"
if dep.autorequire.nil? && dep.name.include?('-')
begin
namespaced_file = dep.name.gsub('-', '/')
- puts "REQUIRING: #{namespaced_file}"
Kernel.require namespaced_file
rescue LoadError
REGEXPS.find { |r| r =~ e.message }
- puts "2LOADERROR: #{e.message}"
raise if dep.autorequire || $1.gsub('-', '/') != namespaced_file
end
else
REGEXPS.find { |r| r =~ e.message }
- puts "3LOADERROR: #{e.message}"
raise if dep.autorequire || $1 != required_file
end
end
View
3 spec/runtime/require_spec.rb
@@ -223,7 +223,6 @@ def self.two
load_error_run <<-R, 'no_such_file_omg'
Bundler.require
R
- out.should == 'hi'
err.should == 'ZOMG LOAD ERROR'
end
end
@@ -240,7 +239,6 @@ def self.two
load_error_run <<-R, 'no_such_file_x'
Bundler.require
R
- out.should == 'hi'
err.should == 'ZOMG LOAD ERROR'
end
@@ -257,7 +255,6 @@ def self.two
load_error_run <<-R, 'inotify_init'
Bundler.require
R
- out.should == 'hi'
err.should == 'ZOMG FUNCTION NOT FOUND'
end
end
View
1 spec/support/helpers.rb
@@ -45,7 +45,6 @@ def load_error_run(ruby, name, *args)
#{ruby}
rescue LoadError => e
$stderr.puts "ZOMG LOAD ERROR" if e.message.include?("-- #{name}")
- # $stderr.puts e.message
$stderr.puts "ZOMG FUNCTION NOT FOUND" if e.message.include?("Function '#{name}' not found in")
end
RUBY

0 comments on commit 9bcf03b

Please sign in to comment.
Something went wrong with that request. Please try again.