Граф коммитов

2717 Коммитов

Автор SHA1 Сообщение Дата
Yusuke Endoh 7c893c8d6b Loosen the criteria for timing checks of Kernel#sleep
The test was too flaky
2024-11-07 10:18:48 +09:00
Benoit Daloze fdc82cca83 Update to ruby/spec@54c391e 2024-11-06 21:58:28 +01:00
Benoit Daloze 9bc63e7ba0 Update to ruby/mspec@6499325 2024-11-06 21:58:28 +01:00
David Rodríguez 40a2e8e9cf [rubygems/rubygems] This is not about the lockfile anymore
https://github.com/rubygems/rubygems/commit/f2e0a72291
2024-11-06 13:16:57 +00:00
David Rodríguez 54f6b787e3 [rubygems/rubygems] Automatically fix lockfile when the API reveals missing deps
https://github.com/rubygems/rubygems/commit/92196ccfdb
2024-11-06 13:16:57 +00:00
David Rodríguez a4938e5bc0 [rubygems/rubygems] Add missing spec for materializing lockfiles with only "ruby" platform
https://github.com/rubygems/rubygems/commit/4168a7f488
2024-11-06 13:16:57 +00:00
David Rodríguez 8c184885b0 [rubygems/rubygems] Fix some JRuby warnings when using `bundler/setup` with Ruby's -w flag
When using the `bundler/setup` entrypoint, Bundler prints the following
warnings in JRuby in `-w` is passed to Ruby.

```
/path/to/bundler/shared_helpers.rb:10: warning: constant Bundler::WINDOWS is deprecated
/path/to/bundler/shared_helpers.rb:11: warning: constant Bundler::FREEBSD is deprecated
/path/to/bundler/lib/bundler/shared_helpers.rb:12: warning: constant Bundler::NULL is deprecated
```

This does not happen in CRuby.

This seems like a JRuby bug but we can skip it by autoloading the
constants.

https://github.com/rubygems/rubygems/commit/761ca29fa2
2024-11-06 11:37:10 +00:00
Hiroshi SHIBATA a2dd471d9e
macOS 15 is the stable version today 2024-11-06 15:45:32 +09:00
Nobuyoshi Nakada 18c3e2d9f1
Assert newly added warning in `JSON.load` 2024-11-06 12:58:21 +09:00
David Rodríguez 7fe775698b [rubygems/rubygems] Test with JRuby 9.4.9.0
https://github.com/rubygems/rubygems/commit/b282668d9d
2024-11-05 16:07:25 +00:00
Takashi Kokubun 478e0fc710
YJIT: Replace Array#each only when YJIT is enabled (#11955)
* YJIT: Replace Array#each only when YJIT is enabled

* Add comments about BUILTIN_ATTR_C_TRACE

* Make Ruby Array#each available with --yjit as well

* Fix all paths that expect a C location

* Use method_basic_definition_p to detect patches

* Copy a comment about C_TRACE flag to compilers

* Rephrase a comment about add_yjit_hook

* Give METHOD_ENTRY_BASIC flag to Array#each

* Add --yjit-c-builtin option

* Allow inconsistent source_location in test-spec

* Refactor a check of BUILTIN_ATTR_C_TRACE

* Set METHOD_ENTRY_BASIC without touching vm->running
2024-11-04 11:14:28 -05:00
David Rodríguez 50dbe19b68 [rubygems/rubygems] Fix incompatible encodings error
https://github.com/rubygems/rubygems/commit/d478ec403f
2024-11-04 10:04:40 +00:00
Sarah Sehr 80fd846353 [rubygems/rubygems] Add useful error message for plugin load
If a plugin has previously been installed, but the path is no longer
valid, `rake setup` will fail with an unexpected error due to the file
not existing.

Instead, we want to present the user with what the issue is and how to
resolve the problem.

https://github.com/rubygems/rubygems/commit/0c6ad3ecbb
2024-10-31 17:10:31 +00:00
Guilherme Carreiro c3fea18094 [rubygems/rubygems] Update `--ext=rust` to support compiling the native extension from source
https://github.com/rubygems/rubygems/commit/9b0ec807c7
2024-10-30 23:09:12 +00:00
Jean Boussier a6c4a842db Harden the ObjectSpace.memsize_of spec
[Bug #20803]

`abc` is used a lot across the ruby spec suite, if another test runs before
this spec is loaded and create this symbol dynamically (`"abc".to_sym`)
the spec will fail.

So it's preferable to use a symbol name that is very unlikely to be
used elsewhere to avoid flakes.
2024-10-23 16:04:28 +02:00
David Rodríguez 438d36eb4b [rubygems/rubygems] Print a proper error when there's a previous empty installation path with bad permissions
https://github.com/rubygems/rubygems/commit/07e7f0bf5e
2024-10-23 11:16:53 +00:00
David Rodríguez f2380081df [rubygems/rubygems] Improve Bundler errors when trying to install to a protected folder in macOS
### Before

```
$ GEM_HOME=/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/ bundle
Fetching gem metadata from https://rubygems.org/.
Source rubygems repository https://rubygems.org/ or installed locally is ignoring #<Bundler::StubSpecification name=sqlite3 version=1.3.13 platform=ruby> because it is missing extensions
Source rubygems repository https://rubygems.org/ or installed locally is ignoring #<Bundler::StubSpecification name=nokogiri version=1.13.8 platform=ruby> because it is missing extensions
Source rubygems repository https://rubygems.org/ or installed locally is ignoring #<Bundler::StubSpecification name=libxml-ruby version=3.2.1 platform=ruby> because it is missing extensions
Resolving dependencies...
Fetching ruby2_keywords 0.0.5

Retrying download gem from https://rubygems.org/ due to error (2/4): Bundler::GenericSystemCallError There was an error accessing `/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/cache/ruby2_keywords-0.0.5.gem`.
The underlying system error is Errno::EPERM: Operation not permitted @ rb_sysopen - /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/cache/ruby2_keywords-0.0.5.gem

Retrying download gem from https://rubygems.org/ due to error (3/4): Bundler::GenericSystemCallError There was an error accessing `/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/cache/ruby2_keywords-0.0.5.gem`.
The underlying system error is Errno::EPERM: Operation not permitted @ rb_sysopen - /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/cache/ruby2_keywords-0.0.5.gem

Retrying download gem from https://rubygems.org/ due to error (4/4): Bundler::GenericSystemCallError There was an error accessing `/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/cache/ruby2_keywords-0.0.5.gem`.
The underlying system error is Errno::EPERM: Operation not permitted @ rb_sysopen - /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/cache/ruby2_keywords-0.0.5.gem

Bundler::GenericSystemCallError: There was an error accessing `/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/cache/ruby2_keywords-0.0.5.gem`.
The underlying system error is Errno::EPERM: Operation not permitted @ rb_sysopen - /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/cache/ruby2_keywords-0.0.5.gem
  /Users/deivid/code/rubygems/rubygems/bundler/lib/bundler/shared_helpers.rb:119:in `rescue in filesystem_access'
  /Users/deivid/code/rubygems/rubygems/bundler/lib/bundler/shared_helpers.rb:104:in `filesystem_access'
  /Users/deivid/code/rubygems/rubygems/bundler/lib/bundler/rubygems_integration.rb:431:in `block in download_gem'
  /Users/deivid/code/rubygems/rubygems/bundler/lib/bundler/retry.rb:40:in `run'
  /Users/deivid/code/rubygems/rubygems/bundler/lib/bundler/retry.rb:30:in `attempt'
  /Users/deivid/code/rubygems/rubygems/bundler/lib/bundler/rubygems_integration.rb:423:in `download_gem'
  /Users/deivid/code/rubygems/rubygems/bundler/lib/bundler/source/rubygems.rb:479:in `download_gem'
  /Users/deivid/code/rubygems/rubygems/bundler/lib/bundler/source/rubygems.rb:436:in `fetch_gem'
  /Users/deivid/code/rubygems/rubygems/bundler/lib/bundler/source/rubygems.rb:420:in `fetch_gem_if_possible'
  /Users/deivid/code/rubygems/rubygems/bundler/lib/bundler/source/rubygems.rb:162:in `install'
  /Users/deivid/code/rubygems/rubygems/bundler/lib/bundler/installer/gem_installer.rb:55:in `install'
  /Users/deivid/code/rubygems/rubygems/bundler/lib/bundler/installer/gem_installer.rb:17:in `install_from_spec'
  /Users/deivid/code/rubygems/rubygems/bundler/lib/bundler/installer/parallel_installer.rb:133:in `do_install'
  /Users/deivid/code/rubygems/rubygems/bundler/lib/bundler/installer/parallel_installer.rb:124:in `block in worker_pool'
  /Users/deivid/code/rubygems/rubygems/bundler/lib/bundler/worker.rb:62:in `apply_func'
  /Users/deivid/code/rubygems/rubygems/bundler/lib/bundler/worker.rb:57:in `block in process_queue'
  <internal:kernel>:187:in `loop'
  /Users/deivid/code/rubygems/rubygems/bundler/lib/bundler/worker.rb:54:in `process_queue'
  /Users/deivid/code/rubygems/rubygems/bundler/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'

An error occurred while installing ruby2_keywords (0.0.5), and Bundler cannot continue.

In Gemfile:
  ruby2_keywords
```

### After

```
$ GEM_HOME=/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/ bundle
There was an error creating `/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/bundler.lock`.
The underlying system error is Errno::EPERM: Operation not permitted @ rb_sysopen - /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/bundler.lock
```

https://github.com/rubygems/rubygems/commit/345ec45f5a
2024-10-23 08:53:19 +00:00
David Rodríguez 055ed5f592 [rubygems/rubygems] Improve `Bundler::GenericSystemCall` error message
https://github.com/rubygems/rubygems/commit/ccd7e084a8
2024-10-23 08:53:18 +00:00
David Rodríguez cc29d737ef [rubygems/rubygems] Consistently use `:create` action when creating directories
It gives better errors.

https://github.com/rubygems/rubygems/commit/bedae080ef
2024-10-23 08:53:18 +00:00
David Rodríguez 88b969cd19 [rubygems/rubygems] Fix out of date spec description
https://github.com/rubygems/rubygems/commit/71fd896041
2024-10-23 08:53:17 +00:00
David Rodríguez b843d4ee14 [rubygems/rubygems] Fix running `bundler` (with a final `r`) in a `bundle exec` context
https://github.com/rubygems/rubygems/commit/ad95a1dfaa
2024-10-23 08:52:46 +00:00
David Rodríguez ffd51926bf [rubygems/rubygems] Remove the need for some bundler monkeypatches
https://github.com/rubygems/rubygems/commit/f530f8686d
2024-10-23 08:52:45 +00:00
David Rodríguez 54065f3b7b [rubygems/rubygems] Cleanup some specs after recent support drop
https://github.com/rubygems/rubygems/commit/9548aa6766
2024-10-22 09:04:30 +00:00
David Rodríguez 7b16eb8c1e [rubygems/rubygems] Change one `bundle check` spec to not touch the network
https://github.com/rubygems/rubygems/commit/f4d31c0a97
2024-10-22 08:42:14 +00:00
Étienne Barrié 257f78fb67 Show where mutated chilled strings were allocated
[Feature #20205]

The warning now suggests running with --debug-frozen-string-literal:

```
test.rb:3: warning: literal string will be frozen in the future (run with --debug-frozen-string-literal for more information)
```

When using --debug-frozen-string-literal, the location where the string
was created is shown:

```
test.rb:3: warning: literal string will be frozen in the future
test.rb:1: info: the string was created here
```

When resurrecting strings and debug mode is not enabled, the overhead is a simple FL_TEST_RAW.
When mutating chilled strings and deprecation warnings are not enabled,
the overhead is a simple warning category enabled check.

Co-authored-by: Jean Boussier <byroot@ruby-lang.org>
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
Co-authored-by: Jean Boussier <byroot@ruby-lang.org>
2024-10-21 12:33:02 +02:00
Jerome Dalbert fce5bbd6a7 [rubygems/rubygems] Add `bundle add --quiet` option
This option is similar to the `bundle install --quiet` option

https://github.com/rubygems/rubygems/commit/3bd773d827
2024-10-18 16:19:31 +00:00
David Rodríguez d4a18d4a78 [rubygems/rubygems] Allow using `gemspec` DSL twice with same dependency and compatible requirements
https://github.com/rubygems/rubygems/commit/a8d14c1fc2
2024-10-17 07:10:38 +00:00
David Rodríguez 36b7ad3caa [rubygems/rubygems] Fix `bundle check` sometimes locking gems under the wrong source
https://github.com/rubygems/rubygems/commit/1e5780db0a

Co-authored-by: Taylor Thurlow <thurlow@hey.com>
2024-10-16 21:57:52 +00:00
David Rodríguez def5fdf82a [rubygems/rubygems] Delay and refactor verification of changed sources
https://github.com/rubygems/rubygems/commit/d5dce93167
2024-10-16 21:57:51 +00:00
Nobuyoshi Nakada d58ec11945
[Bug #20797] Yet another test 2024-10-15 14:52:17 +09:00
Nobuyoshi Nakada 9611c619ac
[Bug #20797] Check seconds in UTC offset as well as minutes 2024-10-14 13:55:55 +09:00
Samuel Williams ad5641fd34
Support `IO#timeout` for `rsock_connect`. (#11880) 2024-10-12 10:08:34 +13:00
David Rodríguez 3fdf0e7e6d [rubygems/rubygems] Fix specs with missing extensions getting activated
https://github.com/rubygems/rubygems/commit/c80998a22a
2024-10-10 14:51:32 +00:00
David Rodríguez f8e3afd255 [rubygems/rubygems] Remove code that's not needed for the spec to pass
https://github.com/rubygems/rubygems/commit/ce9f6285c4
2024-10-10 14:51:31 +00:00
David Rodríguez 2f0b1874ad [rubygems/rubygems] Fix warnings about old C style
https://github.com/rubygems/rubygems/commit/f40610b699
2024-10-10 14:51:31 +00:00
David Rodríguez 73834f11fa [rubygems/rubygems] Fix `Gem::Specification#gem_dir` losing custom source for some reason
https://github.com/rubygems/rubygems/commit/f8f589b1b8
2024-10-09 05:54:14 +00:00
David Rodríguez 9e121ef985 [rubygems/rubygems] Give `gem install` commands more time
https://github.com/rubygems/rubygems/commit/44f3ae4bc8
2024-10-08 17:48:58 +00:00
David Rodríguez cfcc7522d4 [rubygems/rubygems] Remove more unnecessary ENV modifications
https://github.com/rubygems/rubygems/commit/457b25df1a
2024-10-08 17:48:58 +00:00
David Rodríguez 6bd79e53cd [rubygems/rubygems] Pass `--verbose` to realworld gem installation
In case it gives us some useful debugging output when it fails.

https://github.com/rubygems/rubygems/commit/d781416483
2024-10-08 17:48:57 +00:00
David Rodríguez abd01d616a [rubygems/rubygems] Don't modify ENV when installing realworld gems
https://github.com/rubygems/rubygems/commit/b75319aa96
2024-10-08 17:48:57 +00:00
Nobuyoshi Nakada d17edf3a17
[Bug #20705] Update `strtod` implementation
The absence of either the integer or fractional part should be
allowed.
2024-10-05 23:29:42 +09:00
Samuel Giddins 648f558e01 [rubygems/rubygems] Remove now unused realworld spec
Signed-off-by: Samuel Giddins <segiddins@segiddins.me>

https://github.com/rubygems/rubygems/commit/2484267920
2024-10-04 20:01:57 +00:00
Samuel Giddins b653be0ba5 [rubygems/rubygems] Update spec rubygems_ext
Signed-off-by: Samuel Giddins <segiddins@segiddins.me>

https://github.com/rubygems/rubygems/commit/1ef33fa0af
2024-10-04 20:01:57 +00:00
Samuel Giddins e472d1a6d6 [rubygems/rubygems] Remove extra space in BUNDLED WITH section
Signed-off-by: Samuel Giddins <segiddins@segiddins.me>

https://github.com/rubygems/rubygems/commit/d8b5d05e46
2024-10-04 20:01:56 +00:00
Samuel Giddins 40d7e5d2ab [rubygems/rubygems] Update rubocop to ruby 3.1
Signed-off-by: Samuel Giddins <segiddins@segiddins.me>

https://github.com/rubygems/rubygems/commit/300fb96ffc
2024-10-04 20:01:56 +00:00
Samuel Giddins db6e6155d6 [rubygems/rubygems] Remove outdated conditionals from tests
Signed-off-by: Samuel Giddins <segiddins@segiddins.me>

https://github.com/rubygems/rubygems/commit/06eec6d855
2024-10-04 20:01:51 +00:00
Samuel Williams c33cb9a586
Update `io_spec.c` to use `rb_io_maybe_wait*` if possible. (#11792) 2024-10-04 07:35:57 +00:00
Samuel Williams c878843b2c
Better handling of timeout in `rb_io_maybe_wait_*`. (#9531) 2024-10-04 19:36:06 +13:00
tompng c94815bab7 Update spec/ruby/ for colon-style hash inspect 2024-10-03 18:47:09 +09:00
tompng af1c356c7b Update default gem test for colon-style hash inspect 2024-10-03 18:47:09 +09:00