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

80799 Коммитов

Автор SHA1 Сообщение Дата
Kevin Newton a7a70bce82
rm prism type templates 2023-10-30 12:27:03 -04:00
Jun Aruga 674db715f5 [ruby/rdoc] test/rdoc/test_rdoc_generator_json_index.rb: Use assert_equal instead of assert.
It's better because assert_equal prints the values when it fails.

https://github.com/ruby/rdoc/commit/91d40ce8f8
2023-10-30 16:21:28 +00:00
Haldun Bayhantopcu 3a21da9591 [ruby/prism] Faster lex_identifier
https://github.com/ruby/prism/commit/e44a9ae742
2023-10-30 16:19:54 +00:00
Nobuyoshi Nakada 2ab247d217
Missing format string
Do not use a variable as a format string.  Also we usually don't
expect non-ascii data in C string literals.
2023-10-31 00:56:42 +09:00
Kevin Newton 7bf3d9343f [ruby/prism] parse_inline_comments -> parse_comments
https://github.com/ruby/prism/commit/bd4d248fd6
2023-10-30 15:53:37 +00:00
Benoit Daloze 7d8cfa0a40 Update to ruby/spec@d56bd0f 2023-10-30 16:44:54 +01:00
Benoit Daloze b09618e566 Update to ruby/mspec@d03ad9c 2023-10-30 16:44:52 +01:00
Benoit Daloze 58d1fbcf3f Revert "OpenSSL::KDF.scrypt needs EVP_PBE_scrypt()"
This reverts commit d434765fae.
2023-10-30 16:44:47 +01:00
Nobuyoshi Nakada d434765fae
OpenSSL::KDF.scrypt needs EVP_PBE_scrypt() 2023-10-31 00:31:51 +09:00
Kevin Newton 9d1472496d [ruby/prism] Remove newlines from magic comment test
https://github.com/ruby/prism/commit/4a7be1fc50
2023-10-30 15:08:24 +00:00
Jun Aruga ebb8da5438 .travis.yml: Refactor.
* Add notes.
  * When you see Travis issue, please check the link below.
    https://github.com/ruby/ruby/wiki/CI-Servers#travis-ci
  * Added the following random failure.
    The ppc64le failure has been happening randomly in Travis focal/jammy.
    TestRDocGeneratorJsonIndex#test_generate fails randomly.
  https://app.travis-ci.com/github/ruby/ruby/jobs/612380961#L2900
* Update the comments.
* Remove empty lines in nested YAML elements aligning with other parts.
2023-10-30 15:23:15 +01:00
Jun Aruga 753b1ab194 .travis.yml: Disable s390x allow_failures.
To avoid unintentional new failures. Feel free to enable it again when the case
is unstable.
2023-10-30 15:23:15 +01:00
Jun Aruga ca7296767b .travis.yml: Remove optflags=-O1 except arm32.
We want to align the used build flags with RubyCI ppc64le Ubuntu jammy server
as much as possible to avoid Travis specific issues.

Still keep the -O1 for only arm32 due to the following issue.
https://bugs.ruby-lang.org/issues/19981
2023-10-30 15:23:15 +01:00
Jun Aruga 5d7904ff7d .travis.yml: Upgrade the Ubuntu ppc64le to 22.04 (Jammy).
Seeing the recent successes on RubyCI ppc64le Ubuntu jammy servers, it's time
to upgrade Travis ppc64le to jammy.

http://rubyci.s3.amazonaws.com/ppc64le/ruby-master/recent.html

Upgrade the gcc version to the latest version 11.4.0 to align the gcc
version used in the RubyCI ppc64le server's gcc version.
2023-10-30 15:23:15 +01:00
Ufuk Kayserilioglu 1d51e4cadf [ruby/prism] Improve comment generation in templates
The existing comment generation was hard to read and was making a lot of string manipulation. However, ERB files are already designed to do string manipulation, so we can use that instead.

So, instead of doing a split and a map, I opted to use the `#each_line` method to iterate over the lines of the file.

Also, in order to add an optional space padding at the beginning of the line, I opted to pad it with a space and to then right trim it. This makes sure that no space is left behind if the line is empty, but a space is added if the line is not empty.

https://github.com/ruby/prism/commit/5736711e70
2023-10-30 14:15:47 +00:00
Benoit Daloze ab4781b64d Update to ruby/spec@bd7017f 2023-10-30 13:49:46 +01:00
Christian van Rensen 14fa5e39d7 [ruby/net-http] fix no_proxy behaviour
https://github.com/ruby/net-http/commit/f4951dc42a
2023-10-30 09:27:06 +00:00
Christian van Rensen f109269a03 [ruby/net-http] fix a false-negative test
* no_proxy is meant to operate on the destination address, not on the name of the proxy
* if both end with `'.example'`, the test does not nail down the behaviour

https://github.com/ruby/net-http/commit/bb9a5cfa3d
2023-10-30 09:27:06 +00:00
Hiroshi SHIBATA f757a5d3ce [ruby/yaml] Compatibility for Psych 4
https://github.com/ruby/yaml/commit/b4b72ae0b4
2023-10-30 08:35:13 +00:00
Hiroshi SHIBATA 5c1b7633fc [rubygems/rubygems] Relax matching pattern for rake version
https://github.com/rubygems/rubygems/commit/a89f74c27e
2023-10-30 04:46:09 +00:00
Hiroya Fujinami 34cb174800
Optimize regexp matching for look-around and atomic groups (#7931) 2023-10-30 13:10:42 +09:00
Nobuyoshi Nakada 13c9cbe09e
Embed `rb_args_info` in `rb_node_args_t` 2023-10-30 00:19:43 +09:00
Nobuyoshi Nakada fbd55120f3
Cast up before multiplication 2023-10-29 21:27:49 +09:00
git 7f2809b0a9 Update default gems list at 88f1d380ea [ci skip] 2023-10-29 07:16:27 +00:00
Nobuyoshi Nakada 88f1d380ea [ruby/etc] Start 1.4.3
https://github.com/ruby/etc/commit/a9e4d4730d
2023-10-29 07:15:24 +00:00
Nobuyoshi Nakada f082ccf4f8
Fix a typo [ci skip] 2023-10-28 23:49:47 +09:00
tomoya ishida db7a4be846 [ruby/irb] Easter egg for autocomplete mode
(https://github.com/ruby/irb/pull/737)

* Show easter-egg inside document dialog in autocomplete mode

* Show more easter_egg(dancing or logo) when Alt+d is pressed in autocomplete mode

https://github.com/ruby/irb/commit/a8e5cc7354
2023-10-28 14:47:46 +00:00
Nobuyoshi Nakada a447a6d1a9
Extract transcoding assertions
- Prefix `check_both_ways` with `assert_` to show proper failure
  lines.

- Extract dedicated assertions for Encoding::UndefinedConversionError
  and Encoding::InvalidByteSequenceError.
2023-10-28 22:18:17 +09:00
Jun Aruga 83ecdd1dce
Revert ".travis.yml: Drop s390x temporarily." (#8792)
It seems the Travis s390x is recovered again now.

This reverts commit 95cc0f946e.
2023-10-28 11:12:25 +02:00
Jun Aruga 3eaae72855
test/fiber/test_queue.rb: Make the stuck test fail. (#8791)
test/fiber/test_queue.rb: Make the stuck tests fail.

We observed the 2 tests in the `test/fiber/test_queue.rb` getting stuck
in some GCC compilers in Ubuntu ppc64le focal/jammy, even when the timeout
`queue.pop(timeout: 0.0001)` is set in the code.

This commit is to make the tests fail rather than getting stuck.
2023-10-28 11:10:30 +02:00
git f7605db8c5 Update bundled gems list at 6589af52d2 [ci skip] 2023-10-28 07:01:24 +00:00
Nobuyoshi Nakada 6589af52d2
Print the date to STDERR if STDIN is a part of input [ci skip] 2023-10-28 14:12:10 +09:00
Lars Kanis 7e6204dd10 Windows: Add libffi as a build dependency
Otherwise the fiddle extension isn't build.
2023-10-28 10:44:16 +09:00
License Update 2714d7507a [rubygems/rubygems] Update SPDX license list as of 2023-10-05
https://github.com/rubygems/rubygems/commit/e69a43ac9f
2023-10-27 22:14:37 +00:00
Jun Aruga 49d4421164 .travis.yml: Disable allow_failures for arm32.
I want to disable allow_failures if possible to avoid unintentional new
failures. It seems that the arm32 case is stable.

Feel free to enable allow_failures again when you see the case is unstable.
2023-10-27 21:56:31 +02:00
Jun Aruga ddf5a33c4c .travis.yml: Upgrade the Ubuntu arm32 to 22.04 (Jammy).
Upgrade the gcc version to the latest version 11.4.0 to align the gcc
version used in the RubyCI arm64 server.
2023-10-27 21:56:31 +02:00
Jean Boussier 4aee6931c3 Make get_next_shape_internal idempotent
Since the check for MAX_SHAPE_ID was done before even checking
if the transition we're looking for even exists, as soon as the
max shape is reached, get_next_shape_internal would always return
`TOO_COMPLEX` regardless of whether the transition we're looking
for already exist or not.

In addition to entirely de-optimize all newly created objects, it
also made an assertion fail in `vm_setivar`:

```
vm_setivar:rb_shape_get_next_iv_shape(rb_shape_get_shape_by_id(source_shape_id), id) == dest_shape
```
2023-10-27 21:09:03 +02:00
Peter Zhu d654d580f3 Revert "Add debug info for flaky test_warmup_frees_pages"
This reverts commit db3b814cb0.

This debugging information is no longer needed.
2023-10-27 14:28:56 -04:00
Kevin Newton c201dbc0ad [ruby/prism] Prism.parse_inline_comments
https://github.com/ruby/prism/commit/5b72f84480
2023-10-27 18:09:14 +00:00
Kevin Newton df10e10314 [ruby/prism] Parse inline comments
https://github.com/ruby/prism/commit/44090d9f26
2023-10-27 18:09:14 +00:00
Jun Aruga 95cc0f946e .travis.yml: Drop s390x temporarily.
The s390x pipeline is unstable with the error "No output has been received"
or doesn't start. See <https://travis-ci.community/t/13811>.
2023-10-27 19:16:13 +02:00
Jun Aruga a0b7574e59 .travis.yml: Simplify Travis CI.
* Remove CI functions for make test-all.
  I want to simplify the `.travis.yml` for us to maintain it easily. When we
  need to skip a test, we can fix the test file directly.
  I removed the `tool/ci_functions.sh` too. I confirmed the file is not used in
  any other files.
* .travis.yml: Remove a notification for IRC channel.
  GitHub Actions don't use this notification. The setting is outdated.
* Fix to skip the commit including the document keyword.
  There were 2 `if` syntax lines in the file.
* Remove ccache.
2023-10-27 19:16:13 +02:00
Peter Zhu 7979c009a7 Fix bug for removed weak references
rb_darray_foreach gives a pointer to the entry, so we need to deference
it to read the value.
2023-10-27 11:00:12 -04:00
Kevin Newton 26a05c4217 [ruby/prism] Use printf attribute and then fix warnings
https://github.com/ruby/prism/commit/3193902c43
2023-10-27 14:23:17 +00:00
Jun Aruga 15ee9c7c1b
[DOC] README.md: Remove Cirrus CI badge image. (#8785)
We removed the `.cirrus.yml` at the commit
<01b5d1d2ff6ca91b2909dfa67295f59b53e6f065>.
Let's remove the badge image too.
2023-10-27 15:53:43 +02:00
Vinicius Stock 7e4d2bb81d [ruby/prism] Move static annotations into _static files
https://github.com/ruby/prism/commit/9a6d735890
2023-10-27 13:45:53 +00:00
Vinicius Stock 06173a41dd [ruby/prism] Add rbi_class to fields
https://github.com/ruby/prism/commit/568fb39e2c
2023-10-27 13:45:52 +00:00
Vinicius Stock 544f64075b [ruby/prism] Add RBI and RBS templates for Prism
https://github.com/ruby/prism/commit/b62305ff3e

Co-authored-by: Stan Lo <st0012@users.noreply.github.com>
2023-10-27 13:45:52 +00:00
Kevin Newton a8af5d3808 [ruby/prism] Use MatchWriteNode on split InterpolatedREN
https://github.com/ruby/prism/commit/ee54244800
2023-10-27 13:40:25 +00:00
Nobuyoshi Nakada 9c5b084c0a
Adjust indent [ci skip] 2023-10-27 17:01:44 +09:00