Skip to content

Commit 88e24e5

Browse files
committed
Test against io-console development branch
Use the Windows console API branch before raising the released `io-console` dependency.
1 parent f7acb32 commit 88e24e5

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ gem 'test-unit-ruby-core'
1919
gem 'readline'
2020

2121
# Only used in windows
22-
gem 'io-console'
22+
gem "io-console", github: "ruby/io-console", branch: "windows-console-support"

Rakefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ require 'bundler/gem_tasks'
22
require 'rake/testtask'
33
require 'rdoc/task'
44

5+
if io_console = Gem.loaded_specs["io-console"]
6+
paths = io_console.full_require_paths
7+
ENV["RUBYLIB"] = [*paths, ENV["RUBYLIB"]].compact.join(File::PATH_SEPARATOR)
8+
ENV["RUBYOPT"] = ENV["RUBYOPT"].to_s.split.reject do |option|
9+
/\A-r.*bundler[\\\/]setup\z/ =~ option
10+
end.join(" ")
11+
end
12+
513
ENCODING_LIST = {
614
test_shift_jis: Encoding::Shift_JIS,
715
test_euc_jp: Encoding::EUC_JP,

0 commit comments

Comments
 (0)