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

77196 Коммитов

Автор SHA1 Сообщение Дата
Hiroshi SHIBATA 54ddf58a29 Don't need to specify YACC name for scoop bison 2023-03-29 18:36:17 +09:00
Hiroshi SHIBATA a807fa6f9b Use scoop instead of Chocolatey
chocolatey often returns 503 status.
2023-03-29 18:36:17 +09:00
Takashi Kokubun 9a1f6975c5 RJIT: Propagate a set of args as a CallingInfo 2023-03-29 00:44:31 -07:00
git f8f15e247d Update bundled gems list at 2023-03-29 2023-03-29 07:00:50 +00:00
tomoya ishida e26908dc4b [ruby/reline] Improve OSC sequence regexp. OSC sequence can end with
ST(ESC\) and it should not to include \a and \e inside.
(https://github.com/ruby/reline/pull/527)

https://github.com/ruby/reline/commit/a88052adec
2023-03-29 06:54:08 +00:00
Hiroshi SHIBATA 8c8d068016 [ruby/win32ole] Skip test failure with mswin platform
https://github.com/ruby/win32ole/actions/runs/4507614838/jobs/7935550685?pr=18

https://github.com/ruby/win32ole/commit/39ae6c2bc7
2023-03-29 04:00:22 +00:00
Nobuyoshi Nakada f241a8de56
[ruby/uri] Increase rehearsals 2023-03-29 09:52:33 +09:00
Maxime Chevalier-Boisvert 39a34694a0
YJIT: Add `--yjit-pause` and `RubyVM::YJIT.resume` (#7609)
* YJIT: Add --yjit-pause and RubyVM::YJIT.resume

This allows booting YJIT in a suspended state. We chose to add a new
command line option as opposed to simply allowing YJIT.resume to work
without any command line option because it allows for combining with
YJIT tuning command line options. It also simpifies implementation.

Paired with Kokubun and Maxime.

* Update yjit.rb

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

---------

Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
2023-03-28 15:21:19 -04:00
Takashi Kokubun 2f8a598dc5
YJIT: Stop using the starting_context pattern (#7610) 2023-03-28 11:40:48 -07:00
NARUSE, Yui 2488b4dd0d gem related automation must run only on master 2023-03-29 00:47:37 +09:00
Stan Lo 1e9a218ade [ruby/reline] Expand the scanned array to later case statement more
straightforward
(https://github.com/ruby/reline/pull/526)

* Improve test coverage on Unicode.take_range

* Add test for Unicode.calculate_width

* Expand the scanned array to later case statement more straightforward
2023-03-28 12:49:49 +00:00
Peter Zhu 417b1a3644 Fix memory leak for iclass
[Bug #19550]

If !RCLASS_EXT_EMBEDDED (e.g. 32 bit systems) then the rb_classext_t is
allocated throug malloc so it must be freed.

The issue can be seen in the following script:

```
20.times do
  100_000.times do
    mod = Module.new
    Class.new do
      include mod
    end
  end

  # Output the Resident Set Size (memory usage, in KB) of the current Ruby process
  puts `ps -o rss= -p #{$$}`
end
```

Before this fix, the max RSS is 280MB, while after this change, it's
30MB.
2023-03-28 08:20:06 -04:00
NARUSE, Yui 6ce6b4d1e7 Use merge_group 2023-03-28 21:01:59 +09:00
Nobuyoshi Nakada c86ccccbd7
Revert "RBS: Pathname#taint and Pathname#untaint are removed"
This reverts commit 46132e78b7438389bf49a860a0cd8957f685dcb3, in favor
of 298cb57c11.
2023-03-28 18:02:50 +09:00
Nobuyoshi Nakada 6b05f125bb Skip commits only for tools
Get rid of accidents like 67feb782f9.
2023-03-28 17:17:51 +09:00
Nobuyoshi Nakada 98b409cb9c Set FILTER_BRANCH_SQUELCH_WARNING only in child environment 2023-03-28 17:17:51 +09:00
Nobuyoshi Nakada f6adc5be94 Check if Bundler is defined 2023-03-28 17:17:51 +09:00
dependabot[bot] a136ca0d04 Bump actions/checkout from 3.4.0 to 3.5.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](24cb908017...8f4b7f8486)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-28 17:15:17 +09:00
Nobuyoshi Nakada 040fab3782 Ripper: Add keyword options to `assert_parse_files` 2023-03-28 17:14:34 +09:00
NARUSE, Yui 9891797a27 Use 3 way merge for merger.rb
Since --3way insists --index, git diff needs to compare with HEAD.
2023-03-28 16:57:55 +09:00
Hiroshi SHIBATA d766d5346b [rubygems/rubygems] Partly reverted
https://github.com/rubygems/rubygems/pull/6541

https://github.com/rubygems/rubygems/commit/21e07a04a1
2023-03-28 07:26:46 +00:00
Hiroshi SHIBATA 80be2e6c9a
Use URI-0.12.1 2023-03-28 15:27:58 +09:00
Josef Šimánek 1cbb501127
Onboard Rubocop Naming/MemoizedInstanceVariableName rule to RubyGems. 2023-03-28 15:27:35 +09:00
dependabot[bot] 2322b189b6 [rubygems/rubygems] Bump rb-sys
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.68 to 0.9.70.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.68...v0.9.70)

---
updated-dependencies:
- dependency-name: rb-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-28 15:25:46 +09:00
Hiroshi SHIBATA cd4b4ac737 [rubygems/rubygems] Use double-quotes instead of single-quotes in warnings
https://github.com/rubygems/rubygems/commit/c7f1cb9941
2023-03-28 15:25:45 +09:00
Josef Šimánek 9cfd8330ca [rubygems/rubygems] Onboard Rubocop Naming/MemoizedInstanceVariableName rule to Bundler.
https://github.com/rubygems/rubygems/commit/d768be0c65
2023-03-28 15:25:44 +09:00
David Rodríguez 4d4743f7e3 [rubygems/rubygems] Fix installing plugins in frozen mode
Plugins don't use a lockfile, so ignore frozen related settings.

https://github.com/rubygems/rubygems/commit/f17a3bb81f
2023-03-28 15:25:42 +09:00
David Rodríguez 674c960513 [rubygems/rubygems] Fix incorrect removal of "ruby" platform from lockfile
When dependencies have changed, we'll be re-resolving, and we can't
really know whether the resolution will be valid or invalid for the Ruby
platform, so skip the removal in that case.

The fix worked, but made some other specs fail, and surfaced that the
`@dependencies_changed` attribute was actually being incorrect set when
explicitly unlocking. Fixed that with an early return.

https://github.com/rubygems/rubygems/commit/20d8f5e5d9
2023-03-28 15:25:42 +09:00
David Rodríguez ed868f9a71 [rubygems/rubygems] Fix unnecessary downgrade of top level dependency when unlocking
Bundler is very conservative by default, trying to preserve versions
from the lockfile as possible, and never downgrading them. However, when
it runs into a resolution error, it still tries to find a valid
resolution.

This fallback behavior was too "brute-force" though, completely
unrestricting any gem found in the resolution conflict, and that could
lead to direct dependencies being downgraded in some edge cases.

Instead, unlock things a bit more carefully:

* First try unlocking fully pinned indirect dependencies, but leave a
  lower bound requirement in place to prevent downgrades.
* Then try unlocking any fully pinned dependency, also leaving a lower
  bound requirement in place.
* Finally completely unrestrict dependencies if nothing else worked.

https://github.com/rubygems/rubygems/commit/7f55ed8302
2023-03-28 15:25:41 +09:00
David Rodríguez eaddd386ec [rubygems/rubygems] Also set min locked requirements when not unlocking
https://github.com/rubygems/rubygems/commit/3561ac23d6
2023-03-28 15:25:40 +09:00
Masataka Pocke Kuwabara 298cb57c11
Update rbs's commit hash to avoid test failure on pathname (#7596) 2023-03-28 14:01:07 +09:00
Takashi Kokubun 7600e6bc19 RJIT: Optimize definedivar using shapes 2023-03-27 21:56:39 -07:00
dependabot[bot] 82f46ddb81 Bump github/codeql-action from 2.2.8 to 2.2.9
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.2.8 to 2.2.9.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](67a35a0858...04df1262e6)

---
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-03-28 12:41:26 +09:00
git c2ea229889 Update default gems list at 120d8d0ae2 [ci skip] 2023-03-28 02:12:58 +00:00
Hiroshi SHIBATA 120d8d0ae2 [ruby/uri] Bump version to 0.12.1
https://github.com/ruby/uri/commit/5c4f7d04bf
2023-03-28 02:12:22 +00:00
Nobuyoshi Nakada 23f4904f4e [ruby/uri] Fix quadratic backtracking on invalid URI
https://hackerone.com/reports/1444501

https://github.com/ruby/uri/commit/2f9585de17
2023-03-28 02:12:22 +00:00
Nobuyoshi Nakada 9c687c65ee [ruby/uri] Test for quadratic backtracking on invalid URI
https://hackerone.com/reports/1444501

https://github.com/ruby/uri/commit/54abaa739b
2023-03-28 02:12:21 +00:00
Nobuyoshi Nakada 708c4903e1 RBS: Pathname#taint and Pathname#untaint are removed 2023-03-28 10:51:41 +09:00
Michael Siegfried 67f37b010a Consider prereleases regardless of whether locked
Prereleases are NOT considered even when the dependency specification
includes a prerelease segment, if the dependency is not locked. To me
that doesn't make sense, because I could create a Gemfile with say gem
"rails", ">= 7.0.0.beta1" and I'd expect prereleases considered there
even if there's no lock file yet.

Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
2023-03-28 01:18:50 +00:00
Michael Siegfried b31bd8b853 [rubygems/rubygems] Rewrite GemVersionPromoter specs
Add tests for pre, move more of the setup into a helper method, and
restructure tests.

There seem to be five considerations for these tests (level, pre, strict,
locked, and whether the current version is a prerelease version, though
the last one overlaps with pre and didn't seem to behave how I expected
under test). Rather than write out the 16 (/32 if the last consideration
is real) combinations, I wrote most with independent tests for each
value. The existing combined tests were maintained (level vs strict)
because these seem the most interrelated.

https://github.com/rubygems/rubygems/commit/74c23a91b2
2023-03-28 01:18:49 +00:00
git 466322ec6e Update default gems list at ec14b381c1 [ci skip] 2023-03-27 15:16:18 +00:00
ima1zumi ec14b381c1 [ruby/reline] Bump version to 0.3.3
(https://github.com/ruby/reline/pull/525)

https://github.com/ruby/reline/commit/8ce176271f
2023-03-27 15:14:56 +00:00
tomoya ishida 8f569d41cb [ruby/reline] Fix cursor position overrun
(https://github.com/ruby/reline/pull/515)

* Fix cursor position overrun

* Remove unnecessary local variable

Co-authored-by: Stan Lo <stan001212@gmail.com>

---------

https://github.com/ruby/reline/commit/d4ad9b96c8

Co-authored-by: Stan Lo <stan001212@gmail.com>
2023-03-27 13:57:16 +00:00
Peter Zhu a2ff9423a1 Allow user defined SIZE_POOL_COUNT
We shouldn't overwrite the value of SIZE_POOL_COUNT if the user has
specified one.
2023-03-27 09:40:24 -04:00
Hiroshi SHIBATA 36254c5ddf [rubygems/rubygems] Use append_cflags instead of directly append for CFLAGS
https://github.com/rubygems/rubygems/commit/61ec0c8389
2023-03-27 09:47:20 +00:00
Hiroshi SHIBATA 3eea85963b Use gemspec that keeps original dependencies 2023-03-27 17:45:43 +09:00
Hiroshi SHIBATA 9b7a7e9cef [ruby/pathname] Remove taint/untaint methods because they should be removed since Ruby 3.2 released.
Fixes https://github.com/ruby/pathname/pull/28

https://github.com/ruby/pathname/commit/c52fd3a835
2023-03-27 07:21:52 +00:00
Hiroshi SHIBATA cc8a48a496
Revert an accidentally sync.
Revert "[ruby/open3] Removed to load jit_support.rb"

  This reverts commit 67feb782f9.
2023-03-27 12:28:11 +09:00
Hiroshi SHIBATA 67feb782f9 [ruby/open3] Removed to load jit_support.rb
It's removed at https://github.com/ruby/open3/commit/4445b9e2a2dd

https://github.com/ruby/open3/commit/41b180deab
2023-03-27 03:24:48 +00:00
Takashi Kokubun 3352e76441 RJIT: Implement leaf builtin call 2023-03-26 19:25:17 -07:00