directory_paradise 1.4.4 → 1.4.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,11 +9,11 @@ class DirectoryParadise
9
9
  # ========================================================================= #
10
10
  # === VERSION
11
11
  # ========================================================================= #
12
- VERSION = '1.4.4'
12
+ VERSION = '1.4.5'
13
13
 
14
14
  # ========================================================================= #
15
15
  # === LAST_UPDATE
16
16
  # ========================================================================= #
17
- LAST_UPDATE = '15.05.2022'
17
+ LAST_UPDATE = '06.08.2022'
18
18
 
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: directory_paradise
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert A. Heiler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-15 00:00:00.000000000 Z
11
+ date: 2022-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colours
@@ -62,13 +62,8 @@ files:
62
62
  - lib/directory_paradise/content/constants.rb
63
63
  - lib/directory_paradise/content/content.rb
64
64
  - lib/directory_paradise/project/project.rb
65
- - lib/directory_paradise/report/constants.rb
66
- - lib/directory_paradise/report/initialize.rb
67
65
  - lib/directory_paradise/report/menu.rb
68
- - lib/directory_paradise/report/misc.rb
69
- - lib/directory_paradise/report/obtain.rb
70
66
  - lib/directory_paradise/report/report.rb
71
- - lib/directory_paradise/report/reset.rb
72
67
  - lib/directory_paradise/requires/require_class_content.rb
73
68
  - lib/directory_paradise/requires/require_class_report.rb
74
69
  - lib/directory_paradise/requires/require_the_directory_paradise_project.rb
@@ -96,9 +91,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
91
  requirements:
97
92
  - - ">="
98
93
  - !ruby/object:Gem::Version
99
- version: 3.3.13
94
+ version: 3.3.18
100
95
  requirements: []
101
- rubygems_version: 3.3.13
96
+ rubygems_version: 3.3.18
102
97
  signing_key:
103
98
  specification_version: 4
104
99
  summary: This class will display the content of a directory. It can also give back
@@ -1,39 +0,0 @@
1
- #!/usr/bin/ruby -w
2
- # Encoding: UTF-8
3
- # frozen_string_literal: true
4
- # =========================================================================== #
5
- # require 'directory_paradise/report/constants.rb'
6
- # =========================================================================== #
7
- require 'directory_paradise/base/base.rb'
8
-
9
- module DirectoryParadise
10
-
11
- class Report < Base # === DirectoryParadise::Report
12
-
13
- # ========================================================================= #
14
- # === NAMESPACE
15
- # ========================================================================= #
16
- NAMESPACE = inspect
17
-
18
- # ========================================================================= #
19
- # === COLOURIZE_KB_AND_MB
20
- #
21
- # If true then we colourize KB and MB. This also includes B.
22
- # ========================================================================= #
23
- COLOURIZE_KB_AND_MB = true
24
-
25
- # ========================================================================= #
26
- # === FILE_SIZE_THRESHOLD
27
- #
28
- # When an inode entry has more than this amount of chars, we will
29
- # truncate.
30
- # ========================================================================= #
31
- FILE_SIZE_THRESHOLD = 50
32
-
33
- # ========================================================================= #
34
- # === FILE_COLOURS_FOR_BYTES_VALUES
35
- # ========================================================================= #
36
- FILE_COLOURS_FOR_BYTES_VALUES = ::DirectoryParadise.project_base_directory?+
37
- 'yaml/colours_for_bytes_values.yml'
38
-
39
- end; end
@@ -1,75 +0,0 @@
1
- #!/usr/bin/ruby -w
2
- # Encoding: UTF-8
3
- # frozen_string_literal: true
4
- # =========================================================================== #
5
- # require 'directory_paradise/report/initialize.rb'
6
- # =========================================================================== #
7
- require 'directory_paradise/base/base.rb'
8
-
9
- module DirectoryParadise
10
-
11
- class Report < Base # === DirectoryParadise::Report
12
-
13
- # ========================================================================= #
14
- # === initialize
15
- #
16
- # The first argument is the target directory that should be displayed.
17
- # ========================================================================= #
18
- def initialize(
19
- work_on_this_directory = return_pwd,
20
- run_already = true
21
- )
22
- register_sigint
23
- reset
24
- # ======================================================================= #
25
- # === Handle the run_already variable next
26
- # ======================================================================= #
27
- case run_already
28
- # ======================================================================= #
29
- # === :do_not_run_yet
30
- # ======================================================================= #
31
- when :do_not_run_yet,
32
- :dont_run_yet,
33
- :dont_run_as_of_yet,
34
- :dontrunyet
35
- run_already = false
36
- # ======================================================================= #
37
- # === :display
38
- # ======================================================================= #
39
- when :display,
40
- :do_show,
41
- :do_show_it
42
- do_show_the_content
43
- run_already = true
44
- # ======================================================================= #
45
- # === :run
46
- # ======================================================================= #
47
- when :run
48
- run_already = true
49
- end
50
- # ======================================================================= #
51
- # Assign to @run_already next. This must come after reset().
52
- # ======================================================================= #
53
- @run_already = run_already
54
- set_commandline_arguments(
55
- work_on_this_directory
56
- )
57
- set_work_on_this_directory( # This method call can alter @run_already.
58
- work_on_this_directory
59
- )
60
- run if @run_already
61
- end
62
-
63
- end
64
-
65
- # =========================================================================== #
66
- # === DirectoryParadise.new
67
- # =========================================================================== #
68
- def self.new(
69
- work_on_this_directory = return_pwd,
70
- run_already = true
71
- )
72
- DirectoryParadise.new(work_on_this_directory, run_already)
73
- end
74
-
75
- end