environment_information 1.4.89

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.

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