1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Remove dead code

https://github.com/rubygems/rubygems/commit/9978b787a0
This commit is contained in:
David Rodríguez 2021-08-07 20:15:18 +02:00 committed by Hiroshi SHIBATA
parent 4bc87cb1fb
commit f315be2615
Notes: git 2021-08-31 19:06:52 +09:00
2 changed files with 0 additions and 37 deletions

View file

@ -1,29 +0,0 @@
# frozen_string_literal: true
module Bundler
class Gemdeps
def initialize(runtime)
@runtime = runtime
end
def requested_specs
@runtime.requested_specs
end
def specs
@runtime.specs
end
def dependencies
@runtime.dependencies
end
def current_dependencies
@runtime.current_dependencies
end
def requires
@runtime.requires
end
end
end

View file

@ -600,14 +600,6 @@ module Bundler
Gem::Specification.send(:default_stubs, "*.gemspec")
end
end
def use_gemdeps(gemfile)
ENV["BUNDLE_GEMFILE"] ||= File.expand_path(gemfile)
require_relative "gemdeps"
runtime = Bundler.setup
activated_spec_names = runtime.requested_specs.map(&:to_spec).sort_by(&:name)
[Gemdeps.new(runtime), activated_spec_names]
end
end
def self.rubygems