Class: Gem::BasicSpecification

Inherits:
Object
  • Object
show all
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

Instance Method Details

#extensions_dirObject



384
385
386
387
# File 'lib/bundler/rubygems_ext.rb', line 384

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)


393
394
395
396
397
# File 'lib/bundler/rubygems_ext.rb', line 393

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

  @ignored = missing_extensions?
end