Sprichwoerter 0.1 → 1.7

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.
data/lib/translations ADDED
@@ -0,0 +1,164 @@
1
+ list:
2
+ de: liste
3
+
4
+ Execute with option -h to see an option summary:
5
+ de: Starten Sie das Program mit -h um die Erklärung der Kommandozeilenargumente zu sehen.
6
+
7
+ invalid option:
8
+ de: Ungültiges Argument
9
+
10
+ missing argument:
11
+ de: Fehlender Wert
12
+
13
+ for option:
14
+ de: für Option
15
+
16
+ Error!:
17
+ de: Fehler!
18
+
19
+ Invalid color value:
20
+ de: Ungültiger Farbname
21
+
22
+ Singular or plural (s, p):
23
+ de: Singular oder Plural (s, p)
24
+
25
+ s:
26
+ de: s
27
+
28
+ p:
29
+ de: p
30
+
31
+ singular:
32
+ de: singular
33
+
34
+ plural:
35
+ de: plural
36
+
37
+ Cannot add the proverb, invalid argument:
38
+ de: Kann das Sprichwort nicht hinzufügen, ungültiges Argument
39
+
40
+ List %s has been updated:
41
+ de: Liste %s wurde aktualisiert
42
+
43
+ Push '+' for a positive rating:
44
+ de: Drücken Sie ‚+’, um das Sprichwort positiv zu bewerten
45
+
46
+ Done:
47
+ de: Fertig
48
+ a:
49
+ de: n
50
+
51
+ add:
52
+ de: neu
53
+
54
+ GROUP:
55
+ de: GRUPPE
56
+
57
+ LANG:
58
+ de: SPRACHE
59
+
60
+ f:
61
+ de: l
62
+
63
+ l:
64
+ de: s
65
+
66
+ Language:
67
+ de: Sprache
68
+
69
+ lang:
70
+ de: sprache
71
+
72
+ favorites:
73
+ de: liste
74
+
75
+ q:
76
+ de: w
77
+
78
+ qualify:
79
+ de: werten
80
+
81
+ c:
82
+ de: f
83
+
84
+ -c:
85
+ de: -f
86
+
87
+ color:
88
+ de: farbe
89
+
90
+ h:
91
+ de: h
92
+
93
+ help:
94
+ de: hilfe
95
+
96
+ Usage:
97
+ de: Syntax
98
+
99
+ Specific options:
100
+ de: Spezielle Optionen
101
+
102
+ Add real proverb to the base:
103
+ de: Neues Sprichwort in Stammdaten aufnehmen
104
+
105
+ Beginning of the proverb:
106
+ de: Anfang des Sprichworts
107
+
108
+ Ending of the proverb:
109
+ de: Ende des Sprichworts
110
+
111
+ Set language:
112
+ de: Sprache festlegen
113
+
114
+ Show favorites:
115
+ de: Best Bewertete auflisten
116
+
117
+ Qualify proverbs:
118
+ de: Sprichwörter bewerten
119
+
120
+ Use color in program-output (one of red, green, yellow, purple, cyan, blue, white, black):
121
+ de: Farbige Programmausgabe (eine von rot, grün, gelb, lila, cyan, blau, weiß, schwarz)
122
+
123
+ Common options:
124
+ de: Allgemeine Optionen
125
+
126
+ Show this message:
127
+ de: Diese Meldung anzeigen
128
+
129
+ v:
130
+ de: v
131
+
132
+ version:
133
+ de: version
134
+
135
+ Show version and program information:
136
+ de: Versionsinformationen anzeigen
137
+
138
+ COLOR:
139
+ de: FARBE
140
+
141
+ red:
142
+ de: rot
143
+
144
+ green:
145
+ de: grün
146
+
147
+ purple:
148
+ de: lila
149
+
150
+ yellow:
151
+ de: gelb
152
+
153
+ cyan:
154
+ de: cyan
155
+
156
+ blue:
157
+ de: blau
158
+
159
+ white:
160
+ de: weiß
161
+
162
+ black:
163
+ de: schwarz
164
+
data/lib/user_input.rb ADDED
@@ -0,0 +1,36 @@
1
+ #encoding: UTF-8
2
+
3
+ =begin
4
+ * ©2016-2025, Michael Uplawski <michael.uplawski@uplawski.eu> *
5
+ * *
6
+ * This program is free software; you can redistribute it and/or modify *
7
+ * it under the terms of the WTFPL, either version 2 of the License, or *
8
+ * (at your option) any later version. *
9
+ * See http://www.wtfpl.net/about/ for details. *
10
+ =end
11
+
12
+ # -----------> Forgot, what this is doing
13
+ require 'io/wait'
14
+ # <---------- TODO: Find out, what io/wait is doing
15
+
16
+ require 'io/console'
17
+
18
+ # The totally mystic and heard-about-so-long, fantastic and marvelous...
19
+ # Non-blocking User-Input.
20
+ # I have seen this somewhere and am explicitely thankful to someone to
21
+ # have written something about it.
22
+ def wait_for_user()
23
+ char = nil
24
+ STDIN.raw do
25
+ STDIN.noecho do
26
+ until (STDIN.ready?)
27
+ sleep(0.1)
28
+ end
29
+ char = (STDIN.read_nonblock(1).ord rescue nil)
30
+ end
31
+ end
32
+ return char
33
+ end
34
+ # whatever
35
+ # Ω EOF
36
+
data/lib/version.rb ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ #encoding: UTF-8
3
+
4
+ =begin
5
+ * ©2016-2025, Michael Uplawski <michael.uplawski@uplawski.eu> *
6
+ * *
7
+ * This program is free software; you can redistribute it and/or modify *
8
+ * it under the terms of the WTFPL, either version 2 of the License, or *
9
+ * (at your option) any later version. *
10
+ * See http://www.wtfpl.net/about/ for details. *
11
+ =end
12
+
13
+ VERSION=1.7
14
+ SUMMARY="Changed license to WTFPL. Generation of the documentation improved."
metadata CHANGED
@@ -1,33 +1,52 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Sprichwoerter
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '1.7'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Uplawski
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2016-11-12 00:00:00.000000000 Z
10
+ date: 2026-01-01 00:00:00.000000000 Z
12
11
  dependencies: []
13
- description: Combines German or English proverbs into new, mostely senseless proverbs
12
+ description: Generates random, senseless proverbs by combining beginnings and endings
13
+ of existing proverbs.
14
14
  email: michael.uplawski@uplawski.eu
15
15
  executables:
16
- - sprichwoerter
17
16
  - proverbs
17
+ - sprichwoerter
18
18
  extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
+ - Sprichwoerter.gemspec
21
22
  - bin/proverbs
22
23
  - bin/sprichwoerter
24
+ - doc/html/proverbs.html
25
+ - doc/html/sprichwoerter.html
26
+ - doc/man/proverbs.6.gz
27
+ - doc/man/sprichwoerter.6.gz
28
+ - doc/pdf/proverbs.pdf
29
+ - doc/pdf/sprichwoerter.pdf
30
+ - doc/rst/proverbs.rst
31
+ - doc/rst/sprichwoerter.rst
32
+ - lib/adder.rb
33
+ - lib/argparser.rb
34
+ - lib/color_output.rb
23
35
  - lib/liste_de.rb
24
36
  - lib/liste_en.rb
37
+ - lib/log.conf
38
+ - lib/logging.rb
39
+ - lib/rearranging.rb
25
40
  - lib/sprichwörter.rb
26
- homepage:
41
+ - lib/translating.rb
42
+ - lib/translations
43
+ - lib/user_input.rb
44
+ - lib/version.rb
27
45
  licenses:
28
- - GPL-3.0
29
- metadata: {}
30
- post_install_message:
46
+ - Nonstandard
47
+ metadata:
48
+ homepage_uri: https://www.uplawski.eu/software/sprichwoerter
49
+ documentation_uri: https://www.uplawski.eu/software/sprichwoerter/proverbs.html
31
50
  rdoc_options: []
32
51
  require_paths:
33
52
  - lib
@@ -35,16 +54,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
35
54
  requirements:
36
55
  - - ">="
37
56
  - !ruby/object:Gem::Version
38
- version: 2.1.2
57
+ version: '2.5'
39
58
  required_rubygems_version: !ruby/object:Gem::Requirement
40
59
  requirements:
41
60
  - - ">="
42
61
  - !ruby/object:Gem::Version
43
62
  version: '0'
44
63
  requirements: []
45
- rubyforge_project:
46
- rubygems_version: 2.6.7
47
- signing_key:
64
+ rubygems_version: 3.6.7
48
65
  specification_version: 4
49
- summary: Call as proverbs for English (senseless) proverbs.
66
+ summary: Changed license to WTFPL. Generation of the documentation improved.
50
67
  test_files: []