hardware_information 1.0.83
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +94 -0
- data/bin/hardware_information +12 -0
- data/doc/README.gen +47 -0
- data/hardware_information.gemspec +38 -0
- data/lib/hardware_information/class/hardware_information.rb +1048 -0
- data/lib/hardware_information/css/project.css +3 -0
- data/lib/hardware_information/gui/gtk2/purchased_hardware/purchased_hardware.rb +34 -0
- data/lib/hardware_information/gui/gtk2/show_input_devices/show_input_devices.rb +34 -0
- data/lib/hardware_information/gui/gtk3/mounted_harddiscs/mounted_harddiscs.rb +103 -0
- data/lib/hardware_information/gui/gtk3/purchased_hardware/purchased_hardware.rb +34 -0
- data/lib/hardware_information/gui/gtk3/show_input_devices/show_input_devices.rb +34 -0
- data/lib/hardware_information/gui/libui/mounted_harddiscs/mounted_harddiscs.rb +88 -0
- data/lib/hardware_information/gui/shared_code/mounted_harddiscs/mounted_harddiscs_module.rb +107 -0
- data/lib/hardware_information/gui/shared_code/purchased_hardware/purchased_hardware_module.rb +293 -0
- data/lib/hardware_information/gui/shared_code/show_input_devices/show_input_devices_module.rb +187 -0
- data/lib/hardware_information/misc/purchased_hardware/README.md +7 -0
- data/lib/hardware_information/misc/purchased_hardware/purchased_hardware.rb +169 -0
- data/lib/hardware_information/monitor/README.md +6 -0
- data/lib/hardware_information/monitor/monitor.rb +36 -0
- data/lib/hardware_information/project/project.rb +29 -0
- data/lib/hardware_information/version/version.rb +19 -0
- data/lib/hardware_information/www/embeddable_interface.rb +52 -0
- data/lib/hardware_information/www/my_hardware.cgi +7 -0
- data/lib/hardware_information/www/my_hardware.rb +498 -0
- data/lib/hardware_information/www/my_hardware_for_sinatra.rb +65 -0
- data/lib/hardware_information/yaml/colours_for_the_hardware_information_project.yml +30 -0
- data/lib/hardware_information/yaml/usb_errors/usb_errors.yml +2 -0
- data/lib/hardware_information.rb +7 -0
- metadata +91 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4087e89cb73b455fcab014e76b247cdd625a1139ca482529713dd4f83aaa02f4
|
4
|
+
data.tar.gz: b9a2905adf53d06674e532ef2b448107863789ef6ab6ff619e389a9edb86a362
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ee8927ef80715d22e2c98838e84764b87b812a33a2c01a546a9f9fc975f30a7090f81217e01149b16ed737b08fe68b83aa9ad06fce131f3cba901f2ba40d1e82
|
7
|
+
data.tar.gz: 112500cefbe7e4a8f85c71a506c4812502ab8928b460ca0cf4c026727d6fcf75757ee9acea7c98411cdedbcbf7b4c5cc76fd5c269482b22809c97654d77412d6
|
data/README.md
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://www.gobolinux.org/)
|
2
|
+
[![forthebadge](https://forthebadge.com/images/badges/made-with-ruby.svg)](https://www.ruby-lang.org/en/)
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/hardware_information.svg)](https://badge.fury.io/rb/hardware_information)
|
4
|
+
|
5
|
+
This gem was <b>last updated</b> on the <span style="color: darkblue; font-weight: bold">06.06.2023</span> (dd.mm.yyyy notation), at <span style="color: steelblue; font-weight: bold">13:01:37</span> o'clock.
|
6
|
+
|
7
|
+
# The HardwareInformation Project
|
8
|
+
|
9
|
+
<img src="https://i.imgur.com/v7paEUT.png" style="margin: 1em; border: 4px solid black;">
|
10
|
+
|
11
|
+
The above image has been partially auto-generated by cfdg
|
12
|
+
(context free design grammar). The cfdg gallery can be
|
13
|
+
seen at: https://www.contextfreeart.org/gallery/search.php?t=new&num=25
|
14
|
+
|
15
|
+
You can re-use the above image and change / re-shape it in any way,
|
16
|
+
shape or form, under a <b>CC BY-SA 4.0</b>, if you would like to.
|
17
|
+
(I should improve the image and remove the edgy blur effects,
|
18
|
+
but it is just some logo so that this gem also has a logo. I
|
19
|
+
did not want to invest too much time into this logo.)
|
20
|
+
|
21
|
+
The CC BY-SA licence can be read here: https://creativecommons.org/licenses/by-sa/4.0/
|
22
|
+
|
23
|
+
## Requiring the HardwareInformation gem
|
24
|
+
|
25
|
+
You can require this gem via:
|
26
|
+
|
27
|
+
require 'hardware_information'
|
28
|
+
|
29
|
+
## HardwareInformation.report
|
30
|
+
|
31
|
+
This toplevel API will report what hardware has been found
|
32
|
+
on the given computer system.
|
33
|
+
|
34
|
+
## Colour support
|
35
|
+
|
36
|
+
By default class HardwareInformation will try to show colours,
|
37
|
+
if used from the commandline.
|
38
|
+
|
39
|
+
If this is unwanted, you can pass any of the following flags
|
40
|
+
to disable colour support:
|
41
|
+
|
42
|
+
--disable-colours
|
43
|
+
--disable-colors
|
44
|
+
--no-colours
|
45
|
+
--no-colors
|
46
|
+
|
47
|
+
## Example screenshot of the output generated by class Hardwareinformation
|
48
|
+
|
49
|
+
<img src="https://i.imgur.com/cIqwg5V.png" style="margin: 1em">
|
50
|
+
|
51
|
+
|
52
|
+
## Contact information and mandatory 2FA coming up in 2022
|
53
|
+
|
54
|
+
If your creative mind has ideas and specific suggestions to make this gem
|
55
|
+
more useful in general, feel free to drop me an email at any time, via:
|
56
|
+
|
57
|
+
shevy@inbox.lt
|
58
|
+
|
59
|
+
Before that email I used an email account at Google gmail, but in **2021** I
|
60
|
+
decided to slowly abandon gmail, for various reasons. In order to limit the
|
61
|
+
explanation here, allow me to just briefly state that I do not feel as if I
|
62
|
+
want to promote any Google service anymore when the user becomes the
|
63
|
+
product (such as via data collection by upstream services). I feel this is
|
64
|
+
a hugely flawed business model.
|
65
|
+
|
66
|
+
Do keep in mind that responding to emails may take some time, depending on
|
67
|
+
the amount of work I may have at that moment.
|
68
|
+
|
69
|
+
In <b>2022</b> rubygems.org, or rather the corporate overlords who control the
|
70
|
+
rubygems.org infrastructure these days, decided to make 2FA mandatory for every
|
71
|
+
gem owner eventually: see
|
72
|
+
https://blog.rubygems.org/2022/06/13/making-packages-more-secure.html
|
73
|
+
|
74
|
+
Mandatory 2FA will eventually be extended to all rubygems.org developers and
|
75
|
+
maintainers. As I can not use 2FA, for reasons I will skip explaining here,
|
76
|
+
this means that my projects will eventually be taken over by shopify (or,
|
77
|
+
correspondingly, whoever effectively controls the rubygems.org ecosystem).
|
78
|
+
At that point, I no longer have any control what is done to my projects
|
79
|
+
since shopify (respectively those controlling the gems ecosystem) took away
|
80
|
+
control here. Not sure at which point ruby became corporate-controlled -
|
81
|
+
that was not the case several years ago.
|
82
|
+
|
83
|
+
Ruby also only allows 2FA users to participate on the issue tracker these
|
84
|
+
days:
|
85
|
+
|
86
|
+
https://bugs.ruby-lang.org/issues/18800
|
87
|
+
|
88
|
+
(Note that this was changed a few months ago, so the last part is no
|
89
|
+
longer valid - it is possible to register again without mandating
|
90
|
+
2FA. I will retain the above notice for a bit longer, though, as I feel
|
91
|
+
we should not restrict communication via mandatory authentification
|
92
|
+
in general. Fighting spam is a noble goal, but when it also means you
|
93
|
+
lock out real human people then this is definitely NOT good.)
|
94
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
require 'hardware_information'
|
6
|
+
|
7
|
+
_ = HardwareInformation.new(:do_not_run_yet)
|
8
|
+
unless ARGV.empty?
|
9
|
+
_.menu(ARGV)
|
10
|
+
end
|
11
|
+
_.run
|
12
|
+
_.report_result
|
data/doc/README.gen
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
DEFAULT_HEADER
|
2
|
+
|
3
|
+
# The HardwareInformation Project
|
4
|
+
|
5
|
+
<img src="https://i.imgur.com/v7paEUT.png" style="margin: 1em; border: 4px solid black;">
|
6
|
+
|
7
|
+
The above image has been partially auto-generated by cfdg
|
8
|
+
(context free design grammar). The cfdg gallery can be
|
9
|
+
seen at: https://www.contextfreeart.org/gallery/search.php?t=new&num=25
|
10
|
+
|
11
|
+
You can re-use the above image and change / re-shape it in any way,
|
12
|
+
shape or form, under a <b>CC BY-SA 4.0</b>, if you would like to.
|
13
|
+
(I should improve the image and remove the edgy blur effects,
|
14
|
+
but it is just some logo so that this gem also has a logo. I
|
15
|
+
did not want to invest too much time into this logo.)
|
16
|
+
|
17
|
+
The CC BY-SA licence can be read here: https://creativecommons.org/licenses/by-sa/4.0/
|
18
|
+
|
19
|
+
## Requiring the HardwareInformation gem
|
20
|
+
|
21
|
+
You can require this gem via:
|
22
|
+
|
23
|
+
require 'hardware_information'
|
24
|
+
|
25
|
+
## HardwareInformation.report
|
26
|
+
|
27
|
+
This toplevel API will report what hardware has been found
|
28
|
+
on the given computer system.
|
29
|
+
|
30
|
+
## Colour support
|
31
|
+
|
32
|
+
By default class HardwareInformation will try to show colours,
|
33
|
+
if used from the commandline.
|
34
|
+
|
35
|
+
If this is unwanted, you can pass any of the following flags
|
36
|
+
to disable colour support:
|
37
|
+
|
38
|
+
--disable-colours
|
39
|
+
--disable-colors
|
40
|
+
--no-colours
|
41
|
+
--no-colors
|
42
|
+
|
43
|
+
## Example screenshot of the output generated by class Hardwareinformation
|
44
|
+
|
45
|
+
<img src="https://i.imgur.com/cIqwg5V.png" style="margin: 1em">
|
46
|
+
|
47
|
+
ADD_CONTACT_INFORMATION
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# =========================================================================== #
|
2
|
+
# Gemspec for Project HardwareInformation.
|
3
|
+
# =========================================================================== #
|
4
|
+
require 'hardware_information/version/version.rb'
|
5
|
+
require 'roebe/toplevel_methods/misc.rb'
|
6
|
+
|
7
|
+
Gem::Specification.new { |s|
|
8
|
+
|
9
|
+
s.name = 'hardware_information'
|
10
|
+
s.version = HardwareInformation::VERSION
|
11
|
+
s.date = Time.now.strftime('%Y-%m-%d')
|
12
|
+
|
13
|
+
DESCRIPTION = <<-EOF
|
14
|
+
|
15
|
+
This small class will output Information about your hardware,
|
16
|
+
i.e. the Processor type and so on. This presently only works
|
17
|
+
on Linux, though.
|
18
|
+
|
19
|
+
EOF
|
20
|
+
s.summary = DESCRIPTION
|
21
|
+
s.description = DESCRIPTION
|
22
|
+
|
23
|
+
s.authors = ['Robert A. Heiler']
|
24
|
+
s.email = Roebe.email?
|
25
|
+
s.files = Dir['**/*']
|
26
|
+
s.homepage = 'https://rubygems.org/gems/environment_information'
|
27
|
+
s.license = 'GPL-2.0'
|
28
|
+
|
29
|
+
s.required_ruby_version = '>= '+Roebe.third_most_stable_version_of_ruby
|
30
|
+
s.required_rubygems_version = '>= '+Gem::VERSION
|
31
|
+
s.rubygems_version = '>= '+Gem::VERSION
|
32
|
+
|
33
|
+
# ============================================================== #
|
34
|
+
# Dependencies
|
35
|
+
# ============================================================== #
|
36
|
+
s.add_dependency 'colours'
|
37
|
+
|
38
|
+
}
|