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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98d8042374552eb167d6a769c301a21a4bdae7bbde61f10d9294970c69e6d42d
4
- data.tar.gz: a16bd8df8cf43b35faa3d34846a504d805dac960458c6e7f81822ace0e62a325
3
+ metadata.gz: 9a9d6aaf616b92f7e2fcdbe01335b59fb54a4c754e3bf208ee2ef42c9eff961c
4
+ data.tar.gz: 487b2c07cc240cb7ef01bd5f05791f139763b8781cab95387d00f5002be3675d
5
5
  SHA512:
6
- metadata.gz: 6bbaf3b5bcb77ede94cd8e0033b8185ee98b24975d2a6067a76529625dd58bf9e7ee8b1b3cb0cf0962c45bd271d987aecf98e9a4953ee465b06415f4df742493
7
- data.tar.gz: c17b8722ad749160c9b47841ddedbbbb44102958e6917756bda6adc85cc13135ecf21294757de458d8abe961d6fc2ae06fe649f014333b38aa74dc257dbf7f44
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](http://forthebadge.com/images/badges/built-with-love.svg)](https://www.gobolinux.org/)
5
- [![forthebadge](http://forthebadge.com/images/badges/made-with-ruby.svg)](https://www.ruby-lang.org/en/)
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">15.05.2022</span> (dd.mm.yyyy notation), at <span style="color: steelblue; font-weight: bold">07:13:57</span> o'clock.
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
- gem more useful in general, feel free to drop me an email at any
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 part this is because
199
- the UI annoys me (on non-chrome browser loading takes too long), but also
200
- because of Google's attempt to establish mass surveillance via its
201
- federated cohorts sniffing (FLoC). I do not know what happened at Google,
202
- but enough is enough - there is only so much you can take while supporting
203
- greed. When it comes to data mining done by private groups, ultimately
204
- the user became the product.
205
-
206
- Do keep in mind that responding to emails may take some time,
207
- depending on the amount of work I may have at that moment, due
208
- to reallife time constraints. I will, however had, read feedback
209
- eventually. Patches and code changes are welcome too, of course,
210
- as long as they are in the spirit of the project at hand, e. g.
211
- fitting to the general theme. For this I may make use of github
212
- as a discussion site, but this has a low priority right now.
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