roebe 0.5.120 → 0.5.121
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of roebe might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +57 -34
- data/doc/README.gen +56 -33
- data/doc/add_ons_for_ruby/fxruby.md +14 -0
- data/doc/add_ons_for_ruby/prawn.md +12 -0
- data/doc/sinatra_tutorial/sinatra_tutorial.rb +52 -22
- data/lib/roebe/base/colours.rb +59 -50
- data/lib/roebe/classes/create_file_skeleton/generate_ruby_string.rb +1 -0
- data/lib/roebe/classes/current_monitor_resolution.rb +27 -9
- data/lib/roebe/classes/do_install.rb +1 -9
- data/lib/roebe/classes/done.rb +1 -9
- data/lib/roebe/classes/done_and_open.rb +2 -13
- data/lib/roebe/classes/email.rb +36 -26
- data/lib/roebe/classes/find_out_version_of.rb +1 -5
- data/lib/roebe/classes/find_static_libraries.rb +1 -18
- data/lib/roebe/classes/fluxbox/generate_fluxbox_apps_file.rb +1 -9
- data/lib/roebe/classes/generate_fstab_file/generate_fstab_file.rb +1 -9
- data/lib/roebe/classes/generate_master_shell_script.rb +1 -13
- data/lib/roebe/classes/generate_system_values.rb +1 -9
- data/lib/roebe/classes/get_dependencies.rb +1 -9
- data/lib/roebe/classes/good_night.rb +1 -5
- data/lib/roebe/classes/google_url_cleaner.rb +1 -9
- data/lib/roebe/classes/grant_superuser_rights.rb +0 -5
- data/lib/roebe/classes/run/run.rb +130 -105
- data/lib/roebe/classes/symlink_files_from_that_directory_to_the_current_directory/symlink_files_from_that_directory_to_the_current_directory.rb +10 -1
- data/lib/roebe/classes/time/current_time_in_singapore.rb +1 -5
- data/lib/roebe/classes/umlaut_converter.rb +1 -1
- data/lib/roebe/classes/use_jruby.rb +68 -0
- data/lib/roebe/documentation/prawn.md +0 -11
- data/lib/roebe/gui/gtk3/shell/misc.rb +94 -0
- data/lib/roebe/gui/gtk3/shell/shell.rb +690 -10
- data/lib/roebe/gui/libui/shell/shell.rb +107 -0
- data/lib/roebe/gui/shared_code/shell/shell_module.rb +0 -601
- data/lib/roebe/pdf/README.md +1 -0
- data/lib/roebe/pdf/prawn/all_in_one_showcasing_prawn.rb +160 -0
- data/lib/roebe/requires/require_the_run_class.rb +7 -0
- data/lib/roebe/shell/shell/class_methods.rb +25 -0
- data/lib/roebe/shell/shell/core/browser.rb +4 -1
- data/lib/roebe/shell/shell/core/cat.rb +34 -28
- data/lib/roebe/shell/shell/core/disable.rb +12 -1
- data/lib/roebe/shell/shell/core/esystem.rb +10 -1
- data/lib/roebe/shell/shell/core/help.rb +24 -21
- data/lib/roebe/shell/shell/core/queries.rb +7 -7
- data/lib/roebe/shell/shell/core/set.rb +15 -0
- data/lib/roebe/shell/shell/core/show_display_feedback_and_report.rb +11 -7
- data/lib/roebe/shell/shell/core/stat.rb +4 -1
- data/lib/roebe/shell/shell/menu.rb +231 -173
- data/lib/roebe/shell/shell/shell.rb +77 -77
- data/lib/roebe/toplevel_methods/unicode/popular_unicode_symbols.rb +9 -0
- data/lib/roebe/version/version.rb +2 -2
- data/lib/roebe/www/cancer/cancer.rb +10 -5
- data/lib/roebe/www/cellbiology/cellbiology.rb +4 -0
- data/lib/roebe/www/covid19/covid19.rb +32 -6
- data/lib/roebe/www/developmental_biology/developmental_biology.rb +16 -4
- data/lib/roebe/www/genomics/genomics.rb +27 -3
- data/lib/roebe/www/hardware/computersysteme/computersysteme.rb +25 -13
- data/lib/roebe/www/libreoffice/libreoffice.rb +22 -5
- data/lib/roebe/www/lighttpd/autogenerated_lighttpd.conf +1 -1
- data/lib/roebe/www/lighttpd/configuration/redirects.conf +1 -1
- data/lib/roebe/www/links/links.rb +1 -1
- data/lib/roebe/www/mathematics/mathematics.rb +48 -24
- data/lib/roebe/www/neurobiology/neurobiology.rb +13 -3
- data/lib/roebe/www/virology/virology.rb +81 -58
- data/lib/roebe/www/weechat/weechat.cgi +1 -1
- data/lib/roebe/www/weechat/weechat.rb +4 -5
- data/lib/roebe/www/wlan/wlan.rb +9 -3
- metadata +12 -7
- data/lib/roebe/classes/monitor_resolution.rb +0 -95
- data/lib/roebe/gui/gtk2/shell/shell.rb +0 -37
- data/lib/roebe/gui/shared_code/shell/connect_skeleton.rb +0 -53
- data/lib/roebe/gui/shared_code/shell/constants.rb +0 -82
data/lib/roebe/classes/done.rb
CHANGED
@@ -19,11 +19,6 @@ module Roebe
|
|
19
19
|
|
20
20
|
class Done < ::Roebe::Base # === Roebe::Done
|
21
21
|
|
22
|
-
# ========================================================================= #
|
23
|
-
# === NAMESPACE
|
24
|
-
# ========================================================================= #
|
25
|
-
NAMESPACE = inspect
|
26
|
-
|
27
22
|
# ========================================================================= #
|
28
23
|
# === PREPEND_THIS
|
29
24
|
# ========================================================================= #
|
@@ -51,10 +46,7 @@ class Done < ::Roebe::Base # === Roebe::Done
|
|
51
46
|
# ========================================================================= #
|
52
47
|
def reset
|
53
48
|
super()
|
54
|
-
|
55
|
-
# === @namespace
|
56
|
-
# ======================================================================= #
|
57
|
-
@namespace = NAMESPACE
|
49
|
+
infer_the_namespace
|
58
50
|
# ======================================================================= #
|
59
51
|
# === @file_location
|
60
52
|
# ======================================================================= #
|
@@ -24,15 +24,6 @@ class DoneAndOpen < Base # === Roebe::DoneAndOpen
|
|
24
24
|
|
25
25
|
require 'roebe/classes/done.rb'
|
26
26
|
|
27
|
-
begin
|
28
|
-
require 'open'
|
29
|
-
rescue LoadError; end
|
30
|
-
|
31
|
-
# ========================================================================= #
|
32
|
-
# === NAMESPACE
|
33
|
-
# ========================================================================= #
|
34
|
-
NAMESPACE = inspect
|
35
|
-
|
36
27
|
# ========================================================================= #
|
37
28
|
# === initialize
|
38
29
|
# ========================================================================= #
|
@@ -52,16 +43,14 @@ class DoneAndOpen < Base # === Roebe::DoneAndOpen
|
|
52
43
|
# ========================================================================= #
|
53
44
|
def reset
|
54
45
|
super()
|
55
|
-
|
56
|
-
# === @namespace
|
57
|
-
# ======================================================================= #
|
58
|
-
@namespace = NAMESPACE
|
46
|
+
infer_the_namespace
|
59
47
|
# ======================================================================= #
|
60
48
|
# === @done
|
61
49
|
#
|
62
50
|
# This will carry an instance of class Done.
|
63
51
|
# ======================================================================= #
|
64
52
|
@done = nil
|
53
|
+
try_to_require_the_open_gem
|
65
54
|
end
|
66
55
|
|
67
56
|
# ========================================================================= #
|
data/lib/roebe/classes/email.rb
CHANGED
@@ -31,11 +31,6 @@ class Email < Base # === Roebe::Email
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
# ========================================================================= #
|
35
|
-
# === NAMESPACE
|
36
|
-
# ========================================================================= #
|
37
|
-
NAMESPACE = inspect
|
38
|
-
|
39
34
|
# ========================================================================= #
|
40
35
|
# === MAX_VALUE
|
41
36
|
# ========================================================================= #
|
@@ -82,10 +77,11 @@ class Email < Base # === Roebe::Email
|
|
82
77
|
# ========================================================================= #
|
83
78
|
def reset
|
84
79
|
super()
|
80
|
+
infer_the_namespace
|
85
81
|
@modify_the_buffer = true # This is the default value here.
|
86
82
|
contacts = BeautifulUrl['contacts']
|
87
|
-
if contacts.scan(/\/home\/x\/
|
88
|
-
contacts.gsub!(/^\/home\/x\/
|
83
|
+
if contacts.scan(/\/home\/x\/data\//).size > 1
|
84
|
+
contacts.gsub!(/^\/home\/x\/data/,'')
|
89
85
|
end
|
90
86
|
# ======================================================================= #
|
91
87
|
# === @data
|
@@ -116,7 +112,7 @@ class Email < Base # === Roebe::Email
|
|
116
112
|
def return_array_of_all_entries
|
117
113
|
@modify_the_buffer = false
|
118
114
|
array = []
|
119
|
-
(1..MAX_VALUE).each {|this_position|
|
115
|
+
(1 .. MAX_VALUE).each {|this_position|
|
120
116
|
array << try_to_find_this_entry(this_position)
|
121
117
|
}
|
122
118
|
return array
|
@@ -130,6 +126,35 @@ class Email < Base # === Roebe::Email
|
|
130
126
|
)
|
131
127
|
_ = case i # case tag
|
132
128
|
# ======================================================================= #
|
129
|
+
# === email daniela_richter
|
130
|
+
# ======================================================================= #
|
131
|
+
when /^-?-?Daniela(-|_)?Richter$/i
|
132
|
+
buffer_for('daniela.richter'+AT_BOKU)
|
133
|
+
# ======================================================================= #
|
134
|
+
# === email petra_kranyak
|
135
|
+
# ======================================================================= #
|
136
|
+
when 'petra_kranyak',
|
137
|
+
'kranyak',
|
138
|
+
'petra',
|
139
|
+
51
|
140
|
+
buffer_for('petra.kranyak'+AT_BOKU)
|
141
|
+
# ======================================================================= #
|
142
|
+
# === email individuelles_studium_boku
|
143
|
+
# ======================================================================= #
|
144
|
+
when 'individuelles_studium_boku',
|
145
|
+
'öh_boku'
|
146
|
+
buffer_for('idip@oehboku.at')
|
147
|
+
# ======================================================================= #
|
148
|
+
# === email boku_studienabteilung
|
149
|
+
#
|
150
|
+
# Alternativ: studienservices@boku.ac.at
|
151
|
+
# ======================================================================= #
|
152
|
+
when 'boku_studienabteilung',
|
153
|
+
'boku',
|
154
|
+
'bokustudienabteilung',
|
155
|
+
23
|
156
|
+
buffer_for('studabt@boku.ac.at')
|
157
|
+
# ======================================================================= #
|
133
158
|
# === email koller
|
134
159
|
# ======================================================================= #
|
135
160
|
when 'koller',
|
@@ -144,7 +169,9 @@ class Email < Base # === Roebe::Email
|
|
144
169
|
# ======================================================================= #
|
145
170
|
# === email ulla
|
146
171
|
# ======================================================================= #
|
147
|
-
when 'ulla',
|
172
|
+
when 'ulla',
|
173
|
+
'winkler2',
|
174
|
+
33
|
148
175
|
buffer_for('Ulla.Winkler@vetmeduni.ac.at')
|
149
176
|
# ======================================================================= #
|
150
177
|
# === email ebrahim
|
@@ -195,16 +222,6 @@ class Email < Base # === Roebe::Email
|
|
195
222
|
# buffer_for('studienabteilung@zv.tuwien.ac.at')
|
196
223
|
buffer_for('studienabteilung@tuwien.ac.at')
|
197
224
|
# ======================================================================= #
|
198
|
-
# === email boku_studienabteilung
|
199
|
-
#
|
200
|
-
# Alternativ: studienservices@boku.ac.at
|
201
|
-
# ======================================================================= #
|
202
|
-
when 'boku_studienabteilung',
|
203
|
-
'boku',
|
204
|
-
'bokustudienabteilung',
|
205
|
-
23
|
206
|
-
buffer_for('studabt@boku.ac.at')
|
207
|
-
# ======================================================================= #
|
208
225
|
# === email isabel
|
209
226
|
# ======================================================================= #
|
210
227
|
when 'isabel'
|
@@ -255,11 +272,6 @@ class Email < Base # === Roebe::Email
|
|
255
272
|
when 'uniwien',19
|
256
273
|
buffer_for('martina.roemer@univie.ac.at')
|
257
274
|
# ======================================================================= #
|
258
|
-
# === email individuelles_studium_boku
|
259
|
-
# ======================================================================= #
|
260
|
-
when 'individuelles_studium_boku','öh_boku'
|
261
|
-
buffer_for('idip@oehboku.at')
|
262
|
-
# ======================================================================= #
|
263
275
|
# === email traxlmayer
|
264
276
|
# ======================================================================= #
|
265
277
|
when /^Michael(_|-)?Traxlmayer$/i,
|
@@ -406,8 +418,6 @@ class Email < Base # === Roebe::Email
|
|
406
418
|
buffer_for('manfred.huettinger'+AT_UNI_WIEN)
|
407
419
|
when 'gustav_ammerer','ammerer',52
|
408
420
|
buffer_for('gustav.ammerer'+AT_UNI_WIEN)
|
409
|
-
when 'petra_kranyak','kranyak',51
|
410
|
-
buffer_for('petra.kranyak'+AT_BOKU)
|
411
421
|
when /Martina( | )?Weber/i,'weber',49
|
412
422
|
buffer_for('martina.weber'+AT_UNI_WIEN)
|
413
423
|
when /ovidiu_?paun/,'paun',48
|
@@ -18,11 +18,6 @@ module Roebe
|
|
18
18
|
|
19
19
|
class FindOutVersionOf < Base # === Roebe::FindOutVersionOf
|
20
20
|
|
21
|
-
# ========================================================================= #
|
22
|
-
# === NAMESPACE
|
23
|
-
# ========================================================================= #
|
24
|
-
NAMESPACE = inspect
|
25
|
-
|
26
21
|
# ========================================================================= #
|
27
22
|
# === RUBY_BASE_DIR
|
28
23
|
# ========================================================================= #
|
@@ -50,6 +45,7 @@ class FindOutVersionOf < Base # === Roebe::FindOutVersionOf
|
|
50
45
|
# ========================================================================= #
|
51
46
|
def reset
|
52
47
|
super()
|
48
|
+
infer_the_namespace
|
53
49
|
# === @version
|
54
50
|
@version = nil
|
55
51
|
end
|
@@ -30,11 +30,6 @@ class FindStaticLibraries < Base # === Roebe::FindStaticLibraries.new
|
|
30
30
|
# ========================================================================= #
|
31
31
|
FILE_STORE_INFORMATION_ABOUT_ALL_STATIC_LIBRARIES_HERE = '/Depot/Temp/static_libraries.md'
|
32
32
|
|
33
|
-
# ========================================================================= #
|
34
|
-
# === NAMESPACE
|
35
|
-
# ========================================================================= #
|
36
|
-
NAMESPACE = inspect
|
37
|
-
|
38
33
|
# ========================================================================= #
|
39
34
|
# === initialize
|
40
35
|
# ========================================================================= #
|
@@ -52,22 +47,10 @@ class FindStaticLibraries < Base # === Roebe::FindStaticLibraries.new
|
|
52
47
|
# ========================================================================= #
|
53
48
|
def reset
|
54
49
|
super()
|
50
|
+
infer_the_namespace
|
55
51
|
@array_static_libraries = []
|
56
52
|
end
|
57
53
|
|
58
|
-
# ========================================================================= #
|
59
|
-
# === set_commandline_arguments
|
60
|
-
# ========================================================================= #
|
61
|
-
def set_commandline_arguments(i)
|
62
|
-
@commandline_arguments = i
|
63
|
-
end
|
64
|
-
|
65
|
-
# ========================================================================= #
|
66
|
-
# === commandline_arguments?
|
67
|
-
# ========================================================================= #
|
68
|
-
def commandline_arguments?
|
69
|
-
@commandline_arguments
|
70
|
-
end
|
71
54
|
|
72
55
|
# ========================================================================= #
|
73
56
|
# === main_file?
|
@@ -19,11 +19,6 @@ module Roebe
|
|
19
19
|
|
20
20
|
class GenerateFluxboxAppsFile < Base # === Roebe::GenerateFluxboxAppsFile
|
21
21
|
|
22
|
-
# ========================================================================= #
|
23
|
-
# === NAMESPACE
|
24
|
-
# ========================================================================= #
|
25
|
-
NAMESPACE = inspect
|
26
|
-
|
27
22
|
# ========================================================================= #
|
28
23
|
# === initialize
|
29
24
|
# ========================================================================= #
|
@@ -50,10 +45,7 @@ class GenerateFluxboxAppsFile < Base # === Roebe::GenerateFluxboxAppsFile
|
|
50
45
|
# ========================================================================= #
|
51
46
|
def reset
|
52
47
|
super()
|
53
|
-
|
54
|
-
# === @namespace
|
55
|
-
# ======================================================================= #
|
56
|
-
@namespace = NAMESPACE
|
48
|
+
infer_the_namespace
|
57
49
|
# ======================================================================= #
|
58
50
|
# === @_
|
59
51
|
# ======================================================================= #
|
@@ -50,11 +50,6 @@ module Roebe
|
|
50
50
|
|
51
51
|
class GenerateFstabFile < Base # === Roebe::GenerateFstabFile
|
52
52
|
|
53
|
-
# ========================================================================= #
|
54
|
-
# === NAMESPACE
|
55
|
-
# ========================================================================= #
|
56
|
-
NAMESPACE = inspect
|
57
|
-
|
58
53
|
# ========================================================================= #
|
59
54
|
# === USE_THIS_YAML_FILE
|
60
55
|
#
|
@@ -86,10 +81,7 @@ class GenerateFstabFile < Base # === Roebe::GenerateFstabFile
|
|
86
81
|
# ========================================================================= #
|
87
82
|
def reset
|
88
83
|
super()
|
89
|
-
|
90
|
-
# === @namespace
|
91
|
-
# ======================================================================= #
|
92
|
-
@namespace = NAMESPACE
|
84
|
+
infer_the_namespace
|
93
85
|
# ======================================================================= #
|
94
86
|
# === @biggest_ljust_value
|
95
87
|
#
|
@@ -22,11 +22,6 @@ module Roebe
|
|
22
22
|
|
23
23
|
class GenerateMasterShellScript < Base # === Roebe::GenerateMasterShellScript
|
24
24
|
|
25
|
-
# ========================================================================= #
|
26
|
-
# === NAMESPACE
|
27
|
-
# ========================================================================= #
|
28
|
-
NAMESPACE = inspect
|
29
|
-
|
30
25
|
# ========================================================================= #
|
31
26
|
# === initialize
|
32
27
|
# ========================================================================= #
|
@@ -44,18 +39,11 @@ class GenerateMasterShellScript < Base # === Roebe::GenerateMasterShellScript
|
|
44
39
|
# ========================================================================= #
|
45
40
|
def reset
|
46
41
|
super()
|
47
|
-
|
42
|
+
infer_the_namespace
|
48
43
|
@what = ''.dup
|
49
44
|
@into = 'big_aggregate_shell_file.sh'
|
50
45
|
end
|
51
46
|
|
52
|
-
# ========================================================================= #
|
53
|
-
# === set_commandline_arguments
|
54
|
-
# ========================================================================= #
|
55
|
-
def set_commandline_arguments(i)
|
56
|
-
i = [i].flatten.compact
|
57
|
-
end
|
58
|
-
|
59
47
|
# ========================================================================= #
|
60
48
|
# === introduction_to_this_class_for_the_user
|
61
49
|
# ========================================================================= #
|
@@ -24,11 +24,6 @@ module Roebe
|
|
24
24
|
|
25
25
|
class GenerateSystemValues < Base # === Roebe::GenerateSystemValues
|
26
26
|
|
27
|
-
# ========================================================================= #
|
28
|
-
# === NAMESPACE
|
29
|
-
# ========================================================================= #
|
30
|
-
NAMESPACE = inspect
|
31
|
-
|
32
27
|
# ========================================================================= #
|
33
28
|
# === STORE_IN_THIS_FILE
|
34
29
|
#
|
@@ -90,10 +85,7 @@ class GenerateSystemValues < Base # === Roebe::GenerateSystemValues
|
|
90
85
|
# ========================================================================= #
|
91
86
|
def reset
|
92
87
|
super()
|
93
|
-
|
94
|
-
# === @namespace
|
95
|
-
# ======================================================================= #
|
96
|
-
@namespace = NAMESPACE
|
88
|
+
infer_the_namespace
|
97
89
|
end
|
98
90
|
|
99
91
|
# ========================================================================= #
|
@@ -23,11 +23,6 @@ class GetDependencies < Base # === Roebe::GetDependencies
|
|
23
23
|
|
24
24
|
require 'rubygems/commands/dependency_command.rb'
|
25
25
|
|
26
|
-
# ========================================================================= #
|
27
|
-
# === NAMESPACE
|
28
|
-
# ========================================================================= #
|
29
|
-
NAMESPACE = inspect
|
30
|
-
|
31
26
|
# ========================================================================= #
|
32
27
|
# === GEM_CMD
|
33
28
|
#
|
@@ -64,10 +59,7 @@ class GetDependencies < Base # === Roebe::GetDependencies
|
|
64
59
|
# ========================================================================= #
|
65
60
|
def reset
|
66
61
|
super()
|
67
|
-
|
68
|
-
# === @namespace
|
69
|
-
# ======================================================================= #
|
70
|
-
@namespace = NAMESPACE
|
62
|
+
infer_the_namespace
|
71
63
|
# ======================================================================= #
|
72
64
|
# === @array_dependencies
|
73
65
|
#
|
@@ -25,11 +25,6 @@ class GoodNight < Base # === Roebe::GoodNight
|
|
25
25
|
require 'multimedia_paradise/video/mplayer_wrapper.rb'
|
26
26
|
rescue LoadError; end
|
27
27
|
|
28
|
-
# ========================================================================= #
|
29
|
-
# === NAMESPACE
|
30
|
-
# ========================================================================= #
|
31
|
-
NAMESPACE = inspect
|
32
|
-
|
33
28
|
# ========================================================================= #
|
34
29
|
# === BASE_DIR
|
35
30
|
# ========================================================================= #
|
@@ -52,6 +47,7 @@ class GoodNight < Base # === Roebe::GoodNight
|
|
52
47
|
# ========================================================================= #
|
53
48
|
def reset
|
54
49
|
super()
|
50
|
+
infer_the_namespace
|
55
51
|
end
|
56
52
|
|
57
53
|
# ========================================================================= #
|
@@ -21,11 +21,6 @@ module Roebe
|
|
21
21
|
|
22
22
|
class GoogleUrlCleaner < Base # === Roebe::GoogleUrlCleaner
|
23
23
|
|
24
|
-
# ========================================================================= #
|
25
|
-
# === NAMESPACE
|
26
|
-
# ========================================================================= #
|
27
|
-
NAMESPACE = inspect
|
28
|
-
|
29
24
|
# ========================================================================= #
|
30
25
|
# === initialize
|
31
26
|
# ========================================================================= #
|
@@ -51,10 +46,7 @@ class GoogleUrlCleaner < Base # === Roebe::GoogleUrlCleaner
|
|
51
46
|
# ========================================================================= #
|
52
47
|
def reset
|
53
48
|
super()
|
54
|
-
|
55
|
-
# === @namespace
|
56
|
-
# ======================================================================= #
|
57
|
-
@namespace = NAMESPACE
|
49
|
+
infer_the_namespace
|
58
50
|
# ======================================================================= #
|
59
51
|
# === @result
|
60
52
|
#
|
@@ -25,11 +25,6 @@ module Roebe
|
|
25
25
|
|
26
26
|
class GrantSuperuserRights < Base # === Roebe::GrantSuperuserRights
|
27
27
|
|
28
|
-
# ========================================================================= #
|
29
|
-
# === NAMESPACE
|
30
|
-
# ========================================================================= #
|
31
|
-
NAMESPACE = inspect
|
32
|
-
|
33
28
|
# ========================================================================= #
|
34
29
|
# === MODIFY_THIS_FILE
|
35
30
|
# ========================================================================= #
|