aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/optparse] Add `raise_unknown` flagNobuyoshi Nakada2022-11-281-0/+7
| | | | | | (https://github.com/ruby/optparse/pull/38) https://github.com/ruby/optparse/commit/12529653cd
* [ruby/syntax_suggest] v1.0.0schneems2022-11-281-1/+1
| | | | https://github.com/ruby/syntax_suggest/commit/f142fcbf96
* [ruby/syntax_suggest] Do not output "Syntax OK" when there's an errorschneems2022-11-282-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Due to a problem with ripper we do not recognize `break` as invalid code. It's confusing that "Syntax OK" is output in that case. When there's no syntax error, the algorithm should not say anything. The exception is in the CLI and that's for compatibility with `ruby -wc` ``` $ cat /tmp/break.rb break ⛄️ 3.1.2 🚀 /Users/rschneeman/Documents/projects/syntax_suggest (schneems/no-syntax-not-okay-break) $ ruby -wc /tmp/break.rb Syntax OK ``` > Note that this is invalid, running this code will raise a Syntax error. ``` $ exe/syntax_suggest /tmp/break.rb Syntax OK ``` Close https://github.com/ruby/syntax_suggest/pull/157 https://github.com/ruby/syntax_suggest/commit/d7bd8f03a2
* Revert "MJIT: Make it parsable by Solargraph"Takashi Kokubun2022-11-281-810/+808
| | | | | | | | | | | This reverts commit ccd8dd6ad395bbd9f5290e0fcb7929e5e5d36767. Revert "MJIT: Fix miniruby with MJIT_FORCE_ENABLE" This reverts commit b033775ed9d9226ba73c1d4a197e55ba89575142. GitHub Actions is failing. I ran out of time today to investigate it. will try it again tomorrow.
* MJIT: Make it parsable by SolargraphTakashi Kokubun2022-11-271-808/+810
|
* MJIT: Do not document a dynamic type [ci skip]Takashi Kokubun2022-11-271-1/+1
| | | | Solargraph complains about it
* MJIT: Get rid of C.fprintfTakashi Kokubun2022-11-271-41/+41
| | | | Faster code generation and cleaner code.
* MJIT: Refactor invokebuiltin_delegate_leaveTakashi Kokubun2022-11-271-27/+25
| | | | | | | | | | You shouldn't assume bf->compiler is always non-zero. While struct aref/aset is no longer a builtin function since https://github.com/ruby/ruby/pull/5131, it seems like you could still load such an iseq binary. The refactored code fallbacks to compile_insn_default correctly when bf->compiler is zero.
* MJIT: Use a String buffer in builtin compilersTakashi Kokubun2022-11-271-11/+13
| | | | | | | instead of FILE*. Using C.fprintf is slower than String manipulation on memory. I'm going to change the way MJIT writes files, and this is a prerequisite for it.
* [ruby/cgi] Bump up 0.3.6Hiroshi SHIBATA2022-11-281-1/+1
| | | | https://github.com/ruby/cgi/commit/827b7d43cc
* [ruby/rdoc] Add `--no-skipping-tests` optionSven Riedel2022-11-282-1/+27
| | | | https://github.com/ruby/rdoc/commit/33925f885f
* [ruby/cgi] Loosen the domain regex to accept '.'Xenor Chang2022-11-281-1/+1
| | | | | | | | | | | (https://github.com/ruby/cgi/pull/29) * Loosen the domain regex to accept '.' Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> https://github.com/ruby/cgi/commit/5e09d632f3 Co-authored-by: Hiroshi SHIBATA <hsbt@ruby-lang.org>
* [ruby/cgi] Prepare to release 0.3.6Hiroshi SHIBATA2022-11-281-1/+1
| | | | https://github.com/ruby/cgi/commit/710a647855
* MJIT: Move some private declarationsTakashi Kokubun2022-11-271-29/+17
| | | | and clean up legacy comments for the Ruby migration
* [ruby/rdoc] Revert "Refactor `RDoc::Markup::Parser#tokenize`"Nobuyoshi Nakada2022-11-271-108/+106
| | | | | | This reverts commit https://github.com/ruby/rdoc/commit/41ceae93b3bc. https://github.com/ruby/rdoc/commit/5d2c47e8b8
* [ruby/rdoc] Refactor `RDoc::Markup::Parser#tokenize`Nobuyoshi Nakada2022-11-271-106/+108
| | | | | | Make verbatims text or newline only, and simplify `build_verbatim`. https://github.com/ruby/rdoc/commit/41ceae93b3
* [ruby/rdoc] Darkfish: group method call-seq in div.method-headernick evans2022-11-271-20/+22
| | | | | | | | | This way, custom CSS styles can be easily applied to the entire method header at once. Otherwise, it can be tricky to make a border that goes around the entire set of method call-seq, but not the method description. https://github.com/ruby/rdoc/commit/5db4bce01e
* [ruby/rdoc] Darkfish: Nest sidebar ToC as a tree of headingsnick evans2022-11-271-4/+25
| | | | | | | This uses `<details><summary>heading</summary><ul>nested</ul></detail>`, similar to how the classes and pages lists are now nested. https://github.com/ruby/rdoc/commit/e57beff287
* [ruby/rdoc] Refine regexp usages and reduce substring allocationsNobuyoshi Nakada2022-11-273-31/+27
| | | | https://github.com/ruby/rdoc/commit/a976fb9d39
* [ruby/rdoc] Pull up handle_tab_width to RDoc::ParserNobuyoshi Nakada2022-11-273-26/+18
| | | | | | To share with the duplicate code in RDoc::Parser::Ruby#initialize. https://github.com/ruby/rdoc/commit/27829ac119
* [ruby/erb] Version 4.0.1Takashi Kokubun2022-11-271-1/+1
| | | | https://github.com/ruby/erb/commit/3bb67009dd
* [ruby/erb] Skip using the extension for truffleruby as wellTakashi Kokubun2022-11-271-3/+6
| | | | | | | | | | | | | | | | | | | | (https://github.com/ruby/erb/pull/39) * Skip using the extension for truffleruby as well * Just skip building the C extension for TruffleRuby * Skip rake compile for truffleruby * Use resolve_feature_path * Revert "Use resolve_feature_path" This reverts commit https://github.com/ruby/erb/commit/acc1e0c0ffaf. * Use resolve_feature_path with LoadError guard https://github.com/ruby/erb/commit/85dcb08439
* [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPHeaderBurdette Lamar2022-11-271-17/+58
| | | | https://github.com/ruby/net-http/commit/77c6878970
* MJIT: Remove a duplicated rescueTakashi Kokubun2022-11-261-5/+2
| | | | | `#compile` has a catch-call rescue, so compile_insn_entry shouldn't do that. It was a temporary code needed during the migration.
* [ruby/erb] Version 4.0.0Takashi Kokubun2022-11-261-1/+1
| | | | https://github.com/ruby/erb/commit/2809a54d88
* [ruby/erb] Define ERB::Escape moduleTakashi Kokubun2022-11-261-7/+15
| | | | | (https://github.com/ruby/erb/pull/38) Close #32
* MJIT: Refactor source_shape_id extractionTakashi Kokubun2022-11-251-13/+14
| | | | I'm not comfortable indenting code that deeply.
* MJIT: Remove obsoleted variableTakashi Kokubun2022-11-251-2/+0
| | | | no longer used after 4ea9d7d7c223ff92365c4a013fc1bd073d67a3a5
* MJIT: Remove the code to optimize shape transitionTakashi Kokubun2022-11-251-11/+1
| | | | | because this code crashes on railsbench. I'll try adding a repro for it later, but I don't know shapes enough to craft it right away.
* [ruby/erb] Keep ERB::Util#html_escape privateTakashi Kokubun2022-11-251-2/+2
| | | | | | | ERB::Util.html_escape has been public, but ERB::Util#html_escape had been private. https://github.com/ruby/erb/commit/e62210bf56
* [ruby/fileutils] [Feature #18925] Add `ln_sr` method and `relative:` option ↵Nobuyoshi Nakada2022-11-251-4/+101
| | | | | | to `ln_s` https://github.com/ruby/fileutils/commit/5116088d5c
* [ruby/erb] Allow requiring erb/escape.so aloneTakashi Kokubun2022-11-241-4/+7
| | | | | | (https://github.com/ruby/erb/pull/37) Prior to this commit, requiring erb/escape first and then requiring erb did not work as expected.
* [ruby/erb] Split erb.rb into files for each module under ERBTakashi Kokubun2022-11-245-580/+570
| | | | | | (https://github.com/ruby/erb/pull/36) https://github.com/ruby/erb/commit/f74833cc07
* [ruby/erb] Rename erb.so to erb/escape.soTakashi Kokubun2022-11-242-2/+2
| | | | | | (https://github.com/ruby/erb/pull/35) https://github.com/ruby/erb/commit/1280046952
* [ruby/net-http] Enhanced RDoc for Net::HTTPHeaderBurdetteLamar2022-11-231-1/+1
| | | | https://github.com/ruby/net-http/commit/86b0514239
* [ruby/net-http] Enhanced RDoc for Net::HTTPHeaderBurdetteLamar2022-11-231-20/+7
| | | | https://github.com/ruby/net-http/commit/ef0ef53b0c
* [ruby/net-http] Enhanced RDoc for Net::HTTPHeaderBurdetteLamar2022-11-231-1/+1
| | | | https://github.com/ruby/net-http/commit/0af9fb94a9
* [ruby/net-http] Enhanced RDoc for Net::HTTPHeaderBurdetteLamar2022-11-231-66/+77
| | | | https://github.com/ruby/net-http/commit/995ff356b4
* [ruby/net-http] Enhanced RDoc for Net::HTTPHeaderBurdetteLamar2022-11-231-49/+251
| | | | https://github.com/ruby/net-http/commit/e924f1205b
* [ruby/cgi] Bump up 0.3.5Hiroshi SHIBATA2022-11-221-1/+1
| | | | https://github.com/ruby/cgi/commit/daf88c2a75
* [ruby/cgi] Relax domain label restrictionsNobuyoshi Nakada2022-11-221-1/+1
| | | | https://github.com/ruby/cgi/commit/b46d41c363
* [ruby/cgi] Bump up 0.3.4Hiroshi SHIBATA2022-11-221-1/+1
| | | | https://github.com/ruby/cgi/commit/3649a27bf4
* [ruby/cgi] Prevent CRLF injectionYusuke Endoh2022-11-221-17/+28
| | | | | | | | | Throw a RuntimeError if the HTTP response header contains CR or LF to prevent HTTP response splitting. https://hackerone.com/reports/1204695 https://github.com/ruby/cgi/commit/64c5045c0a
* [ruby/cgi] Check cookie name/path/domain charactersNobuyoshi Nakada2022-11-221-8/+36
| | | | | | https://hackerone.com/reports/1204977 https://github.com/ruby/cgi/commit/30107a4797
* Use class methods of `File` over `Kernel.open` and `IO.read`Nobuyoshi Nakada2022-11-211-1/+1
|
* [ruby/un] Use class methods of `File` over `Kernel.open`Nobuyoshi Nakada2022-11-211-2/+2
| | | | https://github.com/ruby/un/commit/13bdd766fe
* [ruby/optparse] Use class methods of `File` over `IO`Nobuyoshi Nakada2022-11-211-1/+1
| | | | https://github.com/ruby/optparse/commit/ab5073e4d8
* [ruby/irb] Add commands to start and use the debuggerTakashi Kokubun2022-11-2116-36/+258
| | | | | | | | | | | | | | | | | | | | (https://github.com/ruby/irb/pull/449) * Seamlessly integrate a few debug commands * Improve the break command support * Utilize skip_src option if available * Add step and delete commands * Write end-to-end tests for each debugger command * Add documentation * Add backtrace, info, catch commands https://github.com/ruby/irb/commit/976100c1c2
* [ruby/irb] Version 1.5.0Takashi Kokubun2022-11-201-2/+2
| | | | | | | | | | | | | Asked by ko1 to release https://github.com/ruby/irb/pull/444 for simplifying https://github.com/ruby/debug/pull/808, and hsbt made me a gem owner for this. Stan said 1.4.3 should have been 1.5.0, but now that it's already released and it's not worth yanking it, we're not doing that change. However, now that this release includes `debug` and `edit`, I think it's a good opportunity to hit the version 1.5.0. https://github.com/ruby/irb/commit/85937d71f6
* [ruby/irb] Add edit command (https://github.com/ruby/irb/pull/453)Stan Lo2022-11-203-43/+113
| | | | | | | | | | | | | | * Add edit command * Make find_source a public singleton method * Add document for the edit command * Make find_end private * Remove duplicated private https://github.com/ruby/irb/commit/4321674aa7 Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>