3592 Commits
Author SHA1 Message Date
Hiroshi SHIBATAandClaude Fable 5 b1c9a62982 Disable SimpleCov in bundled gem tests
net-imap's released test helper still calls the pre-1.0.0
`SimpleCov.formatters=` API, which raises NoMethodError with simplecov
1.0.0. Bundled gem coverage is not collected in CI, so opt out via
SIMPLECOV_DISABLE.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 19:37:52 +09:00
Takashi Kokubun 2bf88ac15d make-snapshot: Fix Psych::DisallowedClass with newer psych
```
$ tool/format-release ../www.ruby-lang.org 4.0.0-preview2 .
/opt/rubies/3.4.6/lib/ruby/3.4.0/psych/class_loader.rb:99:in 'Psych::ClassLoader::Restricted#find': Tried to load unspecified class: Date (Psych::DisallowedClass)
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/class_loader.rb:28:in 'Psych::ClassLoader#load'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/class_loader.rb:40:in 'Psych::ClassLoader#date'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/scalar_scanner.rb:65:in 'Psych::ScalarScanner#tokenize'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/to_ruby.rb:65:in 'Psych::Visitors::ToRuby#deserialize'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/to_ruby.rb:129:in 'Psych::Visitors::ToRuby#visit_Psych_Nodes_Scalar'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/visitor.rb:30:in 'Psych::Visitors::Visitor#visit'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/visitor.rb:6:in 'Psych::Visitors::Visitor#accept'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/to_ruby.rb:35:in 'Psych::Visitors::ToRuby#accept'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/to_ruby.rb:346:in 'block in Psych::Visitors::ToRuby#revive_hash'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/to_ruby.rb:344:in 'Array#each'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/to_ruby.rb:344:in 'Enumerable#each_slice'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/to_ruby.rb:344:in 'Psych::Visitors::ToRuby#revive_hash'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/to_ruby.rb:168:in 'Psych::Visitors::ToRuby#visit_Psych_Nodes_Mapping'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/visitor.rb:30:in 'Psych::Visitors::Visitor#visit'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/visitor.rb:6:in 'Psych::Visitors::Visitor#accept'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/to_ruby.rb:35:in 'Psych::Visitors::ToRuby#accept'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/to_ruby.rb:339:in 'block in Psych::Visitors::ToRuby#register_empty'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/to_ruby.rb:339:in 'Array#each'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/to_ruby.rb:339:in 'Psych::Visitors::ToRuby#register_empty'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/to_ruby.rb:147:in 'Psych::Visitors::ToRuby#visit_Psych_Nodes_Sequence'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/visitor.rb:30:in 'Psych::Visitors::Visitor#visit'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/visitor.rb:6:in 'Psych::Visitors::Visitor#accept'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/to_ruby.rb:35:in 'Psych::Visitors::ToRuby#accept'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/to_ruby.rb:319:in 'Psych::Visitors::ToRuby#visit_Psych_Nodes_Document'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/visitor.rb:30:in 'Psych::Visitors::Visitor#visit'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/visitor.rb:6:in 'Psych::Visitors::Visitor#accept'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych/visitors/to_ruby.rb:35:in 'Psych::Visitors::ToRuby#accept'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych.rb:336:in 'Psych.safe_load'
        from /opt/rubies/3.4.6/lib/ruby/3.4.0/psych.rb:371:in 'Psych.load'
        from tool/format-release:80:in 'Tarball.parse'
        from tool/format-release:269:in 'Object#main'
        from tool/format-release:272:in '<main>'
```
2025-12-16 16:36:22 -08:00
Hiroshi SHIBATA 7fa4d58ef2 [ruby/rubygems] Bump up vendored uri to 1.0.4
https://github.com/ruby/rubygems/commit/bc77ec0bf2
2025-10-22 19:57:28 -07:00
Takashi Kokubun 9b5d6505ef post_push.yml: Backport commit-mail to ruby_3_4 (#14781) 2025-10-08 14:19:19 -07:00
Takashi Kokubun a7eb7e7c6f tool/merger.rb: Fetch diff from GitHub instead of cgit
Our cgit server has been shut down.

tool/merger.rb: Fetch a diff in the patch format

It expects "Subject:", so it needs to be a patch file.
2025-10-07 09:40:55 -07:00
Janosch Müller 5a42d267bf Make word prop match join_control to conform to UTS 18
See <https://bugs.ruby-lang.org/issues/19417#note-3>.

https://unicode.org/reports/tr18/#word states word should match join_control chars.

It did not previously:

```ruby
[*0x0..0xD799, *0xE000..0x10FFFF].map { |n| n.chr 'utf-8' } => all_chars
all_chars.grep(/\p{join_control}/) => jc
jc.count # => 2
jc.grep(/\p{word}/).count # => 0
```
[Backport #19417]

---

Backporting note: I regenerated `enc/unicode/15.0.0/name2ctype.h` using
`make update-unicode`.
2025-08-27 15:17:15 -07:00
David RodríguezandHiroshi SHIBATA 2cce628721 Sync lockfile from rubygems/rubygems (#13472)
* Sync lockfile from rubygems/rubygems

* Restore lockfile for test-bundler

In the past, bundler updated platform without normalized variable like arm64-darwin-23.
We ignored that update. But the current bundler uses arm64-darwin for that.

---------

Co-authored-by: Hiroshi SHIBATA <hsbt@ruby-lang.org>
2025-05-30 17:00:27 -04:00
David Rodríguez 3941954fd4 Remove unnecessary GEM_PATH modification 2025-05-28 14:14:49 -04:00
David Rodríguez baa5f15b33 Sync Bundler and adapt to new spec setup 2025-05-28 14:14:49 -04:00
Hiroshi SHIBATA 2de5cb2f13 Skip RBS tests for RDocPluginParserTest caused by interface change of RDoc 6.14.0
https://github.com/ruby/ruby/actions/runs/15199473008/job/42750815986?pr=13421

```
 Error: ArgumentError: wrong number of arguments (given 0, expected 1)
  /Users/runner/work/ruby/ruby/src/lib/rdoc/store.rb:123:in 'initialize'
  /Users/runner/work/ruby/ruby/src/gems/src/rbs/test/rbs/rdoc/rbs_parser_test.rb:8:in 'Class#new'
  /Users/runner/work/ruby/ruby/src/gems/src/rbs/test/rbs/rdoc/rbs_parser_test.rb:8:in 'RDocPluginParserTest#parser'
  /Users/runner/work/ruby/ruby/src/gems/src/rbs/test/rbs/rdoc/rbs_parser_test.rb:147:in 'RDocPluginParserTest#test_instance_method_comment_and_tokens'
```
2025-05-23 12:56:37 +09:00
Hiroshi SHIBATA db2bf9f078 Merge RubyGems-3.6.6 and Bundler-2.6.6 2025-04-08 17:54:29 -07:00
Hiroshi SHIBATA 19c69f382b Merge RubyGems-3.6.3 and Bundler-2.6.3 2025-02-20 16:50:20 -08:00
Yuta Saito d5666bbf91 tool/downloader.rb: Stop caching already existing files
Previously, the script was caching any file already present in the
destination directory, regardless of its origin. This caused issues
when the directory contained files copied from external sources like
`autoreconf --install`.

For example:
1. `./autogen.sh --install` copies `config.guess` and `config.sub`
   from the system to `./tool`.
2. `ruby tool/downloader.rb -d tool -e gnu config.guess config.sub`
   treats those files as if they were downloaded and caches them.
3. Removing the files: `rm tool/config.guess tool/config.sub`.
4. Running the downloader again, it mistakenly restores the cached
   files instead of downloading fresh versions.
2025-02-13 21:19:01 -08:00
Hiroshi SHIBATA 787436cd1a Support git ls-files ....split style for file list of gemspec 2025-02-13 17:42:41 -08:00
ydah d8c152eead Lrama v0.6.11 2024-12-23 15:16:32 +09:00
Nobuyoshi Nakada fca85845ab Install modular GC libraries 2024-12-22 22:10:26 +09:00
Nobuyoshi Nakada 626037e143 Support RUBY_MODULAR_GC with LOAD_RELATIVE 2024-12-22 22:10:26 +09:00
Soutaro Matsumoto 978df259ca Bundle rbs-3.8 (#12399)
* Clean up skip tests

* Bundle rbs-3.8.0.pre.1
2024-12-20 09:48:01 +09:00
Hiroshi SHIBATA 68e2022b5b The test of net-imap is passed with Windows 2024-12-19 12:20:22 +09:00
Hiroshi SHIBATA 827acccce7 Skip to sync lib/irb/.document 2024-12-18 11:22:13 +09:00
David Rodríguez 559e9fe990 Bump vendored securerandom to 0.4.1 2024-12-18 10:05:21 +09:00
David Rodríguez b9ad8fa524 Bump vendored timeout to 0.4.3 2024-12-18 10:05:21 +09:00
David Rodríguez d42fcda002 Bump vendored resolv to 0.6.0 2024-12-17 09:22:17 +09:00
David Rodríguez 71bebcf658 Bump vendored uri to 1.0.2 2024-12-13 11:29:34 +09:00
David Rodríguez 57f222c182 Bump vendored net-http to 0.6.0 2024-12-13 11:29:17 +09:00
David Rodríguez cd460d5d8d Bump vendored securerandom to 0.4.0 2024-12-13 11:24:08 +09:00
NARUSE, Yui 54964526c6 increase diff.renameLimit 2024-12-12 22:58:44 +09:00
Hiroshi SHIBATA c2a5d4cdc0 Fixed upstream path of ruby/resolv 2024-12-11 15:30:14 +09:00
Hiroshi SHIBATA 69fb4a5f38 typeprof-757303fe8de0cf5e5583b4a76f8abbbd55c44776 is working with Windows 2024-12-06 20:01:37 +09:00
Peter Zhu ce1ad1b816 Standardize on the name "modular GC"
We have name fragmentation for this feature, including "shared GC",
"modular GC", and "external GC". This commit standardizes the feature
name to "modular GC" and the implementation to "GC library".
2024-12-05 10:33:26 -05:00
Soutaro Matsumoto 0ef4a7d745 Bundle RBS 3.7 (#12265) 2024-12-05 05:59:18 +00:00
Hiroshi SHIBATA 0eca6c3059 Update strscan structure for strscan/strscan.rb 2024-12-02 10:50:34 +09:00
Nobuyoshi Nakada 8149f4d6ab [Bug #20910] dtrace related symbols are not considered leaked 2024-11-30 14:04:53 +09:00
Hiroshi SHIBATA 84bf0b3774 Always declared gems that are test failures on Windows to allowed failures list 2024-11-28 14:56:46 +09:00
Hiroshi SHIBATA ac7b63e353 Fixed test condition for specified bundled gems 2024-11-27 16:45:10 +09:00
Hiroshi SHIBATA 9349e98be2 Allow to run 'make test-bundled-gems BUNDLED_GEMS=csv,rexml' for only testing csv and rexml 2024-11-27 16:45:10 +09:00
Matt Valentine-House 33f15ce80d Sync the main branch of ruby/mmtk
The sync script defaults to `master` when analysing which commits to
pick, but the default for new repos now is `main`.
2024-11-27 06:40:15 +09:00
Hiroshi SHIBATA 5471f284d2 Skip failing rbs tests with latest HEAD of ruby/json
```
NoMethodError: undefined method 'flush' for an instance of JsonWrite
```
2024-11-26 15:11:05 +09:00
Hiroshi SHIBATA 73cc312e42 Skip flaky tests of rbs in macOS 15.x 2024-11-25 15:46:07 +09:00
Hiroshi SHIBATA b305df8c78 Skip sync failure when we specified old version 2024-11-25 10:58:24 +09:00
Nobuyoshi Nakada c6ca339955 Fix --empty option of ifchange 2024-11-24 18:34:01 +09:00
Matt Valentine-House 801e66352e Sync ruby/mmtk into the gc/mmtk directory 2024-11-21 21:09:55 +00:00
David Rodríguez a208ac6f4b Use webrick 1.9 in Bundler specs 2024-11-20 09:42:25 +09:00
David Rodríguez a5709631a1 webrick is no longer needed in dev_gems.rb gemfile
Since 3ae4358024ed4a8438aa14611b3b939b39cdd18b.
2024-11-20 09:42:10 +09:00
David Rodríguez 519b233695 Test with sinatra to 4.1.0 2024-11-19 08:13:10 +09:00
Hiroshi SHIBATA 498c960a12 Install zeitwerk without bundle install 2024-11-18 15:48:20 +09:00
Nobuyoshi Nakada ed4871afed Update rubyarchdir and rubylibdir as well for tests
These are also different between build time and after installation.
2024-11-15 18:28:16 +09:00
git 31741719ae * append newline at EOF. [ci skip] 2024-11-15 08:50:34 +00:00
Hiroshi SHIBATA a6f25023ac Port test_warn_zeitwerk.rb to RSpec example 2024-11-15 17:50:24 +09:00
Hiroshi SHIBATA 5bd0dfbf2e Port test_warn_bootsnap_and_gem.rb to RSpec example 2024-11-15 17:50:24 +09:00