In Files

  • bundler/capistrano.rb
  • bundler/cli.rb
  • bundler/cli/add.rb
  • bundler/cli/info.rb
  • bundler/cli/inject.rb
  • bundler/cli/lock.rb
  • bundler/cli/outdated.rb
  • bundler/cli/pristine.rb
  • bundler/cli/show.rb
  • bundler/compact_index_client/gem_parser.rb
  • bundler/current_ruby.rb
  • bundler/definition.rb
  • bundler/dep_proxy.rb
  • bundler/deprecate.rb
  • bundler/dsl.rb
  • bundler/endpoint_specification.rb
  • bundler/env.rb
  • bundler/feature_flag.rb
  • bundler/fetcher.rb
  • bundler/friendly_errors.rb
  • bundler/gem_helper.rb
  • bundler/gem_helpers.rb
  • bundler/graph.rb
  • bundler/index.rb
  • bundler/injector.rb
  • bundler/installer.rb
  • bundler/installer/parallel_installer.rb
  • bundler/installer/standalone.rb
  • bundler/lazy_specification.rb
  • bundler/lockfile_parser.rb
  • bundler/match_platform.rb
  • bundler/remote_specification.rb
  • bundler/resolver.rb
  • bundler/resolver/spec_group.rb
  • bundler/ruby_version.rb
  • 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 230
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 207
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 213
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 203
def match_spec?(spec)
  match_gem?(spec.platform, spec.name)
end
            
There is an updated format of the API docs for this version here.