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
- .native_extension_file_ext ⇒ Object
- .native_extension_file_postfix ⇒ Object
- .native_extension_key ⇒ Object
- .native_extension_tuple ⇒ Object
Class Method Details
.native_extension_file_ext ⇒ Object
60 61 62 |
# File 'lib/native_ext_fetcher/platform.rb', line 60 def self.native_extension_file_ext ".#{HOST_DLEXT}" end |
.native_extension_file_postfix ⇒ Object
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_key ⇒ Object
52 53 54 |
# File 'lib/native_ext_fetcher/platform.rb', line 52 def self.native_extension_key :"#{HOST_OS}_#{HOST_ARCH}" end |
.native_extension_tuple ⇒ Object
64 65 66 |
# File 'lib/native_ext_fetcher/platform.rb', line 64 def self.native_extension_tuple [HOST_OS, HOST_ARCH] end |