TruffleRuby >= 24 defines REUSE_AS_BINARY_ON_TRUFFLERUBY in defaults/truffleruby. However, TruffleRuby < 24 defines REUSE_AS_BINARY_ON_TRUFFLERUBY directly in its copy of lib/rubygems/platform.rb, so it is not defined if RubyGems is updated (gem update –system). Instead, we define it here in that case, similar to bundler/lib/bundler/rubygems_ext.rb. We must define it here and not in platform.rb because platform.rb is loaded before defaults/truffleruby.

Available list of platforms for targeting Gem installations.

See ‘gem help platform` for information on platform matching.

Constants
No documentation available

A pure-Ruby gem that may use Gem::Specification#extensions to build binary files.

A platform-specific gem that is built for the packaging Ruby’s platform. This will be replaced with Gem::Platform::local.

Attributes

cpu

Read & Write
No documentation available

os

Read & Write
No documentation available
Read & Write
No documentation available
Class Methods
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
Instance Methods

Is other equal to this platform? Two platforms are equal if they have the same CPU, OS and version.

Does other match this platform? Two platforms match if they have the same CPU, or either has a CPU of ‘universal’, they have the same OS, and they have the same version, or either one has no version

Additionally, the platform will match if the local CPU is ‘arm’ and the other CPU starts with “armv” (for generic 32-bit ARM family support).

Of note, this method is not commutative. Indeed the OS ‘linux’ has a special case: the version is the libc name, yet while “no version” stands as a wildcard for a binary gem platform (as for other OSes), for the runtime platform “no version” stands for ‘gnu’. To be able to distinguish these, the method receiver is the gem platform, while the argument is the runtime platform.

Does other match this platform? If other is a String it will be converted to a Gem::Platform first. See === for matching rules.

An alias for ==
No documentation available
No documentation available
No documentation available