RubyGems Navigation menu

environment_information 1.0.65

This small class will store (and if requested, also output) Environment information, such as the GCC Version in use, the Kernel, which Ruby Version is used, what the Host CPU Model is (on Linux), GTK and GLIB version, and so forth. Sometimes it will try to query pkg-config .pc files, sometimes it will try to infer the version from the .so file, and sometimes it will try to run the system command with a -V or -v flag. It will store all of this information in the instance_variable @_string, which can be accessed through a reader-method such as .main_string? .string? or .string (all are equivalent there) and used in other scripts. You can also display some additional information, such as GTK, Glib, Atk and Pango Versions, by passing in "f" or "full" on the commandline. See the help section of this script, which you can invoke by passing "help" or "--help" as argument to it. Since May 2013 we will try to feedback the CPU Module in use. An openssl-flag was added as of Nov 2013. We now have a dependency on the Colours module, as of Nov 2013. Colours should be optional though. Version 1.0.15 added option to display the make version in use. Version 1.0.17 added optional Cairo display when showcasing ALL. Version 1.0.20 made asciitable optional. There are essentially two basic and recommended ways how to use this class: (1) From the commandline, just call it directly and pass it specific commands (optionally). For instance, invoke the script with the argument "ALL" and we will show all information. This is personally my favourite way how to invoke thi class. (2) Embedded somewhere else, i.e. for use in a .cgi page. An example for the latter follows: _ = _.set_n_tokens 58 _.disable_colours _.be_silent _.dont_show_ruby_stuff Do note that this also works: EnvironmentInformation[] The "binary" is called envi. So you can invoke the script by typing envi from the commandline. If you have specific suggestions to make this gem more useful for others, please drop me an email at: Thank you.


  1. 1.0.65 - March 21, 2015 (18 KB)
  2. 1.0.64 - March 16, 2015 (17.5 KB)
  3. 1.0.63 - February 19, 2015 (17 KB)
  4. 1.0.61 - November 23, 2014 (15 KB)
Show all versions (60 total)

Runtime Dependencies:


  • Robert A. Heiler



Sha 256 checksum:


Total downloads 29,143

For this version 111

Show all versions (60 total)

Required Ruby Version: >= 0



= Copy to clipboard Copied!

= Copy to clipboard Copied!