Module: NativeExtFetcher::Platform

Defined in:
lib/native_ext_fetcher/platform.rb

Constant Summary collapse

HOST_OS =
determine_host_os.freeze
HOST_ARCH =
determine_host_arch.freeze
HOST_DLEXT =
determine_host_dlext.freeze

Class Method Summary collapse

Class Method Details

.native_extension_file_extObject



60
61
62
# File 'lib/native_ext_fetcher/platform.rb', line 60

def self.native_extension_file_ext
  ".#{HOST_DLEXT}"
end

.native_extension_file_postfixObject



56
57
58
# File 'lib/native_ext_fetcher/platform.rb', line 56

def self.native_extension_file_postfix
  "-#{HOST_OS}-#{HOST_ARCH}.#{HOST_DLEXT}"
end

.native_extension_keyObject



52
53
54
# File 'lib/native_ext_fetcher/platform.rb', line 52

def self.native_extension_key
  :"#{HOST_OS}_#{HOST_ARCH}"
end

.native_extension_tupleObject



64
65
66
# File 'lib/native_ext_fetcher/platform.rb', line 64

def self.native_extension_tuple
  [HOST_OS, HOST_ARCH]
end