Sprichwoerter 0.1 → 1.6
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 +5 -5
- data/Sprichwoerter.gemspec +17 -0
- data/bin/proverbs +43 -2
- data/bin/sprichwoerter +48 -2
- data/doc/html/proverbs.html +472 -0
- data/doc/html/sprichwoerter.html +475 -0
- data/doc/man/proverbs.6.gz +0 -0
- data/doc/man/sprichwoerter.6.gz +0 -0
- data/doc/pdf/proverbs.pdf +0 -0
- data/doc/pdf/sprichwoerter.pdf +0 -0
- data/doc/rst/proverbs.rst +117 -0
- data/doc/rst/sprichwoerter.rst +123 -0
- data/lib/adder.rb +91 -0
- data/lib/argparser.rb +128 -0
- data/lib/color_output.rb +44 -0
- data/lib/liste_de.rb +31 -9
- data/lib/liste_en.rb +134 -86
- data/lib/log.conf +55 -0
- data/lib/logging.rb +193 -0
- data/lib/rearranging.rb +47 -0
- data/lib/sprichw/303/266rter.rb +178 -29
- data/lib/translating.rb +101 -0
- data/lib/translations +164 -0
- data/lib/user_input.rb +48 -0
- data/lib/version.rb +25 -0
- metadata +28 -7
data/lib/user_input.rb
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
#encoding: UTF-8
|
2
|
+
|
3
|
+
=begin
|
4
|
+
/***************************************************************************
|
5
|
+
* ©2014-2019, 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 GNU General Public License as published by *
|
9
|
+
* the Free Software Foundation; either version 3 of the License, or *
|
10
|
+
* (at your option) any later version. *
|
11
|
+
* *
|
12
|
+
* This program is distributed in the hope that it will be useful, *
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
15
|
+
* GNU General Public License for more details. *
|
16
|
+
* *
|
17
|
+
* You should have received a copy of the GNU General Public License *
|
18
|
+
* along with this program; if not, write to the *
|
19
|
+
* Free Software Foundation, Inc., *
|
20
|
+
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
21
|
+
***************************************************************************/
|
22
|
+
=end
|
23
|
+
|
24
|
+
# -----------> Forgot, what this is doing
|
25
|
+
require 'io/wait'
|
26
|
+
# <---------- TODO: Find out, what io/wait is doing
|
27
|
+
|
28
|
+
require 'io/console'
|
29
|
+
|
30
|
+
# The totally mystic and heard-about-so-long, fantastic and marvelous...
|
31
|
+
# Non-blocking User-Input.
|
32
|
+
# I have seen this somewhere and am explicitely thankful to someone to
|
33
|
+
# have written something about it.
|
34
|
+
def wait_for_user()
|
35
|
+
char = nil
|
36
|
+
STDIN.raw do
|
37
|
+
STDIN.noecho do
|
38
|
+
until (STDIN.ready?)
|
39
|
+
sleep(0.1)
|
40
|
+
end
|
41
|
+
char = (STDIN.read_nonblock(1).ord rescue nil)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
return char
|
45
|
+
end
|
46
|
+
# whatever
|
47
|
+
# Ω EOF
|
48
|
+
|
data/lib/version.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#encoding: UTF-8
|
3
|
+
=begin
|
4
|
+
/***************************************************************************
|
5
|
+
* ©2019-2019 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 GNU General Public License as published by *
|
9
|
+
* the Free Software Foundation; either version 3 of the License, or *
|
10
|
+
* (at your option) any later version. *
|
11
|
+
* *
|
12
|
+
* This program is distributed in the hope that it will be useful, *
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
15
|
+
* GNU General Public License for more details. *
|
16
|
+
* *
|
17
|
+
* You should have received a copy of the GNU General Public License *
|
18
|
+
* along with this program; if not, write to the *
|
19
|
+
* Free Software Foundation, Inc., *
|
20
|
+
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
21
|
+
***************************************************************************/
|
22
|
+
=end
|
23
|
+
|
24
|
+
VERSION=1.6
|
25
|
+
SUMMARY="Adding proverbs works again, now intaractively. Values are no longer given on the command-line, but asked, one by one, from the user."
|
metadata
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Sprichwoerter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '
|
4
|
+
version: '1.6'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Uplawski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
13
|
+
description: Generates random, senseless proverbs by combining beginnings and endings
|
14
|
+
of existing proverbs.
|
14
15
|
email: michael.uplawski@uplawski.eu
|
15
16
|
executables:
|
16
17
|
- sprichwoerter
|
@@ -18,12 +19,31 @@ executables:
|
|
18
19
|
extensions: []
|
19
20
|
extra_rdoc_files: []
|
20
21
|
files:
|
22
|
+
- Sprichwoerter.gemspec
|
21
23
|
- bin/proverbs
|
22
24
|
- bin/sprichwoerter
|
25
|
+
- doc/html/proverbs.html
|
26
|
+
- doc/html/sprichwoerter.html
|
27
|
+
- doc/man/proverbs.6.gz
|
28
|
+
- doc/man/sprichwoerter.6.gz
|
29
|
+
- doc/pdf/proverbs.pdf
|
30
|
+
- doc/pdf/sprichwoerter.pdf
|
31
|
+
- doc/rst/proverbs.rst
|
32
|
+
- doc/rst/sprichwoerter.rst
|
33
|
+
- lib/adder.rb
|
34
|
+
- lib/argparser.rb
|
35
|
+
- lib/color_output.rb
|
23
36
|
- lib/liste_de.rb
|
24
37
|
- lib/liste_en.rb
|
38
|
+
- lib/log.conf
|
39
|
+
- lib/logging.rb
|
40
|
+
- lib/rearranging.rb
|
25
41
|
- lib/sprichwörter.rb
|
26
|
-
|
42
|
+
- lib/translating.rb
|
43
|
+
- lib/translations
|
44
|
+
- lib/user_input.rb
|
45
|
+
- lib/version.rb
|
46
|
+
homepage: http://rubygems.org
|
27
47
|
licenses:
|
28
48
|
- GPL-3.0
|
29
49
|
metadata: {}
|
@@ -35,7 +55,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
35
55
|
requirements:
|
36
56
|
- - ">="
|
37
57
|
- !ruby/object:Gem::Version
|
38
|
-
version: 2.
|
58
|
+
version: '2.5'
|
39
59
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
60
|
requirements:
|
41
61
|
- - ">="
|
@@ -43,8 +63,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
63
|
version: '0'
|
44
64
|
requirements: []
|
45
65
|
rubyforge_project:
|
46
|
-
rubygems_version: 2.6.
|
66
|
+
rubygems_version: 2.7.6.2
|
47
67
|
signing_key:
|
48
68
|
specification_version: 4
|
49
|
-
summary:
|
69
|
+
summary: Adding proverbs works again, now intaractively. Values are no longer given
|
70
|
+
on the command-line, but asked, one by one, from the user.
|
50
71
|
test_files: []
|