lib/bundler/rubygems_integration.rb in bundler-1.8.9 vs lib/bundler/rubygems_integration.rb in bundler-1.9.0.pre
- old
+ new
@@ -159,18 +159,16 @@
return spec_list
end
def with_build_args(args)
- ext_lock.synchronize do
- old_args = self.build_args
- begin
- self.build_args = args
- yield
- ensure
- self.build_args = old_args
- end
+ old_args = self.build_args
+ begin
+ self.build_args = args
+ yield
+ ensure
+ self.build_args = old_args
end
end
def gem_from_path(path, policy = nil)
require 'rubygems/format'
@@ -582,15 +580,9 @@
end
end
def ext_lock
Gem::Ext::Builder::CHDIR_MONITOR
- end
-
- def find_name(name)
- Gem::Specification.stubs.find_all do |spec|
- spec.name == name
- end.map(&:to_spec)
end
end
end