module Gem

Public Instance Methods

glob_files_in_dir(glob, base_path) click to toggle source
# File bundler/rubygems_ext.rb, line 369
def glob_files_in_dir(glob, base_path)
  Dir.glob(glob, :base => base_path).map! {|f| File.expand_path(f, base_path) }
end
match_gem?(platform, gem_name) click to toggle source
# File bundler/rubygems_ext.rb, line 317
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 330
def match_platforms?(platform, platforms)
  platforms.any? do |local_platform|
    platform.nil? ||
      local_platform == platform ||
      (local_platform != Gem::Platform::RUBY && platform =~ local_platform)
  end
end
match_spec?(spec) click to toggle source
# File bundler/rubygems_ext.rb, line 313
def match_spec?(spec)
  match_gem?(spec.platform, spec.name)
end