74915 Commits

Author SHA1 Message Date
Hiroshi SHIBATA
c4d22d47f8 [ruby/delegate] Bump version to 0.3.0
https://github.com/ruby/delegate/commit/420637be45
2022-12-05 05:47:54 +00:00
Hiroshi SHIBATA
650b87b0bd
Manually bumped date-3.3.0 version 2022-12-05 14:40:32 +09:00
git
6b0ff6f9eb Update default gems list at 0f534bfb6ae03247620beb871c9325 [ci skip] 2022-12-05 05:25:11 +00:00
Hiroshi SHIBATA
774dad4915 [ruby/date] Bump version to 3.3.0
https://github.com/ruby/date/commit/ac1642cf39
2022-12-05 05:19:16 +00:00
Hiroshi SHIBATA
0f534bfb6a [ruby/benchmark] Bump version to 0.2.1
https://github.com/ruby/benchmark/commit/303ac8f28b
2022-12-05 05:15:02 +00:00
Takashi Kokubun
4d39a11cd1 Change the dependabot interval to monthly
It's not that important for ruby/ruby to keep them up to date.
2022-12-04 21:04:50 -08:00
dependabot[bot]
d110bf9c97 Bump ruby/setup-ruby from 1.125.0 to 1.126.0
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.125.0 to 1.126.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases)
- [Commits](de6f5b9c34...c7079efafd)

---
updated-dependencies:
- dependency-name: ruby/setup-ruby
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-05 14:03:55 +09:00
dependabot[bot]
c880625fe1 Bump github/codeql-action from 2.1.33 to 2.1.35
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.33 to 2.1.35.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2.1.33...b2a92eb56d8cb930006a1c6ed86b0782dd8a4297)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-05 14:03:37 +09:00
git
f64b235432 Update default gems list at d7b00b55a91583610cf5ceac162d65 [ci skip] 2022-12-05 05:00:54 +00:00
Hiroshi SHIBATA
d7b00b55a9 [ruby/rdoc] Bump version to 6.4.0
https://github.com/ruby/rdoc/commit/c5e7ee03ac
2022-12-05 04:59:54 +00:00
git
3491ac8ae1 Update default gems list at 5fb3dec05868f9513b15d0b0a9c81d [ci skip] 2022-12-05 04:56:36 +00:00
Hiroshi SHIBATA
5fb3dec058 [ruby/racc] Bump version to 1.6.1
https://github.com/ruby/racc/commit/1768ed252f
2022-12-05 04:55:35 +00:00
Stan Lo
16b2e03014 [ruby/reline] Remove unapproved color setting APIs
These APIs/configs are not approved by the Ruby core, so they can't be
released to the public. This means having them in the codebase will
block other fixes/features from being released as well.

So this commit removes those exposed interfaces to unblock the release.

Hopefully when https://bugs.ruby-lang.org/issues/18996 is approved we
can re-implement better APIs.

https://github.com/ruby/reline/commit/f7a961c550
2022-12-05 03:14:55 +00:00
Hiroshi SHIBATA
06cc30b189
gitignore yjit_exit_locations.dump 2022-12-05 11:22:48 +09:00
Peter Zhu
d90835aeb5 Fix crash when RGENGC_CHECK_MODE=2
Commit dba61f4 fixes a crash when GC'ing a iseq that failed to compile.
However, if we turn on RGENGC_CHECK_MODE then rb_iseq_memsize crashes
since it cannot handle an iseq without is_entries.
2022-12-04 15:23:09 -05:00
Burdette Lamar
e58c4f97fa [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
(https://github.com/ruby/net-http/pull/84)

https://github.com/ruby/net-http/commit/660046386f
2022-12-04 20:22:31 +00:00
Aaron Patterson
dba61f487c return early if there is no is_entries buffer
If there is a compilation error, is_entries may not be allocated, but
ic_size could be greater than 0.  If we don't have a buffer to iterate
over, just return early.  Otherwise GC could segv

[Bug #19173]
2022-12-03 13:03:51 -06:00
Nobuyoshi Nakada
b8a73e704d [ruby/pathname] [Misc #19155] [DOC] Addion of absolute paths
https://github.com/ruby/pathname/commit/3cb5ed2576
2022-12-03 15:53:20 +00:00
Nobuyoshi Nakada
7b2306a3ab
Remove unguaranteed assertion [ci skip]
It can be configured by `--with-os-version-style=TYPE` option, and
just copies from theApple's installation as the default.  We don't
know why it is major only.
2022-12-03 11:27:16 +09:00
Koichi Sasada
59e389af28 UnboundMethod only refer defined_class
UnboundMethod records caller's class, like `D` or `E` on the
following case:

```ruby
class C
  def foo = :foo
end

class D < C
end

class E < C
end

d = D.instance_method(:foo)
e = E.instance_method(:foo)
```

But `d` and `e` only refers `C#foo` so that UnboundMethod doesn't
record `D` or `E`. This behavior changes the following methods:

* `UnboundMethod#inspect` (doesn't show caller's class)
* `UnboundMethod#==` (`d == e` for example)

fix https://bugs.ruby-lang.org/issues/18798
2022-12-03 08:53:12 +09:00
Stan Lo
7161bf34e1 [ruby/irb] Require pathname in test helper
(https://github.com/ruby/irb/pull/467)

https://github.com/ruby/irb/commit/39c6924c12
2022-12-02 22:00:42 +00:00
Jemma Issroff
41bacd9b0d Remove unused rb_shape_flag_shift and rb_shape_flag_mask 2022-12-02 12:53:51 -08:00
Jemma Issroff
ebd4c7bb01 Fixed yjit bindings rb_gc_write_barrier 2022-12-02 12:53:51 -08:00
Jemma Issroff
4c5e89791b Extracted rb_shape_id_offset 2022-12-02 12:53:51 -08:00
Maxime Chevalier-Boisvert
606653e43a Update yjit/src/codegen.rs 2022-12-02 12:53:51 -08:00
Aaron Patterson
be40af284a make flag clearing better 2022-12-02 12:53:51 -08:00
Aaron Patterson
07fe3d37c5 only generate wb when we really need to 2022-12-02 12:53:51 -08:00
Aaron Patterson
744b0527ea bail on compilation if the comptime receiver is frozen 2022-12-02 12:53:51 -08:00
Aaron Patterson
7b5ee9a8a6 do not fire the wb when writing immediates 2022-12-02 12:53:51 -08:00
Aaron Patterson
17f9bcd7d7 implement IV writes 2022-12-02 12:53:51 -08:00
Stan Lo
69fd673b1a [ruby/irb] Disable debug cmd tests based on project structure
instead of env
(https://github.com/ruby/irb/pull/466)

It's hard to find an env var that's universally set in all Ruby CI
environments but not in local. Checking gemspec seems to be a better way
as `syntax_suggest` already uses it for a while.

d8f1bca297/spec/spec_helper.rb (L47)
2022-12-02 20:43:59 +00:00
Maxime Chevalier-Boisvert
e9e624b76e
YJIT: check that we correctly auto-enable YJIT on Linux (#6854)
* YJIT: check that we correctly auto-enable YJIT on Linux

YJIT should be automatically built on Linux x86-64 when
rustc is present, and we should see +YJIT in the version string.

* Use miniruby rather than system ruby
2022-12-02 15:33:47 -05:00
Ellen Marie Dash
82b86b4c97 [rubygems/rubygems] Delete partial file and re-raise on Errno::ENOSPC.
Add test for not leaving empty files if ENOSPC is raised during 'gem install'

https://github.com/rubygems/rubygems/commit/8e0e20f079
2022-12-02 19:21:08 +00:00
Takashi Kokubun
5fafff15c6
Do not run drb SSL tests on Windows
These tests often cause a timeout and this issue seems specific to the
Windows platforms.
https://github.com/ruby/ruby/actions/runs/3603761925/jobs/6072346738
2022-12-02 10:49:56 -08:00
Takashi Kokubun
7b38853bc3
Skip another flaky Ractor test for YJIT 2022-12-02 10:26:54 -08:00
Takashi Kokubun
85f041c0c5
Skip a couple of Ractor tests
Koichi plans to rework Ractor implementation to address these failures.
He agreed to skip flaky Ractor tests for now.
2022-12-02 10:18:50 -08:00
Alan Wu
1015e69d37
YJIT: echo "\n" is not portable
It's unspecified by POSIX. zsh and dash give a newline and
bash doesn't substitute it. Attributes don't have to be
followed by a newline anyway, so just remove it.

[Bug #19174]
2022-12-02 12:24:17 -05:00
git
ed1e0c2d13 Update bundled gems list at 6f3c8fdab46872ccece3bf512adac9 [ci skip] 2022-12-02 17:23:52 +00:00
Koichi Sasada
6f3c8fdab4 debug.gem v1.7.0 2022-12-03 02:23:28 +09:00
Nobuyoshi Nakada
a5dde619a4
Fix up "Avoid bash specific variable substitution"
Keep `target_alias` empty if it is set to empty.  If it is set to non
empty, `os_version_style_transform` is not used.
2022-12-03 02:03:57 +09:00
Nobuyoshi Nakada
c2671fa051
downloader.rb: Select less components path 2022-12-03 02:03:23 +09:00
Alan Wu
eb2b717a8b
YJIT: Make case-when optimization respect === redefinition (#6846)
* YJIT: Make case-when optimization respect === redefinition

Even when a fixnum key is in the dispatch hash, if there is a case such
that its basic operations for === is redefined, we need to fall back to
checking each case like the interpreter. Semantically we're always
checking each case by calling === in order, it's just that this is not
observable when basic operations are intact.

When all the keys are fixnums, though, we can do the optimization we're
doing right now. Check for this condition.

* Update yjit/src/cruby_bindings.inc.rs

Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>

Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
2022-12-02 11:40:16 -05:00
Takashi Kokubun
fa77bcf722
YJIT: Change the default --yjit-call-threshold to 30 (#6850) 2022-12-02 11:32:49 -05:00
Nobuyoshi Nakada
e558c374b7
downloader.rb: Fix link to absolute cache path 2022-12-03 01:28:34 +09:00
Nobuyoshi Nakada
f28e79caaa
Use consistent style [ci skip] 2022-12-02 23:46:21 +09:00
Nobuyoshi Nakada
bb0ec7df32
Wait killed threads 2022-12-02 23:46:21 +09:00
Nobuyoshi Nakada
eb6785356d Avoid bash specific variable substitution
It may cause parse errors in some other sh even in never executed
parts.
2022-12-02 23:45:43 +09:00
HASUMI Hitoshi
11871e49c4 [ruby/reline] Fix misuse of kwarg in IO#raw
- Obviously, `tim` is a typo for `time`
- This didn't cause an exception because IO#raw is implemented in C and it doesn't check the keyword of the parameters
- Though this typo doesn't produce any problems for now, I think it should be fixed just in case for the future
- I've used this fixed version of Reline with IRB for several days and didn't find any new problems due to the fix
- But I myself am not sure how to make sure this fix is completely robust

https://github.com/ruby/reline/commit/e66a9696a1
2022-12-02 10:47:18 +00:00
Nobuyoshi Nakada
21ed929e15 [ruby/io-console] Omit on JRuby
https://github.com/ruby/io-console/commit/9122c181eb
2022-12-02 10:33:36 +00:00
Nobuyoshi Nakada
678bcfcaa6 [ruby/io-console] Check rawmode option names strictly
https://github.com/ruby/io-console/commit/aa8fc7e947
2022-12-02 10:33:35 +00:00