Class: Gem::BasicSpecification

Inherits:
Object
  • Object
show all
Includes:
Bundler::MatchPlatform
Defined in:
lib/bundler/rubygems_ext.rb

Overview

On universal Rubies, resolve the “universal” arch to the real CPU arch, without changing the extension directory.

Constant Summary collapse

ORIGINAL_LOCAL_PLATFORM =
local_platform.to_s.freeze

Instance Method Summary collapse

Methods included from Bundler::MatchPlatform

generic_local_platform_is_ruby?, #installable_on_platform?, select_all_platform_match, select_best_local_platform_match, select_best_platform_match

Instance Method Details

#extensions_dirObject



391
392
393
394
# File 'lib/bundler/rubygems_ext.rb', line 391

def extensions_dir
  @extensions_dir ||=
    Gem.default_ext_dir_for(base_dir) || File.join(base_dir, "extensions", ORIGINAL_LOCAL_PLATFORM, Gem.extension_api_version)
end

#ignored?Boolean

Returns:

  • (Boolean)


400
401
402
403
404
# File 'lib/bundler/rubygems_ext.rb', line 400

def ignored?
  return @ignored unless @ignored.nil?

  @ignored = missing_extensions?
end