Package: ruby-tty-reader / 0.7.0-2

0003-spec-helper-missing-require.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: The test suite refuses to run with ruby 2.7
 Without this require line, ruby 2.7 fails to run the test suite. When the
 "class StringIO" line is encountered, since the class is not defined, a new
 class that inherits from Object is created and the majority of the expected
 interface is missing.
 .
 This used to work in ruby 2.5 without the require line.
 .
 Upstream has already fixed this but the fix has yet to be released in a new
 version.
Author: Gabriel Filion <gabriel@koumbit.org>
Applied-Upstream: https://github.com/piotrmurach/tty-reader/commit/b362f968bdaf0af0e27229aa6e44323cdf6feb4a
Last-Update: 2020-03-10
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -16,6 +16,7 @@ if ENV['COVERAGE'] || ENV['TRAVIS']
 end
 
 require "tty-reader"
+require "stringio"
 
 class StringIO
   def wait_readable(*)