flnews_post_proc 2.0 → 2.04
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/bin/flnews_post_proc +83 -17
- data/changes.txt +46 -0
- data/doc/html/flnews_post_proc.html +73 -49
- data/doc/man/flnews_post_proc.1.gz +0 -0
- data/doc/pdf/flnews_post_proc.pdf +0 -0
- data/doc/rst/flnews_post_proc.rst +42 -21
- data/lib/basic_logging.rb +5 -4
- data/lib/body.rb +9 -45
- data/lib/color_output.rb +3 -3
- data/lib/configuration.rb +15 -14
- data/lib/flnews_post_proc.conf +21 -12
- data/lib/flnews_post_proc.rb +22 -20
- data/lib/headers.rb +12 -17
- data/lib/newsgroups.rb +12 -12
- data/lib/override.rb +23 -52
- data/lib/ruby_dlg +59 -55
- data/lib/version.rb +12 -12
- metadata +114 -81
- data/changelog.txt +0 -13
- data/lib/whiptail_dlg +0 -84
metadata
CHANGED
|
@@ -1,106 +1,139 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flnews_post_proc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: "2.04"
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Michael Uplawski
|
|
7
|
+
- Michael Uplawski
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-
|
|
10
|
+
date: 2026-08-10 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
|
-
- !ruby/object:Gem::Dependency
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: diffy
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
-
|
|
17
|
+
- ~>
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: "3.4"
|
|
20
|
+
-
|
|
21
|
+
- ">="
|
|
22
|
+
- !ruby/object:Gem::Version
|
|
23
|
+
version: 3.4.4
|
|
24
|
+
type: :runtime
|
|
25
|
+
prerelease: false
|
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
27
|
+
requirements:
|
|
28
|
+
-
|
|
29
|
+
- ~>
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: "3.4"
|
|
32
|
+
-
|
|
33
|
+
- ">="
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: 3.4.4
|
|
36
|
+
- !ruby/object:Gem::Dependency
|
|
37
|
+
name: mimemagic
|
|
38
|
+
requirement: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
-
|
|
41
|
+
- ~>
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: "0.4"
|
|
44
|
+
-
|
|
45
|
+
- ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: 0.4.3
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
-
|
|
53
|
+
- ~>
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: "0.4"
|
|
56
|
+
-
|
|
57
|
+
- ">="
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: 0.4.3
|
|
60
|
+
- !ruby/object:Gem::Dependency
|
|
61
|
+
name: new_rfc_2047
|
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
|
63
|
+
requirements:
|
|
64
|
+
-
|
|
65
|
+
- ~>
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: "1.0"
|
|
68
|
+
-
|
|
69
|
+
- ">="
|
|
70
|
+
- !ruby/object:Gem::Version
|
|
71
|
+
version: 1.0.0
|
|
72
|
+
type: :runtime
|
|
73
|
+
prerelease: false
|
|
74
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
75
|
+
requirements:
|
|
76
|
+
-
|
|
77
|
+
- ~>
|
|
78
|
+
- !ruby/object:Gem::Version
|
|
79
|
+
version: "1.0"
|
|
80
|
+
-
|
|
81
|
+
- ">="
|
|
82
|
+
- !ruby/object:Gem::Version
|
|
83
|
+
version: 1.0.0
|
|
52
84
|
description: Post-processor for Usenet-articles created in flnews
|
|
53
85
|
email: michael.uplawski@uplawski.eu
|
|
54
86
|
executables:
|
|
55
|
-
- flnews_post_proc
|
|
87
|
+
- flnews_post_proc
|
|
56
88
|
extensions: []
|
|
57
89
|
extra_rdoc_files: []
|
|
58
90
|
files:
|
|
59
|
-
- README.md
|
|
60
|
-
- bin/flnews_post_proc
|
|
61
|
-
-
|
|
62
|
-
- doc/fr/html/flnews_post_proc.html
|
|
63
|
-
- doc/fr/man/flnews_post_proc.1.gz
|
|
64
|
-
- doc/fr/pdf/flnews_post_proc.pdf
|
|
65
|
-
- doc/fr/rst/flnews_post_proc.rst
|
|
66
|
-
- doc/html/flnews_post_proc.html
|
|
67
|
-
- doc/license.txt
|
|
68
|
-
- doc/man/flnews_post_proc.1.gz
|
|
69
|
-
- doc/pdf/flnews_post_proc.pdf
|
|
70
|
-
- doc/rst/flnews_post_proc.rst
|
|
71
|
-
- lib/basic_logging.rb
|
|
72
|
-
- lib/body.rb
|
|
73
|
-
- lib/color_output.rb
|
|
74
|
-
- lib/configuration.rb
|
|
75
|
-
- lib/flnews_post_proc.conf
|
|
76
|
-
- lib/flnews_post_proc.rb
|
|
77
|
-
- lib/headers.rb
|
|
78
|
-
- lib/newsgroups.rb
|
|
79
|
-
- lib/override.rb
|
|
80
|
-
- lib/ruby_dlg
|
|
81
|
-
- lib/version.rb
|
|
82
|
-
- lib/whiptail_dlg
|
|
91
|
+
- README.md
|
|
92
|
+
- bin/flnews_post_proc
|
|
93
|
+
- changes.txt
|
|
94
|
+
- doc/fr/html/flnews_post_proc.html
|
|
95
|
+
- doc/fr/man/flnews_post_proc.1.gz
|
|
96
|
+
- doc/fr/pdf/flnews_post_proc.pdf
|
|
97
|
+
- doc/fr/rst/flnews_post_proc.rst
|
|
98
|
+
- doc/html/flnews_post_proc.html
|
|
99
|
+
- doc/license.txt
|
|
100
|
+
- doc/man/flnews_post_proc.1.gz
|
|
101
|
+
- doc/pdf/flnews_post_proc.pdf
|
|
102
|
+
- doc/rst/flnews_post_proc.rst
|
|
103
|
+
- lib/basic_logging.rb
|
|
104
|
+
- lib/body.rb
|
|
105
|
+
- lib/color_output.rb
|
|
106
|
+
- lib/configuration.rb
|
|
107
|
+
- lib/flnews_post_proc.conf
|
|
108
|
+
- lib/flnews_post_proc.rb
|
|
109
|
+
- lib/headers.rb
|
|
110
|
+
- lib/newsgroups.rb
|
|
111
|
+
- lib/override.rb
|
|
112
|
+
- lib/ruby_dlg
|
|
113
|
+
- lib/version.rb
|
|
83
114
|
licenses:
|
|
84
|
-
- WTFPL
|
|
115
|
+
- WTFPL
|
|
85
116
|
metadata:
|
|
86
|
-
homepage_uri: https://www.uplawski.eu/software/flnews_post_proc/
|
|
87
|
-
documentation_uri: https://www.uplawski.eu/div/flnews/gem_doc/html/flnews_post_proc.html
|
|
88
|
-
changelog_uri: https://www.uplawski.eu/div/flnews/gem_doc/
|
|
117
|
+
homepage_uri: "https://www.uplawski.eu/software/flnews_post_proc/"
|
|
118
|
+
documentation_uri: "https://www.uplawski.eu/div/flnews/gem_doc/html/flnews_post_proc.html"
|
|
119
|
+
changelog_uri: "https://www.uplawski.eu/div/flnews/gem_doc/changes.txt"
|
|
89
120
|
rdoc_options: []
|
|
90
121
|
require_paths:
|
|
91
|
-
- lib
|
|
122
|
+
- lib
|
|
92
123
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
93
124
|
requirements:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
125
|
+
-
|
|
126
|
+
- ">="
|
|
127
|
+
- !ruby/object:Gem::Version
|
|
128
|
+
version: "4.0"
|
|
97
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
130
|
requirements:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
131
|
+
-
|
|
132
|
+
- ">="
|
|
133
|
+
- !ruby/object:Gem::Version
|
|
134
|
+
version: "0"
|
|
102
135
|
requirements: []
|
|
103
|
-
rubygems_version: 4.0.
|
|
136
|
+
rubygems_version: 4.1.0.dev
|
|
104
137
|
specification_version: 4
|
|
105
|
-
summary: Modify news posts, before flnews sends them.
|
|
138
|
+
summary: "Modify news posts, before flnews sends them."
|
|
106
139
|
test_files: []
|
data/changelog.txt
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
v.2.0
|
|
2
|
-
*) Supersedes will have a new signature by default
|
|
3
|
-
*) Obsolete code for Yad and Zenity dialogs removed.
|
|
4
|
-
v 1.99
|
|
5
|
-
*) Bugfix: The value of a custom header can include a colon.
|
|
6
|
-
Example: x-my-header: apples: 2,90, peers: 3,10
|
|
7
|
-
(before, the value would have been clipped after the first ':')
|
|
8
|
-
v 1.98
|
|
9
|
-
*) New change log (this file)
|
|
10
|
-
*) In the configuration file, log levels can be in upper case.
|
|
11
|
-
v 1.97
|
|
12
|
-
*) Custom headers are RFC 2047 encoded, if need be.
|
|
13
|
-
(before, they had to be ASCII only or were discarded).
|
data/lib/whiptail_dlg
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
#/**************************************************************************
|
|
4
|
-
#* This program is free software; you can redistribute it and/or modify *
|
|
5
|
-
#* it under the terms of the WTFPL 2.0 or later, see *
|
|
6
|
-
#* http://www.wtfpl.net/about/ *
|
|
7
|
-
#* *
|
|
8
|
-
#* This program is distributed in the hope that it will be useful, *
|
|
9
|
-
#* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
10
|
-
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
|
11
|
-
#* *
|
|
12
|
-
#***************************************************************************/
|
|
13
|
-
|
|
14
|
-
# A dialog to override configuration options.
|
|
15
|
-
# Whiptail is not as easily deployed here, as other dialogs.
|
|
16
|
-
# The main difficulty arises from the fact that positive defaults
|
|
17
|
-
# are negated, while a checklist wants to give positive results.
|
|
18
|
-
|
|
19
|
-
if [ $# -eq 0 ]
|
|
20
|
-
then
|
|
21
|
-
echo "ERROR: file-argument missing"
|
|
22
|
-
exit 1
|
|
23
|
-
fi
|
|
24
|
-
OUTFILE="$1"
|
|
25
|
-
|
|
26
|
-
# empty the file
|
|
27
|
-
truncate $OUTFILE -s0
|
|
28
|
-
|
|
29
|
-
TITLE="Override post-processor configuration"
|
|
30
|
-
CHECKTITLE="Deselect to disable. Esc or Cancel close the dialog and no changes will be applied."
|
|
31
|
-
|
|
32
|
-
# These are the configuration variables which can be unset.
|
|
33
|
-
VARS=(GROUP_SIGS CUSTOM_HEADERS NO_ARCHIVE_GROUPS VFY_URLS DEBUG_LOG)
|
|
34
|
-
|
|
35
|
-
# Checklist options
|
|
36
|
-
options=(GROUP_SIGS 'Signatures' ON CUSTOM_HEADERS 'Custom headers' ON NO_ARCHIVE_GROUPS 'No Archive' ON VFY_URLS 'Correct URLs' ON DEBUG_LOG 'Log' ON)
|
|
37
|
-
|
|
38
|
-
# show dialog and store results
|
|
39
|
-
result=$(whiptail --title "$TITLE" --checklist "$CHECKTITLE" 13 55 5 "${options[@]}" 3>&1 1>&2 2>&3)
|
|
40
|
-
# which button had been pushed?
|
|
41
|
-
okcancel=$?
|
|
42
|
-
|
|
43
|
-
# make an array
|
|
44
|
-
read -ra opts <<< $result
|
|
45
|
-
|
|
46
|
-
# comment out -------->
|
|
47
|
-
#echo "cancel/ok ? $okcancel"
|
|
48
|
-
#echo $result
|
|
49
|
-
#echo "${opts[@]}"
|
|
50
|
-
#echo "${#opts[@]}"
|
|
51
|
-
# <--------
|
|
52
|
-
|
|
53
|
-
# Find deselected options which shall be written to the outfile.
|
|
54
|
-
# Looks complicated.
|
|
55
|
-
if [ "$okcancel" -eq 0 ]
|
|
56
|
-
then
|
|
57
|
-
list=''
|
|
58
|
-
# check each available variable ...
|
|
59
|
-
for c in ${VARS[@]}
|
|
60
|
-
do
|
|
61
|
-
deactivate=TRUE
|
|
62
|
-
# ... against the result from the dialog
|
|
63
|
-
for o in ${opts[@]}
|
|
64
|
-
do
|
|
65
|
-
if [ "$o" == "\"$c\"" ]
|
|
66
|
-
then
|
|
67
|
-
# ignore if a variable remained checked ...
|
|
68
|
-
deactivate=FALSE
|
|
69
|
-
fi
|
|
70
|
-
done
|
|
71
|
-
# ... else write it to the list.
|
|
72
|
-
if [ "$deactivate" == TRUE ]
|
|
73
|
-
then
|
|
74
|
-
|
|
75
|
-
list="$list $c"
|
|
76
|
-
fi
|
|
77
|
-
done
|
|
78
|
-
# Heureka.
|
|
79
|
-
echo "$list" > "$OUTFILE"
|
|
80
|
-
else
|
|
81
|
-
echo "exit" > "$OUTFILE"
|
|
82
|
-
fi
|
|
83
|
-
|
|
84
|
-
# Ω
|