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.

Homepage: http://github.com/djberg96/sys-uname

Platform: Rubygems

Language: Ruby

License: Artistic-2.0

Repository: https://github.com/djberg96/sys-uname

View on registry: https://rubygems.org/gems/sys-uname/versions/1.0.3

Documentation: http://www.rubydoc.info/gems/sys-uname/1.0.3

Direct download link: https://rubygems.org/downloads/sys-uname-1.0.3.gem

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
  struct.

= 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
  maintained.

= 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. 

Releases

  • 1.0.3 - October 31, 2016 19:37
  • 1.0.2 - September 03, 2015 14:38
  • 1.0.1 - August 19, 2015 23:04
  • 1.0.0 - August 19, 2015 17:28
  • 0.9.2 - May 01, 2013 14:20
  • 0.9.1 - January 04, 2013 03:06
  • 0.9.0 - December 08, 2011 19:19
  • 0.8.6 - September 02, 2011 14:55
  • 0.8.5 - December 12, 2010 01:40
  • 0.8.4 - January 29, 2010 23:58
See all 17 releases

Project Statistics

SourceRank 16
Dependencies 1
Dependent projects 37
Dependent repositories 559
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