Class: Bundler::RubygemsIntegration::Legacy
Overview
Constant Summary
EXT_LOCK
Instance Method Summary
collapse
#backport_base_dir, #backport_cache_file, #backport_segment_generation, #backport_spec_file, #backport_yaml_initialize, #bin_path, #build, #build_args, #build_args=, #build_gem, #clear_paths, #config_map, #configuration, #download_gem, #ext_lock, #fetch_all_remote_specs, #fetch_prerelease_specs, #fetch_specs, #gem_bindir, #gem_cache, #gem_dir, #gem_from_path, #gem_path, #inflate, #load_path_insert_index, #loaded_gem_paths, #loaded_specs, #mark_loaded, #marshal_spec_dir, #path, #platforms, #preserve_paths, #provides?, provides?, #read_binary, #redefine_method, #replace_bin_path, #replace_entrypoints, #replace_gem, #replace_refresh, #repository_subdirectories, #reverse_rubygems_kernel_mixin, #ruby_engine, #security_policies, #security_policy_keys, #set_installed_by_version, #sources, #sources=, #spec_cache_dirs, #spec_from_gem, #spec_missing_extensions?, #stub_source_index, #ui=, #user_home, version, #version, #with_build_args
Constructor Details
#initialize ⇒ Legacy
Returns a new instance of Legacy.
473
474
475
476
477
478
479
|
# File 'lib/bundler/rubygems_integration.rb', line 473
def initialize
super
backport_base_dir
backport_cache_file
backport_spec_file
backport_yaml_initialize
end
|
Instance Method Details
#all_specs ⇒ Object
492
493
494
|
# File 'lib/bundler/rubygems_integration.rb', line 492
def all_specs
Gem.source_index.gems.values
end
|
#find_name(name) ⇒ Object
496
497
498
|
# File 'lib/bundler/rubygems_integration.rb', line 496
def find_name(name)
Gem.source_index.find_name(name)
end
|
#stub_rubygems(specs) ⇒ Object
481
482
483
484
485
486
487
488
489
490
|
# File 'lib/bundler/rubygems_integration.rb', line 481
def stub_rubygems(specs)
source_index_class = (class << Gem::SourceIndex; self; end)
source_index_class.send(:define_method, :from_gems_in) do |*args|
source_index = Gem::SourceIndex.new
source_index.spec_dirs = *args
source_index.add_specs(*specs)
source_index
end
end
|
#validate(spec) ⇒ Object
500
501
502
503
504
|
# File 'lib/bundler/rubygems_integration.rb', line 500
def validate(spec)
end
|