RubyGems Navigation menu

environment_information 1.0.129

The project was rewritten in September 2016. This should provide a more consistent API and result, in particular when you wish to save the information about your computer environment into a .html file. The main class of this project, class EnvironmentInformation, will store, and if requested, also output Environment information. Environment information may be the GCC Version in use, the Kernel in use, which Ruby Version is used, which rubygem version is used, what the Host CPU Model is (on Linux at the least), what the GTK, GLIB and gdk-pixbuf versions are, and so forth. Sometimes this class will try to query .pc files via pkg-config, 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 the gathered information in the instance_variable @dataset. This is normally an Array. If you need a String instead, you can use the method .string? or .stringified, which will give you a String instead (of course you can also convert the Array on your own, the .stringified method exists primarily out of convenience). Additional helper methods exist, such as the a reader-method such as .main_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. A short changelog of some changes follows next: - Since as of May 2013 we will try to feedback the CPU Module in use. - An openssl-flag was added as of Nov 2013. - Version 1.0.15 added an 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. - The October 2015 release added support for diffutils, makeinfo and XZ Utils. Additionally, the project can now make use of Cookbooks if you installed that gem, and then tell us whether we have outdated programs. 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 the following API also works: EnvironmentInformation[] The executable version is is called envi. So you can invoke the script by typing "envi" from the commandline, without the quotes; if you installed it as a gem into a prefix other than /usr, it may be that the bin/ directory resides only in that gem, though. An alias may help in this case. The usage is as follows: envi ALL REALLY_ALL Since this is hard to type, I suggest to alias it. See the menu.rb file for more aliases to that. 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.129 - October 22, 2016 (28.5 KB)
  2. 1.0.127 - October 1, 2016 (28.5 KB)
  3. 1.0.126 - October 1, 2016 (28.5 KB)
  4. 1.0.125 - October 1, 2016 (28.5 KB)
  5. 1.0.123 - October 1, 2016 (28.5 KB)
Show all versions (121 total)

Authors:

  • Robert A. Heiler

Owners:

A14d1bca90d7ebeda50dca99aab381b9

SHA 256 checksum:

58545266c2461f5efd9f63af4020a225f4a550fbbb02170605661fd94155378a

Total downloads 56,960

For this version 196

Gemfile:
= Copy to clipboard Copied!

install:
=

License:

GPL-2.0

Required Ruby Version: >= 2.3.1

Required Rubygems Version: >= 2.6.7

Links: