summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-06-29Add basic test for updated IO wait functions.Samuel Williams
Notes: Merged: https://github.com/ruby/ruby/pull/4612
2021-06-29Use assert_not_match "Did you mean?" for UncorrectableNameCheckTestYusuke Endoh
... instead of exact matching. I'm now creating a built-in gem that modifies Exception's error message, so the expectation value is changed. IMO, it is good to check that did_you_mean suggestion is NOT added in the uncorrectable case. https://github.com/ruby/did_you_mean/commit/ebe88ec4d2
2021-06-29Use String#include? instead of end_with? to avoid message duplicationYusuke Endoh
Previously, did_you_mean used `msg.end_with?(suggestion)` to check if its suggestion is already added. I'm now creating a gem that also modifies Exception's message. This breaks did_you_mean's duplication check. This change makes the check use String#include? instead of end_with?. https://github.com/ruby/did_you_mean/commit/b35e030549
2021-06-29Let Correctable#original_message skip prepended method definitionsYusuke Endoh
Previously, DidYouMean::Correctable#original_message did `method(:to_s).super_method.call` to call the original to_s method by skipping Correctable#to_s. I'm now creating a gem that prepends another to_s method to NameError, which confuses the hack. An immediate solution is to replace it with `method(:to_s).super_method.super_method.call` to skip the two methods. But it is too ad-hoc. This changeset uses more extensible approach and allow a prepended module to declare that they should be skipped by defining a constant named `SKIP_TO_S_FOR_SUPER_LOOKUP`. https://github.com/ruby/did_you_mean/commit/8352c154e3
2021-06-29Should require "rbconfig" to use RbConfigNobuyoshi Nakada
https://github.com/ruby/did_you_mean/commit/fbe5aaaae8
2021-06-29Start v1.6.0 developmentYuki Nishijima
https://github.com/ruby/did_you_mean/commit/3f69171813
2021-06-29Prefer qualified names under ThreadNobuyoshi Nakada
2021-06-29* 2021-06-29 [ci skip]git
2021-06-28Avoid `free(3)`ing invalid pointerxtkoba
Fixes [Bug #17794] Notes: Merged: https://github.com/ruby/ruby/pull/4611
2021-06-28Refined define_thread_classNobuyoshi Nakada
Reduce duplications * ID caluculations of the same name * checks against the same name * registration to the root module hash
2021-06-28* 2021-06-28 [ci skip]git
2021-06-28Share freeze option handlingNobuyoshi Nakada
2021-06-27Show leaked file descriptors only, without cwd, txt, and so onNobuyoshi Nakada
2021-06-27Narrow the tracing of object allocations to during each testNobuyoshi Nakada
2021-06-27Check if closed after each yield [Bug #17661]Nobuyoshi Nakada
2021-06-27[ruby/irb] Optimize show_source command furtherTakashi Kokubun
https://github.com/ruby/irb/pull/249 actually slowed down how `code` is concatenated. The original way of creating `code` is faster. [before] user system total real 2.420137 0.005364 2.425501 ( 2.426264) [after] user system total real 1.000221 0.007454 1.007675 ( 1.008295) Theoretically, this implementation might skip lines that don't appear in Ripper tokens, but this assumes such lines don't impact whether the code passes compilation or not. At least normal blank lines seem to have an `on_ignored_nl` token anyway though. https://github.com/ruby/irb/commit/27dd2867cd
2021-06-27[ruby/irb] Improve performance of `show_source` for large classMasataka Pocke Kuwabara
https://github.com/ruby/irb/commit/2b79e9ad21
2021-06-27Added macros for days in monthNobuyoshi Nakada
2021-06-27Shrink monthly tablesNobuyoshi Nakada
2021-06-27* 2021-06-27 [ci skip]git
2021-06-26Work around issue transcoding issue with non-ASCII compatible encodings and ↵Jeremy Evans
xml escaping When using a non-ASCII compatible source and destination encoding and xml escaping (the :xml option to String#encode), the resulting string was broken, as it used the correct non-ASCII compatible encoding, but contained data that was ASCII-compatible instead of compatible with the string's encoding. Work around this issue by detecting the case where both the source and destination encoding are non-ASCII compatible, and transcoding the source string from the non-ASCII compatible encoding to UTF-8. The xml escaping code will correctly handle the UTF-8 source string and the return the correctly encoded and escaped value. Fixes [Bug #12052] Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> Notes: Merged: https://github.com/ruby/ruby/pull/4605 Merged-By: jeremyevans <code@jeremyevans.net>
2021-06-26Scan the coderange in the given encodingNobuyoshi Nakada
2021-06-26Disable RBIMPL_ATTR_DEPRECATED for Coverity Scan buildYusuke Endoh
Coverity Scan emulates gcc but seems not to support this attribute correctly.
2021-06-26* 2021-06-26 [ci skip]git
2021-06-26iseq.c: Make ast_line_count return 0 when syntax error occurredYusuke Endoh
This broke coverage CI ``` 1) Failure: TestRequire#test_load_syntax_error [/home/runner/work/actions/actions/ruby/test/ruby/test_require.rb:228]: Exception(SyntaxError) with message matches to /unexpected/. [SyntaxError] exception expected, not #<TypeError: no implicit conversion of false into Integer>. ``` https://github.com/ruby/actions/runs/2914743968?check_suite_focus=true
2021-06-25Revert "Revert "[ruby/reline] Fix failed test""aycabta
I'm so sorry, the previous revert was just a mistake. This reverts commit 9103c3ba8bc09f287f69ca322f58faa34e003f2e.
2021-06-25Revert "[ruby/reline] Fix failed test"aycabta
This reverts commit 491591c7cee842601118efc2698e0e41283827b3.
2021-06-25[ruby/reline] Fix missing require.Samuel Williams
https://github.com/ruby/reline/commit/010b28dfe9
2021-06-25[ruby/reline] Avoid using blocking `IO.select`.Samuel Williams
https://github.com/ruby/reline/commit/de94746393
2021-06-25[ruby/reline] Fix failed testima1zumi
For ruby/ruby repository's AppVeyor CI (Windows environment), `Reline::IOGate.encoding` will be changed from `UTF-8` to `Windows-31J` after the test is run. So, when `test/reline/test_key_actor_emacs.rb` is loaded, `Reline::IOGate.encoding == Encoding::UTF_8` will be `true`, but at the time of test execution, `Reline::IOGate.encoding` is `Windows-31J`. For this reason, I changed the test method to check `Reline::IOGate.encoding` in the test method. https://github.com/ruby/reline/commit/10e1ce3320
2021-06-25Followed up 66d2fc7989d741bf5a73286233139901cecb4fc2Hiroshi SHIBATA
2021-06-25[ruby/racc] Remove Object monkey patchAaron Patterson
I don't think we need this monkey patch anymore, so lets remove it! https://github.com/ruby/racc/commit/464485e912
2021-06-25[ruby/racc] Removed needless condition for old versions of RubyGems.Hiroshi SHIBATA
https://github.com/ruby/racc/commit/fe3183b1ff
2021-06-25[ruby/racc] Drop to support Ruby 2.4Hiroshi SHIBATA
https://github.com/ruby/racc/commit/5af1a42a3b
2021-06-25[ruby/racc] Followed up #162Hiroshi SHIBATA
https://github.com/ruby/racc/commit/d66cd12166
2021-06-25[ruby/racc] Stop compressing integer listsJean Boussier
It is unclear why this was implemented, I assume it was for performance back in 2006. However today, this compression defeats bytecode caching entirely and end up being counter productive. https://github.com/ruby/racc/commit/ae3703c1d0
2021-06-24Remove shift of ep when computing Proc#hashJeremy Evans
The shift was causing far fewer unique values of hash than expected. Fix pointed out by xtkoba (Tee KOBAYASHI) Fixes [Bug #17951] Notes: Merged: https://github.com/ruby/ruby/pull/4574
2021-06-25* 2021-06-25 [ci skip]git
2021-06-24Actually ignore FNM_CASEFOLD flag in Dir.globJeremy Evans
This was already documented as being ignored, but it wasn't being ignored, causing an issue in a particular case where a UTF-8 pattern was provided and a filename was tested that wasn't valid UTF-8. Fixes [Bug #14456] Notes: Merged: https://github.com/ruby/ruby/pull/4583
2021-06-24[DOC] fixed return value of ENV.clone [ci skip]Nobuyoshi Nakada
2021-06-24Tests for MiniTest define anonymous test casesNobuyoshi Nakada
2021-06-24test: imply random test order by --seed optionNobuyoshi Nakada
2021-06-24Remove also debug symbol directory at clean on macOSNobuyoshi Nakada
2021-06-24Prefer configured command as RM_RFNobuyoshi Nakada
2021-06-24Reduce repeated same codeNobuyoshi Nakada
2021-06-24Load rubygems before default gemsNobuyoshi Nakada
2021-06-24Introduced RUBY_CRLF_ENVIRONMENT to simplify repeated conditionNobuyoshi Nakada
2021-06-24rand_bytes: prefer rng->get_bytes卜部昌平
Because why not. There was no use case of rng->get_bytes before this changeset. Notes: Merged: https://github.com/ruby/ruby/pull/4602
2021-06-23Check type of instruction - can be INSN or ADJUSTeileencodes
If the type is ADJUST we don't want to treat it like an INSN so we have to check the type before reading from `insn_info.events`. [Bug #18001] [ruby-core:104371] Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org> Notes: Merged: https://github.com/ruby/ruby/pull/4601
2021-06-24* 2021-06-24 [ci skip]git