In Files

  • bundler/rubygems_ext.rb
  • bundler/rubygems_gem_installer.rb
  • bundler/rubygems_integration.rb
  • bundler/runtime.rb
  • bundler/self_manager.rb
  • bundler/setup.rb
  • bundler/shared_helpers.rb
  • bundler/source.rb
  • bundler/source/git.rb
  • bundler/source/git/git_proxy.rb
  • bundler/source/metadata.rb
  • bundler/source/path.rb
  • bundler/source/rubygems.rb
  • bundler/spec_set.rb
  • bundler/stub_specification.rb
  • bundler/vendored_persistent.rb
  • bundler/version_ranges.rb

Class/Module Index [+]

Quicksearch

Gem

Public Instance Methods

glob_files_in_dir(glob, base_path) click to toggle source
 
               # File bundler/rubygems_ext.rb, line 222
def glob_files_in_dir(glob, base_path)
  if RUBY_VERSION >= "2.5"
    Dir.glob(glob, :base => base_path).map! {|f| File.expand_path(f, base_path) }
  else
    Dir.glob(File.join(base_path.to_s.gsub(/[\[\]]/, '\\\\\\&'), glob)).map! {|f| File.expand_path(f) }
  end
end
            
match_gem?(platform, gem_name) click to toggle source
 
               # File bundler/rubygems_ext.rb, line 199
def match_gem?(platform, gem_name)
  match_platforms?(platform, Gem.platforms)
end
            
match_platforms?(platform, platforms) click to toggle source
 
               # File bundler/rubygems_ext.rb, line 205
def match_platforms?(platform, platforms)
  platforms.any? do |local_platform|
    platform.nil? ||
      local_platform == platform ||
      (local_platform != Gem::Platform::RUBY && local_platform =~ platform)
  end
end
            
match_spec?(spec) click to toggle source
 
               # File bundler/rubygems_ext.rb, line 195
def match_spec?(spec)
  match_gem?(spec.platform, spec.name)
end