flnews_post_proc 1.43 → 1.44

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: a84f5336c8383ef6fb884ac87a9ec3d0af44ab8acc03796746abae3046058b1f
4
- data.tar.gz: 17fa345dc7971716a337ad79870850ec9746dc14bc6220eac513f923b33d1898
3
+ metadata.gz: dd6a768ede3aff691558eba80a8a4b63df2ee0a9ca06e9c5686d71d3512dd29d
4
+ data.tar.gz: c068b97b1648e39f7ed02d774f301157e69cf065702556605acf777ab40782db
5
5
  SHA512:
6
- metadata.gz: 2b893868b1eabb86ede03c8bdaa7c8c1f78fc456932f17f491703db310e94d8902bcd19f45e6751fb7738a855415e69df1938fedb258078c43029d03048f809d
7
- data.tar.gz: 9661e25f26f573839cba32f2eef2032577e37e710357af202e6fa9e863f863c41c336ffa9e6e904f5a9a14314cd7decedcaf18a44c3847ee686a71d9e0e4f955
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-2023, Michael Uplawski <michael.uplawski@uplawski.eu> *
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{|ele| ele.strip.include?('http') ? ele.strip : nil}.compact
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.43"
17
+ PROGVERSION = "1.44"
18
18
  AUTHORS = "Michael Uplawski"
19
19
  EMAIL = "michael.uplawski@uplawski.eu"
20
20
  YEARS = "2023 - 2024"
21
- SUMMARY = "Bugfix: reduce number of slashes in http: urls to 2"
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.43'
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-04-27 00:00:00.000000000 Z
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: reduce number of slashes in http: urls to 2'
88
+ summary: 'Bugfix: Strings http and https without following colon are not interpreted
89
+ as links'
88
90
  test_files: []