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 +4 -4
- data/README.md +62 -37
- data/lib/repackage/class/misc.rb +49 -45
- data/lib/repackage/version/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d610e7f324e47b9e501b722ce8bf28550742789e468d1185498b71ea477b269
|
4
|
+
data.tar.gz: 18b077a70111c97f9a5b3483083bfd8f742cb0502a7c349f64d97fb9ce3322a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9381c5789becfaebbfd8d6b27b1d8261e29cbb73aea3ccbf3fe63d427a42c38de120003c42a3679f96e7a5434fe71862f951a959a7c72d94b4db3764b9e52b0
|
7
|
+
data.tar.gz: 2847b21d2719e21d2b89842b23b252ab12238f445f06b12bc61e96aceaef843b893c06e0ad6f8ad8e93c6d057bf60ce5d49763eee46dc4dd8aa5ee283d478f21
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
[](https://www.ruby-lang.org/en/)
|
3
3
|
[](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">
|
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
|
-
|
75
|
-
|
76
|
-
<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
|
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
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
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
|
|
data/lib/repackage/class/misc.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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 '+
|
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)+
|
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
|
-
|
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.
|
12
|
+
VERSION = '1.2.3'
|
13
13
|
|
14
14
|
# =========================================================================== #
|
15
15
|
# === LAST_UPDATE
|
16
16
|
# =========================================================================== #
|
17
|
-
LAST_UPDATE = '
|
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.
|
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-
|
11
|
+
date: 2023-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: extracter
|