Commit graph

11330 commits

Author SHA1 Message Date
Takashi Kokubun
534bac04e7 [ruby/erb] Version 4.0.0
2809a54d88
2022-11-26 06:05:23 +00:00
Takashi Kokubun
574896a0ce [ruby/erb] Define ERB::Escape module
(https://github.com/ruby/erb/pull/38)

Close #32
2022-11-26 05:32:25 +00:00
Takashi Kokubun
3c16f33ffd MJIT: Refactor source_shape_id extraction
I'm not comfortable indenting code that deeply.
2022-11-25 15:27:27 -08:00
Takashi Kokubun
89a98ee1e1 MJIT: Remove obsoleted variable
no longer used after 4ea9d7d7c2
2022-11-25 15:23:43 -08:00
Takashi Kokubun
4ea9d7d7c2 MJIT: Remove the code to optimize shape transition
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.
2022-11-25 15:18:34 -08:00
Takashi Kokubun
addb1cbbfd [ruby/erb] Keep ERB::Util#html_escape private
ERB::Util.html_escape has been public, but ERB::Util#html_escape had
been private.

e62210bf56
2022-11-25 08:54:18 +00:00
Nobuyoshi Nakada
c6330cd32b [ruby/fileutils] [Feature #18925] Add ln_sr method and relative: option to ln_s
5116088d5c
2022-11-25 01:03:57 +00:00
Takashi Kokubun
bcdfe12919 [ruby/erb] Allow requiring erb/escape.so alone
(https://github.com/ruby/erb/pull/37)

Prior to this commit, requiring erb/escape first and then requiring erb
did not work as expected.
2022-11-24 23:49:15 +00:00
Takashi Kokubun
8ac4081aa8 [ruby/erb] Split erb.rb into files for each module under ERB
(https://github.com/ruby/erb/pull/36)

f74833cc07
2022-11-24 23:40:53 +00:00
Takashi Kokubun
c480f589c2 [ruby/erb] Rename erb.so to erb/escape.so
(https://github.com/ruby/erb/pull/35)

1280046952
2022-11-24 23:22:00 +00:00
BurdetteLamar
5ee947314e [ruby/net-http] Enhanced RDoc for Net::HTTPHeader
86b0514239
2022-11-23 17:12:35 +00:00
BurdetteLamar
4b32ed6e33 [ruby/net-http] Enhanced RDoc for Net::HTTPHeader
ef0ef53b0c
2022-11-23 17:12:34 +00:00
BurdetteLamar
79a9280aa5 [ruby/net-http] Enhanced RDoc for Net::HTTPHeader
0af9fb94a9
2022-11-23 17:12:33 +00:00
BurdetteLamar
c6dc126641 [ruby/net-http] Enhanced RDoc for Net::HTTPHeader
995ff356b4
2022-11-23 17:12:33 +00:00
BurdetteLamar
66be0922b7 [ruby/net-http] Enhanced RDoc for Net::HTTPHeader
e924f1205b
2022-11-23 17:12:32 +00:00
Hiroshi SHIBATA
805d70f716 [ruby/cgi] Bump up 0.3.5
daf88c2a75
2022-11-22 02:12:50 +00:00
Nobuyoshi Nakada
58682b6980 [ruby/cgi] Relax domain label restrictions
b46d41c363
2022-11-22 02:12:50 +00:00
Hiroshi SHIBATA
3f960cf445 [ruby/cgi] Bump up 0.3.4
3649a27bf4
2022-11-22 02:00:11 +00:00
Yusuke Endoh
0e75b2f2e6 [ruby/cgi] Prevent CRLF injection
Throw a RuntimeError if the HTTP response header contains CR or LF to
prevent HTTP response splitting.

https://hackerone.com/reports/1204695

64c5045c0a
2022-11-22 02:00:11 +00:00
Nobuyoshi Nakada
c05f85f373 [ruby/cgi] Check cookie name/path/domain characters
https://hackerone.com/reports/1204977

30107a4797
2022-11-22 02:00:10 +00:00
Nobuyoshi Nakada
612aa5c24a
Use class methods of File over Kernel.open and IO.read 2022-11-21 22:16:49 +09:00
Nobuyoshi Nakada
116920cff8 [ruby/un] Use class methods of File over Kernel.open
13bdd766fe
2022-11-21 13:15:48 +00:00
Nobuyoshi Nakada
e2b15461a7 [ruby/optparse] Use class methods of File over IO
ab5073e4d8
2022-11-21 10:26:42 +00:00
Takashi Kokubun
c9fbc779a6 [ruby/irb] Add commands to start and use the debugger
(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

976100c1c2
2022-11-21 08:46:27 +00:00
Takashi Kokubun
509f04ca91 [ruby/irb] Version 1.5.0
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.

85937d71f6
2022-11-20 21:24:25 -08:00
Stan Lo
180ed611b2 [ruby/irb] Add edit command (https://github.com/ruby/irb/pull/453)
* Add edit command

* Make find_source a public singleton method

* Add document for the edit command

* Make find_end private

* Remove duplicated private

4321674aa7
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
2022-11-20 04:47:54 +00:00
Takashi Kokubun
5958c305e5 [ruby/irb] Document a full list of commands
(https://github.com/ruby/irb/pull/451)

* Document a full list of commands

* Document debug as well

* Make it less duplicated
2022-11-19 22:14:44 +00:00
Takashi Kokubun
23750c866a [ruby/irb] Update documentation about Autocompletion
(https://github.com/ruby/irb/pull/452)

e6b4917750
2022-11-19 22:10:09 +00:00
BurdetteLamar
909ea6b60d [ruby/net-http] About the Examples moved to separate file
0512b5bfc9
2022-11-19 15:33:28 +00:00
BurdetteLamar
e6162728f6 [ruby/net-http] Enhanced RDoc for Net::HTTP 2022-11-19 10:25:12 -05:00
Burdette Lamar
2047636af8 [ruby/net-http] Update lib/net/http/request.rb
e3c9011edb

Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2022-11-19 10:17:54 -05:00
BurdetteLamar
dbb902fc91 [ruby/net-http] Enhanced RDoc for Net::HTTP
4444e8cea4
2022-11-19 10:17:54 -05:00
BurdetteLamar
951eabdcf2 [ruby/net-http] Enhanced RDoc for Net::HTTP
6b30c5310b
2022-11-19 10:17:53 -05:00
Takashi Kokubun
ba3b40a9ae [ruby/irb] Discover and load debug.gem even if it's not in Gemfile
(https://github.com/ruby/irb/pull/448)

* Minor fixes on debug command

* Discover and load debug.gem even if it's not in Gemfile

* Eliminate else for rescue

* Discover the latest one from all gem paths
2022-11-18 18:03:33 +00:00
Takashi Kokubun
b1cbc883f2 [ruby/irb] Minor fixes on debug command
(https://github.com/ruby/irb/pull/447)

* Minor fixes on debug command

* Update lib/irb/cmd/debug.rb
2022-11-18 17:34:42 +00:00
Stan Lo
00872d120b [ruby/irb] Add debug command (https://github.com/ruby/irb/pull/446)
30faa13fa3
2022-11-18 09:11:23 +00:00
Takashi Kokubun
d8202a52a5 [ruby/irb] Add an option to suppress code_around_binding
(https://github.com/ruby/irb/pull/444)

for debug.gem's `irb` command
2022-11-18 00:47:53 +00:00
Hiroshi SHIBATA
c76909e551 [ruby/irb] Bump up 1.4.3
1bddbbf602
2022-11-17 04:52:50 +00:00
st0012
923c1aaed7
Drop Ruby 2.5 support
Because it has reached EOL for more than 1.5 years and it won't be
supported by the next reline version either.
2022-11-17 13:06:32 +09:00
Patrick Plenefisch
e61b3e6f43 [ruby/irb] Fix https://github.com/ruby/irb/pull/295: Ignore Java
package reference objects in
JRuby

84d030182d
2022-11-17 03:39:04 +00:00
Takashi Kokubun
cd2da09410 MJIT: Refactor BitField dereference a little 2022-11-15 21:59:38 -08:00
st0012
aecb7f6efc [ruby/irb] Deprecate USE_RELINE and USE_REIDLINE
Based on this commit: 93f87ec653

It appears that the maintainer @aycabta wanted to deprecate any `USE_*LINE` configs in favor of
`USE_MULTILINE`. So we should deprecate `USE_RELINE` as well.

478f19f3ae
2022-11-15 10:08:30 +00:00
st0012
34320d883f [ruby/irb] Deprecate reidline flags
9957e83f7d
2022-11-15 10:08:29 +00:00
st0012
4f348e482c [ruby/irb] Rename leftover Reidline references
0ed8b103ed
2022-11-15 10:08:28 +00:00
Takashi Kokubun
1a9e87fe3a
MJIT: Fix vm_cc_cme(cc).def.type to use bit field
access properly. Because the libclang node had two children, it wasn't
handled well by the pattern matching for the bit field case.

In addition to that, this bit field has a non-1 width. Because we're
returning true/false for a width-1 bit field, I added another behavior
that works like a char value for bit fields with width 2-8.
2022-11-15 00:34:00 -08:00
Takashi Kokubun
f500ca9b8a
Handle more MJIT compilation failures
NotImplementedError is not part StandardError, for example. When that
kind of exception happens, current_cc_unit remains not NULL, and
mjit_finish ends up waiting for 5 seconds, which is inconvenient.
2022-11-15 00:18:13 -08:00
Johnny Willemsen
2652bc3578 [ruby/racc] Update racc.gemspec
Updated homepage to https://github.com/ruby/racc
2022-11-15 08:15:19 +00:00
Takashi Kokubun
69e47b7fa6
MJIT: Remove reference to ROBJECT_EMBED_LEN_MAX
maybe not used since some shape changes?
2022-11-14 23:39:38 -08:00
Aaron Patterson
b7d591643a Remove USE_RVARGC code
We don't need this constant to be exposed anymore, so remove it
2022-11-14 15:42:11 -08:00
Shohei YOSHIDA
6cd0553ab7 [rubygems/rubygems] Update comment by the review comment
7c54dc56f6
2022-11-14 23:39:32 +00:00