lib/carbonado.rb
def installed_stubs
    map_stubs(Gem::Specification.dirs, "*.gemspec") do |path, base_dir, gems_dir|
      Gem::StubSpecification.gemspec_stub(path, base_dir, gems_dir)
    end
  end
# This is a copy of the implementation of Gem::Specification.installed_stubs, however that
# method is private, so it may change in subsequent versions of rubygems. Therefore we'll
# implement it here just in case.
This is a copy of the implementation of Gem::Specification.installed_stubs, however that
method is private, so it may change in subsequent versions of rubygems. Therefore we'll
implement it here just in case.
This is a copy of the implementation of Gem :: Specification . installed_stubs however that method is private so it may change in subsequent versions of rubygems . Therefore we ' ll implement it here just in case .
def installed_stubs
    map_stubs(Gem::Specification.dirs, "*.gemspec") do |path, base_dir, gems_dir|
      Gem::StubSpecification.gemspec_stub(path, base_dir, gems_dir)
    end
  end
def installed_stubs map_stubs ( Gem :: Specification . dirs , "*.gemspec" ) do | path , base_dir , gems_dir | Gem :: StubSpecification . gemspec_stub ( path , base_dir , gems_dir ) end end
This is a copy of the implementation of Gem::Specification.installed_stubs, however that
method is private, so it may change in subsequent versions of rubygems.
This is a copy of the implementation of Gem :: Specification . installed_stubs however that method is private so it may change in subsequent versions of rubygems .