autostart 1.0.20 → 1.0.21

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f97737cfede85b97e6383c658e538070388eed65b8ba926918de09eca4b52531
4
- data.tar.gz: 02517dd90b45aebf37d5e2f3ca37020d5e5167e2926a73c7bdb7fbb9998f3eae
3
+ metadata.gz: 3e3df2e7b2433416faa3fe873c1ff51b795f46754820348ff16b16d0ab515824
4
+ data.tar.gz: c07df0a1a35ef3e8134a670c5191aa6028c51942979a2c6d69c3988a2bc739fe
5
5
  SHA512:
6
- metadata.gz: 7f5594455710d344ac1688a41408ae7bc03564138ef4f1ffe0b964f2379a57544b7869ca27bdb5e314c885d8a39fb24f1f00116d09096a733c029365d843f890
7
- data.tar.gz: 1f8ccad56776d00ffeb703bfe3443fd861c952e17c7c6b173a62f65d794e116f18ed546c1f3c15a864b1b6785bd1249662b8a23ba490fe5f97412b7b0f78fed1
6
+ metadata.gz: 8700cd6491df2e692fa6b499cd3fb0e5ccc2296df3c249464604710e72b7fd3990e0ce719f5092459d707e17f591279143e631fc6182369a1819876f490f9e3f
7
+ data.tar.gz: b81e4915753fc19925e821c26885b419230db9821b87b11449c0da9caf5128c773bf52035feeb9907dcd6a1c510b698f299362ee495e80b85f5e62adb752ce35
data/autostart.gemspec CHANGED
@@ -2,6 +2,7 @@
2
2
  # Gemspec for Project Autostart.
3
3
  # =========================================================================== #
4
4
  require 'autostart/version/version.rb'
5
+ require 'roebe'
5
6
 
6
7
  Gem::Specification.new { |s|
7
8
 
@@ -14,24 +15,16 @@ Gem::Specification.new { |s|
14
15
  This tiny project just tries to create some autostart-related
15
16
  files. I dont think it will be too useful for others though.
16
17
 
17
- If you have specific suggestions to make this gem more
18
- useful for others, please drop me an email at:
19
-
20
- shevegen@gmail.com
21
-
22
- Thank you.
23
18
  EOF
24
19
 
25
20
  s.summary = DESCRIPTION
26
21
  s.description = DESCRIPTION
27
22
 
28
- s.extra_rdoc_files = %w()
29
-
30
23
  s.authors = ['Robert A. Heiler']
31
- s.email = 'shevegen@gmail.com'
24
+ s.email = Roebe.email?
32
25
  s.license = 'GPL-2.0'
33
26
  s.files = Dir['**/*']
34
- s.homepage = 'http://rubygems.org/gems/autostart'
27
+ s.homepage = 'https://rubygems.org/gems/autostart'
35
28
 
36
29
  s.required_ruby_version = '>= '+RUBY_VERSION
37
30
  s.required_rubygems_version = '>= '+Gem::VERSION
data/bin/autostart CHANGED
@@ -1,5 +1,5 @@
1
- #!/System/Index/bin/ruby -w
2
- # Encoding: ISO-8859-1
1
+ #!/usr/bin/ruby -w
2
+ # Encoding: UTF-8
3
3
  # frozen_string_literal: true
4
4
  # =========================================================================== #
5
5
  require 'autostart'
@@ -1,4 +1,4 @@
1
- #!/System/Index/bin/ruby -w
1
+ #!/usr/bin/ruby -w
2
2
  # Encoding: UTF-8
3
3
  # frozen_string_literal: true
4
4
  # =========================================================================== #
@@ -10,22 +10,28 @@
10
10
  # =========================================================================== #
11
11
  # require 'autostart'
12
12
  # =========================================================================== #
13
- require 'fileutils'
14
- require 'opn'
15
- begin
16
- require 'colours'
17
- rescue LoadError; end
18
- require 'convert_global_env'
19
- require 'autostart/constants.rb'
20
- require 'autostart/version/version.rb'
13
+ class Autostart # === Autostart
21
14
 
22
- begin
23
- require 'roebe/classes/create_desktop_file.rb'
24
- rescue LoadError; end # bl $ROEBE/classes/create_desktop_file.rb
15
+ require 'fileutils'
16
+ require 'autostart/constants.rb'
17
+ require 'autostart/version/version.rb'
18
+
19
+ begin
20
+ require 'roebe/classes/create_desktop_file.rb'
21
+ rescue LoadError; end # bl $ROEBE/classes/create_desktop_file.rb
25
22
 
26
- class Autostart # Autostart.new
23
+ begin
24
+ require 'opn'
25
+ rescue LoadError; end
27
26
 
28
- include Colours
27
+ begin
28
+ require 'colours'
29
+ include ::Colours
30
+ rescue LoadError; end
31
+
32
+ begin
33
+ require 'convert_global_env'
34
+ rescue LoadError; end
29
35
 
30
36
  # ========================================================================= #
31
37
  # === initialize
@@ -42,6 +48,9 @@ class Autostart # Autostart.new
42
48
  # ========================================================================= #
43
49
  def reset
44
50
  @array_these_symlinks_were_not_found = []
51
+ # ======================================================================= #
52
+ # === @be_verbose
53
+ # ======================================================================= #
45
54
  @be_verbose = true
46
55
  end
47
56
 
@@ -50,8 +59,9 @@ class Autostart # Autostart.new
50
59
  # ========================================================================= #
51
60
  def consider_reporting_missing_entries_to_the_user
52
61
  unless @array_these_symlinks_were_not_found.empty?
53
- e; opn; e 'We did find some missing entries. Perhaps you '\
54
- 'may wish to correct these:'
62
+ e
63
+ opn; e 'We did find some missing entries. Perhaps you '\
64
+ 'may wish to correct these:'
55
65
  e
56
66
  @array_these_symlinks_were_not_found.each {|entry|
57
67
  e simp(" #{entry}")
@@ -79,7 +89,7 @@ class Autostart # Autostart.new
79
89
  # === red
80
90
  # ========================================================================= #
81
91
  def red
82
- Colours::RED
92
+ ::Colours::RED
83
93
  end
84
94
 
85
95
  # ========================================================================= #
@@ -97,7 +107,9 @@ class Autostart # Autostart.new
97
107
  # === symlink
98
108
  #
99
109
  # This method accepts only one argument and will split it based on ' '.
100
- # File.symlink(real_existing_location, new_location)
110
+ #
111
+ # File.symlink(real_existing_location, new_location)
112
+ #
101
113
  # ========================================================================= #
102
114
  def symlink(i) # Expects string input.
103
115
  real_existing_location, new_location = i.split ' '
@@ -144,8 +156,10 @@ class Autostart # Autostart.new
144
156
  for_this_program = :xfce
145
157
  )
146
158
  case for_this_program
159
+ # === :xfce
147
160
  when :xfce
148
161
  for_this_program = 'XFCE'
162
+ # === :kde
149
163
  when :kde
150
164
  for_this_program = 'KDE'
151
165
  end
@@ -180,7 +194,9 @@ class Autostart # Autostart.new
180
194
  # === autostart_kde (kde tag)
181
195
  #
182
196
  # To invoke this method, do:
197
+ #
183
198
  # autostart --kde
199
+ #
184
200
  # ========================================================================= #
185
201
  def autostart_kde
186
202
  show_header :kde
@@ -197,11 +213,22 @@ class Autostart # Autostart.new
197
213
  # === autostart_mate
198
214
  # ========================================================================= #
199
215
  def autostart_mate(
200
- use_these_programs = YAML.load_file(
201
- '/Users/x/DATA/PROGRAMMING_LANGUAGES/RUBY/src/roebe/lib/roebe/yaml/'\
216
+ use_these_programs = :load_from_the_default_yaml_file
217
+ )
218
+ case use_these_programs
219
+ # ======================================================================= #
220
+ # === :load_from_the_default_yaml_file
221
+ # ======================================================================= #
222
+ when :load_from_the_default_yaml_file,
223
+ :default
224
+ YAML.load_file(
225
+ '/home/x/programming/ruby/src/roebe/lib/roebe/yaml/'\
202
226
  'autostart_these_programs.yml'
203
227
  )
204
- )
228
+ end
229
+ if use_these_programs and File.exist?(use_these_programs)
230
+ use_these_programs = YAML.load_file(use_these_programs)
231
+ end
205
232
  show_header :mate
206
233
  home_dir = HOME_DIR+'.config/autostart'
207
234
  mkdir home_dir
@@ -210,24 +237,6 @@ class Autostart # Autostart.new
210
237
  }
211
238
  end
212
239
 
213
- # ========================================================================= #
214
- # === autostart_xfce (xfce tag)
215
- #
216
- # This will usually default to programs such as:
217
- # xchat, bluefish, konsole and mrxvt.
218
- # ========================================================================= #
219
- def autostart_xfce(
220
- i = ARRAY_SYMLINK_THESE_ENTRIES_FOR_XFCE
221
- )
222
- show_header :xfce
223
- # home_dir = '~/.config/autostart'
224
- home_dir = HOME_DIR+'.config/autostart'
225
- mkdir home_dir
226
- i.each {|entry|
227
- symlink(entry+' '+home_dir)
228
- }
229
- end
230
-
231
240
  # ========================================================================= #
232
241
  # === autostart_what
233
242
  # ========================================================================= #
@@ -247,6 +256,11 @@ class Autostart # Autostart.new
247
256
  when /^-?-?mate$/
248
257
  autostart_mate
249
258
  # ======================================================================= #
259
+ # === autostart icewm
260
+ # ======================================================================= #
261
+ when /^-?-?icewm$/
262
+ autostart_icewm
263
+ # ======================================================================= #
250
264
  # === autostart xfce
251
265
  # ======================================================================= #
252
266
  when /^-?-?xfce$/,'default','' # This is the default since August 2013.
@@ -267,21 +281,55 @@ class Autostart # Autostart.new
267
281
  # === orange
268
282
  # ========================================================================= #
269
283
  def orange(i)
270
- Colours.orange(i)
284
+ ::Colours.orange(i)
285
+ end
286
+
287
+ # ========================================================================= #
288
+ # === autostart_icewm
289
+ # ========================================================================= #
290
+ def autostart_icewm(
291
+ i = ARRAY_SYMLINK_THESE_ENTRIES_FOR_XFCE
292
+ )
293
+ show_header :icewm
294
+ home_dir = HOME_DIR+'.config/autostart'
295
+ mkdir home_dir
296
+ i.each {|entry|
297
+ symlink("#{entry} #{home_dir}")
298
+ }
299
+ end
300
+
301
+ # ========================================================================= #
302
+ # === autostart_xfce (xfce tag)
303
+ #
304
+ # This will usually default to programs such as:
305
+ #
306
+ # xchat, bluefish, konsole and mrxvt.
307
+ #
308
+ # ========================================================================= #
309
+ def autostart_xfce(
310
+ i = ARRAY_SYMLINK_THESE_ENTRIES_FOR_XFCE
311
+ )
312
+ show_header :xfce
313
+ # home_dir = '~/.config/autostart'
314
+ home_dir = HOME_DIR+'.config/autostart'
315
+ mkdir home_dir
316
+ i.each {|entry|
317
+ symlink("#{entry} #{home_dir}")
318
+ }
271
319
  end
272
320
 
273
321
  # ========================================================================= #
274
322
  # === Autostart.autostart_kde
275
323
  # ========================================================================= #
276
324
  def self.autostart_kde
277
- self.new(:kde)
325
+ new(:kde)
278
326
  end
279
327
 
280
328
  # ========================================================================= #
281
329
  # === Autostart.run
282
330
  # ========================================================================= #
283
331
  def self.run(i = ARGV)
284
- self.new(i)
332
+ new(i)
285
333
  end
286
334
 
287
335
  end
@@ -1,9 +1,13 @@
1
- #!/System/Index/bin/ruby -w
2
- # Encoding: ISO-8859-1
1
+ #!/usr/bin/ruby -w
2
+ # Encoding: UTF-8
3
3
  # frozen_string_literal: true
4
4
  # =========================================================================== #
5
5
  class Autostart
6
6
 
7
+ begin
8
+ require 'colours'
9
+ rescue LoadError; end
10
+
7
11
  # ========================================================================= #
8
12
  # === DEFAULT_INPUT
9
13
  # ========================================================================= #
@@ -12,7 +16,7 @@ class Autostart
12
16
  # ========================================================================= #
13
17
  # === DEFAULT_COLOUR
14
18
  # ========================================================================= #
15
- DEFAULT_COLOUR = Colours::GREEN
19
+ DEFAULT_COLOUR = ::Colours::GREEN
16
20
 
17
21
  # ========================================================================= #
18
22
  # === HOME_DIR
@@ -67,11 +71,11 @@ class Autostart
67
71
  #
68
72
  # Use xchat, bluefish, konsole and mrxvt.
69
73
  # ========================================================================= #
70
- ARRAY_SYMLINK_THESE_ENTRIES_FOR_XFCE = %w(
71
- $SYSBIN/xchat
72
- $SYSBIN/bluefish
73
- $SYSBIN/konsole
74
- $SYSBIN/mrxvt
75
- ) << FIREFOX_BINARY # And append the missing firefox binary here. This line works fine.
74
+ ARRAY_SYMLINK_THESE_ENTRIES_FOR_XFCE = [
75
+ # SYSBIN+'/bluefish',xchat
76
+ SYSBIN+'/bluefish',
77
+ SYSBIN+'/konsole',
78
+ SYSBIN+'/mrxvt'
79
+ ] << FIREFOX_BINARY # And append the missing firefox binary here. This line works fine.
76
80
 
77
81
  end
@@ -1,5 +1,5 @@
1
- #!/System/Index/bin/ruby -w
2
- # Encoding: ISO-8859-1
1
+ #!/usr/bin/ruby -w
2
+ # Encoding: UTF-8
3
3
  # frozen_string_literal: true
4
4
  # =========================================================================== #
5
5
  # require 'autostart/version/version.rb'
@@ -9,6 +9,6 @@ class Autostart
9
9
  # ========================================================================= #
10
10
  # === Autostart::VERSION
11
11
  # ========================================================================= #
12
- VERSION = '1.0.20'
12
+ VERSION = '1.0.21'
13
13
 
14
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autostart
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.20
4
+ version: 1.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert A. Heiler
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-24 00:00:00.000000000 Z
11
+ date: 2022-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colours
@@ -38,18 +38,12 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: |2
41
+ description: |2+
42
42
 
43
43
  This tiny project just tries to create some autostart-related
44
44
  files. I dont think it will be too useful for others though.
45
45
 
46
- If you have specific suggestions to make this gem more
47
- useful for others, please drop me an email at:
48
-
49
- shevegen@gmail.com
50
-
51
- Thank you.
52
- email: shevegen@gmail.com
46
+ email: shevy@inbox.lt
53
47
  executables: []
54
48
  extensions: []
55
49
  extra_rdoc_files: []
@@ -60,11 +54,11 @@ files:
60
54
  - lib/autostart/autostart.rb
61
55
  - lib/autostart/constants.rb
62
56
  - lib/autostart/version/version.rb
63
- homepage: http://rubygems.org/gems/autostart
57
+ homepage: https://rubygems.org/gems/autostart
64
58
  licenses:
65
59
  - GPL-2.0
66
60
  metadata: {}
67
- post_install_message:
61
+ post_install_message:
68
62
  rdoc_options: []
69
63
  require_paths:
70
64
  - lib
@@ -72,18 +66,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
72
66
  requirements:
73
67
  - - ">="
74
68
  - !ruby/object:Gem::Version
75
- version: 2.6.3
69
+ version: 3.1.2
76
70
  required_rubygems_version: !ruby/object:Gem::Requirement
77
71
  requirements:
78
72
  - - ">="
79
73
  - !ruby/object:Gem::Version
80
- version: 3.0.3
74
+ version: 3.3.26
81
75
  requirements: []
82
- rubygems_version: 3.0.3
83
- signing_key:
76
+ rubygems_version: 3.3.26
77
+ signing_key:
84
78
  specification_version: 4
85
- summary: 'This tiny project just tries to create some autostart-related files. I dont
86
- think it will be too useful for others though. If you have specific suggestions
87
- to make this gem more useful for others, please drop me an email at: shevegen@gmail.com Thank
88
- you.'
79
+ summary: This tiny project just tries to create some autostart-related files. I dont
80
+ think it will be too useful for others though.
89
81
  test_files: []
82
+ ...