We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 677baf2 commit 5b6a8a0Copy full SHA for 5b6a8a0
.bundle/config
@@ -0,0 +1,2 @@
1
+---
2
+BUNDLE_JOBS: "4"
.ruby-version
@@ -1 +1 @@
-ruby-2.7.1
+ruby-3.1.2
Gemfile
@@ -2,7 +2,7 @@
3
source 'https://rubygems.org'
4
5
-ruby '2.7.1'
+ruby '3.1.2'
6
7
gem 'activesupport', '~> 6.0', '>= 6.0.3.2', require: 'active_support/all'
8
gem 'minitest', '~> 5.14', '>= 5.14.1'
Gemfile.lock
@@ -1,8 +1,8 @@
GIT
remote: https://github.com/kern/minitest-reporters.git
- revision: 9cb9e78aed69bfe4eed6c27b5b795e8bb4ad708f
+ revision: 466b060a906298148836e368916aee930d28f618
specs:
- minitest-reporters (1.4.2)
+ minitest-reporters (1.5.0)
ansi
builder
minitest (>= 5.0)
@@ -11,29 +11,28 @@ GIT
11
GEM
12
remote: https://rubygems.org/
13
14
- activesupport (6.0.3.2)
+ activesupport (6.1.6)
15
concurrent-ruby (~> 1.0, >= 1.0.2)
16
- i18n (>= 0.7, < 2)
17
- minitest (~> 5.1)
18
- tzinfo (~> 1.1)
19
- zeitwerk (~> 2.2, >= 2.2.2)
+ i18n (>= 1.6, < 2)
+ minitest (>= 5.1)
+ tzinfo (~> 2.0)
+ zeitwerk (~> 2.3)
20
ansi (1.5.0)
21
builder (3.2.4)
22
coderay (1.1.3)
23
- concurrent-ruby (1.1.6)
24
- i18n (1.8.3)
+ concurrent-ruby (1.1.10)
+ i18n (1.10.0)
25
concurrent-ruby (~> 1.0)
26
method_source (1.0.0)
27
- minitest (5.14.1)
+ minitest (5.15.0)
28
pry (0.13.1)
29
coderay (~> 1.1)
30
method_source (~> 1.0)
31
- rake (13.0.1)
32
- ruby-progressbar (1.10.1)
33
- thread_safe (0.3.6)
34
- tzinfo (1.2.7)
35
- thread_safe (~> 0.1)
36
- zeitwerk (2.4.0)
+ rake (13.0.6)
+ ruby-progressbar (1.11.0)
+ tzinfo (2.0.4)
+ concurrent-ruby (~> 1.0)
+ zeitwerk (2.5.4)
37
38
PLATFORMS
39
mswin64
@@ -48,7 +47,7 @@ DEPENDENCIES
48
47
rake (~> 13.0, >= 13.0.1)
49
50
RUBY VERSION
51
- ruby 2.7.1p83
+ ruby 3.1.2p20
52
53
BUNDLED WITH
54
2.1.4
lib/compiler.rb
@@ -487,7 +487,7 @@ def log(message = nil)
487
warn message
488
end
489
490
- def stuff(library, &block)
+ def stuff(library, &)
491
source = File.join PRJ_ROOT, 'vendor', library
492
target = File.join @options[:tmpdir], library
493
@@ -498,7 +498,7 @@ def stuff(library, &block)
498
log "=> Stuffing #{library}..."
499
500
@utils.capture_run_io "stuff_#{library}" do
501
- @utils.chdir(target, &block)
+ @utils.chdir(target, &)
502
503
504
log "=> Stuffed #{library}"
@@ -789,7 +789,7 @@ def local_toolchain_env
789
{
790
'CI' => 'true',
791
'GEM_PATH' => File.join(@ruby_install, 'lib', 'ruby', 'gems', self.class.ruby_api_version),
792
- 'PATH' => "#{File.join(@ruby_install, 'bin')}:#{ENV['PATH']}",
+ 'PATH' => "#{File.join(@ruby_install, 'bin')}:#{ENV.fetch('PATH', nil)}",
793
'ENCLOSE_IO_USE_ORIGINAL_RUBY' => 'true',
794
'ENCLOSE_IO_RUBYC_1ST_PASS' => 'true',
795
'ENCLOSE_IO_RUBYC_2ND_PASS' => nil
lib/compiler/utils.rb
@@ -77,9 +77,9 @@ def run_allow_failures(*args)
77
status
78
79
80
- def chdir(path, &block)
+ def chdir(path, &)
81
warn "-> cd #{path}" unless @options[:quiet]
82
- Dir.chdir(path, &block)
+ Dir.chdir(path, &)
83
warn "-> cd #{Dir.pwd}" unless @options[:quiet]
84
85
@@ -90,7 +90,7 @@ def cp(from, to)
90
91
def cp_r(from, to, options = {})
92
warn "-> cp -r #{from.inspect} #{to.inspect}" unless @options[:quiet]
93
- FileUtils.cp_r(from, to, options)
+ FileUtils.cp_r(from, to, **options)
94
95
96
def rm(path)
test/roundtrip/test_rubyc.rb
@@ -30,14 +30,14 @@ def ruby(*args)
Thread.new do
until (raw_line = stdout.gets).nil?
- parsed_line = Hash[timestamp: Time.now, line: raw_line.to_s]
+ parsed_line = { timestamp: Time.now, line: raw_line.to_s }
$stdout.puts "rubyc's ruby STDOUT: #{parsed_line}"
until (raw_line = stderr.gets).nil?
40
41
warn "rubyc's ruby STDERR: #{parsed_line}"
42
43
0 commit comments