summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2023-07-12YARP resync (#8059)Jemma Issroff
Notes: Merged-By: jemmaissroff
2023-07-12[rubygems/rubygems] Update GitHub organization of Standard RubyKoichi ITO
## What was the end-user or developer problem that led to this PR? The old URL https://github.com/testdouble/standard is mentioned. ## What is your fix for the problem, implemented in this PR? This PR updates to the new URL https://github.com/standardrb/standard. https://github.com/rubygems/rubygems/commit/eeafba72fc
2023-07-11[ruby/irb] Bump version to 1.7.2ima1zumi
(https://github.com/ruby/irb/pull/636) https://github.com/ruby/irb/commit/85d6b4d146
2023-07-11[ruby/irb] Require Reline 0.3.6 or higherima1zumi
(https://github.com/ruby/irb/pull/632) * Require Reline 0.3.6 or higher "Multi-line multibyte regular expression raises exception" (https://github.com/ruby/irb/issues/627) is fixed in Reline 0.3.6. * Remove unnecessary conditional
2023-07-10[rubygems/rubygems] Use `File::NULL` instead of hard coded null device namesNobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/44fe8e7f50
2023-07-10Allow nmake to ignore errorsNobuyoshi Nakada
cmd.exe can redirect file descriptor other than STDOUT, while command.com couldn't. Notes: Merged: https://github.com/ruby/ruby/pull/8050
2023-07-10Use `File::NULL` instead of hard coded null device namesNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8050
2023-07-09[ruby/irb] Avoid using Reline as a moduleStan Lo
(https://github.com/ruby/irb/pull/633) Using it as a module makes it harder to understand methods' source.
2023-07-08[ruby/reline] Bump version to 0.3.6Stan Lo
(https://github.com/ruby/reline/pull/565) https://github.com/ruby/reline/commit/2503ddb9a6
2023-07-08[ruby/reline] Ignore unhandled escape sequencestomoya ishida
(https://github.com/ruby/reline/pull/522) * Add unassigned escape sequence matcher to KeyStroke * Do not insert ESC and unassigned ESC+key to input buffer
2023-07-07[ruby/yarp] Add source to ParseResultJemma Issroff
https://github.com/ruby/yarp/commit/f3802e03e0
2023-07-07[ruby/reline] Reduce direct references to `Reline::IOGate`Stan Lo
(https://github.com/ruby/reline/pull/566) * Avoid referencing IOGate from IOGate classes The only time those classes being used is when themselves being the IOGate. So when referencing to IOGate, it's better to use `self` instead. * Avoid referencing to IOGate from LineEditor directly * Avoid referencing to IOGate from Core directly * Reference to Reline.core directly * Replace Reline::IOGate with Reline.core.io_gate
2023-07-06Resync YARP (#8036)Jemma Issroff
It got out of sync again. After this re-sync, it should happen cherry-picking automatically. Notes: Merged-By: jemmaissroff
2023-07-05Manual YARP resyncJemma Issroff
Notes: Merged: https://github.com/ruby/ruby/pull/8007
2023-07-05[ruby/reline] Update Relin::IOGate dinamically when it is neededtomoya ishida
(https://github.com/ruby/reline/pull/560) https://github.com/ruby/reline/commit/4680d1c9e0
2023-07-05[ruby/reline] Fix wrong byte_pointer passed to auto_indent_proctomoya ishida
(https://github.com/ruby/reline/pull/562) https://github.com/ruby/reline/commit/4348354604
2023-07-05Sync man pagesParadoxV5
Co-Authored-By: David Rodríguez <2887858+deivid-rodriguez@users.noreply.github.com>
2023-07-05[rubygems/rubygems] `gemfile.5`: Quote default glob to escape MarkdownJimmy H
For consistency, I chose code format over plaintext escaping.
2023-07-05[ruby/rdoc] [DOC] Improve CSS for "toggle source" hovering over one more ↵Masafumi Koba
method signatures This commit improves the behavior of showing the "toggle source" element on mouseover. For example, when a method has one more signatures by using `:call-seq:`, ```ruby # :call-seq: # foo {|element| ... } -> self # foo -> new_enumeration def foo end ``` The current CSS doesn't show "toggle source" even when hovering the second signature `foo -> new_enumeration`. But this change will show "toggle source" always when hovering over any signature. For details about the `.method-header` element, see `lib/rdoc/generator/template/darkfish/class.rhtml`: https://github.com/ruby/rdoc/blob/0e060c69f51ec4a877e5cde69b31d47eaeb2a2b9/lib/rdoc/generator/template/darkfish/class.rhtml#L101-L124 For example, see https://docs.ruby-lang.org/en/3.2/Array.html#method-i-delete
2023-07-05[ruby/rdoc] Add source_code, homepage and changelog uris to gemspec metadata ↵Vinicius Stock
[ci skip] https://github.com/ruby/rdoc/commit/b93687fdd0
2023-07-05[ruby/rdoc] [DOC] Fix to use KeyboardEvent.key over keyCodegemmaro
https://github.com/ruby/rdoc/commit/663edc807c
2023-07-05[ruby/rdoc] Add keydown event listener to focus on search fieldgemmaro
https://github.com/ruby/rdoc/commit/db62e47df2
2023-07-04[ruby/irb] Use `max_by` for `longest_cmd_name_length`Andy Waite
(https://github.com/ruby/irb/pull/628) https://github.com/ruby/irb/commit/5e87f3bfdd Co-authored-by: Andy Waite <andyw8@users.noreply.github.com>
2023-07-04[ruby/irb] Refactor eval historyStan Lo
(https://github.com/ruby/irb/pull/623) * Rename `ext/history.rb` to `ext/eval_history.rb` To confusion with `lib/irb/history.rb` * Add eval_history tests * Rename eval_history's History to EvalHistory to avoid confusion
2023-07-04YJIT: Fix autosplat miscomp for blocks with optionals (#8006)Alan Wu
* YJIT: Fix autosplat miscomp for blocks with optionals When passing an array as the sole argument to `yield`, and the yieldee takes more than 1 optional parameter, the array is expanded similar to `*array` splat calls. This is called "autosplat" in `setup_parameters_complex()`. Previously, YJIT did not detect this autosplat condition. It passed the array without expanding it, deviating from interpreter behavior. Detect this conditon and refuse to compile it. Fixes: Shopify/yjit#313 * RJIT: Fix autosplat miscomp for blocks with optionals This is mirrors the same issue as YJIT. See previous commit. Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
2023-07-04[ruby/reline] Refactor Reline::CoreStan Lo
(https://github.com/ruby/reline/pull/561) * Use Reline::Core.encoding instead of directly referencing IOGate * Set input/output based on the IOGate's interface
2023-07-04[rubygems/rubygems] Fix git source lockfile unstabilityDavid Rodríguez
We have some flags that limit running git commit commands under certain situations, for example, when running under `--local`. However, those should only affect remote git operations, not local read-only operations like `git --version`, or `git rev-parse --abbrev-ref HEAD`. This commit refactors things to achieve that. By doing this, the `#to_s` representation of a source is more consistent, since we don't get any errors when reading the checked out branch, and we avoid some flip-flop lockfile issues. https://github.com/rubygems/rubygems/commit/4a529fce81
2023-07-04[rubygems/rubygems] When printing frozen errors, print only Gemfile informationDavid Rodríguez
https://github.com/rubygems/rubygems/commit/93f74abc5f
2023-07-04[rubygems/rubygems] Fix another incorrect removal of "ruby" platform from ↵David Rodríguez
lockfile When dependencies in path sources 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. https://github.com/rubygems/rubygems/commit/afc3b0956f
2023-07-03[ruby/irb] Stop treating history-saving logic as extensionStan Lo
(https://github.com/ruby/irb/pull/613) Since `IRB.conf[:SAVE_HISTORY]` is assigned with 1000 by default, history-saving is a feature enabled by default. So it should not be treated as an extension, which adds unnecessary complexity to the code.
2023-07-03[ruby/timeout] Require Ruby >= 2.6 for the timeout gemBenoit Daloze
* The test suite fails on 2.5. * See https://github.com/ruby/timeout/pull/35 https://github.com/ruby/timeout/commit/03873a9237
2023-07-03[ruby/tmpdir] [Bug #18933] Make `Dir.mktmpdir` Ractor-safeNobuyoshi Nakada
Fix https://bugs.ruby-lang.org/issues/18933 https://github.com/ruby/tmpdir/commit/446e636434
2023-07-02[ruby/timeout] require ruby version in gemspecJohn Bachir
https://github.com/ruby/timeout/commit/949445f591
2023-07-02[ruby/irb] Bump version to 1.7.1Stan Lo
(https://github.com/ruby/irb/pull/621) https://github.com/ruby/irb/commit/b9a9dd97df
2023-06-30[rubygems/rubygems] Bump vendored net-http-persistent to 4.0.2David Rodríguez
https://github.com/rubygems/rubygems/commit/b0edf39083
2023-06-30[ruby/irb] Reduce internal operations' exposure to benchmarkingStan Lo
(https://github.com/ruby/irb/pull/618) * Test last value is assigned with measure enabled * Remove unnecessary `result` variable `Context#evaluate` always assigns the result of the evaluation to `_` so we don't need to do it in `Irb#eval_input`. * Move benchmarking logic into `Context#evaluate` Current location of the benchmarking logic is too high up and includes operations like command loading and argument transformation, which should be excluded. So this commit moves it into `Context#evaluate` to reduce the noise. We don't move it further down to `Workspace#evaluate` because `Context` is an argument of the measure block, which is not available in `Workspace`.
2023-06-30[ruby/irb] Re-implement prev_spaces feature for pasted codetomoya ishida
(https://github.com/ruby/irb/pull/607) https://github.com/ruby/irb/commit/9d97a192a5
2023-06-29Merge URI-0.12.2 for BundlerHiroshi SHIBATA
2023-06-29[ruby/uri] Bump up v0.12.2Hiroshi SHIBATA
https://github.com/ruby/uri/commit/e18e657ea8
2023-06-29[ruby/uri] Fix quadratic backtracking on invalid port numberNobuyoshi Nakada
https://hackerone.com/reports/1958260 https://github.com/ruby/uri/commit/9d7bcef1e6
2023-06-29[ruby/uri] Fix quadratic backtracking on invalid relative URINobuyoshi Nakada
https://hackerone.com/reports/1958260 https://github.com/ruby/uri/commit/9010ee2536
2023-06-28[DOC] Fixes for link fragments (#7981)Burdette Lamar
Notes: Merged-By: peterzhu2118 <peter@peterzhu.ca>
2023-06-28[ruby/csv] Bump versionSutou Kouhei
https://github.com/ruby/csv/commit/e090da19b4
2023-06-28[ruby/csv] Fix a bug that the same line is used multiple timesSutou Kouhei
GitHub: fix https://github.com/ruby/csv/pull/279 It's happen when: * `keep_start`/`keep_{drop,back}` are nested. (e.g.: `strip: true, skip_lines: /.../`) * Row separator is `\r\n`. * `InputScanner` is used. (Small input doesn't use `InputScanner`) Reported by Gabriel Nagy. Thanks!!! https://github.com/ruby/csv/commit/183635ab56
2023-06-28[ruby/csv] Remove nonexistent variableSutou Kouhei
https://github.com/ruby/csv/commit/bfbd6bbf6f
2023-06-28[ruby/csv] parser: add one more traceSutou Kouhei
https://github.com/ruby/csv/commit/5df650be0c
2023-06-28[ruby/syntax_suggest] [DOC] Fix method nameNobuyoshi Nakada
https://github.com/ruby/syntax_suggest/commit/08a9afb64f
2023-06-27[ruby/irb] Remove keyword exception from Context#evaluate becausetomoya ishida
the value is always nil (https://github.com/ruby/irb/pull/617) https://github.com/ruby/irb/commit/62691384f8
2023-06-27[ruby/irb] Move input line mutation out of `Context#evaluate`Stan Lo
(https://github.com/ruby/irb/pull/615) This makes sure `Context#evaluate` really just evaluates the input. It will also make #575's implementation cleaner.
2023-06-27[rubygems/rubygems] FixupHiroshi SHIBATA
https://github.com/rubygems/rubygems/pull/6766 https://github.com/rubygems/rubygems/commit/c5c5797227