Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/compilers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with: { sparse-checkout-cone-mode: false, sparse-checkout: /.github }
- { uses: './.github/actions/setup/directories', with: { srcdir: 'src', builddir: 'build', makeup: true, fetch-depth: 10 } }
- { uses: './.github/actions/compilers', name: 'clang 22', with: { tag: 'clang-22' } }
- { uses: './.github/actions/compilers', name: 'clang 21', with: { tag: 'clang-21' } }
- { uses: './.github/actions/compilers', name: 'clang 20', with: { tag: 'clang-20' } }
- { uses: './.github/actions/compilers', name: 'clang 19', with: { tag: 'clang-19' } }
Expand Down
1 change: 1 addition & 0 deletions test/.excludes-zjit/TestThread.rb
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
exclude(:test_switch_while_busy_loop, 'Test sometimes hangs with ZJIT')
exclude(:test_handle_interrupted?, 'Test sometimes fails with ZJIT')
10 changes: 4 additions & 6 deletions tool/lib/core_assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -690,17 +690,15 @@ def assert_warn(*args)
assert_warning(*args) {$VERBOSE = false; yield}
end

def assert_deprecated_warning(mesg = /deprecated/)
def assert_deprecated_warning(mesg = /deprecated/, &block)
assert_warning(mesg) do
Warning[:deprecated] = true if Warning.respond_to?(:[]=)
yield
EnvUtil.deprecation_warning(&block)
end
end

def assert_deprecated_warn(mesg = /deprecated/)
def assert_deprecated_warn(mesg = /deprecated/, &block)
assert_warn(mesg) do
Warning[:deprecated] = true if Warning.respond_to?(:[]=)
yield
EnvUtil.deprecation_warning(&block)
end
end

Expand Down
15 changes: 15 additions & 0 deletions tool/lib/envutil.rb
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,21 @@ def flush; end
end
module_function :verbose_warning

if defined?(Warning.[]=)
def deprecation_warning
previous_deprecated = Warning[:deprecated]
Warning[:deprecated] = true
yield
ensure
Warning[:deprecated] = previous_deprecated
end
else
def deprecation_warning
yield
end
end
module_function :deprecation_warning

def default_warning
$VERBOSE = false
yield
Expand Down
8 changes: 0 additions & 8 deletions tool/sync_default_gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ module SyncDefaultGems
open3: "ruby/open3",
openssl: "ruby/openssl",
optparse: "ruby/optparse",
pathname: "ruby/pathname",
pp: "ruby/pp",
prettyprint: "ruby/prettyprint",
prism: ["ruby/prism", "main"],
Expand Down Expand Up @@ -278,13 +277,6 @@ def sync_default_gems(gem)
cp_r("#{upstream}/test/erb", "test")
cp_r("#{upstream}/erb.gemspec", "lib/erb")
cp_r("#{upstream}/libexec/erb", "libexec")
when "pathname"
rm_rf(%w[ext/pathname test/pathname])
cp_r("#{upstream}/ext/pathname", "ext")
cp_r("#{upstream}/test/pathname", "test")
cp_r("#{upstream}/lib", "ext/pathname")
cp_r("#{upstream}/pathname.gemspec", "ext/pathname")
`git checkout ext/pathname/depend`
when "digest"
rm_rf(%w[ext/digest test/digest])
cp_r("#{upstream}/ext/digest", "ext")
Expand Down