repackage 1.2.1 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cce85a8c9a73901eba853de68bcc06899e501d1ea49ef9d331f884d82fd309d4
4
- data.tar.gz: d8849e6c2f2670d4eb5fa8516ca013d3ffba3fc3923e42759fb500f818e59176
3
+ metadata.gz: 6d610e7f324e47b9e501b722ce8bf28550742789e468d1185498b71ea477b269
4
+ data.tar.gz: 18b077a70111c97f9a5b3483083bfd8f742cb0502a7c349f64d97fb9ce3322a1
5
5
  SHA512:
6
- metadata.gz: 1d13d34ebbed709e1187228512e2af63adf524a28dbcf08e51a0d65763d7f5df6b43875b48a78363b2fc0e90c81a73ae0c557861f982cc9b6de6583ef04173c0
7
- data.tar.gz: 49150a9e9efbd1f2b1c51db8302acc85d737b7bffb5a9c39fa844cfb9bfd17b0caab57cbe4e2e9846ad2103151ffcebde9f91fbc3733d459a49b03872198eb61
6
+ metadata.gz: c9381c5789becfaebbfd8d6b27b1d8261e29cbb73aea3ccbf3fe63d427a42c38de120003c42a3679f96e7a5434fe71862f951a959a7c72d94b4db3764b9e52b0
7
+ data.tar.gz: 2847b21d2719e21d2b89842b23b252ab12238f445f06b12bc61e96aceaef843b893c06e0ad6f8ad8e93c6d057bf60ce5d49763eee46dc4dd8aa5ee283d478f21
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:41:00</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
  # ========================================================================= #
@@ -704,23 +690,6 @@ class Repackage # === Repackage::Repackage
704
690
  end
705
691
  end
706
692
 
707
- # ========================================================================= #
708
- # === remove_the_old_archive
709
- #
710
- # Only call this when we are sure to remove the old source. I recommend
711
- # to delete the old source. Of course we must make sure to delete the
712
- # right package.
713
- # ========================================================================= #
714
- def remove_the_old_archive(
715
- i = dir_where_the_archive_resides?+filename?
716
- )
717
- opn; e "Removing the old archive at #{sfile(i)}"
718
- opn; e "next, as requested via the "\
719
- "#{::Repackage.steelblue('SHALL_WE_DELETE_THE_OLD_ARCHIVE')} "\
720
- "constant."
721
- remove(i)
722
- end
723
-
724
693
  # ========================================================================= #
725
694
  # === extract (extract tag)
726
695
  #
@@ -768,16 +737,18 @@ class Repackage # === Repackage::Repackage
768
737
  # format.
769
738
  # =================================================================== #
770
739
  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, "\
740
+ opn; e rev+'The file at '+sfile(this_file)+rev+' is already in '\
741
+ 'the desired target format ('+target_format?+
742
+ rev+').'
743
+ opn; e "#{rev}Repackaging into the same target format makes no sense, "\
774
744
  "thus aborting now."
775
745
  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?)+'.'
746
+ opn; e rev+'We will try to repackage this archive into the `'+
747
+ simp(target_format_type?)+rev+'`'
748
+ opn; e rev+'format type.'
749
+ opn; e rev+'It will be extracted into the directory '+
750
+ sdir(extract_to?)+
751
+ rev+'.'
781
752
  # ================================================================= #
782
753
  # Here we know that the file exists and that it can be repackaged
783
754
  # into another target format. Thus, we can repackage it. We
@@ -839,17 +810,19 @@ class Repackage # === Repackage::Repackage
839
810
  # === repackage_this_particular_file
840
811
  # ========================================================================= #
841
812
  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.'
813
+ opn; e rev+'The file '+sfile(this_file)+rev+' will be repackaged '\
814
+ 'into the '+rev+
815
+ orange(repackage_to_which_format?)+
816
+ rev+' format.'
844
817
  copy_this_file_to_the_working_directory(this_file)
845
818
  working_directory = working_directory?
846
819
  cd(working_directory) # Go to the working directory.
847
820
  set_start_dir(working_directory)
848
- opn; e 'Working from the directory `'+sdir(working_directory)+'` next.'
821
+ opn; e rev+'Working from the directory `'+sdir(working_directory)+
822
+ rev+'` next.'
849
823
  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: '
824
+ opn; e rev+'The actual file that will be used for the repackaging'
825
+ opn; e rev+'step now resides at: '
853
826
  e
854
827
  e " #{sdir(absolute_path)}"
855
828
  e
@@ -922,6 +895,37 @@ class Repackage # === Repackage::Repackage
922
895
  @internal_hash[:extract_to_this_directory] = i
923
896
  end; alias set_extract_to_this_directory set_extract_to # === set_extract_to_this_directory
924
897
 
898
+ # ========================================================================= #
899
+ # === cliner
900
+ # ========================================================================= #
901
+ def cliner
902
+ e rev+('=' * 80)
903
+ end
904
+
905
+ # ========================================================================= #
906
+ # === rev
907
+ # ========================================================================= #
908
+ def rev
909
+ ::Repackage.rev
910
+ end
911
+
912
+ # ========================================================================= #
913
+ # === remove_the_old_archive
914
+ #
915
+ # Only call this when we are sure to remove the old source. I recommend
916
+ # to delete the old source. Of course we must make sure to delete the
917
+ # right package.
918
+ # ========================================================================= #
919
+ def remove_the_old_archive(
920
+ i = dir_where_the_archive_resides?+filename?
921
+ )
922
+ opn; e "Removing the old archive at #{sfile(i)}"
923
+ opn; e "next, as requested via the "\
924
+ "#{::Repackage.steelblue('SHALL_WE_DELETE_THE_OLD_ARCHIVE')} "\
925
+ "#{rev}constant."
926
+ remove(i)
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.3'
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.3
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