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.
- checksums.yaml +4 -4
- data/README.md +37 -22
- data/lib/directory_paradise/base/base.rb +33 -0
- data/lib/directory_paradise/base/colours.rb +12 -12
- data/lib/directory_paradise/project/project.rb +0 -0
- data/lib/directory_paradise/report/report.rb +1460 -113
- data/lib/directory_paradise/version/version.rb +2 -2
- metadata +4 -9
- data/lib/directory_paradise/report/constants.rb +0 -39
- data/lib/directory_paradise/report/initialize.rb +0 -75
- data/lib/directory_paradise/report/misc.rb +0 -675
- data/lib/directory_paradise/report/obtain.rb +0 -357
- data/lib/directory_paradise/report/reset.rb +0 -174
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a9d6aaf616b92f7e2fcdbe01335b59fb54a4c754e3bf208ee2ef42c9eff961c
|
4
|
+
data.tar.gz: 487b2c07cc240cb7ef01bd5f05791f139763b8781cab95387d00f5002be3675d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 337d80156b3150f15dd99ac6e1cabb3455c97b0ff23b47cfe28aeecd5f057594148640d5b59b7bd2bbdb079c0b4d268a5da51ffbc9c9a8c687b022cc69e82b39
|
7
|
+
data.tar.gz: 496af2302209e8716c0512822fbf116ff068212c1638580cd8787e25a4754cea63a7209297c1510d2035f34faa689868c6fa2c1c3c8942672d606e27f4a4a0b0
|
data/README.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# @title Directory Content
|
2
2
|
# @markup kramdown
|
3
3
|
|
4
|
-
[![forthebadge](
|
5
|
-
[![forthebadge](
|
4
|
+
[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://www.gobolinux.org/)
|
5
|
+
[![forthebadge](https://forthebadge.com/images/badges/made-with-ruby.svg)](https://www.ruby-lang.org/en/)
|
6
6
|
[![Gem Version](https://badge.fury.io/rb/directory_paradise.svg)](https://badge.fury.io/rb/directory_paradise)
|
7
7
|
|
8
|
-
This gem was <b>last updated</b> on the <span style="color: darkblue; font-weight: bold">
|
8
|
+
This gem was <b>last updated</b> on the <span style="color: darkblue; font-weight: bold">06.08.2022</span> (dd.mm.yyyy notation), at <span style="color: steelblue; font-weight: bold">00:57:31</span> o'clock.
|
9
9
|
|
10
10
|
<img src="https://i.imgur.com/hbGDM7i.jpg">
|
11
11
|
|
@@ -186,28 +186,43 @@ is bad, so now the directory_paradise gem will verify whether
|
|
186
186
|
the colours exist or not.
|
187
187
|
|
188
188
|
|
189
|
-
## Contact information
|
189
|
+
## Contact information and mandatory 2FA coming up in 2022
|
190
190
|
|
191
|
-
If your creative mind has ideas and specific suggestions to make this
|
192
|
-
|
193
|
-
time, via:
|
191
|
+
If your creative mind has ideas and specific suggestions to make this gem
|
192
|
+
more useful in general, feel free to drop me an email at any time, via:
|
194
193
|
|
195
194
|
shevy@inbox.lt
|
196
195
|
|
197
196
|
Before that email I used an email account at Google gmail, but in **2021** I
|
198
|
-
decided to slowly abandon gmail for various reasons. In
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
197
|
+
decided to slowly abandon gmail for various reasons. In order to limit this
|
198
|
+
explanation here, allow me to just briefly state that I do not feel as if I
|
199
|
+
want to promote any Google service anymore, for various reasons.
|
200
|
+
|
201
|
+
Do keep in mind that responding to emails may take some time, depending on
|
202
|
+
the amount of work I may have at that moment.
|
203
|
+
|
204
|
+
In 2022 rubygems.org decided to make 2FA mandatory for every gem owner:
|
205
|
+
see https://blog.rubygems.org/2022/06/13/making-packages-more-secure.html
|
206
|
+
|
207
|
+
As I can not use 2FA, for reasons I will skip explaining here (see
|
208
|
+
various github issue discussions in the past), this effectively means that
|
209
|
+
Betty Li and others who run the show at rubygems.org will perma-ban me
|
210
|
+
from using rubygems as a developer.
|
211
|
+
|
212
|
+
As I disagree with that decision completely, this will mean that all my
|
213
|
+
gems will be removed from rubygems.org prior to that sunset date, e. g.
|
214
|
+
before they permanently lock me out from the code that I used
|
215
|
+
to maintain. It is pointless to want to discuss this with them anymore -
|
216
|
+
they have made up their minds and decided that you can only use
|
217
|
+
the code if 2FA is in place, even though the code itself works just
|
218
|
+
fine. If you don't use 2FA you are effectively locked out from your
|
219
|
+
own code; I consider this a malicious attack. See also how they limited
|
220
|
+
discussions to people with mandatory 2FA on the ruby-bugtracker, thus
|
221
|
+
banning everyone permanently without 2FA:
|
222
|
+
|
223
|
+
https://bugs.ruby-lang.org/issues/18800
|
224
|
+
|
225
|
+
Guess it may indeed be time to finally abandon ruby - not because
|
226
|
+
ruby is a bad language, but there are people now in charge who
|
227
|
+
really should not be part of ruby in the first place.
|
213
228
|
|
@@ -21,6 +21,7 @@ class Base
|
|
21
21
|
alias ee print
|
22
22
|
|
23
23
|
require 'directory_paradise/base/colours.rb'
|
24
|
+
require 'directory_paradise/project/project.rb'
|
24
25
|
require 'directory_paradise/to_human_readable/to_human_readable.rb'
|
25
26
|
|
26
27
|
# ========================================================================= #
|
@@ -188,6 +189,38 @@ class Base
|
|
188
189
|
return DirectoryParadise.to_human_readable(i)
|
189
190
|
end
|
190
191
|
|
192
|
+
# ========================================================================= #
|
193
|
+
# === infer_the_namespace
|
194
|
+
#
|
195
|
+
# This will assume the true namespace from the inspectable name.
|
196
|
+
# ========================================================================= #
|
197
|
+
def infer_the_namespace
|
198
|
+
_ = inspect.to_s.delete('<')
|
199
|
+
if _.include? ' '
|
200
|
+
_ = _.split(' ').first.delete('#')
|
201
|
+
if _.include? ':'
|
202
|
+
_ = _.split(':')[0 .. -2].reject {|entry| entry.empty? }.join('::')
|
203
|
+
end
|
204
|
+
elsif _.include? ':0x'
|
205
|
+
_ = _.split(':0x').first
|
206
|
+
end
|
207
|
+
@namespace = _.delete('#') # And assign it here.
|
208
|
+
end
|
209
|
+
|
210
|
+
# ========================================================================= #
|
211
|
+
# === namespace?
|
212
|
+
# ========================================================================= #
|
213
|
+
def namespace?
|
214
|
+
@namespace
|
215
|
+
end
|
216
|
+
|
217
|
+
# ========================================================================= #
|
218
|
+
# === print_the_namespace
|
219
|
+
# ========================================================================= #
|
220
|
+
def print_the_namespace
|
221
|
+
print namespace?
|
222
|
+
end
|
223
|
+
|
191
224
|
end; end
|
192
225
|
|
193
226
|
if __FILE__ == $PROGRAM_NAME
|
@@ -23,7 +23,7 @@ class Base
|
|
23
23
|
def use_colours?(
|
24
24
|
i = @internal_hash[:use_colours]
|
25
25
|
)
|
26
|
-
i
|
26
|
+
return i
|
27
27
|
end
|
28
28
|
|
29
29
|
# ========================================================================= #
|
@@ -40,7 +40,7 @@ class Base
|
|
40
40
|
# ========================================================================= #
|
41
41
|
def slink(i)
|
42
42
|
return Colours.slink(i) if use_colours?
|
43
|
-
i
|
43
|
+
return i
|
44
44
|
end
|
45
45
|
|
46
46
|
# ========================================================================= #
|
@@ -48,7 +48,7 @@ class Base
|
|
48
48
|
# ========================================================================= #
|
49
49
|
def simp(i)
|
50
50
|
return Colours.simp(i) if use_colours?
|
51
|
-
i
|
51
|
+
return i
|
52
52
|
end
|
53
53
|
|
54
54
|
# ========================================================================= #
|
@@ -56,14 +56,7 @@ class Base
|
|
56
56
|
# ========================================================================= #
|
57
57
|
def sfancy(i)
|
58
58
|
return Colours.sfancy(i) if use_colours?
|
59
|
-
i
|
60
|
-
end
|
61
|
-
|
62
|
-
# ========================================================================= #
|
63
|
-
# === rev
|
64
|
-
# ========================================================================= #
|
65
|
-
def rev
|
66
|
-
"\e[0;37m"
|
59
|
+
return i
|
67
60
|
end
|
68
61
|
|
69
62
|
# ========================================================================= #
|
@@ -190,7 +183,14 @@ class Base
|
|
190
183
|
# ========================================================================= #
|
191
184
|
def mediumpurple(i)
|
192
185
|
return ::Colours.mediumpurple(i) if use_colours?
|
193
|
-
i
|
186
|
+
return i
|
187
|
+
end
|
188
|
+
|
189
|
+
# ========================================================================= #
|
190
|
+
# === rev
|
191
|
+
# ========================================================================= #
|
192
|
+
def rev
|
193
|
+
return "\e[0;37m"
|
194
194
|
end
|
195
195
|
|
196
196
|
end; end
|
File without changes
|