repackage 1.2.1 → 1.2.2

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: cce85a8c9a73901eba853de68bcc06899e501d1ea49ef9d331f884d82fd309d4
4
- data.tar.gz: d8849e6c2f2670d4eb5fa8516ca013d3ffba3fc3923e42759fb500f818e59176
3
+ metadata.gz: cb33b5ada9ae0db19a7b1408e9d5b1b5f330dc194b0e88ed9d9d422f0745fba4
4
+ data.tar.gz: 33175928c33b9b10a677a4c87bc373eee5e68d3ea4e636a28f5cf36ed623b949
5
5
  SHA512:
6
- metadata.gz: 1d13d34ebbed709e1187228512e2af63adf524a28dbcf08e51a0d65763d7f5df6b43875b48a78363b2fc0e90c81a73ae0c557861f982cc9b6de6583ef04173c0
7
- data.tar.gz: 49150a9e9efbd1f2b1c51db8302acc85d737b7bffb5a9c39fa844cfb9bfd17b0caab57cbe4e2e9846ad2103151ffcebde9f91fbc3733d459a49b03872198eb61
6
+ metadata.gz: e6b6ed8b1461f89715d1c48e251bcc6f2a0146a4a410836c2dddb95e308f2196001e2812c28a95e50163d7176ac10442011e2de853d63be59083046df11adafb
7
+ data.tar.gz: b0098b975e7a4838509304d1ad7eef5379b2c6f3053cba1049bd83a66d17771cc0dbbf80bf2bd388df1c9dc76ea43ea4a93cfa4a3033290ae3bc5a1714b2dcd3
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  [![forthebadge](https://forthebadge.com/images/badges/made-with-ruby.svg)](https://www.ruby-lang.org/en/)
3
3
  [![Gem Version](https://badge.fury.io/rb/repackage.svg)](https://badge.fury.io/rb/repackage)
4
4
 
5
- This gem was <b>last updated</b> on the <span style="color: darkblue; font-weight: bold">12.09.2022</span> (dd.mm.yyyy notation), at <span style="color: steelblue; font-weight: bold">04:23:04</span> o'clock.
5
+ This gem was <b>last updated</b> on the <span style="color: darkblue; font-weight: bold">11.11.2023</span> (dd.mm.yyyy notation), at <span style="color: steelblue; font-weight: bold">04:38:42</span> o'clock.
6
6
 
7
7
  # The repackage gem
8
8
 
@@ -23,6 +23,12 @@ The official list of dependencies thus recommended for the
23
23
  - extracter
24
24
  - opn
25
25
 
26
+ However had, since as of November 2023, the colours gem is now
27
+ optional. If it is installed on your system then it will be
28
+ used; otherwise it will be silently ignored. Colours are nice
29
+ to have, but the repackage gem must also work with colours
30
+ not being available (e. g. the colours gem was NOT installed).
31
+
26
32
  ## Clean working directory
27
33
 
28
34
  As far as the **repackage** gem is concerned, a working
@@ -68,12 +74,13 @@ flexibility here.
68
74
 
69
75
  ## Executable at bin/repackage
70
76
 
71
- Since as of May 2022 there is now an executable called
72
- <b>repackage</b>. It used to be called repackager,
73
- but I reconsidered; it seems simpler to remember
74
- that the gem called <b>repackage</b> comes with an
75
- executable called <b>repackage</b> rather than
76
- <b>repackager</b>.
77
+ Since as of May 2022 there is now an <b>executable</b> called
78
+ <b>repackage</b>. It used to be called <b>repackager</b>,
79
+ but I reconsidered; it seems simpler to remember that the gem
80
+ here is called <b>repackage</b>; then people may easily
81
+ and instantly know that there may be an executable called
82
+ <b>repackage</b>, residing at bin/repackage, rather than
83
+ a file residing at <b>bin/repackager</b>.
77
84
 
78
85
 
79
86
  ## Contact information and mandatory 2FA coming up in 2022
@@ -84,35 +91,53 @@ more useful in general, feel free to drop me an email at any time, via:
84
91
  shevy@inbox.lt
85
92
 
86
93
  Before that email I used an email account at Google gmail, but in **2021** I
87
- decided to slowly abandon gmail for various reasons. In order to limit this
94
+ decided to slowly abandon gmail, for various reasons. In order to limit the
88
95
  explanation here, allow me to just briefly state that I do not feel as if I
89
- want to promote any Google service anymore, for various reasons.
90
-
91
- Do keep in mind that responding to emails may take some time, depending on
92
- the amount of work I may have at that moment.
93
-
94
- In 2022 rubygems.org decided to make 2FA mandatory for every gem owner:
95
- see https://blog.rubygems.org/2022/06/13/making-packages-more-secure.html
96
-
97
- As I can not use 2FA, for reasons I will skip explaining here (see
98
- various github issue discussions in the past), this effectively means that
99
- Betty Li and others who run the show at rubygems.org will perma-ban me
100
- from using rubygems as a developer.
101
-
102
- As I disagree with that decision completely, this will mean that all my
103
- gems will be removed from rubygems.org prior to that sunset date, e. g.
104
- before they permanently lock me out from the code that I used
105
- to maintain. It is pointless to want to discuss this with them anymore -
106
- they have made up their minds and decided that you can only use
107
- the code if 2FA is in place, even though the code itself works just
108
- fine. If you don't use 2FA you are effectively locked out from your
109
- own code; I consider this a malicious attack. See also how they limited
110
- discussions to people with mandatory 2FA on the ruby-bugtracker, thus
111
- banning everyone permanently without 2FA:
112
-
113
- https://bugs.ruby-lang.org/issues/18800
114
-
115
- Guess it may indeed be time to finally abandon ruby - not because
116
- ruby is a bad language, but there are people now in charge who
117
- really should not be part of ruby in the first place.
96
+ want to promote any Google service anymore when the user becomes the end
97
+ product (such as via data collection by upstream services, including other
98
+ proxy-services). My feeling is that this is a hugely flawed business model
99
+ to begin with, and I no longer wish to support this in any way, even if
100
+ only indirectly so, such as by using services of companies that try to
101
+ promote this flawed model.
102
+
103
+ In regards to responding to emails: please keep in mind that responding
104
+ may take some time, depending on the amount of work I may have at that
105
+ moment. So it is not that emails are ignored; it is more that I have not
106
+ (yet) found the time to read and reply. This means there may be a delay
107
+ of days, weeks and in some instances also months. There is, unfortunately,
108
+ not much I can do when I need to prioritise my time investment, but I try
109
+ to consider <b>all</b> feedback as an opportunity to improve my projects
110
+ nonetheless.
111
+
112
+ In <b>2022</b> rubygems.org decided to make 2FA mandatory for every
113
+ gem owner eventually:
114
+
115
+ see
116
+ https://blog.rubygems.org/2022/06/13/making-packages-more-secure.html
117
+
118
+ Mandatory 2FA will eventually be extended to all rubygems.org developers and
119
+ maintainers. As I can not use 2FA, for reasons I will skip explaining here,
120
+ this means that my projects will eventually be removed, as I no longer
121
+ have any control over my projects hosted on rubygems.org (because I
122
+ can not use 2FA).
123
+
124
+ At that point, I no longer have any control what is done to my projects
125
+ since whoever is controlling the gems ecosystem took away our control
126
+ here. I am not sure at which point ruby became corporate-controlled -
127
+ that was not the case several years ago, so something has
128
+ changed.
129
+
130
+ Ruby also only allows 2FA users to participate on the issue tracker these
131
+ days:
132
+
133
+ https://bugs.ruby-lang.org/issues/18800
134
+
135
+ But this has been reverted some months ago, so it is no longer applicable.
136
+ Suffice to say that I do not think that we should only be allowed to
137
+ interact on the world wide web when some 'authority' authenticated us,
138
+ such as via mandatory 2FA, so I hope this won't come back again.
139
+
140
+ Fighting spam is a noble goal, but when it also means you lock out
141
+ real human people then this is definitely NOT a good situation
142
+ to be had.
118
143
 
@@ -49,13 +49,6 @@ class Repackage # === Repackage::Repackage
49
49
  i.squeeze '/'
50
50
  end
51
51
 
52
- # ========================================================================= #
53
- # === cliner
54
- # ========================================================================= #
55
- def cliner
56
- e rev+('=' * 80)
57
- end
58
-
59
52
  # ========================================================================= #
60
53
  # === try_glob
61
54
  #
@@ -295,13 +288,6 @@ class Repackage # === Repackage::Repackage
295
288
  )
296
289
  end
297
290
 
298
- # ========================================================================= #
299
- # === rev
300
- # ========================================================================= #
301
- def rev
302
- ::Repackage.rev
303
- end
304
-
305
291
  # ========================================================================= #
306
292
  # === extract_to_this_directory?
307
293
  # ========================================================================= #
@@ -768,16 +754,18 @@ class Repackage # === Repackage::Repackage
768
754
  # format.
769
755
  # =================================================================== #
770
756
  if is_it_already_in_the_correct_archive_format?(this_file)
771
- opn; e rev+'The file at '+sfile(this_file)+' is already in '\
772
- 'the desired target format ('+target_format?+').'
773
- opn; e "Repackaging into the same target format makes no sense, "\
757
+ opn; e rev+'The file at '+sfile(this_file)+rev+' is already in '\
758
+ 'the desired target format ('+target_format?+
759
+ rev+').'
760
+ opn; e "#{rev}Repackaging into the same target format makes no sense, "\
774
761
  "thus aborting now."
775
762
  else
776
- opn; e 'We will try to repackage this archive into the `'+
777
- simp(target_format_type?)+'`'
778
- opn; e 'format type.'
779
- opn; e 'It will be extracted into the directory '+
780
- sdir(extract_to?)+'.'
763
+ opn; e rev+'We will try to repackage this archive into the `'+
764
+ simp(target_format_type?)+rev+'`'
765
+ opn; e rev+'format type.'
766
+ opn; e rev+'It will be extracted into the directory '+
767
+ sdir(extract_to?)+
768
+ rev+'.'
781
769
  # ================================================================= #
782
770
  # Here we know that the file exists and that it can be repackaged
783
771
  # into another target format. Thus, we can repackage it. We
@@ -839,17 +827,19 @@ class Repackage # === Repackage::Repackage
839
827
  # === repackage_this_particular_file
840
828
  # ========================================================================= #
841
829
  def repackage_this_particular_file(this_file)
842
- opn; e rev+'The file '+sfile(this_file)+' will be repackaged '\
843
- 'into the '+orange(repackage_to_which_format?)+' format.'
830
+ opn; e rev+'The file '+sfile(this_file)+rev+' will be repackaged '\
831
+ 'into the '+rev+
832
+ orange(repackage_to_which_format?)+
833
+ rev+' format.'
844
834
  copy_this_file_to_the_working_directory(this_file)
845
835
  working_directory = working_directory?
846
836
  cd(working_directory) # Go to the working directory.
847
837
  set_start_dir(working_directory)
848
- opn; e 'Working from the directory `'+sdir(working_directory)+'` next.'
838
+ opn; e rev+'Working from the directory `'+sdir(working_directory)+
839
+ rev+'` next.'
849
840
  absolute_path = File.absolute_path(this_file)
850
- opn; e 'The actual file that will be used for the '\
851
- 'repackaging'
852
- opn; e 'step now resides at: '
841
+ opn; e rev+'The actual file that will be used for the repackaging'
842
+ opn; e rev+'step now resides at: '
853
843
  e
854
844
  e " #{sdir(absolute_path)}"
855
845
  e
@@ -922,6 +912,20 @@ class Repackage # === Repackage::Repackage
922
912
  @internal_hash[:extract_to_this_directory] = i
923
913
  end; alias set_extract_to_this_directory set_extract_to # === set_extract_to_this_directory
924
914
 
915
+ # ========================================================================= #
916
+ # === cliner
917
+ # ========================================================================= #
918
+ def cliner
919
+ e rev+('=' * 80)
920
+ end
921
+
922
+ # ========================================================================= #
923
+ # === rev
924
+ # ========================================================================= #
925
+ def rev
926
+ ::Repackage.rev
927
+ end
928
+
925
929
  # ========================================================================= #
926
930
  # === run (run tag)
927
931
  # ========================================================================= #
@@ -9,11 +9,11 @@ module Repackage
9
9
  # =========================================================================== #
10
10
  # === VERSION
11
11
  # =========================================================================== #
12
- VERSION = '1.2.1'
12
+ VERSION = '1.2.2'
13
13
 
14
14
  # =========================================================================== #
15
15
  # === LAST_UPDATE
16
16
  # =========================================================================== #
17
- LAST_UPDATE = '06.11.2023'
17
+ LAST_UPDATE = '11.11.2023'
18
18
 
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repackage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
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: 2023-11-06 00:00:00.000000000 Z
11
+ date: 2023-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: extracter