Sprichwoerter 1.7 → 1.82

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: 409ea77be08978d4ac11df8a73862f25b8af2638043749feb7ca0baca0e8b124
4
- data.tar.gz: df0cd33efbe5421d50e6f2792ff6dea4d31d00892dd7123601f571a5c95d39a1
3
+ metadata.gz: af9f94ed68964f8d482da1a24b4221fafb73d6c33ec96531fcd03a9e8bba4b47
4
+ data.tar.gz: ab5b99228fe83c2ef2f553c8cce308c7ec2e36eea16b343f1296d3a17999c421
5
5
  SHA512:
6
- metadata.gz: df720f489ff6223d426199387d64f0cc53ea20f71cfd76791e37f36920d76e6b15f384fcf56fc650a301f395d927105ac2a7e182f6eede5786c19ca4401a3ee5
7
- data.tar.gz: 39b01904a8a6f76d1b9fbfe7ac4106d145c931fd60dc8c5ee4c40b13543ca0557ae4fd197c9975baebadffc68743b3334bcb32e3b5a1d86cd10bfe127396800b
6
+ metadata.gz: a24d09940a4ee0ccbb13ec400af5620a819f403a08d383ccb3a20bd72d7bf55f6fe3390557eea1c69ac5e453716787080c9861c4e7f4592a577e18586e57fad5
7
+ data.tar.gz: 166fe79872f7c36547943dc0f13887d6cca3a176a97b2e211e93c4ad49bd14c8d914799d08d471d4a91f48c99cfe69883bf06c8eabf632a0ae660e98efc5f533
@@ -7,13 +7,14 @@ Gem::Specification.new do |s|
7
7
  s.date = Date.today.strftime('%F')
8
8
  s.summary = SUMMARY
9
9
  s.description = "Generates random, senseless proverbs by combining beginnings and endings of existing proverbs."
10
- s.authors = ["Michael Uplawski"]
11
- s.email = 'michael.uplawski@uplawski.eu'
10
+ s.authors = AUTHOR
11
+ s.email = AUTHOR_MAIL
12
12
  s.files = %w~sprichwoerter proverbs~.collect{|f| 'bin/' << f} + %w~adder.rb color_output.rb argparser.rb rearranging.rb translating.rb translations logging.rb log.conf liste_de.rb sprichwörter.rb liste_en.rb version.rb user_input.rb~.collect{|f| 'lib/' << f} + %w~Sprichwoerter.gemspec~.collect{|f|f} + %w~html/proverbs.html html/sprichwoerter.html man/proverbs.6.gz man/sprichwoerter.6.gz pdf/proverbs.pdf pdf/sprichwoerter.pdf rst/proverbs.rst rst/sprichwoerter.rst~.collect{|f| 'doc/' << f}
13
13
  s.executables = "sprichwoerter", "proverbs"
14
14
  s.license = 'Nonstandard'
15
- s.required_ruby_version = '>= 2.5'
15
+ s.required_ruby_version = '>= 4.0'
16
16
  s.metadata = {
17
+ "license_uri" => 'https://www.wtfpl.net/about',
17
18
  "homepage_uri" => 'https://www.uplawski.eu/software/sprichwoerter',
18
19
  "documentation_uri" => 'https://www.uplawski.eu/software/sprichwoerter/proverbs.html'
19
20
  }
@@ -281,7 +281,7 @@
281
281
  </dd>
282
282
  </dl>
283
283
 
284
- <p><strong>Ω</strong>
284
+ <p id="omega"><strong>Ω</strong>
285
285
  </p>
286
286
  </section>
287
287
  </main>
@@ -283,7 +283,7 @@
283
283
  </dd>
284
284
  </dl>
285
285
 
286
- <p><strong>Ω</strong>
286
+ <p id="omega"><strong>Ω</strong>
287
287
  </p>
288
288
  </section>
289
289
  </main>
Binary file
Binary file
data/doc/pdf/proverbs.pdf CHANGED
Binary file
Binary file
data/doc/rst/proverbs.rst CHANGED
@@ -120,5 +120,18 @@ OTHER INFORMATION
120
120
  *"Verrückte Sprichwörter"* ("Crazy Proverbs") was the principal
121
121
  inspiration for the project.
122
122
 
123
+ This document
124
+ -------------
125
+ .. _CC By-ND 4.0: https://creativecommons.org/licenses/by-nd/4.0/
126
+ .. |date| date::
127
+
128
+ ©Michael Uplawski <michael.uplawski@uplawski.eu>
129
+
130
+ License: `CC BY-ND 4.0`_
131
+
132
+ Date: |date|
133
+
134
+ .. _omega:
135
+
123
136
  **Ω**
124
137
 
@@ -125,4 +125,17 @@ die Entwicklung des Programms.
125
125
  :Autor: "Sprichwörter" wurde von Michael Uplawski
126
126
  <michael.uplawski@uplawski.eu> programmiert.
127
127
 
128
+ Dieses Dokument
129
+ ---------------
130
+ .. _CC By-ND 4.0: https://creativecommons.org/licenses/by-nd/4.0/
131
+ .. |date| date::
132
+
133
+ ©Michael Uplawski <michael.uplawski@uplawski.eu>
134
+
135
+ Lizenz: `CC BY-ND 4.0`_
136
+
137
+ Datum: |date|
138
+
139
+ .. _omega:
140
+
128
141
  **Ω**
data/lib/argparser.rb CHANGED
@@ -85,7 +85,7 @@ class ArgParser
85
85
 
86
86
  opts.on_tail('-' << trl('v'), '--' << trl('version'), (trl('Show version and program information') )) do
87
87
  puts "\t#{$0} #{VERSION}"
88
- puts "\t© 2016-2019 Michael Uplawski <michael.uplawski at uplawski.eu>"
88
+ puts "\t© #{YEARS} #{AUTHOR} <#{AUTHOR_MAIL}>"
89
89
  exit true
90
90
  end
91
91
  end
data/lib/user_input.rb CHANGED
@@ -23,7 +23,9 @@ def wait_for_user()
23
23
  char = nil
24
24
  STDIN.raw do
25
25
  STDIN.noecho do
26
- until (STDIN.ready?)
26
+ #modified for Ruby 4.x
27
+ # until (STDIN.ready?)
28
+ until IO.select([STDIN], nil, nil, 0)
27
29
  sleep(0.1)
28
30
  end
29
31
  char = (STDIN.read_nonblock(1).ord rescue nil)
data/lib/version.rb CHANGED
@@ -1,14 +1,16 @@
1
1
  #!/usr/bin/env ruby
2
- #encoding: UTF-8
3
-
2
+ #encoding: UTF-8 :
4
3
  =begin
5
- * ©2016-2025, Michael Uplawski <michael.uplawski@uplawski.eu> *
4
+ * ©2016-2026, Michael Uplawski <michael.uplawski@uplawski.eu> *
6
5
  * *
7
6
  * This program is free software; you can redistribute it and/or modify *
8
7
  * it under the terms of the WTFPL, either version 2 of the License, or *
9
8
  * (at your option) any later version. *
10
- * See http://www.wtfpl.net/about/ for details. *
9
+ * See http://www.wtfpl.net/about/ for details. *
11
10
  =end
12
11
 
13
- VERSION=1.7
14
- SUMMARY="Changed license to WTFPL. Generation of the documentation improved."
12
+ VERSION=1.82
13
+ SUMMARY="Bugfix: IO.select for compatibility with Ruby 4.0.1"
14
+ YEARS='2016 - 2026'
15
+ AUTHOR='Michael Uplawski'
16
+ AUTHOR_MAIL='michael.uplawski@uplawski.eu'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Sprichwoerter
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.7'
4
+ version: '1.82'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Uplawski
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-01-01 00:00:00.000000000 Z
10
+ date: 2026-04-10 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: Generates random, senseless proverbs by combining beginnings and endings
13
13
  of existing proverbs.
@@ -45,6 +45,7 @@ files:
45
45
  licenses:
46
46
  - Nonstandard
47
47
  metadata:
48
+ license_uri: https://www.wtfpl.net/about
48
49
  homepage_uri: https://www.uplawski.eu/software/sprichwoerter
49
50
  documentation_uri: https://www.uplawski.eu/software/sprichwoerter/proverbs.html
50
51
  rdoc_options: []
@@ -54,14 +55,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
54
55
  requirements:
55
56
  - - ">="
56
57
  - !ruby/object:Gem::Version
57
- version: '2.5'
58
+ version: '4.0'
58
59
  required_rubygems_version: !ruby/object:Gem::Requirement
59
60
  requirements:
60
61
  - - ">="
61
62
  - !ruby/object:Gem::Version
62
63
  version: '0'
63
64
  requirements: []
64
- rubygems_version: 3.6.7
65
+ rubygems_version: 4.0.10
65
66
  specification_version: 4
66
- summary: Changed license to WTFPL. Generation of the documentation improved.
67
+ summary: 'Bugfix: IO.select for compatibility with Ruby 4.0.1'
67
68
  test_files: []