Skip to content

Commit 7d0e47e

Browse files
committed
Use RbConfig instead of Config
1 parent 6dfa402 commit 7d0e47e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spec/launcher_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
end
157157

158158
# JRUBY-4608
159-
if Config::CONFIG['target_os'] =~ /darwin/i
159+
if RbConfig::CONFIG['target_os'] =~ /darwin/i
160160
it "includes file.encoding=UTF-8 on Mac if JAVA_ENCODING is not set" do
161161
jruby_launcher_args("-e true").should include("-Dfile.encoding=UTF-8")
162162
with_environment "JAVA_ENCODING" => "MacRoman" do

spec/spec_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
module JRubyLauncherHelper
1111
JRUBY_EXE = ''
12-
WINDOWS = Config::CONFIG['target_os'] =~ /mswin/
12+
WINDOWS = RbConfig::CONFIG['target_os'] =~ /mswin/
1313

1414
def self.check_executable_built
15-
exe = File.expand_path("../../jruby", __FILE__) + Config::CONFIG['EXEEXT']
15+
exe = File.expand_path("../../jruby", __FILE__) + RbConfig::CONFIG['EXEEXT']
1616
unless File.executable?(exe)
1717
raise "Error: launcher executable not built; type `make' before continuing."
1818
end

0 commit comments

Comments
 (0)