RubyGems.org

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: _ = EnvironmentInformation.new(false) _.set_n_tokens 58 _.disable_colours _.be_silent _.dont_show_ruby_stuff _.run 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
Authors

Robert A. Heiler

18,738 total downloads 144 for this version
Owners

A14d1bca90d7ebeda50dca99aab381b9

Licenses

GPL 2

Gemfile
gem 'environment_information', '~> 1.0.60'
Versions
  1. 1.0.60 September 8, 2014 (14 KB)
  2. 1.0.59 September 6, 2014 (14 KB)
  3. 1.0.58 September 6, 2014 (14 KB)
  4. 1.0.56 September 2, 2014 (13.5 KB)
  5. 1.0.55 August 30, 2014 (13.5 KB)
Show all versions (56 total)
Ruby Dependency
  1. >= 0