This small library, consisting of just one .rb file, will output some information about the environment, i.e. GCC Version, Glibc Version, Ruby Version, Host CPU model and so on. It will store this information in the instance_variable @string, which can be accessed through a reader-method and used in other scripts. There are two basic and recommended ways how to use this class: (1) From the commandline, just call it directly and pass it specific commands (optionally). (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 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" as argument to it. Since April 2013 it will use the module UnifiedColours for colour-related output. Since Nov 2013 we will also feedback openssl information if you pass in the syntax "openssl" to it.

installgem install environment_information

Robert A. Heiler

14,119 total downloads 71 for this version




gem 'environment_information', '~> 1.0.45'
  1. 1.0.45 July 29, 2014 (12.5 KB)
  2. 1.0.44 July 26, 2014 (12.5 KB)
  3. 1.0.43 July 21, 2014 (12.5 KB)
  4. 1.0.42 July 18, 2014 (12 KB)
  5. 1.0.41 July 15, 2014 (12 KB)
Show all versions (43 total)
Ruby Dependency
  1. >= 0