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

76372 Коммитов

Автор SHA1 Сообщение Дата
Burdette Lamar 3d53827130 [ruby/date] Removed (newly unneeded) alias remarks
(https://github.com/ruby/date/pull/88)

https://github.com/ruby/date/commit/cfa7e9868b
2023-02-19 22:24:39 +00:00
zverok 976cc3852b [DOC] Return *args to Enumerable method definitions 2023-02-19 22:32:52 +02:00
zverok ce0f3de032 [DOC] Update pattern matching docs for 3.2
* Remove section about experimental status
* Add references to core objects that can deconstruct
2023-02-19 22:32:52 +02:00
zverok 4f049e915d [DOC] Document IO::Timeout 2023-02-19 22:32:52 +02:00
zverok e1b447a323 [DOC] Improve ObjectSpace#dump_XXX method docs
* remove false call-seq (output from Ruby parsing is cleaner)
* explain output: argument in plain words
* change parameter name in docs of #dump_shapes (typo)
2023-02-19 22:32:52 +02:00
zverok 0258e92e43 [DOC] Improve Kernel#binding docs
* Add links to Binding class
* Make examples practical
* Extend possible usages description
2023-02-19 22:32:52 +02:00
zverok 51bb5b23d4 [DOC] Small adjustment for String method docs
* Hide freeze method (no useful docs, same as Object#freeze)
* Add dedup to call-seq of str_uminus
2023-02-19 22:32:52 +02:00
zverok 0c0b9191ce [DOC] Update TracePoint#binding docs for 3.2 behavior 2023-02-19 22:32:52 +02:00
zverok 01509f344a [DOC] Restore Process module doc lost due to RDoc update 2023-02-19 22:32:52 +02:00
Jeremy Evans 59f7bf96d6 Mention when it is appropriate to document aliases in call-seq 2023-02-19 11:58:00 -08:00
Burdette Lamar ea50765926
[DOC] Change to handling of aliases (#7340)
Change to handling of aliases
2023-02-19 13:41:32 -06:00
Yusuke Endoh 759d23584e Create a dummy minitest.gemspec for a bundled gem
To use the repository version of bundled gems, we need to build a gem by
"gem build", but the repository of minitest does not include
minitest.gemspec because it uses hoe.

This change creats a dummy minitest.gemspec to pass the CI.
2023-02-19 21:06:13 +09:00
Yusuke Endoh 8eaa346620 No validation for bundled gems
https://github.com/mame/ruby/actions/runs/4208869556/jobs/7305356097
```
WARNING:  open-ended dependency on irb (>= 1.5.0) is not recommended
  if irb is semantically versioned, use:
    add_runtime_dependency 'irb', '~> 1.5', '>= 1.5.0'
WARNING:  open-ended dependency on reline (>= 0.3.1) is not recommended
  if reline is semantically versioned, use:
    add_runtime_dependency 'reline', '~> 0.3', '>= 0.3.1'
WARNING:  See http://guides.rubygems.org/specification-reference/ for help
/usr/lib/ruby/2.7.0/rubygems/specification_policy.rb:418:in `error': specification has warnings (Gem::InvalidSpecificationException)
```
2023-02-19 21:06:13 +09:00
Yusuke Endoh 8a59f75de7 Use the development versions of minitest and debug gems
This is a preparation for a new message format of NameError.
[Feature #18285]

https://github.com/minitest/minitest/pull/942
https://github.com/ruby/debug/pull/889
2023-02-19 21:06:13 +09:00
Yusuke Endoh 29f88b9fea [ruby/error_highlight] Support the new message format of NameError in Ruby 3.3
https://bugs.ruby-lang.org/issues/18285
https://github.com/ruby/ruby/pull/6950

https://github.com/ruby/error_highlight/commit/a7c2da052e
2023-02-19 10:29:56 +00:00
Nobuyoshi Nakada ba1b9d3104 [ruby/bigdecimal] Fix the license name [ci skip]
```
$ gem build bigdecimal.gemspec
WARNING:  license value 'BSD-2-clause' is invalid.  Use a license identifier from
http://spdx.org/licenses or 'Nonstandard' for a nonstandard license.
Did you mean 'BSD-2-Clause'?
WARNING:  See https://guides.rubygems.org/specification-reference/ for help
```

https://github.com/ruby/bigdecimal/commit/36b77a2d2f
2023-02-19 09:58:31 +00:00
Yusuke Endoh 4dc2cb3c1a [ruby/did_you_mean] Support the new message format of NameError in
Ruby 3.3
(https://github.com/ruby/did_you_mean/pull/184)

This change accepts the following change of the message of NameError in
a test.

https://bugs.ruby-lang.org/issues/18285#note-37

```
old: undefined method `sizee' for #<File:...>
new: undefined method `sizee' for an instance of File
```
2023-02-19 07:10:47 +00:00
Stan Lo cbac0fa4cb [ruby/irb] Remove unused context argument from Worksapce#evaluate
(https://github.com/ruby/irb/pull/488)

The context argument was introduced in this change:

6806669d17 (diff-296327851fb7a2c307c2d0693b769f58c01aaf315972f290500d10081ee200a9)

perhaps for potential usages. But after that it's never used.
2023-02-18 11:34:28 +00:00
Hiroshi SHIBATA de7eb5e79a
clean_env of Bundler is deprecated. It's unbundled_env now 2023-02-18 14:49:21 +09:00
Jimmy Miller c024cc05ef
YJIT: Consolidate jit methods in JITState impl (#7336)
These jit_* methods don't jit code, but instead check things on the
JITState. We had other methods that did the same thing that were just
added on the impl JITState. For consistency I added these methods there.
2023-02-17 16:40:01 -05:00
Takashi Kokubun 034d5ee43c
YJIT: Use rb_ivar_get at the end of ivar chains (#7334)
* YJIT: Use rb_ivar_get at the end of ivar chains

* Rename the counter to get_ivar_max_depth
2023-02-17 12:44:39 -08:00
Takashi Kokubun 0d8ef62fc2 BigDecimal changed #remainder's spec
This test is no longer passing:
```
  1)
  BigDecimal#remainder returns NaN if Infinity is involved FAILED
  Expected Infinity.nan?
  to be truthy but was false
  /home/runner/work/ruby/ruby/src/spec/ruby/library/bigdecimal/remainder_spec.rb:58:in `block (2 levels) in <top (required)>'
  /home/runner/work/ruby/ruby/src/spec/ruby/library/bigdecimal/remainder_spec.rb:4:in `<top (required)>'
```

https://github.com/ruby/bigdecimal/pull/243
2023-02-17 10:53:08 -08:00
Maxime Chevalier-Boisvert c3bae033eb Add asm comment to YJIT's rb_str_empty_p 2023-02-17 13:10:16 -05:00
Charles Oliver Nutter becec0001c [ruby/bigdecimal] Stub out extension build on JRuby
JRuby currently ships its own internal bigdecimal extension as
part of the core libraries. In order for users to be able to add
bigdecimal to their Gemfile or gem dependencies, we need to stub
out the C extension and just load the extension shipped with
JRuby.

In the future we will try to move our BigDecimal implementation
into the gem, but for now this is the simplest way to make it
installable on JRuby.

See #169

https://github.com/ruby/bigdecimal/commit/829956c643
2023-02-17 17:52:48 +00:00
Maciej Rzasa 36e3d46d35 [ruby/bigdecimal] Handle correctly #remainder with infinity. Fixes
https://github.com/ruby/bigdecimal/pull/187

https://github.com/ruby/bigdecimal/commit/4b8572d452
2023-02-17 17:46:27 +00:00
Matt Valentine-House 81dc3a1780 Remove USE_RGENGC_LOGGING_WB_UNPROTECT
This macro is broken when set to anything other than 0. And has had a
comment saying that it's broken for 3 years.

This commit deletes it and the associated logging code. It's clearly
not being used.

Co-Authored-By: Peter Zhu <peter@peterzhu.ca>
2023-02-17 09:49:45 -05:00
dependabot[bot] a7beb4cfad Bump lewagon/wait-on-check-action from 1.2.0 to 1.3.1
Bumps [lewagon/wait-on-check-action](https://github.com/lewagon/wait-on-check-action) from 1.2.0 to 1.3.1.
- [Release notes](https://github.com/lewagon/wait-on-check-action/releases)
- [Commits](https://github.com/lewagon/wait-on-check-action/compare/v1.2.0...v1.3.1)

---
updated-dependencies:
- dependency-name: lewagon/wait-on-check-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-17 12:34:44 +09:00
Nobuyoshi Nakada dd28c55a7c
[Bug#19445] Fix keyword splat in enumerator
Extracted arguments do not have keyword hash to splat.
2023-02-17 10:57:22 +09:00
Alan Wu a4b7ec1229 YJIT: Fix false assumption that String#+@ => ::String
Could return a subclass.

[Bug #19444]
2023-02-16 18:50:42 -05:00
Alan Wu c178926fbe YJIT: jit_prepare_routine_call() for String#+@ missing
We saw SEGVs due to this when running with StackProf, which needs a
correct PC for RUBY_INTERNAL_EVENT_NEWOBJ, the same event used for
ObjectSpace allocation tracing.

[Bug #19444]
2023-02-16 18:50:42 -05:00
Burdette Lamar a49bc73e1f [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
(https://github.com/ruby/net-http/pull/122)

https://github.com/ruby/net-http/commit/06f79cda87
2023-02-16 21:52:10 +00:00
Takashi Kokubun 21f9c92c71
YJIT: Show Context stats on exit (#7327) 2023-02-16 11:32:13 -08:00
Takashi Kokubun 8f22dc39f3
YJIT: Refactor getlocal and setlocal insns (#7320) 2023-02-16 11:29:45 -05:00
Jimmy Miller b4c38f3c59
YJIT: Initial support for rest args (#7311)
* YJIT: Initial support for rest args

* Update yjit/src/codegen.rs

---------

Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
2023-02-16 11:25:48 -05:00
Nobuyoshi Nakada 21543ac86c
Fix compilation error when USE_RINCGC=0 2023-02-16 22:15:54 +09:00
Jean Boussier 1a4b4cd7f8 Move `attached_object` into `rb_classext_struct`
Given that signleton classes don't have an allocator,
we can re-use these bytes to store the attached object
in `rb_classext_struct` without making it larger.
2023-02-16 08:14:44 +01:00
dependabot[bot] 1df75d6586 Bump actions/cache from 3.2.4 to 3.2.5
Bumps [actions/cache](https://github.com/actions/cache) from 3.2.4 to 3.2.5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](627f0f41f6...6998d139dd)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-16 11:40:58 +09:00
dependabot[bot] 0116650525 Bump github/codeql-action from 2.2.1 to 2.2.4
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.2.1 to 2.2.4.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](3ebbd71c74...17573ee1cc)

---
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>
2023-02-16 11:40:45 +09:00
dependabot[bot] 9aa0f656cb Bump ruby/setup-ruby from 1.134.0 to 1.138.0
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.134.0 to 1.138.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases)
- [Commits](ee26e27437...d3c9825d67)

---
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>
2023-02-16 11:39:03 +09:00
Hiroshi SHIBATA 7e5df49539
check-regexp only works with job name, not workflow name 2023-02-16 11:00:45 +09:00
Hiroshi SHIBATA f736f50f38
Auto-merge feature for dependabot PRs (#7300)
* Automerge for dependabot update

* change update period with daily, we can merge it automatically when `make check` of Ubuntu was passed

* Use rebase instead of merge commit

* check all Ubuntu jobs
2023-02-16 10:16:58 +09:00
git 2573730658 Update default gems list at 65b6411e9d [ci skip] 2023-02-16 00:58:12 +00:00
Hiroshi SHIBATA 65b6411e9d [ruby/timeout] bump up 0.3.2
https://github.com/ruby/timeout/commit/e1b2448101
2023-02-16 00:57:08 +00:00
Haldun Bayhantopcu b03b251aa4 Handle all non-object type objects 2023-02-15 15:43:46 -08:00
Haldun Bayhantopcu 0b4b2cd1ee Fix removing ivars from clases and modules.
Co-authored-by: Adam Hess <hparker@github.com>
2023-02-15 15:43:46 -08:00
Benoit Daloze 70d84a5f3d [ruby/timeout] Simplify test
https://github.com/ruby/timeout/commit/db017da726
2023-02-15 19:25:05 +00:00
Rick Blommers 610375edfc [ruby/timeout] Don't move the timer_thread when it's enclosed
Don't move the timer_thread to ThreadGroup::Default, when it's
created in an enclosed ThreadGroup.
Prevents the exception: "add" can't move from the enclosed thread group"

https://github.com/ruby/timeout/commit/eb889d2c8b
2023-02-15 19:25:05 +00:00
Jimmy Miller 8943b0d411
YJIT: `Kernel#{is_a?,instance_of?}` fast paths (GH-7297)
Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>
Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
2023-02-15 14:05:42 -05:00
Aaron Patterson ae2340c9d7 Refactor / document instance variable debug counters
This commit is refactoring and documenting the debug counters related to
instance variables.
2023-02-15 08:47:26 -08:00
Burdette Lamar 847a0df058 [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP#get
(https://github.com/ruby/net-http/pull/121)

https://github.com/ruby/net-http/commit/51b9af1eed
2023-02-15 15:00:34 +00:00