flnews_post_proc 1.43 → 1.44
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/flnews_post_proc +7 -2
- data/lib/_quoting_style_regexp +1 -0
- data/lib/body.rb +6 -1
- data/lib/version.rb +2 -2
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd6a768ede3aff691558eba80a8a4b63df2ee0a9ca06e9c5686d71d3512dd29d
|
4
|
+
data.tar.gz: c068b97b1648e39f7ed02d774f301157e69cf065702556605acf777ab40782db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c01e7ed3b8174bc4707b9b00842c684f9b0c389551a7a66ec5f95ccd3fbf775bd9e8bd34e700e9a5cedf07bc826fec7d7d7b7c62324222e2fcf217637226a955
|
7
|
+
data.tar.gz: 51704cb9e8bb5c1967efc09fce01e60be87bc0e88af79542bb9aef31ed0cf7f92a9283d2e3850ac19330935e46613f4aad1f506d89acf21248d92b21bdfffaaa
|
data/bin/flnews_post_proc
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#encoding: UTF-8
|
3
3
|
=begin
|
4
4
|
/***************************************************************************
|
5
|
-
* ©2023-
|
5
|
+
* ©2023-2024, Michael Uplawski <michael.uplawski@uplawski.eu> *
|
6
6
|
* *
|
7
7
|
* This program is free software; you can redistribute it and/or modify *
|
8
8
|
* it under the terms of the DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE *
|
@@ -26,8 +26,14 @@ require_relative '../lib/override'
|
|
26
26
|
require_relative '../lib/flnews_post_proc'
|
27
27
|
require_relative '../lib/basic_logging'
|
28
28
|
require_relative '../lib/configuration'
|
29
|
+
require_relative '../lib/version'
|
29
30
|
|
30
31
|
self.extend(BasicLogging)
|
32
|
+
|
33
|
+
msg = PROGNAME.dup << ' ' << PROGVERSION << ' starting'
|
34
|
+
msg = "–––––– " << msg << " ––––––"
|
35
|
+
|
36
|
+
info msg
|
31
37
|
# Get a configuration
|
32
38
|
config = Configuration::instance
|
33
39
|
|
@@ -80,5 +86,4 @@ else
|
|
80
86
|
STDERR.puts usage
|
81
87
|
exit false
|
82
88
|
end
|
83
|
-
|
84
89
|
# Ω
|
@@ -0,0 +1 @@
|
|
1
|
+
" > >> > testerei ei ei".strip.gsub( /^>+(\s+>+)*/) {|m| m.to_s.delete(" ")}
|
data/lib/body.rb
CHANGED
@@ -231,7 +231,11 @@ class Body
|
|
231
231
|
def handle_http(l)
|
232
232
|
debug('handle http')
|
233
233
|
l_array = l.split
|
234
|
-
url_strs = l_array.collect
|
234
|
+
url_strs = l_array.collect do |ele|
|
235
|
+
if ele.strip.include?('http') && ele.match(/https?:/)
|
236
|
+
ele.strip
|
237
|
+
end
|
238
|
+
end.compact
|
235
239
|
debug('url_strs: ' << url_strs.to_s)
|
236
240
|
url_strs.each do |str|
|
237
241
|
# keep str for final replacement
|
@@ -268,6 +272,7 @@ class Body
|
|
268
272
|
exit false
|
269
273
|
end
|
270
274
|
end
|
275
|
+
|
271
276
|
return l
|
272
277
|
end
|
273
278
|
end
|
data/lib/version.rb
CHANGED
@@ -14,8 +14,8 @@
|
|
14
14
|
=end
|
15
15
|
|
16
16
|
PROGNAME = 'flnews_post_proc'
|
17
|
-
PROGVERSION = "1.
|
17
|
+
PROGVERSION = "1.44"
|
18
18
|
AUTHORS = "Michael Uplawski"
|
19
19
|
EMAIL = "michael.uplawski@uplawski.eu"
|
20
20
|
YEARS = "2023 - 2024"
|
21
|
-
SUMMARY = "Bugfix:
|
21
|
+
SUMMARY = "Bugfix: Strings http and https without following colon are not interpreted as links"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flnews_post_proc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.44'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Uplawski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diffy
|
@@ -48,6 +48,7 @@ files:
|
|
48
48
|
- doc/pdf/flnews_post_proc_fr.pdf
|
49
49
|
- doc/rst/flnews_post_proc.rst
|
50
50
|
- doc/rst/flnews_post_proc_fr.rst
|
51
|
+
- lib/_quoting_style_regexp
|
51
52
|
- lib/basic_logging.rb
|
52
53
|
- lib/body.rb
|
53
54
|
- lib/color_output.rb
|
@@ -84,5 +85,6 @@ requirements: []
|
|
84
85
|
rubygems_version: 3.4.20
|
85
86
|
signing_key:
|
86
87
|
specification_version: 4
|
87
|
-
summary: 'Bugfix:
|
88
|
+
summary: 'Bugfix: Strings http and https without following colon are not interpreted
|
89
|
+
as links'
|
88
90
|
test_files: []
|