RubyGems Navigation menu

environment_information 1.0.79

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 this class. (2) Embedded somewhere else, i.e. for use in a .cgi page. An example for the latter follows: _ = EnvironmentInformation.new(false) _.set_n_tokens 58 _.disable_colours _.be_silent _.dont_show_ruby_stuff _.run 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: shevegen@gmail.com. Thank you.

Versions:

  1. 1.0.79 - June 16, 2015 (20 KB)
  2. 1.0.78 - June 9, 2015 (20 KB)
  3. 1.0.77 - June 9, 2015 (20 KB)
  4. 1.0.76 - June 7, 2015 (20 KB)
  5. 1.0.75 - June 2, 2015 (19.5 KB)
Show all versions (73 total)

Runtime Dependencies:

Authors:

  • Robert A. Heiler

Owners:

A14d1bca90d7ebeda50dca99aab381b9

Sha 256 checksum:

debc3def6ef3386736a9534078bbb03b46ea54dcbaa73b0b6792e3071994c4a7

Total downloads 31,478

For this version 130

Show all versions (73 total)

Required Ruby Version: >= 0

Licenses:

GPL 2

Gemfile:
= Copy to clipboard Copied!

install:
= Copy to clipboard Copied!

Links: