environment_information 1.4.124

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.
Files changed (80) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +1322 -0
  3. data/bin/envi +7 -0
  4. data/bin/fast_envi +7 -0
  5. data/doc/README.gen +1058 -0
  6. data/doc/todo/TODO_FOR_THE_ENVIRONMENT_INFORMATION_PROJECT.md +55 -0
  7. data/environment_information.gemspec +135 -0
  8. data/lib/environment_information/base/base.rb +166 -0
  9. data/lib/environment_information/class/class.rb +2580 -0
  10. data/lib/environment_information/class/colours.rb +282 -0
  11. data/lib/environment_information/colours/colours.rb +224 -0
  12. data/lib/environment_information/colours/sfancy.rb +19 -0
  13. data/lib/environment_information/colours/simp.rb +19 -0
  14. data/lib/environment_information/constants/array_tracked_components.rb +210 -0
  15. data/lib/environment_information/constants/constants.rb +17 -0
  16. data/lib/environment_information/constants/encoding.rb +21 -0
  17. data/lib/environment_information/constants/error_line.rb +17 -0
  18. data/lib/environment_information/constants/file_constants.rb +102 -0
  19. data/lib/environment_information/constants/misc.rb +86 -0
  20. data/lib/environment_information/constants/namespace.rb +14 -0
  21. data/lib/environment_information/constants/newline.rb +16 -0
  22. data/lib/environment_information/constants/regex.rb +30 -0
  23. data/lib/environment_information/constants/temp_directory.rb +52 -0
  24. data/lib/environment_information/gui/jruby/environment_information.rb +77 -0
  25. data/lib/environment_information/gui/shared_code/environment_information/environment_information_module.rb +99 -0
  26. data/lib/environment_information/gui/universal_widgets/environment_information/environment_information.rb +419 -0
  27. data/lib/environment_information/misc_components/README.md +3 -0
  28. data/lib/environment_information/misc_components/cflags.rb +36 -0
  29. data/lib/environment_information/misc_components/cpuinfo.rb +64 -0
  30. data/lib/environment_information/misc_components/operating_system.rb +54 -0
  31. data/lib/environment_information/misc_components/operating_system_bit_type.rb +42 -0
  32. data/lib/environment_information/misc_components/ram.rb +30 -0
  33. data/lib/environment_information/misc_components/rubygems_installation_directory.rb +54 -0
  34. data/lib/environment_information/misc_components/screen_resolution.rb +50 -0
  35. data/lib/environment_information/project/project.rb +27 -0
  36. data/lib/environment_information/queries/README.md +2 -0
  37. data/lib/environment_information/queries/complex_version.rb +273 -0
  38. data/lib/environment_information/queries/pkg_config.rb +125 -0
  39. data/lib/environment_information/queries/simple_version.rb +272 -0
  40. data/lib/environment_information/requires/require_asciitable.rb +15 -0
  41. data/lib/environment_information/requires/require_the_constants.rb +7 -0
  42. data/lib/environment_information/requires/require_the_environment_information_project.rb +23 -0
  43. data/lib/environment_information/requires/require_the_individual_misc_components.rb +30 -0
  44. data/lib/environment_information/requires/require_the_toplevel_methods.rb +22 -0
  45. data/lib/environment_information/toplevel_methods/autogenerate_all_relevant_methods.rb +153 -0
  46. data/lib/environment_information/toplevel_methods/cd.rb +16 -0
  47. data/lib/environment_information/toplevel_methods/e.rb +43 -0
  48. data/lib/environment_information/toplevel_methods/hash.rb +65 -0
  49. data/lib/environment_information/toplevel_methods/internet_is_available.rb +30 -0
  50. data/lib/environment_information/toplevel_methods/is_on_roebe.rb +16 -0
  51. data/lib/environment_information/toplevel_methods/menu.rb +90 -0
  52. data/lib/environment_information/toplevel_methods/misc.rb +324 -0
  53. data/lib/environment_information/toplevel_methods/n_subcommands.rb +31 -0
  54. data/lib/environment_information/toplevel_methods/prefix_to_use.rb +39 -0
  55. data/lib/environment_information/toplevel_methods/register_this_component_is_missing.rb +61 -0
  56. data/lib/environment_information/toplevel_methods/remote_url_of_this_program.rb +45 -0
  57. data/lib/environment_information/toplevel_methods/replay_from_the_stored_file.rb +84 -0
  58. data/lib/environment_information/toplevel_methods/return_alias_to.rb +30 -0
  59. data/lib/environment_information/toplevel_methods/return_pkgconfig_based_programs.rb +28 -0
  60. data/lib/environment_information/toplevel_methods/return_remote_gtk2_version.rb +54 -0
  61. data/lib/environment_information/toplevel_methods/return_simple_version_based_programs.rb +28 -0
  62. data/lib/environment_information/toplevel_methods/return_version_of_this_program.rb +182 -0
  63. data/lib/environment_information/toplevel_methods/show_all_available_components.rb +192 -0
  64. data/lib/environment_information/toplevel_methods/write_what_into.rb +24 -0
  65. data/lib/environment_information/version/version.rb +25 -0
  66. data/lib/environment_information/www/sinatra_interface.rb +213 -0
  67. data/lib/environment_information/www/webobject_interface.cgi +29 -0
  68. data/lib/environment_information/yaml/array_default_programs_on_linux.yml +15 -0
  69. data/lib/environment_information/yaml/array_lfs_core_programs.yml +37 -0
  70. data/lib/environment_information/yaml/array_science_cluster.yml +12 -0
  71. data/lib/environment_information/yaml/array_tracked_non_programs.yml +13 -0
  72. data/lib/environment_information/yaml/array_tracked_programs.yml +235 -0
  73. data/lib/environment_information/yaml/array_tracked_xorg_components.yml +37 -0
  74. data/lib/environment_information/yaml/colours.yml +3 -0
  75. data/lib/environment_information/yaml/query_to_use_for_the_individual_components.yml +284 -0
  76. data/lib/environment_information.rb +5 -0
  77. data/test/testing_environment_information.rb +26 -0
  78. data/test/testing_missing_components.rb +9 -0
  79. data/test/testing_prefix_for_the_environment_information_project.rb +20 -0
  80. metadata +177 -0
@@ -0,0 +1,284 @@
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 adwaitaicontheme: !ruby/symbol pkg-config --modversion adwaita-icon-theme
28
+ !ruby/symbol atk: !ruby/symbol pkgconfig
29
+ !ruby/symbol automake: !ruby/symbol version
30
+ !ruby/symbol binutils: !ruby/symbol ld -v
31
+ !ruby/symbol babl: !ruby/symbol pkgconfig
32
+ !ruby/symbol bash: !ruby/symbol version
33
+ !ruby/symbol bison: !ruby/symbol version
34
+ !ruby/symbol boost: !ruby/symbol custom_boost
35
+ !ruby/symbol bubblewrap: !ruby/symbol bwrap --version
36
+ !ruby/symbol busybox: !ruby/symbol custom_busybox
37
+ !ruby/symbol bzip2: !ruby/symbol bzip2recover --version
38
+ !ruby/symbol cairo: !ruby/symbol pkgconfig
39
+ !ruby/symbol cares: !ruby/symbol pkg-config --modversion libcares
40
+ !ruby/symbol ccache: !ruby/symbol version
41
+ !ruby/symbol check: !ruby/symbol pkgconfig
42
+ !ruby/symbol clang: !ruby/symbol version
43
+ !ruby/symbol clutter: !ruby/symbol pkg-config --modversion clutter-1.0
44
+ !ruby/symbol cmake: !ruby/symbol version
45
+ !ruby/symbol colord: !ruby/symbol pkgconfig
46
+ !ruby/symbol coreutils: !ruby/symbol stat --version
47
+ !ruby/symbol curl: !ruby/symbol pkg-config --modversion libcurl
48
+ !ruby/symbol dbus: !ruby/symbol pkg-config --modversion dbus-1
49
+ !ruby/symbol dhcpcd: !ruby/symbol version
50
+ !ruby/symbol diffutils: !ruby/symbol cmp --version
51
+ !ruby/symbol djvulibre: !ruby/symbol pkg-config --modversion ddjvuapi
52
+ !ruby/symbol doubleconversion: !ruby/symbol special_entry_for_doubleconversion
53
+ !ruby/symbol duktape: !ruby/symbol pkgconfig
54
+ !ruby/symbol elfutils: !ruby/symbol pkg-config --modversion libelf
55
+ !ruby/symbol emacs: !ruby/symbol version
56
+ !ruby/symbol enchant: !ruby/symbol pkg-config --modversion enchant-2
57
+ !ruby/symbol ethtool: !ruby/symbol version
58
+ !ruby/symbol eudev: !ruby/symbol pkg-config --modversion libudev
59
+ !ruby/symbol evince: !ruby/symbol pkg-config --modversion evince-view-3.0
60
+ !ruby/symbol exempi: !ruby/symbol pkg-config --modversion exempi-2.0
61
+ !ruby/symbol expat: !ruby/symbol pkgconfig
62
+ !ruby/symbol ffmpeg: !ruby/symbol ffmpeg -version
63
+ !ruby/symbol fftw: !ruby/symbol pkg-config --modversion fftw3
64
+ !ruby/symbol file: !ruby/symbol version
65
+ !ruby/symbol findutils: !ruby/symbol find --version
66
+ !ruby/symbol flac: !ruby/symbol pkgconfig
67
+ !ruby/symbol flatpak: !ruby/symbol version
68
+ !ruby/symbol flex: !ruby/symbol version
69
+ !ruby/symbol fluidsynth: !ruby/symbol pkgconfig
70
+ !ruby/symbol fontconfig: !ruby/symbol pkgconfig
71
+ !ruby/symbol freeipmi: !ruby/symbol pkg-config --modversion libfreeipmi
72
+ !ruby/symbol freetype: !ruby/symbol pkg-config --modversion freetype2
73
+ !ruby/symbol fribidi: !ruby/symbol pkgconfig
74
+ !ruby/symbol fuse: !ruby/symbol pkg-config --modversion fuse3
75
+ !ruby/symbol gawk: !ruby/symbol version
76
+ !ruby/symbol gc: !ruby/symbol pkg-config --modversion bdw-gc
77
+ !ruby/symbol gcc: !ruby/symbol version
78
+ !ruby/symbol gcr: !ruby/symbol pkg-config --modversion gcr-3
79
+ !ruby/symbol gdb: !ruby/symbol gdbserver --version
80
+ !ruby/symbol gdkpixbuf: !ruby/symbol pkg-config --modversion gdk-pixbuf-2.0
81
+ !ruby/symbol gegl: !ruby/symbol pkg-config --modversion gegl-0.4
82
+ !ruby/symbol geocodeglib: !ruby/symbol pkg-config --modversion geocode-glib-1.0
83
+ !ruby/symbol gettext: !ruby/symbol version
84
+ !ruby/symbol ghostscript: !ruby/symbol gs --version
85
+ !ruby/symbol git: !ruby/symbol version
86
+ !ruby/symbol gimp: !ruby/symbol version
87
+ !ruby/symbol gjs: !ruby/symbol pkg-config --modversion gjs-1.0
88
+ !ruby/symbol glib: !ruby/symbol pkg-config --modversion glib-2.0
89
+ !ruby/symbol glibc: !ruby/symbol ldd --version
90
+ !ruby/symbol glslang: !ruby/symbol version
91
+ !ruby/symbol gmime: !ruby/symbol pkg-config --modversion gmime-3.0
92
+ !ruby/symbol gmp: !ruby/symbol pkgconfig
93
+ !ruby/symbol gnupg: !ruby/symbol gpg --version
94
+ !ruby/symbol gnuplot: !ruby/symbol version
95
+ !ruby/symbol gnutls: !ruby/symbol pkgconfig
96
+ !ruby/symbol gperf: !ruby/symbol version
97
+ !ruby/symbol graphite2: !ruby/symbol pkg-config --modversion graphite2
98
+ !ruby/symbol graphviz: !ruby/symbol dot -V
99
+ !ruby/symbol grep: !ruby/symbol version
100
+ !ruby/symbol groff: !ruby/symbol version
101
+ !ruby/symbol gsettingsdesktopschemas: !ruby/symbol pkg-config --modversion gsettings-desktop-schemas
102
+ !ruby/symbol gsl: !ruby/symbol pkgconfig
103
+ !ruby/symbol gstreamer: !ruby/symbol pkg-config --modversion gstreamer-1.0
104
+ !ruby/symbol gstpluginsbase: !ruby/symbol pkg-config --modversion gstreamer-audio-1.0
105
+ # !ruby/symbol gstpluginsgood: !ruby/symbol pkg-config --modversion gstreamer-audio-1.0
106
+ !ruby/symbol gtk2: !ruby/symbol pkg-config --modversion gtk+-2.0
107
+ !ruby/symbol gtk3: !ruby/symbol pkg-config --modversion gtk+-3.0
108
+ !ruby/symbol guile: !ruby/symbol pkg-config --modversion guile-3.0
109
+ !ruby/symbol gupnp: !ruby/symbol pkg-config --modversion gupnp-1.6
110
+ !ruby/symbol gzip: !ruby/symbol version
111
+ !ruby/symbol harfbuzz: !ruby/symbol pkgconfig
112
+ !ruby/symbol ibus: !ruby/symbol pkg-config --modversion ibus-1.0
113
+ !ruby/symbol icewm: !ruby/symbol version
114
+ !ruby/symbol icu4c: !ruby/symbol pkg-config --modversion icu-io
115
+ !ruby/symbol imagemagick: !ruby/symbol magick --version
116
+ !ruby/symbol intltool: !ruby/symbol intltoolize --version
117
+ !ruby/symbol isl: !ruby/symbol pkgconfig
118
+ !ruby/symbol jasper: !ruby/symbol pkgconfig
119
+ !ruby/symbol java: !ruby/symbol java -version
120
+ !ruby/symbol kde_frameworks: !ruby/symbol kf5-config --version
121
+ !ruby/symbol kmod: !ruby/symbol pkg-config --modversion libkmod
122
+ !ruby/symbol krb5: !ruby/symbol pkgconfig
123
+ !ruby/symbol krita: !ruby/symbol version
124
+ !ruby/symbol lftp: !ruby/symbol version
125
+ !ruby/symbol libarchive: !ruby/symbol pkgconfig
126
+ !ruby/symbol libassuan: !ruby/symbol pkgconfig
127
+ !ruby/symbol libbytesize: !ruby/symbol pkg-config --modversion bytesize
128
+ !ruby/symbol libdazzle: !ruby/symbol pkg-config --modversion libdazzle-1.0
129
+ !ruby/symbol libdrm: !ruby/symbol pkgconfig
130
+ !ruby/symbol libepoxy: !ruby/symbol pkg-config --modversion epoxy
131
+ !ruby/symbol libevdev: !ruby/symbol pkgconfig
132
+ !ruby/symbol libgdata: !ruby/symbol pkgconfig
133
+ !ruby/symbol libgee: !ruby/symbol pkg-config --modversion gee-0.8
134
+ !ruby/symbol libgpgerror: !ruby/symbol pkg-config --modversion gpg-error
135
+ !ruby/symbol libgsf: !ruby/symbol pkg-config --modversion libgsf-1
136
+ !ruby/symbol libgtop: !ruby/symbol pkg-config --modversion libgtop-2.0
137
+ !ruby/symbol libgusb: !ruby/symbol pkg-config --modversion gusb
138
+ !ruby/symbol libhandy: !ruby/symbol pkg-config --modversion libhandy-1
139
+ !ruby/symbol lighttpd: !ruby/symbol short_version
140
+ !ruby/symbol libical: !ruby/symbol pkgconfig
141
+ !ruby/symbol libidn: !ruby/symbol pkgconfig
142
+ !ruby/symbol libjpegturbo: !ruby/symbol pkg-config --modversion libturbojpeg
143
+ !ruby/symbol libmbim: !ruby/symbol pkg-config --modversion mbim-glib
144
+ !ruby/symbol libmicrohttpd: !ruby/symbol pkgconfig
145
+ !ruby/symbol libpeas: !ruby/symbol pkg-config --modversion libpeas-1.0
146
+ !ruby/symbol libpaper: !ruby/symbol paper --version
147
+ !ruby/symbol libpsl: !ruby/symbol pkgconfig
148
+ !ruby/symbol libqmi: !ruby/symbol pkg-config --modversion qmi-glib
149
+ !ruby/symbol librsvg: !ruby/symbol pkg-config --modversion librsvg-2.0
150
+ !ruby/symbol libsamplerate: !ruby/symbol pkg-config --modversion samplerate
151
+ !ruby/symbol libseccomp: !ruby/symbol pkgconfig
152
+ !ruby/symbol libsecret: !ruby/symbol pkg-config --modversion libsecret-1
153
+ !ruby/symbol libsndfile: !ruby/symbol pkg-config --modversion sndfile
154
+ !ruby/symbol libtasn1: !ruby/symbol pkgconfig
155
+ !ruby/symbol libtool: !ruby/symbol version
156
+ !ruby/symbol libunwind: !ruby/symbol pkgconfig
157
+ !ruby/symbol libusb: !ruby/symbol pkg-config --modversion libusb-1.0
158
+ !ruby/symbol libuv: !ruby/symbol pkgconfig
159
+ !ruby/symbol libva: !ruby/symbol pkgconfig
160
+ !ruby/symbol libvpx: !ruby/symbol pkg-config --modversion vpx
161
+ !ruby/symbol libwebp: !ruby/symbol pkgconfig
162
+ !ruby/symbol libwpe: !ruby/symbol pkg-config --modversion wpe-1.0
163
+ !ruby/symbol libzip: !ruby/symbol pkgconfig
164
+ !ruby/symbol linux: !ruby/symbol uname -a
165
+ !ruby/symbol llvm: !ruby/symbol llvm-config --version
166
+ !ruby/symbol lynx: !ruby/symbol version
167
+ !ruby/symbol m4: !ruby/symbol version
168
+ !ruby/symbol make: !ruby/symbol version
169
+ !ruby/symbol mc: !ruby/symbol version
170
+ !ruby/symbol mlt: !ruby/symbol pkg-config --modversion mlt++-7
171
+ !ruby/symbol mozjs: !ruby/symbol pkg-config --modversion mozjs-115
172
+ !ruby/symbol mpc: !ruby/symbol custom_mpc
173
+ !ruby/symbol mpfr: !ruby/symbol pkgconfig
174
+ !ruby/symbol mtools: !ruby/symbol version
175
+ !ruby/symbol mutter: !ruby/symbol pkg-config --modversion libmutter-12
176
+ !ruby/symbol nasm: !ruby/symbol version
177
+ !ruby/symbol ncurses: !ruby/symbol infocmp -V
178
+ !ruby/symbol neon: !ruby/symbol pkgconfig
179
+ !ruby/symbol nettle: !ruby/symbol pkgconfig
180
+ !ruby/symbol nghttp2: !ruby/symbol pkg-config --modversion libnghttp2
181
+ !ruby/symbol nginx: !ruby/symbol nginx -v
182
+ !ruby/symbol ninja: !ruby/symbol version
183
+ !ruby/symbol node: !ruby/symbol version
184
+ !ruby/symbol nspr: !ruby/symbol pkgconfig
185
+ !ruby/symbol nss: !ruby/symbol pkgconfig
186
+ !ruby/symbol openmpi: !ruby/symbol pkg-config --modversion ompi
187
+ !ruby/symbol openssl: !ruby/symbol pkgconfig
188
+ !ruby/symbol opusfile: !ruby/symbol pkgconfig
189
+ !ruby/symbol pango: !ruby/symbol pkgconfig
190
+ !ruby/symbol parted: !ruby/symbol pkg-config --modversion libparted
191
+ !ruby/symbol patch: !ruby/symbol version
192
+ !ruby/symbol patchelf: !ruby/symbol patchelf --version
193
+ !ruby/symbol pbbam: !ruby/symbol pkgconfig
194
+ !ruby/symbol pcre: !ruby/symbol pkg-config --modversion libpcre
195
+ !ruby/symbol pcre2: !ruby/symbol pkg-config --modversion libpcre2-posix
196
+ !ruby/symbol perl: !ruby/symbol version
197
+ !ruby/symbol php: !ruby/symbol version
198
+ !ruby/symbol pipewire: !ruby/symbol pkg-config --modversion libpipewire-0.3
199
+ !ruby/symbol pkgconfig: !ruby/symbol pkg-config --version
200
+ !ruby/symbol plzip: !ruby/symbol version
201
+ !ruby/symbol poppler: !ruby/symbol pkgconfig
202
+ !ruby/symbol popt: !ruby/symbol pkgconfig
203
+ !ruby/symbol postgresql: !ruby/symbol pkg-config --modversion libpq
204
+ !ruby/symbol python: !ruby/symbol version
205
+ !ruby/symbol qpdf: !ruby/symbol pkg-config --modversion libqpdf
206
+ !ruby/symbol qt: !ruby/symbol uic --version
207
+ !ruby/symbol r: !ruby/symbol pkg-config --modversion libR
208
+ !ruby/symbol readline: !ruby/symbol pkgconfig
209
+ !ruby/symbol re2c: !ruby/symbol version
210
+ !ruby/symbol relion: !ruby/symbol relion_project --version
211
+ !ruby/symbol rsync: !ruby/symbol version
212
+ !ruby/symbol ruby: !ruby/symbol ruby -v # pkg-config --modversion ruby-2.7
213
+ !ruby/symbol rubygems: !ruby/symbol gem --version
214
+ !ruby/symbol samtools: !ruby/symbol version
215
+ !ruby/symbol sed: !ruby/symbol version
216
+ !ruby/symbol screen: !ruby/symbol version
217
+ !ruby/symbol sharutils: !ruby/symbol shar --version
218
+ !ruby/symbol simple-scan: !ruby/symbol version
219
+ !ruby/symbol strace: !ruby/symbol version
220
+ !ruby/symbol subversion: !ruby/symbol pkg-config --modversion libsvn_wc
221
+ !ruby/symbol sysstat: !ruby/symbol sadf -V
222
+ !ruby/symbol swig: !ruby/symbol swig -version
223
+ !ruby/symbol taglib: !ruby/symbol pkgconfig
224
+ !ruby/symbol tar: !ruby/symbol version
225
+ !ruby/symbol tesseract: !ruby/symbol pkgconfig
226
+ !ruby/symbol texinfo: !ruby/symbol install-info --version
227
+ !ruby/symbol tiff: !ruby/symbol pkg-config --modversion libtiff-4
228
+ !ruby/symbol tmux: !ruby/symbol tmux -V
229
+ !ruby/symbol unbound: !ruby/symbol pkg-config --modversion libunbound
230
+ !ruby/symbol v4lutils: !ruby/symbol pkg-config --modversion libv4l2
231
+ !ruby/symbol valgrind: !ruby/symbol version
232
+ !ruby/symbol vim: !ruby/symbol version
233
+ !ruby/symbol vte: !ruby/symbol pkg-config --modversion vte-2.91
234
+ !ruby/symbol wavpack: !ruby/symbol pkgconfig
235
+ !ruby/symbol weston: !ruby/symbol pkgconfig
236
+ !ruby/symbol webkit2gtk: !ruby/symbol pkg-config --modversion webkit2gtk-4.1
237
+ !ruby/symbol wget: !ruby/symbol version
238
+ !ruby/symbol wireshark: !ruby/symbol pkgconfig
239
+ !ruby/symbol xfsprogs: !ruby/symbol xfs_info -V
240
+ !ruby/symbol xinput: !ruby/symbol version
241
+ !ruby/symbol xterm: !ruby/symbol xterm -v
242
+ !ruby/symbol xvid: !ruby/symbol custom_xvid
243
+ !ruby/symbol xz: !ruby/symbol version
244
+ !ruby/symbol zlib: !ruby/symbol pkgconfig
245
+
246
+ # =========================================================================== #
247
+ # Next add the science-related components:
248
+ # =========================================================================== #
249
+ !ruby/symbol hmmer: !ruby/symbol hmmpgmd -h
250
+ !ruby/symbol viennarna: !ruby/symbol pkg-config --modversion RNAlib2
251
+
252
+ # =========================================================================== #
253
+ # Next add x11-specific software.
254
+ #
255
+ # Note that xf86dga does not work that well, so it is no longer called
256
+ # or defined as part of the environment_information gem.
257
+ # =========================================================================== #
258
+ !ruby/symbol libinput: !ruby/symbol pkgconfig
259
+ !ruby/symbol libx11: !ruby/symbol pkg-config --modversion x11
260
+ !ruby/symbol libxaw3d: !ruby/symbol pkg-config --modversion xaw3d
261
+ !ruby/symbol libxau: !ruby/symbol pkg-config --modversion xau
262
+ !ruby/symbol libxcb: !ruby/symbol pkg-config --modversion xcb
263
+ !ruby/symbol libxcm: !ruby/symbol pkg-config --modversion xcm
264
+ !ruby/symbol libxcursor: !ruby/symbol pkg-config --modversion xcursor
265
+ !ruby/symbol libxdamage: !ruby/symbol pkg-config --modversion xdamage
266
+ !ruby/symbol libxi: !ruby/symbol pkg-config --modversion xi
267
+ !ruby/symbol libxkbfile: !ruby/symbol pkg-config --modversion xkbfile
268
+ !ruby/symbol libxmu: !ruby/symbol pkg-config --modversion xmu
269
+ !ruby/symbol libxpm: !ruby/symbol pkg-config --modversion xpm
270
+ # !ruby/symbol libxp: !ruby/symbol pkg-config --modversion xp
271
+ !ruby/symbol libxpresent: !ruby/symbol pkg-config --modversion xpresent
272
+ # !ruby/symbol libxtrap: !ruby/symbol pkg-config --modversion xtrap
273
+ !ruby/symbol libxtst: !ruby/symbol pkg-config --modversion xtst
274
+ !ruby/symbol libxt: !ruby/symbol pkg-config --modversion xt
275
+ !ruby/symbol libxv: !ruby/symbol pkg-config --modversion xv
276
+ !ruby/symbol libxvmc: !ruby/symbol pkg-config --modversion xvmc
277
+ !ruby/symbol randrproto: !ruby/symbol pkgconfig
278
+ !ruby/symbol xextproto: !ruby/symbol pkgconfig
279
+ !ruby/symbol xf86bigfontproto: !ruby/symbol pkgconfig
280
+ !ruby/symbol xf86dgaproto: !ruby/symbol pkgconfig
281
+ !ruby/symbol xf86driproto: !ruby/symbol pkgconfig
282
+ !ruby/symbol xkbcomp: !ruby/symbol pkgconfig
283
+ !ruby/symbol xrandr: !ruby/symbol custom_xrandr
284
+ !ruby/symbol xstdcmap: !ruby/symbol xstdcmap -version
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/ruby -w
2
+ # Encoding: UTF-8
3
+ # frozen_string_literal: true
4
+ # =========================================================================== #
5
+ require 'environment_information/requires/require_the_environment_information_project.rb'
@@ -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.124
5
+ platform: ruby
6
+ authors:
7
+ - Robert A. Heiler
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-03-27 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 \n217 \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/class/colours.rb
56
+ - lib/environment_information/colours/colours.rb
57
+ - lib/environment_information/colours/sfancy.rb
58
+ - lib/environment_information/colours/simp.rb
59
+ - lib/environment_information/constants/array_tracked_components.rb
60
+ - lib/environment_information/constants/constants.rb
61
+ - lib/environment_information/constants/encoding.rb
62
+ - lib/environment_information/constants/error_line.rb
63
+ - lib/environment_information/constants/file_constants.rb
64
+ - lib/environment_information/constants/misc.rb
65
+ - lib/environment_information/constants/namespace.rb
66
+ - lib/environment_information/constants/newline.rb
67
+ - lib/environment_information/constants/regex.rb
68
+ - lib/environment_information/constants/temp_directory.rb
69
+ - lib/environment_information/gui/jruby/environment_information.rb
70
+ - lib/environment_information/gui/shared_code/environment_information/environment_information_module.rb
71
+ - lib/environment_information/gui/universal_widgets/environment_information/environment_information.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.124\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.5.3
162
+ requirements: []
163
+ rubygems_version: 3.5.3
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 217 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: []