class Bundler::Source::Git
def load_gemspec(file)
def load_gemspec(file) dirname = Pathname.new(file).dirname SharedHelpers.chdir(dirname.to_s) do stub = Gem::StubSpecification.gemspec_stub(file, install_path.parent, install_path.parent) stub.full_gem_path = dirname.expand_path(root).to_s StubSpecification.from_stub(stub) end end