sys-uname 1.0.3

The sys-uname library provides an interface for gathering information about your current platform. The library is named after the Unix 'uname' command but also works on MS Windows. Available information includes OS name, OS version, system name and so on. Additional information is available for certain platforms.


Platform: Rubygems

Language: Ruby

License: Artistic-2.0


View on registry:


Direct download link:

Install: gem install sys-uname -v 1.0.3

= Description
  A Ruby interface for getting operating system information. The name comes
  from the Unix 'uname' command, but this library works on MS Windows as well.

= Prerequisites
  ffi 1.0 or later

= Installation
  gem install sys-uname

= Synopsis
  require 'sys/uname' # require 'sys-uname' works, too

  # You now have Sys::Uname and Sys::Platform classes available.
  # Get full information about your system
  p Sys::Uname.uname

  # Check individual platform details about your system
  p Sys::Platform.linux? # => true
  p Sys::Platform::ARCH  # => :x86_64
= Solaris Notes
  Users on SunOS get several extra methods: architecture, platform,
  hw_serial, hw_provider, srpc_domain, isa_list, and dhcp_cache.

= BSD flavors, including OS X
  Users on BSD platforms get the extra Uname.model method.

= HP-UX Notes
  HP-UX users get the extra Uname.id_number method. This is actually a
  String, not a Fixnum, because that's how it's defined in the utsname

= MS Windows Notes
  The C version for Windows has been completely scrapped in favor of an OLE
  plus WMI approach. It is pure Ruby. Please see the MSDN documentation for
  the Win32_OperatingSystem class for a complete list of what each of the
  UnameStruct members mean.

= The Platform Class
  This was added both as a nicer way to check simple information about your
  system, and as a replacement for the old 'Platform' gem which is no longer

= Future Plans
  I may dump the "Uname" portion of this library, and rename the project
  to just sys-platform.

= Documentation
  For more details, see the 'uname.txt' file under the 'doc' directory. 


1.0.3 October 31, 2016
1.0.2 September 03, 2015
1.0.1 August 19, 2015
1.0.0 August 19, 2015
0.9.2 May 01, 2013
0.9.1 January 04, 2013
0.9.0 December 08, 2011
0.8.6 September 02, 2011
0.8.5 December 12, 2010
0.8.4 January 29, 2010
See all 17 releases

Project Statistics

SourceRank 18
Dependencies 1
Dependent projects 37
Dependent repositories 610
Total releases 17
Latest release
First release
Stars 17
Forks 2
Watchers 1
Contributors 2
Repo Size: 113 KB

Top Contributors See all

Daniel Berger Sou.K

Something wrong with this page? Make a suggestion

Export .ABOUT file for this library

Last synced: 2016-11-17 18:27:35 UTC

Login to resync this project