lib/bundler/definition.rb in bundler-0.9.11 vs lib/bundler/definition.rb in bundler-0.9.12
- old
+ new
@@ -30,23 +30,9 @@
def initialize(dependencies, sources)
@dependencies = dependencies
@sources = sources
end
- def local_index
- @local_index ||= begin
- index = Index.new
-
- sources.each do |source|
- next unless source.respond_to?(:local_specs)
- index = source.local_specs.merge(index)
- end
-
- index = Index.from_installed_gems.merge(index)
- Index.from_cached_specs("#{Bundler.bundle_path}/cache").merge(index)
- end
- end
-
def groups
dependencies.map { |d| d.groups }.flatten.uniq
end
class Locked < Definition