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, #binstubs_call_gem?, #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, #install_with_build_args, #load_path_insert_index, #load_plugin_files, #load_plugins, #loaded_gem_paths, #loaded_specs, #mark_loaded, #marshal_spec_dir, #method_visibility, #path, #path_separator, #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_default_gem?, #spec_extension_dir, #spec_from_gem, #spec_matches_for_glob, #spec_missing_extensions?, #stub_set_spec, #stub_source_index, #stubs_provide_full_functionality?, #suffix_pattern, #ui=, #undo_replacements, #user_home, version, #version, #with_build_args
Constructor Details
#initialize ⇒ Legacy
Returns a new instance of Legacy.
618
619
620
621
622
623
624
|
# File 'lib/bundler/rubygems_integration.rb', line 618
def initialize
super
backport_base_dir
backport_cache_file
backport_spec_file
backport_yaml_initialize
end
|
Instance Method Details
#all_specs ⇒ Object
637
638
639
|
# File 'lib/bundler/rubygems_integration.rb', line 637
def all_specs
Gem.source_index.gems.values
end
|
#find_name(name) ⇒ Object
641
642
643
|
# File 'lib/bundler/rubygems_integration.rb', line 641
def find_name(name)
Gem.source_index.find_name(name)
end
|
#post_reset_hooks ⇒ Object
651
652
653
|
# File 'lib/bundler/rubygems_integration.rb', line 651
def post_reset_hooks
[]
end
|
#reset ⇒ Object
655
656
|
# File 'lib/bundler/rubygems_integration.rb', line 655
def reset
end
|
#stub_rubygems(specs) ⇒ Object
626
627
628
629
630
631
632
633
634
635
|
# File 'lib/bundler/rubygems_integration.rb', line 626
def stub_rubygems(specs)
source_index_class = (class << Gem::SourceIndex; self; end)
redefine_method(source_index_class, :from_gems_in) do |*args|
Gem::SourceIndex.new.tap do |source_index|
source_index.spec_dirs = *args
source_index.add_specs(*specs)
end
end
end
|
#validate(spec) ⇒ Object
645
646
647
648
649
|
# File 'lib/bundler/rubygems_integration.rb', line 645
def validate(spec)
end
|