flnews_post_proc 2.10 → 2.11
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 +10 -3
- data/changes.txt +10 -3
- data/lib/override.rb +15 -3
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f1c0aa5b29b89b5ea6c6f8bc0e8ac86da5d047957c64cf2f385f9e8d56cea8d
|
|
4
|
+
data.tar.gz: 20b05d046a50f0d33a3e185dacbf13d641c379f0371c8a6408fe04a654c45507
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f4e6ca45c2974d2062ea0a1ac0634e220977153443b21c243c19d6017d509e25b48bb1985da0ceb693c589ff7ac4d11015d4dcb67989259e36855aec84936812
|
|
7
|
+
data.tar.gz: 9bda0fa19dca51e205b9bd9b0bfd669aaee9ead30f4548ac4d131c56350aedaebc9bf5a6a5ce24d4910cf962d53f07cfc01e9d0dbaa5dfe209c74bbcc95e007d
|
data/bin/flnews_post_proc
CHANGED
|
@@ -29,14 +29,21 @@ require_relative '../lib/override'
|
|
|
29
29
|
require_relative '../lib/flnews_post_proc'
|
|
30
30
|
require_relative '../lib/basic_logging'
|
|
31
31
|
require_relative '../lib/configuration'
|
|
32
|
+
require_relative '../lib/color_output'
|
|
32
33
|
require_relative '../lib/version'
|
|
33
34
|
|
|
34
35
|
self.extend(BasicLogging)
|
|
35
36
|
|
|
36
37
|
def usage
|
|
37
|
-
usage = "\nWhat do you want me to do? Where is the article to post-process?"
|
|
38
|
-
usage << "\
|
|
39
|
-
usage << "\n\
|
|
38
|
+
usage = bold(yellow("\nWhat do you want me to do? Where is the article to post-process?"))
|
|
39
|
+
usage << "\nflnews_post_proc, version " << PROGVERSION
|
|
40
|
+
usage << "\n\nNote the path “#{$0}“ in the " << lightgreen("flnews-configuration.") << "\nSee option " << lightgreen("“post_proc”")
|
|
41
|
+
usage << "\nFor testing with an article stored localy in a file, execute\n"
|
|
42
|
+
usage << bold("\nuser@machine:~\$ #{$0} < article.text\n")
|
|
43
|
+
usage << "\nSee the man page for more information or go to:\n"
|
|
44
|
+
usage << bold("https://www.uplawski.eu/div/flnews/gem_doc/html/flnews_post_proc.html")
|
|
45
|
+
usage << "\nLa documentation en français :\n"
|
|
46
|
+
usage << bold("https://www.uplawski.eu/div/flnews/gem_doc/fr\n")
|
|
40
47
|
info usage
|
|
41
48
|
STDERR.puts usage
|
|
42
49
|
exit false
|
data/changes.txt
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
V. 2.11
|
|
2
|
+
*) Usage message improved and extended. Appears, when the program is
|
|
3
|
+
executed without input via STDIN.
|
|
4
|
+
|
|
5
|
+
*) Invalid directories in the PATH may trigger a warning message in the
|
|
6
|
+
log-file and are then ignored (see previous entry for V. 2.10).
|
|
7
|
+
|
|
1
8
|
V. 2.10
|
|
2
9
|
*) Bugfix: The environment variable PATH may list inexistent directories.
|
|
3
10
|
The program is prepared for that now and will not crash in those cases.
|
|
@@ -9,9 +16,9 @@ V. 2.09
|
|
|
9
16
|
installed.
|
|
10
17
|
|
|
11
18
|
V. 2.08
|
|
12
|
-
*) Bugfix: A random signature could not be set due to
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
*) Bugfix: A random signature could not be set due to the interfering
|
|
20
|
+
process of rearranging them in the signature file.
|
|
21
|
+
-> I changed the order of actions.
|
|
15
22
|
*) The gem tool suddenly imposes duplication of the homepage
|
|
16
23
|
URL in the specs. Okay. Done. Beats me.
|
|
17
24
|
|
data/lib/override.rb
CHANGED
|
@@ -55,7 +55,14 @@ class OverrideDlg
|
|
|
55
55
|
end
|
|
56
56
|
# As we are calling external programs anyway,
|
|
57
57
|
# why not continue with that ...
|
|
58
|
-
@xmsg = ENV['PATH'].split(':').any?
|
|
58
|
+
@xmsg = ENV['PATH'].split(':').any? do |d|
|
|
59
|
+
if !Dir.exist?(d)
|
|
60
|
+
warn('inexistent directory in $PATH: ' << d << '!')
|
|
61
|
+
false
|
|
62
|
+
else
|
|
63
|
+
Dir.children(d).include?('xmessage')
|
|
64
|
+
end
|
|
65
|
+
end
|
|
59
66
|
# bof.
|
|
60
67
|
end
|
|
61
68
|
|
|
@@ -97,10 +104,15 @@ class OverrideDlg
|
|
|
97
104
|
# redundancy with the following method, but I
|
|
98
105
|
# do not feel like sorting it out, now.
|
|
99
106
|
def program?(ex_name)
|
|
107
|
+
isso = false
|
|
100
108
|
ENV['PATH'].split(':').each do |dir_name|
|
|
101
|
-
|
|
109
|
+
if !Dir.exist?(dir_name)
|
|
110
|
+
warn('inexistent directory in $PATH: ' << dir_name << '!')
|
|
111
|
+
false
|
|
112
|
+
else
|
|
113
|
+
Dir.entries(dir_name).include?(ex_name)
|
|
114
|
+
end
|
|
102
115
|
end
|
|
103
|
-
return false
|
|
104
116
|
end
|
|
105
117
|
|
|
106
118
|
# returns true if the executable ex_name is to be
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flnews_post_proc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '2.
|
|
4
|
+
version: '2.11'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Uplawski
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-10-
|
|
10
|
+
date: 2026-10-18 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: diffy
|
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
141
141
|
- !ruby/object:Gem::Version
|
|
142
142
|
version: '0'
|
|
143
143
|
requirements: []
|
|
144
|
-
rubygems_version: 4.0.
|
|
144
|
+
rubygems_version: 4.0.22
|
|
145
145
|
specification_version: 4
|
|
146
146
|
summary: Modify news posts, before flnews sends them.
|
|
147
147
|
test_files: []
|