Sha256: 37a1ac4aad33ed10b17fc7574a2b1350c695960396a1cbfff52e68ab68fec6e1
Contents?: true
Size: 605 Bytes
Versions: 13
Compression:
Stored size: 605 Bytes
Contents
# frozen_string_literal: true module EasyPost::InternalUtilities::System def self.os_name case RUBY_PLATFORM when /linux/i 'Linux' when /darwin/i 'Darwin' when /cygwin|mswin|mingw|bccwin|wince|emx/i 'Windows' else 'Unknown' end end def self.os_version Gem::Platform.local.version end def self.os_arch Gem::Platform.local.cpu end def self.ruby_version RUBY_VERSION end def self.ruby_patchlevel RUBY_PATCHLEVEL end def self.lib_version File.open(File.expand_path('../../VERSION', __dir__)).read.strip end end
Version data entries
13 entries across 13 versions & 1 rubygems