environment_information 1.4.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of environment_information might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/README.md +1287 -0
- data/bin/envi +7 -0
- data/bin/fast_envi +7 -0
- data/doc/README.gen +1044 -0
- data/doc/todo/TODO_FOR_THE_ENVIRONMENT_INFORMATION_PROJECT.md +48 -0
- data/environment_information.gemspec +135 -0
- data/lib/environment_information/base/base.rb +166 -0
- data/lib/environment_information/class/class.rb +2829 -0
- data/lib/environment_information/colours/colours.rb +224 -0
- data/lib/environment_information/colours/sfancy.rb +19 -0
- data/lib/environment_information/colours/simp.rb +19 -0
- data/lib/environment_information/constants/array_tracked_components.rb +210 -0
- data/lib/environment_information/constants/constants.rb +17 -0
- data/lib/environment_information/constants/encoding.rb +21 -0
- data/lib/environment_information/constants/error_line.rb +17 -0
- data/lib/environment_information/constants/file_constants.rb +102 -0
- data/lib/environment_information/constants/misc.rb +86 -0
- data/lib/environment_information/constants/namespace.rb +14 -0
- data/lib/environment_information/constants/newline.rb +16 -0
- data/lib/environment_information/constants/regex.rb +30 -0
- data/lib/environment_information/constants/temp_directory.rb +52 -0
- data/lib/environment_information/gui/gtk2/environment_information.rb +35 -0
- data/lib/environment_information/gui/gtk3/environment_information.rb +34 -0
- data/lib/environment_information/gui/libui/environment_information.rb +74 -0
- data/lib/environment_information/gui/shared_code/environment_information_module.rb +409 -0
- data/lib/environment_information/misc_components/README.md +3 -0
- data/lib/environment_information/misc_components/cflags.rb +36 -0
- data/lib/environment_information/misc_components/cpuinfo.rb +64 -0
- data/lib/environment_information/misc_components/operating_system.rb +54 -0
- data/lib/environment_information/misc_components/operating_system_bit_type.rb +42 -0
- data/lib/environment_information/misc_components/ram.rb +30 -0
- data/lib/environment_information/misc_components/rubygems_installation_directory.rb +54 -0
- data/lib/environment_information/misc_components/screen_resolution.rb +50 -0
- data/lib/environment_information/project/project.rb +27 -0
- data/lib/environment_information/queries/README.md +2 -0
- data/lib/environment_information/queries/complex_version.rb +273 -0
- data/lib/environment_information/queries/pkg_config.rb +125 -0
- data/lib/environment_information/queries/simple_version.rb +217 -0
- data/lib/environment_information/requires/require_asciitable.rb +15 -0
- data/lib/environment_information/requires/require_the_constants.rb +7 -0
- data/lib/environment_information/requires/require_the_environment_information_project.rb +23 -0
- data/lib/environment_information/requires/require_the_individual_misc_components.rb +30 -0
- data/lib/environment_information/requires/require_the_toplevel_methods.rb +22 -0
- data/lib/environment_information/toplevel_methods/autogenerate_all_relevant_methods.rb +152 -0
- data/lib/environment_information/toplevel_methods/cd.rb +16 -0
- data/lib/environment_information/toplevel_methods/e.rb +43 -0
- data/lib/environment_information/toplevel_methods/hash.rb +60 -0
- data/lib/environment_information/toplevel_methods/internet_is_available.rb +30 -0
- data/lib/environment_information/toplevel_methods/is_on_roebe.rb +16 -0
- data/lib/environment_information/toplevel_methods/menu.rb +90 -0
- data/lib/environment_information/toplevel_methods/misc.rb +322 -0
- data/lib/environment_information/toplevel_methods/n_subcommands.rb +31 -0
- data/lib/environment_information/toplevel_methods/prefix_to_use.rb +39 -0
- data/lib/environment_information/toplevel_methods/register_this_component_is_missing.rb +61 -0
- data/lib/environment_information/toplevel_methods/remote_url_of_this_program.rb +45 -0
- data/lib/environment_information/toplevel_methods/replay_from_the_stored_file.rb +84 -0
- data/lib/environment_information/toplevel_methods/return_alias_to.rb +30 -0
- data/lib/environment_information/toplevel_methods/return_pkgconfig_based_programs.rb +28 -0
- data/lib/environment_information/toplevel_methods/return_remote_gtk2_version.rb +54 -0
- data/lib/environment_information/toplevel_methods/return_simple_version_based_programs.rb +28 -0
- data/lib/environment_information/toplevel_methods/return_version_of_this_program.rb +182 -0
- data/lib/environment_information/toplevel_methods/show_all_available_components.rb +192 -0
- data/lib/environment_information/toplevel_methods/write_what_into.rb +24 -0
- data/lib/environment_information/version/version.rb +25 -0
- data/lib/environment_information/www/sinatra_interface.rb +213 -0
- data/lib/environment_information/www/webobject_interface.cgi +29 -0
- data/lib/environment_information/yaml/array_default_programs_on_linux.yml +15 -0
- data/lib/environment_information/yaml/array_lfs_core_programs.yml +37 -0
- data/lib/environment_information/yaml/array_science_cluster.yml +12 -0
- data/lib/environment_information/yaml/array_tracked_non_programs.yml +13 -0
- data/lib/environment_information/yaml/array_tracked_programs.yml +215 -0
- data/lib/environment_information/yaml/array_tracked_xorg_components.yml +37 -0
- data/lib/environment_information/yaml/colours.yml +3 -0
- data/lib/environment_information/yaml/query_to_use_for_the_individual_components.yml +264 -0
- data/lib/environment_information.rb +5 -0
- data/test/testing_environment_information.rb +26 -0
- data/test/testing_missing_components.rb +9 -0
- data/test/testing_prefix_for_the_environment_information_project.rb +20 -0
- metadata +177 -0
@@ -0,0 +1,264 @@
|
|
1
|
+
# =========================================================================== #
|
2
|
+
# === Use this particular query
|
3
|
+
#
|
4
|
+
# This file contains the specific command that is to be used for every
|
5
|
+
# individual component registered in the EnvironmentInformation
|
6
|
+
# project.
|
7
|
+
#
|
8
|
+
# The two main variants are :pkgconfig and :version. :pkgconfig means
|
9
|
+
# that we will use pkg-config .pc files to query the version at hand.
|
10
|
+
# :version means that we will use the --version commandline flag.
|
11
|
+
#
|
12
|
+
# For anything else, we need a special ad-hoc solution, or just
|
13
|
+
# embed the command to run on the very right hand side, in this
|
14
|
+
# file here.
|
15
|
+
#
|
16
|
+
# Entries that are e. g. custom_boost imply a special solution in
|
17
|
+
# the .rb file that does the version-check, as no trivial way
|
18
|
+
# to query the version exists otherwise.
|
19
|
+
#
|
20
|
+
# Note that entries found here may be accessible via some toplevel
|
21
|
+
# code, such as EnvironmentInformation.return_version_of_bash()
|
22
|
+
# and similar variants.
|
23
|
+
# =========================================================================== #
|
24
|
+
# x = YAML.load_file(EnvironmentInformation::FILE_QUERY_TO_USE_FOR_THE_INDIVIDUAL_COMPONENTS)
|
25
|
+
# =========================================================================== #
|
26
|
+
|
27
|
+
!ruby/symbol atk: !ruby/symbol pkgconfig
|
28
|
+
!ruby/symbol automake: !ruby/symbol version
|
29
|
+
!ruby/symbol binutils: !ruby/symbol ld -v
|
30
|
+
!ruby/symbol babl: !ruby/symbol pkgconfig
|
31
|
+
!ruby/symbol bash: !ruby/symbol version
|
32
|
+
!ruby/symbol bison: !ruby/symbol version
|
33
|
+
!ruby/symbol boost: !ruby/symbol custom_boost
|
34
|
+
!ruby/symbol bubblewrap: !ruby/symbol bwrap --version
|
35
|
+
!ruby/symbol busybox: !ruby/symbol custom_busybox
|
36
|
+
!ruby/symbol bzip2: !ruby/symbol bzip2recover --version
|
37
|
+
!ruby/symbol cairo: !ruby/symbol pkgconfig
|
38
|
+
!ruby/symbol ccache: !ruby/symbol version
|
39
|
+
!ruby/symbol check: !ruby/symbol pkgconfig
|
40
|
+
!ruby/symbol clang: !ruby/symbol version
|
41
|
+
!ruby/symbol clutter: !ruby/symbol pkg-config --modversion clutter-1.0
|
42
|
+
!ruby/symbol cmake: !ruby/symbol version
|
43
|
+
!ruby/symbol colord: !ruby/symbol pkgconfig
|
44
|
+
!ruby/symbol coreutils: !ruby/symbol stat --version
|
45
|
+
!ruby/symbol curl: !ruby/symbol pkg-config --modversion libcurl
|
46
|
+
!ruby/symbol dbus: !ruby/symbol pkg-config --modversion dbus-1
|
47
|
+
!ruby/symbol dhcpcd: !ruby/symbol version
|
48
|
+
!ruby/symbol diffutils: !ruby/symbol cmp --version
|
49
|
+
!ruby/symbol elfutils: !ruby/symbol pkg-config --modversion libelf
|
50
|
+
!ruby/symbol emacs: !ruby/symbol version
|
51
|
+
!ruby/symbol enchant: !ruby/symbol pkg-config --modversion enchant-2
|
52
|
+
!ruby/symbol ethtool: !ruby/symbol version
|
53
|
+
!ruby/symbol eudev: !ruby/symbol pkg-config --modversion libudev
|
54
|
+
!ruby/symbol evince: !ruby/symbol pkg-config --modversion evince-view-3.0
|
55
|
+
!ruby/symbol exempi: !ruby/symbol pkg-config --modversion exempi-2.0
|
56
|
+
!ruby/symbol expat: !ruby/symbol pkgconfig
|
57
|
+
!ruby/symbol ffmpeg: !ruby/symbol ffmpeg -version
|
58
|
+
!ruby/symbol fftw: !ruby/symbol pkg-config --modversion fftw3
|
59
|
+
!ruby/symbol file: !ruby/symbol version
|
60
|
+
!ruby/symbol findutils: !ruby/symbol find --version
|
61
|
+
!ruby/symbol flac: !ruby/symbol pkgconfig
|
62
|
+
!ruby/symbol flatpak: !ruby/symbol version
|
63
|
+
!ruby/symbol flex: !ruby/symbol version
|
64
|
+
!ruby/symbol fluidsynth: !ruby/symbol pkgconfig
|
65
|
+
!ruby/symbol fontconfig: !ruby/symbol pkgconfig
|
66
|
+
!ruby/symbol freeipmi: !ruby/symbol pkg-config --modversion libfreeipmi
|
67
|
+
!ruby/symbol freetype: !ruby/symbol pkg-config --modversion freetype2
|
68
|
+
!ruby/symbol fribidi: !ruby/symbol pkgconfig
|
69
|
+
!ruby/symbol gawk: !ruby/symbol version
|
70
|
+
!ruby/symbol gc: !ruby/symbol pkg-config --modversion bdw-gc
|
71
|
+
!ruby/symbol gcc: !ruby/symbol version
|
72
|
+
!ruby/symbol gcr: !ruby/symbol pkg-config --modversion gcr-3
|
73
|
+
!ruby/symbol gdb: !ruby/symbol gdbserver --version
|
74
|
+
!ruby/symbol gdkpixbuf: !ruby/symbol pkg-config --modversion gdk-pixbuf-2.0
|
75
|
+
!ruby/symbol gegl: !ruby/symbol pkg-config --modversion gegl-0.4
|
76
|
+
!ruby/symbol geocodeglib: !ruby/symbol pkg-config --modversion geocode-glib-1.0
|
77
|
+
!ruby/symbol gettext: !ruby/symbol version
|
78
|
+
!ruby/symbol ghostscript: !ruby/symbol gs --version
|
79
|
+
!ruby/symbol git: !ruby/symbol version
|
80
|
+
!ruby/symbol gimp: !ruby/symbol version
|
81
|
+
!ruby/symbol gjs: !ruby/symbol pkg-config --modversion gjs-1.0
|
82
|
+
!ruby/symbol glib: !ruby/symbol pkg-config --modversion glib-2.0
|
83
|
+
!ruby/symbol glibc: !ruby/symbol ldd --version
|
84
|
+
!ruby/symbol gmime: !ruby/symbol pkg-config --modversion gmime-3.0
|
85
|
+
!ruby/symbol gmp: !ruby/symbol pkgconfig
|
86
|
+
!ruby/symbol gnupg: !ruby/symbol gpg --version
|
87
|
+
!ruby/symbol gnuplot: !ruby/symbol version
|
88
|
+
!ruby/symbol gnutls: !ruby/symbol pkgconfig
|
89
|
+
!ruby/symbol gperf: !ruby/symbol version
|
90
|
+
!ruby/symbol graphviz: !ruby/symbol dot -V
|
91
|
+
!ruby/symbol grep: !ruby/symbol version
|
92
|
+
!ruby/symbol groff: !ruby/symbol version
|
93
|
+
!ruby/symbol gsettingsdesktopschemas: !ruby/symbol pkg-config --modversion gsettings-desktop-schemas
|
94
|
+
!ruby/symbol gsl: !ruby/symbol pkgconfig
|
95
|
+
!ruby/symbol gtk2: !ruby/symbol pkg-config --modversion gtk+-2.0
|
96
|
+
!ruby/symbol gtk3: !ruby/symbol pkg-config --modversion gtk+-3.0
|
97
|
+
!ruby/symbol guile: !ruby/symbol pkg-config --modversion guile-3.0
|
98
|
+
!ruby/symbol gupnp: !ruby/symbol pkg-config --modversion gupnp-1.6
|
99
|
+
!ruby/symbol gzip: !ruby/symbol version
|
100
|
+
!ruby/symbol harfbuzz: !ruby/symbol pkgconfig
|
101
|
+
!ruby/symbol ibus: !ruby/symbol pkg-config --modversion ibus-1.0
|
102
|
+
!ruby/symbol icewm: !ruby/symbol version
|
103
|
+
!ruby/symbol icu4c: !ruby/symbol pkg-config --modversion icu-io
|
104
|
+
!ruby/symbol imagemagick: !ruby/symbol magick --version
|
105
|
+
!ruby/symbol intltool: !ruby/symbol intltoolize --version
|
106
|
+
!ruby/symbol isl: !ruby/symbol pkgconfig
|
107
|
+
!ruby/symbol jasper: !ruby/symbol pkgconfig
|
108
|
+
!ruby/symbol java: !ruby/symbol java -version
|
109
|
+
!ruby/symbol kde_frameworks: !ruby/symbol kf5-config --version
|
110
|
+
!ruby/symbol kmod: !ruby/symbol pkg-config --modversion libkmod
|
111
|
+
!ruby/symbol krb5: !ruby/symbol pkgconfig
|
112
|
+
!ruby/symbol krita: !ruby/symbol version
|
113
|
+
!ruby/symbol lftp: !ruby/symbol version
|
114
|
+
!ruby/symbol libarchive: !ruby/symbol pkgconfig
|
115
|
+
!ruby/symbol libassuan: !ruby/symbol pkgconfig
|
116
|
+
!ruby/symbol libbytesize: !ruby/symbol pkg-config --modversion bytesize
|
117
|
+
!ruby/symbol libdazzle: !ruby/symbol pkg-config --modversion libdazzle-1.0
|
118
|
+
!ruby/symbol libdrm: !ruby/symbol pkgconfig
|
119
|
+
!ruby/symbol libepoxy: !ruby/symbol pkg-config --modversion epoxy
|
120
|
+
!ruby/symbol libevdev: !ruby/symbol pkgconfig
|
121
|
+
!ruby/symbol libgdata: !ruby/symbol pkgconfig
|
122
|
+
!ruby/symbol libgee: !ruby/symbol pkg-config --modversion gee-0.8
|
123
|
+
!ruby/symbol libgpgerror: !ruby/symbol pkg-config --modversion gpg-error
|
124
|
+
!ruby/symbol libgsf: !ruby/symbol pkg-config --modversion libgsf-1
|
125
|
+
!ruby/symbol libgtop: !ruby/symbol pkg-config --modversion libgtop-2.0
|
126
|
+
!ruby/symbol libgusb: !ruby/symbol pkg-config --modversion gusb
|
127
|
+
!ruby/symbol libhandy: !ruby/symbol pkg-config --modversion libhandy-1
|
128
|
+
!ruby/symbol libical: !ruby/symbol pkgconfig
|
129
|
+
!ruby/symbol libjpegturbo: !ruby/symbol pkg-config --modversion libturbojpeg
|
130
|
+
!ruby/symbol libmbim: !ruby/symbol pkg-config --modversion mbim-glib
|
131
|
+
!ruby/symbol libpeas: !ruby/symbol pkg-config --modversion libpeas-1.0
|
132
|
+
!ruby/symbol libpsl: !ruby/symbol pkgconfig
|
133
|
+
!ruby/symbol libqmi: !ruby/symbol pkg-config --modversion qmi-glib
|
134
|
+
!ruby/symbol librsvg: !ruby/symbol pkg-config --modversion librsvg-2.0
|
135
|
+
!ruby/symbol libsamplerate: !ruby/symbol pkg-config --modversion samplerate
|
136
|
+
!ruby/symbol libseccomp: !ruby/symbol pkgconfig
|
137
|
+
!ruby/symbol libsecret: !ruby/symbol pkg-config --modversion libsecret-1
|
138
|
+
!ruby/symbol libsndfile: !ruby/symbol pkg-config --modversion sndfile
|
139
|
+
!ruby/symbol libtasn1: !ruby/symbol pkgconfig
|
140
|
+
!ruby/symbol libtool: !ruby/symbol version
|
141
|
+
!ruby/symbol libunwind: !ruby/symbol pkgconfig
|
142
|
+
!ruby/symbol libuv: !ruby/symbol pkgconfig
|
143
|
+
!ruby/symbol libva: !ruby/symbol pkgconfig
|
144
|
+
!ruby/symbol libvpx: !ruby/symbol pkg-config --modversion vpx
|
145
|
+
!ruby/symbol libwebp: !ruby/symbol pkgconfig
|
146
|
+
!ruby/symbol libwpe: !ruby/symbol pkg-config --modversion wpe-1.0
|
147
|
+
!ruby/symbol libzip: !ruby/symbol pkgconfig
|
148
|
+
!ruby/symbol linux: !ruby/symbol uname -a
|
149
|
+
!ruby/symbol llvm: !ruby/symbol llvm-config --version
|
150
|
+
!ruby/symbol lynx: !ruby/symbol version
|
151
|
+
!ruby/symbol m4: !ruby/symbol version
|
152
|
+
!ruby/symbol make: !ruby/symbol version
|
153
|
+
!ruby/symbol mc: !ruby/symbol version
|
154
|
+
!ruby/symbol mlt: !ruby/symbol pkg-config --modversion mlt++-7
|
155
|
+
!ruby/symbol mozjs: !ruby/symbol pkg-config --modversion mozjs-60
|
156
|
+
!ruby/symbol mpc: !ruby/symbol custom_mpc
|
157
|
+
!ruby/symbol mpfr: !ruby/symbol pkgconfig
|
158
|
+
!ruby/symbol mtools: !ruby/symbol version
|
159
|
+
!ruby/symbol nasm: !ruby/symbol version
|
160
|
+
!ruby/symbol ncurses: !ruby/symbol infocmp -V
|
161
|
+
!ruby/symbol neon: !ruby/symbol pkgconfig
|
162
|
+
!ruby/symbol nettle: !ruby/symbol pkgconfig
|
163
|
+
!ruby/symbol nghttp2: !ruby/symbol pkg-config --modversion libnghttp2
|
164
|
+
!ruby/symbol nginx: !ruby/symbol nginx -v
|
165
|
+
!ruby/symbol ninja: !ruby/symbol version
|
166
|
+
!ruby/symbol node: !ruby/symbol version
|
167
|
+
!ruby/symbol nspr: !ruby/symbol pkgconfig
|
168
|
+
!ruby/symbol nss: !ruby/symbol pkgconfig
|
169
|
+
!ruby/symbol openmpi: !ruby/symbol pkg-config --modversion ompi
|
170
|
+
!ruby/symbol openssl: !ruby/symbol pkgconfig
|
171
|
+
!ruby/symbol opusfile: !ruby/symbol pkgconfig
|
172
|
+
!ruby/symbol pango: !ruby/symbol pkgconfig
|
173
|
+
!ruby/symbol parted: !ruby/symbol pkg-config --modversion libparted
|
174
|
+
!ruby/symbol patch: !ruby/symbol version
|
175
|
+
!ruby/symbol patchelf: !ruby/symbol patchelf --version
|
176
|
+
!ruby/symbol pbbam: !ruby/symbol pkgconfig
|
177
|
+
!ruby/symbol pcre: !ruby/symbol pkg-config --modversion libpcre
|
178
|
+
!ruby/symbol pcre2: !ruby/symbol pkg-config --modversion libpcre2-posix
|
179
|
+
!ruby/symbol perl: !ruby/symbol version
|
180
|
+
!ruby/symbol php: !ruby/symbol version
|
181
|
+
!ruby/symbol pipewire: !ruby/symbol pkg-config --modversion libpipewire-0.3
|
182
|
+
!ruby/symbol pkgconfig: !ruby/symbol pkg-config --version
|
183
|
+
!ruby/symbol plzip: !ruby/symbol version
|
184
|
+
!ruby/symbol poppler: !ruby/symbol pkgconfig
|
185
|
+
!ruby/symbol popt: !ruby/symbol pkgconfig
|
186
|
+
!ruby/symbol python: !ruby/symbol version
|
187
|
+
!ruby/symbol qpdf: !ruby/symbol pkg-config --modversion libqpdf
|
188
|
+
!ruby/symbol qt: !ruby/symbol uic --version
|
189
|
+
!ruby/symbol r: !ruby/symbol pkg-config --modversion libR
|
190
|
+
!ruby/symbol readline: !ruby/symbol pkgconfig
|
191
|
+
!ruby/symbol re2c: !ruby/symbol version
|
192
|
+
!ruby/symbol relion: !ruby/symbol relion_project --version
|
193
|
+
!ruby/symbol rsync: !ruby/symbol version
|
194
|
+
!ruby/symbol ruby: !ruby/symbol ruby -v # pkg-config --modversion ruby-2.7
|
195
|
+
!ruby/symbol rubygems: !ruby/symbol gem --version
|
196
|
+
!ruby/symbol samtools: !ruby/symbol version
|
197
|
+
!ruby/symbol sed: !ruby/symbol version
|
198
|
+
!ruby/symbol screen: !ruby/symbol version
|
199
|
+
!ruby/symbol sharutils: !ruby/symbol shar --version
|
200
|
+
!ruby/symbol simple-scan: !ruby/symbol version
|
201
|
+
!ruby/symbol strace: !ruby/symbol version
|
202
|
+
!ruby/symbol subversion: !ruby/symbol pkg-config --modversion libsvn_wc
|
203
|
+
!ruby/symbol sysstat: !ruby/symbol sadf -V
|
204
|
+
!ruby/symbol swig: !ruby/symbol swig -version
|
205
|
+
!ruby/symbol taglib: !ruby/symbol pkgconfig
|
206
|
+
!ruby/symbol tar: !ruby/symbol version
|
207
|
+
!ruby/symbol tesseract: !ruby/symbol pkgconfig
|
208
|
+
!ruby/symbol texinfo: !ruby/symbol install-info --version
|
209
|
+
!ruby/symbol tiff: !ruby/symbol pkg-config --modversion libtiff-4
|
210
|
+
!ruby/symbol tmux: !ruby/symbol tmux -V
|
211
|
+
!ruby/symbol unbound: !ruby/symbol pkg-config --modversion libunbound
|
212
|
+
!ruby/symbol v4lutils: !ruby/symbol pkg-config --modversion libv4l2
|
213
|
+
!ruby/symbol valgrind: !ruby/symbol version
|
214
|
+
!ruby/symbol vim: !ruby/symbol version
|
215
|
+
!ruby/symbol vte: !ruby/symbol pkg-config --modversion vte-2.91
|
216
|
+
!ruby/symbol wavpack: !ruby/symbol pkgconfig
|
217
|
+
!ruby/symbol webkit2gtk: !ruby/symbol pkg-config --modversion webkit2gtk-4.1
|
218
|
+
!ruby/symbol wget: !ruby/symbol version
|
219
|
+
!ruby/symbol wireshark: !ruby/symbol pkgconfig
|
220
|
+
!ruby/symbol xfsprogs: !ruby/symbol xfs_info -V
|
221
|
+
!ruby/symbol xterm: !ruby/symbol xterm -v
|
222
|
+
!ruby/symbol xvid: !ruby/symbol custom_xvid
|
223
|
+
!ruby/symbol xz: !ruby/symbol version
|
224
|
+
!ruby/symbol zlib: !ruby/symbol pkgconfig
|
225
|
+
|
226
|
+
# =========================================================================== #
|
227
|
+
# Next add the science-related components:
|
228
|
+
# =========================================================================== #
|
229
|
+
!ruby/symbol hmmer: !ruby/symbol hmmpgmd -h
|
230
|
+
!ruby/symbol viennarna: !ruby/symbol pkg-config --modversion RNAlib2
|
231
|
+
|
232
|
+
# =========================================================================== #
|
233
|
+
# Next add x11-specific software.
|
234
|
+
#
|
235
|
+
# Note that xf86dga does not work that well, so it is no longer called
|
236
|
+
# or defined as part of the environment_information gem.
|
237
|
+
# =========================================================================== #
|
238
|
+
!ruby/symbol libinput: !ruby/symbol pkgconfig
|
239
|
+
!ruby/symbol libx11: !ruby/symbol pkg-config --modversion x11
|
240
|
+
!ruby/symbol libxaw3d: !ruby/symbol pkg-config --modversion xaw3d
|
241
|
+
!ruby/symbol libxau: !ruby/symbol pkg-config --modversion xau
|
242
|
+
!ruby/symbol libxcb: !ruby/symbol pkg-config --modversion xcb
|
243
|
+
!ruby/symbol libxcm: !ruby/symbol pkg-config --modversion xcm
|
244
|
+
!ruby/symbol libxcursor: !ruby/symbol pkg-config --modversion xcursor
|
245
|
+
!ruby/symbol libxdamage: !ruby/symbol pkg-config --modversion xdamage
|
246
|
+
!ruby/symbol libxi: !ruby/symbol pkg-config --modversion xi
|
247
|
+
!ruby/symbol libxkbfile: !ruby/symbol pkg-config --modversion xkbfile
|
248
|
+
!ruby/symbol libxmu: !ruby/symbol pkg-config --modversion xmu
|
249
|
+
!ruby/symbol libxpm: !ruby/symbol pkg-config --modversion xpm
|
250
|
+
# !ruby/symbol libxp: !ruby/symbol pkg-config --modversion xp
|
251
|
+
!ruby/symbol libxpresent: !ruby/symbol pkg-config --modversion xpresent
|
252
|
+
# !ruby/symbol libxtrap: !ruby/symbol pkg-config --modversion xtrap
|
253
|
+
!ruby/symbol libxtst: !ruby/symbol pkg-config --modversion xtst
|
254
|
+
!ruby/symbol libxt: !ruby/symbol pkg-config --modversion xt
|
255
|
+
!ruby/symbol libxv: !ruby/symbol pkg-config --modversion xv
|
256
|
+
!ruby/symbol libxvmc: !ruby/symbol pkg-config --modversion xvmc
|
257
|
+
!ruby/symbol randrproto: !ruby/symbol pkgconfig
|
258
|
+
!ruby/symbol xextproto: !ruby/symbol pkgconfig
|
259
|
+
!ruby/symbol xf86bigfontproto: !ruby/symbol pkgconfig
|
260
|
+
!ruby/symbol xf86dgaproto: !ruby/symbol pkgconfig
|
261
|
+
!ruby/symbol xf86driproto: !ruby/symbol pkgconfig
|
262
|
+
!ruby/symbol xkbcomp: !ruby/symbol pkgconfig
|
263
|
+
!ruby/symbol xrandr: !ruby/symbol custom_xrandr
|
264
|
+
!ruby/symbol xstdcmap: !ruby/symbol xstdcmap -version
|
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
require 'colours/e/autoinclude'
|
6
|
+
require 'environment_information'
|
7
|
+
|
8
|
+
# =========================================================================== #
|
9
|
+
# === test
|
10
|
+
# =========================================================================== #
|
11
|
+
def test(i)
|
12
|
+
if i.include? ' '
|
13
|
+
i = i.split(' ').last
|
14
|
+
end
|
15
|
+
EnvironmentInformation[]
|
16
|
+
e 'How many subcommands are registered in this project?'
|
17
|
+
e
|
18
|
+
e " #{EnvironmentInformation.n_subcommands?}"
|
19
|
+
e
|
20
|
+
e 'Next, we will create a .html file, through the --html commandline flag:'
|
21
|
+
e
|
22
|
+
EnvironmentInformation.new(i)
|
23
|
+
e
|
24
|
+
end
|
25
|
+
|
26
|
+
test 'envi --html'
|
@@ -0,0 +1,9 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
require 'environment_information'
|
6
|
+
|
7
|
+
EnvironmentInformation.run
|
8
|
+
|
9
|
+
pp EnvironmentInformation.which_components_are_missing?
|
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
require 'colours/colours_e_autoinclude.rb'
|
6
|
+
require 'environment_information'
|
7
|
+
|
8
|
+
e
|
9
|
+
e 'The code in this file will test a specific prefix.'
|
10
|
+
prefix_to_use = ENV['MY_PROGRAMS'].to_s+'/'
|
11
|
+
e
|
12
|
+
e 'That prefix will be: '+steelblue(prefix_to_use)
|
13
|
+
e
|
14
|
+
EnvironmentInformation.set_prefix(prefix_to_use)
|
15
|
+
e
|
16
|
+
e 'The prefix is now: '+royalblue(EnvironmentInformation.prefix?)
|
17
|
+
e
|
18
|
+
e 'It will be tested via EnvironmentInformation.test() next.'
|
19
|
+
e
|
20
|
+
EnvironmentInformation.test()
|
metadata
ADDED
@@ -0,0 +1,177 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: environment_information
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.4.99
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Robert A. Heiler
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-05-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: colours
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description: "\nThe gem environment_information is able to provide information about
|
28
|
+
the\ncomputer host system, in particular on Linux systems, if ruby is available\non
|
29
|
+
that computer. Commonly used programs will be queried for their current\nversion
|
30
|
+
number (and whether they exist) on the target computer. If these\nprograms do happen
|
31
|
+
to exist then the corresponding version will be\ndisplayed, on the commandline.\n\nThis
|
32
|
+
is somewhat similar to the \"Linux from Scratch\" project, which uses\na shell script
|
33
|
+
to display the version of many commonly used programs.\nAs I prefer to use ruby
|
34
|
+
rather than shell scripts, I wrote this somewhat\nequivalent project.\n\nThis project
|
35
|
+
currently tracks the version of \n198 \ndifferent programs.\n\nFor more information
|
36
|
+
and documentation about this project, consider\nlooking at the homepage of this
|
37
|
+
gem, at\n\n https://rubygems.org/gems/environment_information\n\nand look at the
|
38
|
+
documentation on the bottom right side,\ncalled \"Documentation\".\n\n"
|
39
|
+
email: shevy@inbox.lt
|
40
|
+
executables:
|
41
|
+
- envi
|
42
|
+
- fast_envi
|
43
|
+
extensions: []
|
44
|
+
extra_rdoc_files: []
|
45
|
+
files:
|
46
|
+
- README.md
|
47
|
+
- bin/envi
|
48
|
+
- bin/fast_envi
|
49
|
+
- doc/README.gen
|
50
|
+
- doc/todo/TODO_FOR_THE_ENVIRONMENT_INFORMATION_PROJECT.md
|
51
|
+
- environment_information.gemspec
|
52
|
+
- lib/environment_information.rb
|
53
|
+
- lib/environment_information/base/base.rb
|
54
|
+
- lib/environment_information/class/class.rb
|
55
|
+
- lib/environment_information/colours/colours.rb
|
56
|
+
- lib/environment_information/colours/sfancy.rb
|
57
|
+
- lib/environment_information/colours/simp.rb
|
58
|
+
- lib/environment_information/constants/array_tracked_components.rb
|
59
|
+
- lib/environment_information/constants/constants.rb
|
60
|
+
- lib/environment_information/constants/encoding.rb
|
61
|
+
- lib/environment_information/constants/error_line.rb
|
62
|
+
- lib/environment_information/constants/file_constants.rb
|
63
|
+
- lib/environment_information/constants/misc.rb
|
64
|
+
- lib/environment_information/constants/namespace.rb
|
65
|
+
- lib/environment_information/constants/newline.rb
|
66
|
+
- lib/environment_information/constants/regex.rb
|
67
|
+
- lib/environment_information/constants/temp_directory.rb
|
68
|
+
- lib/environment_information/gui/gtk2/environment_information.rb
|
69
|
+
- lib/environment_information/gui/gtk3/environment_information.rb
|
70
|
+
- lib/environment_information/gui/libui/environment_information.rb
|
71
|
+
- lib/environment_information/gui/shared_code/environment_information_module.rb
|
72
|
+
- lib/environment_information/misc_components/README.md
|
73
|
+
- lib/environment_information/misc_components/cflags.rb
|
74
|
+
- lib/environment_information/misc_components/cpuinfo.rb
|
75
|
+
- lib/environment_information/misc_components/operating_system.rb
|
76
|
+
- lib/environment_information/misc_components/operating_system_bit_type.rb
|
77
|
+
- lib/environment_information/misc_components/ram.rb
|
78
|
+
- lib/environment_information/misc_components/rubygems_installation_directory.rb
|
79
|
+
- lib/environment_information/misc_components/screen_resolution.rb
|
80
|
+
- lib/environment_information/project/project.rb
|
81
|
+
- lib/environment_information/queries/README.md
|
82
|
+
- lib/environment_information/queries/complex_version.rb
|
83
|
+
- lib/environment_information/queries/pkg_config.rb
|
84
|
+
- lib/environment_information/queries/simple_version.rb
|
85
|
+
- lib/environment_information/requires/require_asciitable.rb
|
86
|
+
- lib/environment_information/requires/require_the_constants.rb
|
87
|
+
- lib/environment_information/requires/require_the_environment_information_project.rb
|
88
|
+
- lib/environment_information/requires/require_the_individual_misc_components.rb
|
89
|
+
- lib/environment_information/requires/require_the_toplevel_methods.rb
|
90
|
+
- lib/environment_information/toplevel_methods/autogenerate_all_relevant_methods.rb
|
91
|
+
- lib/environment_information/toplevel_methods/cd.rb
|
92
|
+
- lib/environment_information/toplevel_methods/e.rb
|
93
|
+
- lib/environment_information/toplevel_methods/hash.rb
|
94
|
+
- lib/environment_information/toplevel_methods/internet_is_available.rb
|
95
|
+
- lib/environment_information/toplevel_methods/is_on_roebe.rb
|
96
|
+
- lib/environment_information/toplevel_methods/menu.rb
|
97
|
+
- lib/environment_information/toplevel_methods/misc.rb
|
98
|
+
- lib/environment_information/toplevel_methods/n_subcommands.rb
|
99
|
+
- lib/environment_information/toplevel_methods/prefix_to_use.rb
|
100
|
+
- lib/environment_information/toplevel_methods/register_this_component_is_missing.rb
|
101
|
+
- lib/environment_information/toplevel_methods/remote_url_of_this_program.rb
|
102
|
+
- lib/environment_information/toplevel_methods/replay_from_the_stored_file.rb
|
103
|
+
- lib/environment_information/toplevel_methods/return_alias_to.rb
|
104
|
+
- lib/environment_information/toplevel_methods/return_pkgconfig_based_programs.rb
|
105
|
+
- lib/environment_information/toplevel_methods/return_remote_gtk2_version.rb
|
106
|
+
- lib/environment_information/toplevel_methods/return_simple_version_based_programs.rb
|
107
|
+
- lib/environment_information/toplevel_methods/return_version_of_this_program.rb
|
108
|
+
- lib/environment_information/toplevel_methods/show_all_available_components.rb
|
109
|
+
- lib/environment_information/toplevel_methods/write_what_into.rb
|
110
|
+
- lib/environment_information/version/version.rb
|
111
|
+
- lib/environment_information/www/sinatra_interface.rb
|
112
|
+
- lib/environment_information/www/webobject_interface.cgi
|
113
|
+
- lib/environment_information/yaml/array_default_programs_on_linux.yml
|
114
|
+
- lib/environment_information/yaml/array_lfs_core_programs.yml
|
115
|
+
- lib/environment_information/yaml/array_science_cluster.yml
|
116
|
+
- lib/environment_information/yaml/array_tracked_non_programs.yml
|
117
|
+
- lib/environment_information/yaml/array_tracked_programs.yml
|
118
|
+
- lib/environment_information/yaml/array_tracked_xorg_components.yml
|
119
|
+
- lib/environment_information/yaml/colours.yml
|
120
|
+
- lib/environment_information/yaml/query_to_use_for_the_individual_components.yml
|
121
|
+
- test/testing_environment_information.rb
|
122
|
+
- test/testing_missing_components.rb
|
123
|
+
- test/testing_prefix_for_the_environment_information_project.rb
|
124
|
+
homepage: https://rubygems.org/gems/environment_information
|
125
|
+
licenses:
|
126
|
+
- MIT
|
127
|
+
metadata: {}
|
128
|
+
post_install_message: "\nYou can run this little script by issuing:\n\n envi\n\non
|
129
|
+
the commandline. (The script envi is part of this gem and can\nbe found at the subdirectory
|
130
|
+
bin/envi of the gem.)\n\nWithin ruby code, you can require the project and then
|
131
|
+
display\ninformation too, via:\n\n require 'environment_information'\n EnvironmentInformation.run\n\nFor
|
132
|
+
the (documented) options, you can do either of the following:\n\n envi --help\n
|
133
|
+
\ envi HELP\n\nThis will feedback the options that are available.\n\nTo get the
|
134
|
+
full output of just about every program that is checked\nby this gem, try any of
|
135
|
+
the following invocation:\n\n envi --all\n envi ALL\n\n(Lowercase works fine
|
136
|
+
just as well. The commandline options that\ninclude two '-' characters are, internally,
|
137
|
+
the preferred variants.)\n\nTo obtain an individual entry, do something such as
|
138
|
+
this:\n\n envi gtk\n envi pango\n envi gcr\n\nTo disable colours, do either
|
139
|
+
one of these:\n\n envi --nocolours\n envi --no-colours\n envi --no-colors\n
|
140
|
+
\ envi --nocolors\n envi nocolours\n envi NOCOLOURS\n\n(Both UK and US spelling
|
141
|
+
is supported, so colour works just as\nwell as color.)\n\nIf all of this may become
|
142
|
+
too tedious to type, I just use an\nalias called ALL, which stands short for \"envi
|
143
|
+
all\" or \n\"envi show_all\".\n\nAnother option, both of which are synonymous to
|
144
|
+
each other,\nis to compare all existing programs on a given host system\nwith the
|
145
|
+
version registered in the RBT project:\n\n envi ALL REALLY_ALL\n envi --compare_programs\n
|
146
|
+
\ envi compare_programs\n\nIf you wish to show only the OS information, do:\n\n
|
147
|
+
\ envi --os?\n\nFor more documentation about the project, have a look at:\n\n
|
148
|
+
\ https://www.rubydoc.info/gems/environment_information/1.4.99\n\n"
|
149
|
+
rdoc_options: []
|
150
|
+
require_paths:
|
151
|
+
- lib
|
152
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
154
|
+
- - ">="
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: 2.7.6
|
157
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: 3.4.13
|
162
|
+
requirements: []
|
163
|
+
rubygems_version: 3.4.13
|
164
|
+
signing_key:
|
165
|
+
specification_version: 4
|
166
|
+
summary: The gem environment_information is able to provide information about the
|
167
|
+
computer host system, in particular on Linux systems, if ruby is available on that
|
168
|
+
computer. Commonly used programs will be queried for their current version number
|
169
|
+
(and whether they exist) on the target computer. If these programs do happen to
|
170
|
+
exist then the corresponding version will be displayed, on the commandline. This
|
171
|
+
is somewhat similar to the "Linux from Scratch" project, which uses a shell script
|
172
|
+
to display the version of many commonly used programs. As I prefer to use ruby rather
|
173
|
+
than shell scripts, I wrote this somewhat equivalent project. This project currently
|
174
|
+
tracks the version of 198 different programs. For more information and documentation
|
175
|
+
about this project, consider looking at the homepage of this gem, at https://rubygems.org/gems/environment_information and
|
176
|
+
look at the documentation on the bottom right side, called "Documentation".
|
177
|
+
test_files: []
|