rcfiles 1.1.1137
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rcfiles might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/README.md +401 -0
- data/bin/rcfiles +7 -0
- data/bin/rcfiles_run_it +7 -0
- data/doc/README.gen +384 -0
- data/lib/rcfiles.rb +1 -0
- data/lib/rcfiles/class/colours.rb +54 -0
- data/lib/rcfiles/class/initialize.rb +66 -0
- data/lib/rcfiles/class/misc.rb +299 -0
- data/lib/rcfiles/class/rcfiles.rb +31 -0
- data/lib/rcfiles/class/reset.rb +26 -0
- data/lib/rcfiles/class/run.rb +17 -0
- data/lib/rcfiles/colours/colours.rb +107 -0
- data/lib/rcfiles/commandline/commandline.rb +170 -0
- data/lib/rcfiles/constants/custom_files.rb +80 -0
- data/lib/rcfiles/constants/encodings.rb +85 -0
- data/lib/rcfiles/constants/misc.rb +75 -0
- data/lib/rcfiles/constants/namespace.rb +18 -0
- data/lib/rcfiles/expand_cd_aliases/constants.rb +50 -0
- data/lib/rcfiles/expand_cd_aliases/expand_cd_aliases.rb +626 -0
- data/lib/rcfiles/expand_cd_aliases/run.rb +18 -0
- data/lib/rcfiles/files/file_aliases.rb +78 -0
- data/lib/rcfiles/files/file_cd_aliases.rb +85 -0
- data/lib/rcfiles/files/file_ls_colours.rb +76 -0
- data/lib/rcfiles/files/file_path_variable.rb +74 -0
- data/lib/rcfiles/files/file_pkgconfig.rb +74 -0
- data/lib/rcfiles/files/file_programs_aliases.rb +68 -0
- data/lib/rcfiles/files/file_ps1.rb +80 -0
- data/lib/rcfiles/files/file_system_settings.rb +66 -0
- data/lib/rcfiles/help/help.rb +46 -0
- data/lib/rcfiles/no_colours.rb +13 -0
- data/lib/rcfiles/project/project.rb +45 -0
- data/lib/rcfiles/rcfiles/README.md +5 -0
- data/lib/rcfiles/rcfiles/aliases_rc +18526 -0
- data/lib/rcfiles/rcfiles/cd_aliases_rc +13313 -0
- data/lib/rcfiles/rcfiles/cflags_rc +9 -0
- data/lib/rcfiles/rcfiles/compile_rc +11 -0
- data/lib/rcfiles/rcfiles/file_information_rc +16 -0
- data/lib/rcfiles/rcfiles/german_umlaute_rc +264 -0
- data/lib/rcfiles/rcfiles/gnome_rc +10 -0
- data/lib/rcfiles/rcfiles/kde_rc +17 -0
- data/lib/rcfiles/rcfiles/kernel_rc +12 -0
- data/lib/rcfiles/rcfiles/lang_rc +9 -0
- data/lib/rcfiles/rcfiles/ldflags_rc +8 -0
- data/lib/rcfiles/rcfiles/ls_colours_rc +9 -0
- data/lib/rcfiles/rcfiles/network_rc +37 -0
- data/lib/rcfiles/rcfiles/path_variable_rc +9 -0
- data/lib/rcfiles/rcfiles/pkgconfig_rc +9 -0
- data/lib/rcfiles/rcfiles/programs_aliases_rc +15597 -0
- data/lib/rcfiles/rcfiles/ps1_rc +9 -0
- data/lib/rcfiles/rcfiles/special_aliases_rc +23 -0
- data/lib/rcfiles/rcfiles/system_rc +13 -0
- data/lib/rcfiles/rcfiles/system_settings_rc +191 -0
- data/lib/rcfiles/rcfiles/term_rc +9 -0
- data/lib/rcfiles/rcfiles/video_rc +24 -0
- data/lib/rcfiles/requires/require_the_expand_cd_aliases.rb +7 -0
- data/lib/rcfiles/requires/require_the_rcfiles_constants.rb +21 -0
- data/lib/rcfiles/requires/require_the_rcfiles_project.rb +66 -0
- data/lib/rcfiles/requires/try_to_require_syck_and_psych.rb +18 -0
- data/lib/rcfiles/toplevel_methods/autogenerate_rc_file_from_this_yaml_file.rb +102 -0
- data/lib/rcfiles/toplevel_methods/change_directory.rb +16 -0
- data/lib/rcfiles/toplevel_methods/convert.rb +118 -0
- data/lib/rcfiles/toplevel_methods/create_windows_cd_aliases_bat_file.rb +51 -0
- data/lib/rcfiles/toplevel_methods/e.rb +16 -0
- data/lib/rcfiles/toplevel_methods/esystem.rb +19 -0
- data/lib/rcfiles/toplevel_methods/generate_yaml_files.rb +148 -0
- data/lib/rcfiles/toplevel_methods/infer.rb +83 -0
- data/lib/rcfiles/toplevel_methods/is_on_roebe.rb +16 -0
- data/lib/rcfiles/toplevel_methods/main_directory.rb +108 -0
- data/lib/rcfiles/toplevel_methods/misc.rb +304 -0
- data/lib/rcfiles/toplevel_methods/n_registered_aliases_in_total.rb +55 -0
- data/lib/rcfiles/toplevel_methods/no_file_exists_at.rb +19 -0
- data/lib/rcfiles/toplevel_methods/notifications.rb +33 -0
- data/lib/rcfiles/toplevel_methods/rds.rb +16 -0
- data/lib/rcfiles/toplevel_methods/remove_newlines.rb +29 -0
- data/lib/rcfiles/toplevel_methods/report.rb +53 -0
- data/lib/rcfiles/toplevel_methods/return_standard_header.rb +36 -0
- data/lib/rcfiles/toplevel_methods/run_it.rb +46 -0
- data/lib/rcfiles/toplevel_methods/save_file.rb +27 -0
- data/lib/rcfiles/toplevel_methods/use_psych_or_syck.rb +50 -0
- data/lib/rcfiles/toplevel_methods/use_quotes.rb +68 -0
- data/lib/rcfiles/toplevel_methods/verbosity.rb +28 -0
- data/lib/rcfiles/version/version.rb +26 -0
- data/lib/rcfiles/yaml/aliases.yml +20991 -0
- data/lib/rcfiles/yaml/cd_aliases.yml +13970 -0
- data/lib/rcfiles/yaml/ls_colours.yml +128 -0
- data/lib/rcfiles/yaml/path_variable.yml +12 -0
- data/lib/rcfiles/yaml/pkgconfig.yml +46 -0
- data/lib/rcfiles/yaml/programs_aliases.yml +17081 -0
- data/lib/rcfiles/yaml/ps1.yml +82 -0
- data/lib/rcfiles/yaml/store_into_this_directory.yml +1 -0
- data/lib/rcfiles/yaml/system_settings.yml +513 -0
- data/lib/rcfiles/yaml/use_psych_or_syck.yml +1 -0
- data/rcfiles.gemspec +56 -0
- data/test/testing_expand_cd_aliases.rb +47 -0
- data/test/testing_yaml_to_rcfiles.rb +9 -0
- metadata +201 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
# require 'rcfiles/toplevel_methods/no_file_exists_at.rb'
|
6
|
+
# =========================================================================== #
|
7
|
+
require 'rcfiles/colours/colours.rb'
|
8
|
+
require 'rcfiles/toplevel_methods/e.rb'
|
9
|
+
|
10
|
+
module Rcfiles
|
11
|
+
|
12
|
+
# ========================================================================= #
|
13
|
+
# === Rcfiles.no_file_exists_at
|
14
|
+
# ========================================================================= #
|
15
|
+
def self.no_file_exists_at(i)
|
16
|
+
e "No file exists at `#{sfile(i)}`."
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
# The purpose of this file is to bundle code that can be used to notify
|
6
|
+
# the user, for example, when a file is generated. Before this file was
|
7
|
+
# created there was a lot of redundancy in different files; now we have
|
8
|
+
# unified this under this new .rb file here (November 2019:
|
9
|
+
# =========================================================================== #
|
10
|
+
# require 'rcfiles/toplevel_methods/notifications.rb'
|
11
|
+
# =========================================================================== #
|
12
|
+
require 'yaml'
|
13
|
+
require 'rcfiles/colours/colours.rb'
|
14
|
+
require 'rcfiles/toplevel_methods/main_directory.rb'
|
15
|
+
require 'rcfiles/toplevel_methods/no_file_exists_at.rb'
|
16
|
+
require 'rcfiles/toplevel_methods/return_standard_header.rb'
|
17
|
+
|
18
|
+
module Rcfiles
|
19
|
+
|
20
|
+
# ========================================================================= #
|
21
|
+
# === Rcfiles.notify_the_user_that_this_file_will_be_generated_from_that_existing_file
|
22
|
+
#
|
23
|
+
# This method only notifies the user. It does not generate any file on
|
24
|
+
# its own.
|
25
|
+
# ========================================================================= #
|
26
|
+
def self.notify_the_user_that_this_file_will_be_generated_from_that_existing_file(
|
27
|
+
this_file, that_existing_file
|
28
|
+
)
|
29
|
+
e "#{rev}Now generating `#{sfile(this_file)}`, from "
|
30
|
+
e "#{sfile(that_existing_file)}."
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
# require 'rcfiles/toplevel_methods/rds.rb'
|
6
|
+
# =========================================================================== #
|
7
|
+
module Rcfiles
|
8
|
+
|
9
|
+
# ========================================================================= #
|
10
|
+
# === Rcfiles.rds
|
11
|
+
# ========================================================================= #
|
12
|
+
def self.rds(i)
|
13
|
+
i.squeeze('/')
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
# require 'rcfiles/toplevel_methods/remove_newlines.rb'
|
6
|
+
# =========================================================================== #
|
7
|
+
module Rcfiles
|
8
|
+
|
9
|
+
# ========================================================================= #
|
10
|
+
# === Rcfiles.remove_newlines
|
11
|
+
#
|
12
|
+
# This method will remove all newlines of the given input. The given
|
13
|
+
# input is the first argument to this method.
|
14
|
+
#
|
15
|
+
# The optional second input to this method can be used to also ensure
|
16
|
+
# that a proper encoding is used.
|
17
|
+
# ========================================================================= #
|
18
|
+
def self.remove_newlines(
|
19
|
+
i,
|
20
|
+
ensure_this_encoding = nil # 'ISO-8859-1' # <- or nil.
|
21
|
+
)
|
22
|
+
if ensure_this_encoding
|
23
|
+
i = i.force_encoding(ensure_this_encoding)
|
24
|
+
end
|
25
|
+
i.delete!("\n") if i.include?("\n")
|
26
|
+
return i
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
# require 'rcfiles/toplevel_methods/report.rb'
|
6
|
+
# =========================================================================== #
|
7
|
+
module Rcfiles
|
8
|
+
|
9
|
+
require 'rcfiles/toplevel_methods/e.rb'
|
10
|
+
require 'rcfiles/toplevel_methods/main_directory.rb'
|
11
|
+
require 'rcfiles/toplevel_methods/misc.rb'
|
12
|
+
require 'rcfiles/colours/colours.rb'
|
13
|
+
require 'rcfiles/files/file_aliases.rb'
|
14
|
+
require 'rcfiles/files/file_cd_aliases.rb'
|
15
|
+
require 'rcfiles/files/file_programs_aliases.rb'
|
16
|
+
|
17
|
+
# ========================================================================= #
|
18
|
+
# === Rcfiles.report
|
19
|
+
#
|
20
|
+
# This method will report some information about where the Rcfiles
|
21
|
+
# will collect information.
|
22
|
+
# ========================================================================= #
|
23
|
+
def self.report
|
24
|
+
e 'The main directory is at:'
|
25
|
+
e
|
26
|
+
e " #{sdir(main_directory?)}"
|
27
|
+
unless File.directory? main_directory?
|
28
|
+
e 'This directory could, however had, NOT be found.'
|
29
|
+
end
|
30
|
+
e
|
31
|
+
e 'The three main .yml aliases paths are:'
|
32
|
+
e
|
33
|
+
e ' file aliases: '+sfile(file_aliases?)
|
34
|
+
unless File.exist? file_aliases?
|
35
|
+
e 'This file could not be found.'
|
36
|
+
end
|
37
|
+
e ' file cd aliases: '+sfile(file_cd_aliases?)
|
38
|
+
unless File.exist? file_cd_aliases?
|
39
|
+
e 'This file could not be found.'
|
40
|
+
end
|
41
|
+
e ' file programs aliases: '+sfile(file_programs_aliases?)
|
42
|
+
unless File.exist? file_programs_aliases?
|
43
|
+
e 'This file could not be found.'
|
44
|
+
end
|
45
|
+
e
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
|
50
|
+
|
51
|
+
if __FILE__ == $PROGRAM_NAME
|
52
|
+
Rcfiles.report
|
53
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
# require 'rcfiles/toplevel_methods/return_standard_header.rb'
|
6
|
+
# Rcfiles.return_standard_header('cd_aliases_rc')
|
7
|
+
# =========================================================================== #
|
8
|
+
module Rcfiles
|
9
|
+
|
10
|
+
# ========================================================================== #
|
11
|
+
# === Rcfiles.return_standard_header
|
12
|
+
#
|
13
|
+
# This adds a standard header to our RC-File in question.
|
14
|
+
#
|
15
|
+
# The first input argument to this method should be the name of the
|
16
|
+
# rc-file at hand.
|
17
|
+
# ========================================================================== #
|
18
|
+
def self.return_standard_header(
|
19
|
+
which_file = '',
|
20
|
+
current_date = Time.now.strftime('%d.%m.%Y')
|
21
|
+
)
|
22
|
+
_ = <<-EOF
|
23
|
+
# =========================================================================== #
|
24
|
+
# This file was automatically generated at: #{current_date}
|
25
|
+
#
|
26
|
+
# The filename is:
|
27
|
+
#
|
28
|
+
# #{which_file}
|
29
|
+
#
|
30
|
+
# =========================================================================== #
|
31
|
+
EOF
|
32
|
+
return _
|
33
|
+
end; self.instance_eval { alias add_header return_standard_header } # === Rcfiles.add_header
|
34
|
+
self.instance_eval { alias standard_header? return_standard_header } # === Rcfiles.standard_header?
|
35
|
+
|
36
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
# The method in this file here is mostly a convenience-method.
|
6
|
+
#
|
7
|
+
# It will leverage the old setup.rb file to install a project written in
|
8
|
+
# ruby. Of course "gem" is the more modern way to go about this, but
|
9
|
+
# sometimes, due to various reasons, you may want to use setup.rb
|
10
|
+
# instead, which explains why this file here has been created.
|
11
|
+
# =========================================================================== #
|
12
|
+
# require 'rcfiles/toplevel_methods/run_it.rb'
|
13
|
+
# =========================================================================== #
|
14
|
+
module Rcfiles
|
15
|
+
|
16
|
+
# ========================================================================= #
|
17
|
+
# === Rcfiles.run_it
|
18
|
+
# ========================================================================= #
|
19
|
+
def self.run_it(
|
20
|
+
optional_arguments = ARGV
|
21
|
+
)
|
22
|
+
require 'rcfiles/requires/require_the_rcfiles_project.rb'
|
23
|
+
require 'convert_global_env'
|
24
|
+
Dir.chdir(ConvertGlobalEnv['$RSRC/rcfiles/']) # cd to it.
|
25
|
+
begin
|
26
|
+
require 'roebe/toplevel_methods/setup.rb'
|
27
|
+
Roebe.copy_setup_file_to_pwd
|
28
|
+
rescue LoadError
|
29
|
+
puts 'Could not load the file roebe/toplevel_methods/setup.rb'
|
30
|
+
end
|
31
|
+
if File.exist? 'setup.rb'
|
32
|
+
system 'ruby setup.rb --quiet config'
|
33
|
+
system 'ruby setup.rb --quiet setup'
|
34
|
+
system 'ruby setup.rb --quiet install'
|
35
|
+
File.delete('setup.rb') if File.exist? 'setup.rb'
|
36
|
+
File.delete('InstalledFiles') if File.exist? 'InstalledFiles'
|
37
|
+
File.delete('.config') if File.exist? '.config'
|
38
|
+
::Rcfiles[] { yield if block_given? }
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
if __FILE__ == $PROGRAM_NAME
|
45
|
+
Rcfiles.run_it(ARGV)
|
46
|
+
end # rcfile_run_it
|
@@ -0,0 +1,27 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
# require 'rcfiles/toplevel_methods/save_file.rb'
|
6
|
+
# Rcfiles.write_what_into
|
7
|
+
# =========================================================================== #
|
8
|
+
module Rcfiles
|
9
|
+
|
10
|
+
require 'fileutils'
|
11
|
+
|
12
|
+
# ========================================================================= #
|
13
|
+
# === Rcfiles.write_what_into
|
14
|
+
#
|
15
|
+
# This method can be used to save data into a file.
|
16
|
+
# ========================================================================= #
|
17
|
+
def self.write_what_into(
|
18
|
+
what = '',
|
19
|
+
into = ''
|
20
|
+
)
|
21
|
+
unless File.directory? File.dirname(into)
|
22
|
+
FileUtils.mkdir_p(File.dirname(into))
|
23
|
+
end
|
24
|
+
File.open(into, 'w') { |file| file.write(what) }
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
# require 'rcfiles/toplevel_methods/use_psych_or_syck.rb'
|
6
|
+
# =========================================================================== #
|
7
|
+
module Rcfiles
|
8
|
+
|
9
|
+
require 'rcfiles/project/project.rb'
|
10
|
+
|
11
|
+
# ========================================================================= #
|
12
|
+
# === @use_psych_or_syck
|
13
|
+
# ========================================================================= #
|
14
|
+
@use_psych_or_syck = nil
|
15
|
+
|
16
|
+
_ = "#{project_base_directory?}yaml/use_psych_or_syck.yml"
|
17
|
+
if File.exist? _
|
18
|
+
content = File.read(_).strip.delete(':')
|
19
|
+
# ======================================================================= #
|
20
|
+
# We must check whether a ' #' is included or not. If so then we
|
21
|
+
# will chop it away.
|
22
|
+
# ======================================================================= #
|
23
|
+
if content.include? ' #'
|
24
|
+
content = content[0 .. content.index(' #')].strip
|
25
|
+
end
|
26
|
+
@use_psych_or_syck = content.to_sym
|
27
|
+
end
|
28
|
+
|
29
|
+
# ========================================================================= #
|
30
|
+
# === Rcfiles.use_psych_or_syck?
|
31
|
+
# ========================================================================= #
|
32
|
+
def self.use_psych_or_syck?
|
33
|
+
@use_psych_or_syck
|
34
|
+
end; self.instance_eval { alias engine? use_psych_or_syck? } # === Rcfiles.engine?
|
35
|
+
|
36
|
+
# ========================================================================= #
|
37
|
+
# === Rcfiles.use_psych_or_syck=
|
38
|
+
# ========================================================================= #
|
39
|
+
def self.use_psych_or_syck=(i = :psych)
|
40
|
+
@use_psych_or_syck = i.to_sym
|
41
|
+
end
|
42
|
+
|
43
|
+
# ========================================================================= #
|
44
|
+
# === Rcfiles.do_use_syck
|
45
|
+
# ========================================================================= #
|
46
|
+
def self.do_use_syck
|
47
|
+
@use_psych_or_syck = :syck
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
# require 'rcfiles/toplevel_methods/use_quotes.rb'
|
6
|
+
# =========================================================================== #
|
7
|
+
module Rcfiles
|
8
|
+
|
9
|
+
# ========================================================================= #
|
10
|
+
# === @use_quotes
|
11
|
+
#
|
12
|
+
# If the module-level instance variable @use_quotes is true then
|
13
|
+
# we will use double-quotes ("") when generating rc-files.
|
14
|
+
#
|
15
|
+
# By default this is set to true.
|
16
|
+
#
|
17
|
+
# Some programs, such as cmder, may get confused if quotes are used
|
18
|
+
# in a traditional key-value setup, such as for bash - which is
|
19
|
+
# precisely the reason why this .rb file here has been created. I
|
20
|
+
# needed to use these aliases in cmder as well.
|
21
|
+
# ========================================================================= #
|
22
|
+
@use_quotes = true
|
23
|
+
|
24
|
+
# ========================================================================= #
|
25
|
+
# === Rcfiles.use_quotes?
|
26
|
+
# ========================================================================= #
|
27
|
+
def self.use_quotes?
|
28
|
+
@use_quotes
|
29
|
+
end
|
30
|
+
|
31
|
+
# ========================================================================= #
|
32
|
+
# === Rcfiles.use_quotes=
|
33
|
+
# ========================================================================= #
|
34
|
+
def self.use_quotes=(i)
|
35
|
+
@use_quotes = i
|
36
|
+
end
|
37
|
+
|
38
|
+
# ========================================================================= #
|
39
|
+
# === Rcfiles.toggle_quotes
|
40
|
+
#
|
41
|
+
# This method can be used to toggle the use-quotes behaviour of the
|
42
|
+
# rcfiles project.
|
43
|
+
# ========================================================================= #
|
44
|
+
def self.toggle_quotes
|
45
|
+
if @use_quotes == true
|
46
|
+
@use_quotes = false
|
47
|
+
else
|
48
|
+
@use_quotes = true
|
49
|
+
end
|
50
|
+
end; self.instance_eval { alias toggle toggle_quotes } # === Rcfiles.toggle
|
51
|
+
|
52
|
+
# ========================================================================= #
|
53
|
+
# === Rcfiles.disable_quotes
|
54
|
+
# ========================================================================= #
|
55
|
+
def self.disable_quotes
|
56
|
+
@use_quotes = false
|
57
|
+
end
|
58
|
+
|
59
|
+
# ========================================================================= #
|
60
|
+
# === Rcfiles.disable_quotes_then_generate_the_files
|
61
|
+
# ========================================================================= #
|
62
|
+
def self.disable_quotes_then_generate_the_files
|
63
|
+
disable_quotes
|
64
|
+
require 'rcfiles/toplevel_methods/misc.rb'
|
65
|
+
generate_files
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
# require 'rcfiles/toplevel_methods/verbosity.rb'
|
6
|
+
# =========================================================================== #
|
7
|
+
module Rcfiles
|
8
|
+
|
9
|
+
# ========================================================================= #
|
10
|
+
# === @be_verbose
|
11
|
+
# ========================================================================= #
|
12
|
+
@be_verbose = true
|
13
|
+
|
14
|
+
# ========================================================================= #
|
15
|
+
# === Rcfiles.be_verbose?
|
16
|
+
# ========================================================================= #
|
17
|
+
def self.be_verbose?
|
18
|
+
@be_verbose
|
19
|
+
end
|
20
|
+
|
21
|
+
# ========================================================================= #
|
22
|
+
# === Rcfiles.set_be_verbose
|
23
|
+
# ========================================================================= #
|
24
|
+
def self.set_be_verbose(i)
|
25
|
+
@be_verbose = i
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
# require 'rcfiles/version/version.rb'
|
6
|
+
# =========================================================================== #
|
7
|
+
module Rcfiles
|
8
|
+
|
9
|
+
# ========================================================================= #
|
10
|
+
# === VERSION
|
11
|
+
# ========================================================================= #
|
12
|
+
VERSION = '1.1.1137'
|
13
|
+
|
14
|
+
# ========================================================================= #
|
15
|
+
# === LAST_UPDATE
|
16
|
+
# ========================================================================= #
|
17
|
+
LAST_UPDATE = '18.01.2021'
|
18
|
+
|
19
|
+
# ========================================================================= #
|
20
|
+
# === Rcfiles.version?
|
21
|
+
# ========================================================================= #
|
22
|
+
def self.version?
|
23
|
+
VERSION
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|