Commit graph

12164 commits

Author SHA1 Message Date
Takashi Kokubun
1396b83153 RJIT: Fix jit_array_ptr
array_reg was clobbered before being used by heap_ptr_opnd.
heap_ptr_opnd should be loaded before array_reg is clobbered.
2023-03-25 21:43:15 -07:00
tomoya ishida
60ca800d4f [ruby/reline] Fix split_by_width to retain color sequences
(https://github.com/ruby/reline/pull/490)

* Fix split_by_width to retain color sequences

* Add OSC escape sequence testcase of Reline::Unicode.split_by_width
2023-03-25 15:01:35 +00:00
Takashi Kokubun
9bc2dbd33c RJIT: Support optional params on splat 2023-03-25 01:17:05 -07:00
Takashi Kokubun
85a55d3e75 RJIT: Remove send_iseq_complex_splat exit 2023-03-25 00:59:47 -07:00
Takashi Kokubun
314c7dd6d1 RJIT: Support splat for cfunc 2023-03-25 00:52:07 -07:00
Takashi Kokubun
1dd65f7c55 RJIT: Initial support of splat 2023-03-25 00:31:11 -07:00
Jean Boussier
276f4be96d [rubygems/rubygems] Generate native gems with -fvisibility=hidden
I recently ran into very nasty issues with dynamic symbols clashing between
two native gems.

I believe the overwhelming majority of native gems don't want to export
their symbols, so hidding them by default would make sense to me.

449624aa54
2023-03-25 00:31:46 +00:00
Nobuyoshi Nakada
310af50c3b [ruby/time] Update required ruby version
`Regexp#match?` which is introduced at ruby 2.4 is used since https://github.com/ruby/time/pull/1852.

b0a965dcaa
2023-03-23 11:45:58 +00:00
David Rodríguez
a9146bd81e Don't suggest --full-index on API Response mismatch errors
I've never seen this error in real life, and if it was happening, I
think it's either some server side issue that would need to be fixed or
some transient issue. We should move away from the full index, since
it's slow, so let's stop recommending it.
2023-03-23 17:18:49 +09:00
David Rodríguez
c3fa6679e6 Don't suggest retrying with --full-index on gemspec errors
We're actually already using the full index here, so it makes no sense
to suggest retrying the same thing.
2023-03-23 17:18:49 +09:00
David Rodríguez
164dc58008 Fix logging the fallback to the full index on GemspecError's
The debug message suggests retrying using `--full-index`, but the retry
is happening automatically. Just log that we are falling back to the
full index, like we do with other errors.
2023-03-23 17:18:49 +09:00
Mau Magnaguagno
069640d355 Avoid intermediate array in TarHeader#calculate_checksum
String#sum(0) sums the character bytes without a modulo.
Follow-up of #6476 based on comment from @nobu.
2023-03-23 17:18:49 +09:00
David Rodríguez
a9fd1860dd Fix flaky when making materialized specs uniq
Sometimes we'll have an heterogenous array of specs which include
`Gem::Specification` objects, which don't define `#identifier`. Let's
use `#full_name` consistently.
2023-03-23 17:18:49 +09:00
なつき
1b408e659a Refactor and fix usage of Gem.ruby 2023-03-23 17:18:49 +09:00
なつき
22d037f4cc Move duplicated logic to parent class 2023-03-23 17:18:49 +09:00
なつき
e46d473396 Make sure native extensions are loaded correctly in ext_conf builder 2023-03-23 17:18:49 +09:00
なつき
f8ecf145ce Make sure native extensions are loaded correctly in rake builder 2023-03-23 17:18:49 +09:00
David Rodríguez
a757e21bc0 Reuse SpecSet#materialize logic 2023-03-23 17:18:49 +09:00
David Rodríguez
ebebc90ec2 Refactor incomplete specs handling
Recent bugs fixed made me realize we were relying on state too much
here. We only need to keep incomplete specs to be able to expire them
and retry resolution without them locked. If we use a separate class, we
can do that more transparently and handle them just like we handle
"missing specs".
2023-03-23 17:18:49 +09:00
David Rodríguez
8e6bbc032c Don't remove RUBY platform when healing a lockfile with missing specs 2023-03-23 17:18:49 +09:00
David Rodríguez
4e7c39f98c Don't remove RUBY platform when healing a lockfile with missing specs 2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
acf12b6dfd util/rubocop -A --only Style/AsciiComments 2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
f24a86d83f util/rubocop -A --only Layout/EmptyLineAfterMagicComment 2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
4dd418f877 util/rubocop -A --only Style/FrozenStringLiteralComment 2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
50a03035ee util/rubocop -A --only Lint/NonLocalExitFromIterator 2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
2e3cd1dc3e [rubygems/rubygems] Enabled Style/RedundantReturn cop
05cc97bdf8
2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
a3670249fa [rubygems/rubygems] util/rubocop -A --only Lint/Void
9d25906e44
2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
048230ded3 [rubygems/rubygems] util/rubocop -A --only Lint/RequireParentheses
ee6814afbc
2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
0eef33e113 [rubygems/rubygems] util/rubocop -A --only Style/Next
e5868e92f7
2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
bec069b0ca [rubygems/rubygems] util/rubocop -A --only Style/MultilineMemoization
c1f6e4a97b
2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
8a364b8512 [rubygems/rubygems] util/rubocop -A --only Style/MultilineTernaryOperator
be853dfe3b
2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
5efadf8139 [rubygems/rubygems] util/rubocop -A --only Lint/ShadowingOuterLocalVariable
82ed77178d
2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
8260698e74 [rubygems/rubygems] util/rubocop -A --only Lint/UnreachableCode
f06047f52a
2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
01be518eba [rubygems/rubygems] util/rubocop -A --only Lint/UnderscorePrefixedVariableName
6dc4bc3a5b
2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
ec131071b9 [rubygems/rubygems] util/rubocop -A --only Lint/ReturnInVoidContext
021823a331
2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
1a60012612 [rubygems/rubygems] util/rubocop -A --only Lint/RescueException
e8a5db50af
2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
25ed2e7415 [rubygems/rubygems] util/rubocop -A --only Lint/EmptyExpression
Thread.report_on_exception is always defined after Ruby 2.4 or later.

274da54f38
2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
7e3612585d [rubygems/rubygems] util/rubocop -A --only Lint/DuplicateCaseCondition
df2b192e47
2023-03-23 17:18:49 +09:00
Nobuyoshi Nakada
348412c7fa [rubygems/rubygems] Use indented heredoc
085d2776d8
2023-03-22 21:21:08 +00:00
Hiroshi SHIBATA
3dc4bc313f [rubygems/rubygems] RUBY_REVISION is also provided by supported platforms
71a237aeec
2023-03-22 11:17:25 +00:00
Justin Searls
464a264cd4 [rubygems/rubygems] Remove reference to pry gem from generated bin/console file
This is just a suggestion, but since recent versions of Ruby have shipped with a `binding.irb` that provides almost all of the features that `pry` pioneered, it may be time to remove this suggestion in the name of simplicity and not confusing newer developers who aren't familiar with what to use.
2023-03-22 08:32:03 +00:00
Takashi Kokubun
7947920ee7 RJIT: Follow a recent CALLER_SETUP_ARG change 2023-03-21 22:12:43 -07:00
Takashi Kokubun
38946209a7 RJIT: Split has_rest_or_post exit reasons 2023-03-21 22:01:55 -07:00
Nobuyoshi Nakada
f62fa51283 [ruby/erb] [DOC] Use indented heredoc
8ba8bb7acf
2023-03-21 15:05:29 +00:00
Phillip Hellewell
f67f0d7268 [ruby/reline] Add key bindings for PgUp and PgDn
(https://github.com/ruby/reline/pull/509)

* Add key bindings for PgUp, PgDn

* Match behavior of readline 8.2

In the latest readline (8.2), page-up and page-down are bound to
history-search-backward and history-search-forward by default.

We would like reline to have the same default behavior.
2023-03-21 14:48:32 +00:00
Takashi Kokubun
c44367265d RJIT: Fix invokesuper 2023-03-21 00:10:14 -07:00
Takashi Kokubun
70ea58bd5b RJIT: Break up RJIT send_iseq_complex exit reasons 2023-03-19 23:58:14 -07:00
Takashi Kokubun
59b86da82c RJIT: Implement ifunc invokeblock 2023-03-19 23:32:07 -07:00
Takashi Kokubun
47f7ec1c9f RJIT: Support invokeblock arity mismatches 2023-03-19 23:14:13 -07:00
Takashi Kokubun
e3dc25acae RJIT: Fix ISeq invokeblock 2023-03-19 21:52:25 -07:00