timequiz 0.3 → 0.32

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: 4dfbd11aa927e4fa19f97df85c57fcb4bfbcd54d732629af6a2a97686e1b8725
4
- data.tar.gz: 5e90386c572b4b33dac75535a3fceea7ac8017ca147af10e0a074664a750f47d
3
+ metadata.gz: a7e38d8b9eb74d76bb8e87d548a7ac05427adfd515b34886d83c672dd2c9f8b0
4
+ data.tar.gz: e48d79a87c7bb51f4fac84b2a4a957e953657385fc9e91f9ec8102279f5b139f
5
5
  SHA512:
6
- metadata.gz: b8dadc3a9eba2c6429771d695a53aabc56cb6d09b47b5fdf902364bd54d02939a3c85b41a201e99b70d211a686322a13791e93508f1db5b7cfbcef32734c95b1
7
- data.tar.gz: 86b49f8edb20261267fe989d4e51d721966df45576ecbf6dafeb0a975631ee64a169b26c92ea409e6a52b772c02e4cedb2004a528aca300a0bc765fa61c2d184
6
+ metadata.gz: b9db06d19755fb81f085ad3f8d719fd75a4fd81fef834192df149c39bd11adc519211952a8938e64f999ac9e71f265830d64032681962a9f92eec442f9c68103
7
+ data.tar.gz: 31aea480b7b839796b7257f4b393dc1c90697f66ff544069a1d262a0b561f2cbb4aa75681eed7673f05d7c07efab363b6a7d68e9f5781ba43c0ae0b1136d46e8
@@ -1,9 +1,11 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
2
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
3
  <head>
4
- <meta name="generator" content=
5
- "HTML Tidy für Linux, Version 5.8.0" />
6
- <meta charset="utf-8" />
4
+ <meta name="generator" content="vim - Vi Improved, a programmer's editor; HTML Tidy for Linux version 5.8.0
5
+ "/>
6
+ <meta charset="utf-8" />
7
+ <meta name="viewport" content=
8
+ "width=device-width, initial-scale=1" />
7
9
  <title>Timequiz</title>
8
10
  <style type="text/css">
9
11
  /*<![CDATA[*/
Binary file
data/doc/pdf/timequiz.pdf CHANGED
Binary file
data/lib/argparser.rb CHANGED
@@ -17,6 +17,7 @@
17
17
  require 'optparse'
18
18
  require 'optparse/time'
19
19
  require 'ostruct'
20
+ require_relative 'version'
20
21
  require_relative 'basic_logging'
21
22
  require_relative 'constants'
22
23
 
@@ -55,7 +56,7 @@ class ArgParser
55
56
  options.debug = 'debug'
56
57
  end
57
58
  opts.on("-v", "--version", 'Show program version') do
58
- puts $APPNAME.dup << ", version " << $VERSION
59
+ puts APPNAME.dup << ", version " << VERSION
59
60
  exit true
60
61
  end
61
62
  end
data/lib/user_input.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  =begin
4
4
  /***************************************************************************
5
- * ©2017-2024, Michael Uplawski <michael.uplawski@uplawski.eu> *
5
+ * ©2017-2026, 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 WTFPL 2.0 or later, see *
@@ -15,7 +15,8 @@
15
15
  ***************************************************************************/
16
16
  =end
17
17
 
18
- require 'io/wait'
18
+ # Modified for ruby 4.x
19
+ # require 'io/wait'
19
20
  require 'io/console'
20
21
  require_relative 'color_output'
21
22
 
@@ -220,7 +221,10 @@ class UserInput
220
221
 
221
222
  STDIN.raw do
222
223
  STDIN.noecho do
223
- until (STDIN.ready?)
224
+ # STDIN.ready?
225
+ # Modification for ruby 4.0.1 compatibility. Unclear what the
226
+ # requirements are. This works.
227
+ until IO.select([STDIN], nil, nil, 0)
224
228
  sleep(0.1)
225
229
  end
226
230
  char = (STDIN.read_nonblock(1).ord rescue nil)
data/lib/version.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  =begin
4
4
  /***************************************************************************
5
- * ©2017-2025, Michael Uplawski <michael.uplawski@uplawski.eu> *
5
+ * ©2017-2026, 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 WTFPL 2.0 or later, see *
@@ -15,8 +15,9 @@
15
15
  ***************************************************************************/
16
16
  =end
17
17
 
18
- VERSION = '0.3'
19
- SUMMARY = 'Adder: logging and file-operations corrected'
18
+ APPNAME = 'Timequiz'
19
+ VERSION = '0.32'
20
+ SUMMARY = 'Bugfix (--version) && Ruby 4.x compatibility (STDIN.ready?) '
20
21
  AUTHOR = 'Michael Uplawski'
21
22
  AUTHOR_MAIL = '<michael.uplawski@uplawski.eu>'
22
- YEARS = 2017 - 2025
23
+ YEARS = 2017 - 2026
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timequiz
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.32'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Uplawski
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-11-08 00:00:00.000000000 Z
10
+ date: 2026-04-10 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: Play a history game
13
13
  email: michael.uplawski@uplawski.eu
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  - !ruby/object:Gem::Version
58
58
  version: '0'
59
59
  requirements: []
60
- rubygems_version: 3.6.7
60
+ rubygems_version: 4.0.10
61
61
  specification_version: 4
62
- summary: 'Adder: logging and file-operations corrected'
62
+ summary: Bugfix (--version) && Ruby 4.x compatibility (STDIN.ready?)
63
63
  test_files: []