aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update to ruby/spec@30e1c35Benoit Daloze2023-06-26428-9236/+3581
|
* Update to ruby/mspec@3cf2d16Benoit Daloze2023-06-262-2/+51
|
* [ruby/yarp] Prevent reading/writing outside the bounds of optionsSteven Johnstone2023-06-261-2/+11
| | | | https://github.com/ruby/yarp/commit/52bed3cbe2
* [ruby/yarp] Add missing snapshotHaldun Bayhantopcu2023-06-261-0/+0
| | | | https://github.com/ruby/yarp/commit/08f08a6cc4
* Suppress warningsNobuyoshi Nakada2023-06-261-4/+4
|
* [DOC] Nested ordered lists need more indentsNobuyoshi Nakada2023-06-261-14/+16
|
* Add the chopsticks code at RubyKaigi2023Nobuyoshi Nakada2023-06-261-0/+24
|
* Bump ossf/scorecard-action from 2.1.3 to 2.2.0dependabot[bot]2023-06-261-1/+1
| | | | | | | | | | | | | | | Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.1.3 to 2.2.0. - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](https://github.com/ossf/scorecard-action/compare/80e868c13c90f172d68d1f4501dee99e2479f7af...08b4669551908b1024bb425080c797723083c031) --- updated-dependencies: - dependency-name: ossf/scorecard-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* Fix broken linksBurdetteLamar2023-06-253-3/+4
|
* [ruby/uri] String literals are frozen nowNobuyoshi Nakada2023-06-251-20/+20
| | | | https://github.com/ruby/uri/commit/0b6ad60af6
* [ruby/uri] Fix host part in relative referece #83Nobuyoshi Nakada2023-06-252-7/+14
| | | | | | In relative referece, host part can be ommitted but can not be empty. https://github.com/ruby/uri/commit/2980f0ba02
* [DOC] Parse documents under doc/yjitNobuyoshi Nakada2023-06-251-0/+1
|
* [DOC] Parse all documents under doc/regexpNobuyoshi Nakada2023-06-251-2/+1
|
* Update bundled gems list at 2023-06-25git2023-06-252-2/+2
|
* [ruby/irb] Fix process_continue(rename to should_continue?) andtomoya ishida2023-06-253-57/+94
| | | | | | | check_code_block(rename to check_code_syntax) (https://github.com/ruby/irb/pull/611) https://github.com/ruby/irb/commit/b7f4bfaaa4
* [ruby/irb] Omit nesting_level, use indent_level to build prompttomoya ishida2023-06-242-59/+55
| | | | | | | string (https://github.com/ruby/irb/pull/610) https://github.com/ruby/irb/commit/f01ff0811b
* Do not have Enumeratory::Lazy#zip mark result as packedJeremy Evans2023-06-242-1/+5
| | | | Fixes [Bug #19569]
* De-duplicate parse_st.c code from st.cNobuyoshi Nakada2023-06-244-2022/+8
|
* Remove `st_functions_t`Nobuyoshi Nakada2023-06-245-38/+26
|
* Ignore only warnings known by clangNobuyoshi Nakada2023-06-241-1/+5
| | | | Clang 17 does not know warning group '-Wgnu-empty-initializer'.
* [ruby/yarp] Name test methods from relative pathsNobuyoshi Nakada2023-06-241-3/+4
| | | | | | Full path name of the source directory is a useless noise as tests. https://github.com/ruby/yarp/commit/44a7ae2e64
* [ruby/yarp] Check for eof in yp_regexp_char_is_eofSteven Johnstone2023-06-231-1/+4
| | | | https://github.com/ruby/yarp/commit/f3fbc5bf9e
* [ruby/yarp] If ? is last char of regexp buffer, don't read beyond it.Steven Johnstone2023-06-231-0/+3
| | | | https://github.com/ruby/yarp/commit/1764532572
* [ruby/yarp] Don't read past the end of input parsing regex groupSteven Johnstone2023-06-231-1/+1
| | | | https://github.com/ruby/yarp/commit/03f5a330a9
* Expose rb_hash_resurrectAaron Patterson2023-06-232-0/+5
| | | | This is for implementing the `duphash` instruction
* Skip test on Solaris SPARCPeter Zhu2023-06-231-0/+4
| | | | | | | This test fails on Solaris SPARC with the following error and I can't figure out why: TestGCCompact#test_moving_hashes_down_size_pools Expected 499 to be >= 500.
* Declare `RHASH_AR_TABLE` and `RHASH_ST_TABLE` return non-nullNobuyoshi Nakada2023-06-232-4/+4
|
* Update default gems list at b7375770ef15c7d7b3fdf14bf1964a [ci skip]git2023-06-231-1/+1
|
* [ruby/timeout] Bump up v0.4.0Hiroshi SHIBATA2023-06-231-1/+1
| | | | https://github.com/ruby/timeout/commit/413194f8d2
* [ruby/timeout] Raise exception instead of throw/catch for timeoutsJeremy Evans2023-06-222-26/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (https://github.com/ruby/timeout/pull/30) throw/catch is used for non-local control flow, not for exceptional situations. For exceptional situations, raise should be used instead. A timeout is an exceptional situation, so it should use raise, not throw/catch. Timeout's implementation that uses throw/catch internally causes serious problems. Consider the following code: ```ruby def handle_exceptions yield rescue Exception => exc handle_error # e.g. ROLLBACK for databases raise ensure handle_exit unless exc # e.g. COMMIT for databases end Timeout.timeout(1) do handle_exceptions do do_something end end ``` This kind of design ensures that all exceptions are handled as errors, and ensures that all exits (normal exit, early return, throw/catch) are not handled as errors. With Timeout's throw/catch implementation, this type of code does not work, since a timeout triggers the normal exit path. See https://github.com/rails/rails/pull/29333 for an example of the damage Timeout's design has caused the Rails ecosystem. This switches Timeout.timeout to use raise/rescue internally. It adds a Timeout::ExitException subclass of exception for the internal raise/rescue, which Timeout.timeout will convert to Timeout::Error for backwards compatibility. Timeout::Error remains a subclass of RuntimeError. This is how timeout used to work in Ruby 2.0. It was changed in Ruby 2.1, after discussion in [Bug #8730] (commit https://github.com/ruby/timeout/commit/238c003c921e in the timeout repository). I think the change from using raise/rescue to using throw/catch has caused significant harm to the Ruby ecosystem at large, and reverting it is the most sensible choice. From the translation of [Bug #8730], it appears the issue was that someone could rescue Exception and not reraise the exception, causing timeout errors to be swallowed. However, such code is broken anyway. Using throw/catch causes far worse problems, because then it becomes impossible to differentiate between normal control flow and exceptional control flow. Also related to this is [Bug #11344], which changed how Thread.handle_interrupt interacted with Timeout. https://github.com/ruby/timeout/commit/f16545abe6 Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* Prefer `0` over `NULL` as function pointersNobuyoshi Nakada2023-06-235-5/+5
| | | SunC warns use of `NULL`, pointer to data as function pointers.
* Remove dead code in hash.cPeter Zhu2023-06-221-53/+0
| | | | | RHASH_TABLE_NULL_P and ar_alloc_table are no longer needed since all Hash will have AR tables.
* [ruby/reline] Remove unused methodima1zumi2023-06-221-20/+0
| | | | | | | (https://github.com/ruby/reline/pull/557) `get_mbchar_byte_size_by_first_char` isn't used in Reline. Also, this method implements the same functionality as `String#bytesize` and is unnecessary.
* [ruby/ipaddr] Consider IPv4-mapped IPv6 addresses private if IPv4 address is ↵Jeremy Evans2023-06-222-2/+28
| | | | | | | | private Fixes [Bug #19479] https://github.com/ruby/ipaddr/commit/7faa0768d3
* Sync ruby/yarp to ↵Takashi Kokubun2023-06-227-138/+167
| | | | https://github.com/ruby/yarp/commit/89a00203af803032383338c943836da6bafca7d9
* [ruby/yarp] Allow for block statements after elsif and elseJemma Issroff2023-06-223-2/+129
| | | | https://github.com/ruby/yarp/commit/4560cab235
* [ruby/yarp] Do not leak file descriptorsKevin Newton2023-06-221-0/+1
| | | | https://github.com/ruby/yarp/commit/83c2c45b28
* [ruby/yarp] Do not leak memory from lex modesKevin Newton2023-06-221-0/+4
| | | | https://github.com/ruby/yarp/commit/df6661740c
* Sync ruby/yarp with sync_default_gemsTakashi Kokubun2023-06-222-15/+2
|
* [Bug #19743] All but EOF can be read again after push-backNobuyoshi Nakada2023-06-222-0/+4
|
* [rubygems/rubygems] Prefer `assert_include` over mere `assert`Nobuyoshi Nakada2023-06-221-1/+1
| | | | https://github.com/rubygems/rubygems/commit/140405cee6
* [rubygems/rubygems] Prefer `assert_predicate` over mere `assert`Nobuyoshi Nakada2023-06-221-15/+15
| | | | https://github.com/rubygems/rubygems/commit/0d10063824
* [rubygems/rubygems] Fix argument order of `assert_equal`Nobuyoshi Nakada2023-06-221-7/+7
| | | | https://github.com/rubygems/rubygems/commit/a7c015f82b
* Fix leaked FD for an empty fileNobuyoshi Nakada2023-06-221-0/+1
|
* [ruby/yarp] Set default external encoding for parse testsKevin Newton2023-06-211-24/+13
| | | | https://github.com/ruby/yarp/commit/e757fde3ed
* Handle non-enum values to fix -Wreturn-typeTakashi Kokubun2023-06-211-0/+1
| | | | http://ci.rvm.jp/results/trunk-random1@ruby-sp2-docker/4612360
* [ruby/yarp] Truly fix snapshot testing on Ruby CIKevin Newton2023-06-211-2/+1
| | | | https://github.com/ruby/yarp/commit/c4e835711e
* [ruby/yarp] Actually fix snapshot testsKevin Newton2023-06-211-0/+24
| | | | https://github.com/ruby/yarp/commit/ba9e5b447e
* Stop asking YJIT team to review dependabot changesTakashi Kokubun2023-06-211-1/+0
|
* Fix -Wold-style-definitionTakashi Kokubun2023-06-211-1/+2
| | | | | | | http://ci.rvm.jp/results/trunk-yjit@ruby-sp2-docker/4612329 Also, I changed the position of `{` to be consistent with the rest of the codebase.