Class: Bundler::RubygemsIntegration::Modern

Inherits:
Bundler::RubygemsIntegration show all
Defined in:
lib/bundler/rubygems_integration.rb

Overview

Rubygems 1.8.5

Direct Known Subclasses

AlmostModern

Instance Method Summary collapse

Methods inherited from Bundler::RubygemsIntegration

#backport_segment_generation, #bin_path, #clear_paths, #configuration, #download_gem, #fetch_specs, #gem_bindir, #gem_dir, #gem_path, #inflate, #initialize, #loaded_specs, #mark_loaded, #marshal_spec_dir, #path, #platforms, #preserve_paths, #read_binary, #replace_bin_path, #replace_entrypoints, #replace_gem, #replace_refresh, #reverse_rubygems_kernel_mixin, #ruby_engine, #sources, #sources=, #spec_from_gem, #stub_source_index137, #stub_source_index170, #ui=, #user_home, #with_build_args

Constructor Details

This class inherits a constructor from Bundler::RubygemsIntegration

Instance Method Details

#all_specsObject



311
312
313
# File 'lib/bundler/rubygems_integration.rb', line 311

def all_specs
  Gem::Specification.to_a
end

#find_name(name) ⇒ Object



315
316
317
# File 'lib/bundler/rubygems_integration.rb', line 315

def find_name(name)
  Gem::Specification.find_all_by_name name
end

#stub_rubygems(specs) ⇒ Object



301
302
303
304
305
306
307
308
309
# File 'lib/bundler/rubygems_integration.rb', line 301

def stub_rubygems(specs)
  Gem::Specification.all = specs

  Gem.post_reset {
    Gem::Specification.all = specs
  }

  stub_source_index170(specs)
end