autoreporter 0.0.20190730 → 0.0.20230707.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/autoreporter.rb +8 -2
  3. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8cf6e72dc26da8d8dd74347e87d2b2edf8ff287976c2b4c50cfff6c5e368426
4
- data.tar.gz: b39de6dc7448ca857eed03fb47dd213977401df6a094b62eb679201788e5abf9
3
+ metadata.gz: 3057aa188265ad6b9f00bbebf4c411283d3816ff78d86f2f00e563dd6aedbf39
4
+ data.tar.gz: 47f294af68aadb949727f68fd72c4794d6a4e38d25e4780e0c1c5b2f3214f607
5
5
  SHA512:
6
- metadata.gz: 91c8ecf5cd28319ae1b458082f615711130751563d8d559f272dfa1a2e402d7ea3853035c325712fcec716b540648f47ff58376daf3f85158dc1d9cd4b02cde1
7
- data.tar.gz: b725dfb8d2e37ba6597ab88f279de3898dd870f5acb9930c0c3bfbad076a950077ed5e84377f3b7d93fb393d4b51104652997b0b5f77bdb01b497678bec422c6
6
+ metadata.gz: dfe52569e56154cbb9848474257affd8b9fc18d2327af6c09b34ac01d2577ee634c2df41a5523a357102f912fca741618a96ecbef0af613e328d5c56ada18ae9
7
+ data.tar.gz: 22abcd5ce7c2d1bee06faafa9ea5d5b5f1efa8ffa932ed24e896529c16b879022778b206f8b8a99ddc574a3fc8cd228124cbb191a56af82a42d99e9e9a637f91
data/lib/autoreporter.rb CHANGED
@@ -36,8 +36,11 @@ class Autoreporter
36
36
  # Wait for either @delay seconds
37
37
  # or for user forcing autorefresh by pressing enter
38
38
  def wait_for_condition!
39
- Timeout.timeout(@delay) do
40
- STDIN.readline
39
+ begin
40
+ Timeout.timeout(@delay) do
41
+ STDIN.readline
42
+ end
43
+ rescue Timeout::Error
41
44
  end
42
45
  end
43
46
 
@@ -47,5 +50,8 @@ class Autoreporter
47
50
  display_result!
48
51
  wait_for_condition!
49
52
  end
53
+ rescue Interrupt
54
+ # Allow clean exit for Ctrl-C
55
+ return
50
56
  end
51
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoreporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20190730
4
+ version: 0.0.20230707.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Wegrzanowski
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-30 00:00:00.000000000 Z
11
+ date: 2023-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: optimist
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description:
55
+ description:
56
56
  email: Tomasz.Wegrzanowski@gmail.com
57
57
  executables:
58
58
  - autoreporter
@@ -65,7 +65,7 @@ homepage: https://github.com/taw/autoreporter
65
65
  licenses:
66
66
  - MIT
67
67
  metadata: {}
68
- post_install_message:
68
+ post_install_message:
69
69
  rdoc_options: []
70
70
  require_paths:
71
71
  - lib
@@ -80,8 +80,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
- rubygems_version: 3.0.3
84
- signing_key:
83
+ rubygems_version: 3.3.26
84
+ signing_key:
85
85
  specification_version: 4
86
86
  summary: Command line report runner
87
87
  test_files: []