Sha256: 87a120091e91578c01071c631177a4ba460e5b5c36081da64626028ee4e263d8

Contents?: true

Size: 529 Bytes

Versions: 2

Compression:

Stored size: 529 Bytes

Contents

# This is just a stub file that requires the appropriate version
# depending on which platform you're on.
require 'rbconfig'

module Sys
  class CPU
    # The version of the sys-cpu gem.
    VERSION = '0.7.2'
  end
end

case RbConfig::CONFIG['host_os']
  when /linux/i
    require File.join(File.dirname(__FILE__), 'linux', 'sys', 'cpu')
  when /windows|mswin|mingw|cygwin|dos/i
    require File.join(File.dirname(__FILE__), 'windows', 'sys', 'cpu')
  else
    require File.join(File.dirname(__FILE__), 'unix', 'sys', 'cpu')
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
cpuinfo-1.0.0 lib/cp/cpu.rb
sys-cpu-0.7.2 lib/sys/cpu.rb