Misaki Shioi
1bfd30a1e3
Relax test conditions to velify Socket::ResolutionError#error_code
...
The test for Socket::ResolutionError#error_code fails in the FreeBSD environment with this test condition. Because Socket::ResolutionError#error_code returns Socket::EAI_FAIL instead of Socket::EAI_FAMILY.
https://rubyci.s3.amazonaws.com/freebsd12/ruby-master/log/20231130T103002Z.fail.html.gz
This PR avoids the test failure by relaxing the condition.
Also changed the domain for testing to `example.com`.
2023-12-01 12:20:03 +09:00
Kevin Newton
e2bbbacc23
[ruby/prism] Correctly pass around const pm_encoding_t *
...
https://github.com/ruby/prism/commit/ce4c67fb3a
2023-11-30 21:37:56 -05:00
Kevin Newton
b4a85e402f
[PRISM] Fix up prism encoding targets
2023-11-30 21:37:56 -05:00
Kevin Newton
99a147ff4f
[ruby/prism] Document remaining encodings
...
https://github.com/ruby/prism/commit/b9510aed40
2023-11-30 21:37:56 -05:00
Kevin Newton
0c277f2b76
[ruby/prism] Group encodings into a single array
...
https://github.com/ruby/prism/commit/f4b7beadc9
2023-11-30 21:37:56 -05:00
Kevin Newton
6b234c1acf
[ruby/prism] Do not expose encodings that do not need to be exposed
...
https://github.com/ruby/prism/commit/c52c7f37ea
2023-11-30 21:37:56 -05:00
Kevin Newton
ea409958b3
[ruby/prism] Remove ability to decode other encodings
...
https://github.com/ruby/prism/commit/98e218d989
2023-11-30 21:37:56 -05:00
Kevin Newton
997083188b
[ruby/prism] Remove public ASCII functions that can now be static
...
https://github.com/ruby/prism/commit/9461384b0c
2023-11-30 21:37:56 -05:00
Kevin Newton
abb1fe2868
[PRISM] Consolidate prism encoding files
2023-11-30 21:37:56 -05:00
Kevin Newton
19a321bff0
[ruby/prism] CESU encoding
...
https://github.com/ruby/prism/commit/2d5b9c2b3c
2023-11-30 21:37:56 -05:00
Kevin Newton
ca26e0e34b
[ruby/prism] EUC-TW encoding
...
https://github.com/ruby/prism/commit/edfb54f039
2023-11-30 21:37:56 -05:00
Kevin Newton
dde0abb29e
[ruby/prism] Shorter function definitions in pm_big5.c
...
https://github.com/ruby/prism/commit/7ddf651bab
2023-11-30 21:37:56 -05:00
Kevin Newton
32249c2cf1
[ruby/prism] GB18030 encoding
...
https://github.com/ruby/prism/commit/ca3ab7ec89
2023-11-30 21:37:56 -05:00
Kevin Newton
a9162a44c5
[ruby/prism] Emacs MULE encodings
...
https://github.com/ruby/prism/commit/4c06b6c42e
2023-11-30 21:37:56 -05:00
Kevin Newton
10d3897e13
[PRISM] Big5 encodings
2023-11-30 21:37:56 -05:00
Kevin Newton
700e172a50
[ruby/prism] EUC-KR encodings
...
https://github.com/ruby/prism/commit/ba5218385a
2023-11-30 21:37:56 -05:00
Kevin Newton
ddaa073058
[ruby/prism] Support other EUC-JP encodings
...
https://github.com/ruby/prism/commit/d040337ce9
2023-11-30 21:37:56 -05:00
Kevin Newton
7b5bb978fb
[PRISM] Alias CP51932 to EUC-JP
2023-11-30 21:37:56 -05:00
Kevin Newton
9ba92327f2
[PRISM] Consolidate SJIS encodings
2023-11-30 21:37:56 -05:00
Kevin Newton
219c3c1c09
[ruby/prism] Add other UTF8 encodings
...
https://github.com/ruby/prism/commit/709fb6e09f
2023-11-30 21:37:56 -05:00
Takashi Kokubun
ba1cdadfc8
YJIT: Cancel on-stack jit_return on invalidation ( #9086 )
...
* YJIT: Cancel on-stack jit_return on invalidation
Co-authored-by: Alan Wu <alansi.xingwu@shopify.com>
* Use RUBY_VM_CONTROL_FRAME_STACK_OVERFLOW_P
---------
Co-authored-by: Alan Wu <alansi.xingwu@shopify.com>
2023-11-30 21:35:55 -05:00
Alan Wu
5888a16a12
YJIT: Use `stats[:live_page_count]`, renamed from :compiled_page_count
...
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
2023-11-30 19:19:43 -05:00
Alan Wu
59f31a6618
NEWS: Adjust indentation for RDoc's markdown parser
...
Indenting by 2 spaces wasn't yielding nested list up as intended. I guess
it's a quirk of RDoc's markdown parser:
https://github.com/ruby/rdoc/blob/v6.6.0/lib/rdoc/markdown.kpeg#L1128-L1130
NonindentSpace = / {0,3}/
Indent = /\t| /
IndentedLine = Indent Line
2023-11-30 18:46:00 -05:00
Alan Wu
c3cb27eede
NEWS update about calling Kernel#lambda with non-literal block
2023-11-30 18:28:11 -05:00
Maxime Chevalier-Boisvert
73e6d8a0d0
YJIT: optimized codegen for `rb_ary_length()` ( #9085 )
...
YJIT: optimized codegen for rb_ary_length()
2023-11-30 17:14:53 -05:00
Peter Zhu
4541e192d9
Add assertions in redblack_balance
...
These assertions check that binary search tree invariants are held for
the new tree.
2023-11-30 16:48:51 -05:00
Matt Valentine-House
0c7c654b4d
[Prism] Fix local variable access for POST_EXECUTION_NODE
2023-11-30 21:31:57 +00:00
Matt Valentine-House
57782d3d47
Store depth offset inside the scope node.
...
Instead of incrementing the depth using call by reference as we're
recursing up the stack we could instead store an offset for each known
scope where we know the depth is going to represented differently in the
Prism ast.
2023-11-30 21:31:57 +00:00
Peter Zhu
a1647c460f
Rename variables redblack_balance
...
It's too difficult for me to keep track that y is the new node, x is the
new left node, z is the new right node, a is the new left left node,
b is the new left right node, c is the new right left node, and d is
the new right right node. This commit refactors the variable names to be
more descriptive.
2023-11-30 15:41:08 -05:00
Ellen Marie Dash
7008d97b76
[rubygems/rubygems] Only show "Defaulting to user installation" message when it matters.
...
https://github.com/rubygems/rubygems/commit/61b0947225
2023-11-30 19:58:40 +00:00
Jeremy Evans
060f14bf62
Update documentation for [[:word:]] and \p{Word} in regexps
...
Onigmo uses Decimal_Number and not Number for these.
Fixes [Bug #19417 ]
2023-11-30 10:40:40 -08:00
Jeremy Evans
f75fef6622
Mention {Queue,SizedQueue}#freeze change in NEWS
2023-11-30 10:34:57 -08:00
Haldun Bayhantopcu
0d1917aead
[ruby/prism] Remove no-op assignment
...
https://github.com/ruby/prism/commit/4b3079d9e8
2023-11-30 17:42:24 +00:00
Alan Wu
85092ecd6f
Fix imemo_env corruption under auto compaction
...
Previously, vm_make_env_each() did:
1. ALLOC env_body
2. Copy locals into env_body
3. Allocate imemo_env
4. Set up imemo_env with env_body
If compaction runs during (3), locals copied to env_body could be
moved and the imemo_env could end up with invalid references.
Move (2) down so it reads references after potential movement.
2023-11-30 11:59:32 -05:00
Takashi Kokubun
d048bae96b
YJIT: Bump ec->cfp after setting cfp->jit_return ( #9072 )
2023-11-30 11:23:25 -05:00
Stan Lo
f193f96d31
[ruby/irb] Page evaluation result's output
...
(https://github.com/ruby/irb/pull/784 )
* Page evaluation result's output
This will make it easier to work with long output that exceeds the terminal's height.
* Use consistent TERM in rendering tests
This makes sure we get consistent result on all platforms.
https://github.com/ruby/irb/commit/4fedce93d3
2023-11-30 15:22:22 +00:00
Nobuyoshi Nakada
cc393b4f80
[ruby/rdoc] Get rid of `Kernel#open`
...
https://github.com/ruby/rdoc/commit/dc56f6d0bd
2023-11-30 15:06:51 +00:00
Jean Boussier
3c5a3b73f1
Highlight some GC improvements in NEWS
...
3.3. got some major GC changes that do translate in very meaningful
performance gains, we should surface that.
2023-11-30 15:48:21 +01:00
Aaron Patterson
630c97acc7
Add a rescue for `defined?(A::B::C)`
...
It's possible for `defined?(A::B::C)` to raise an exception. `defined?`
must swallow the exception and return nil, so this commit adds a rescue
entry for `defined?` expressions on constant paths
2023-11-30 09:48:14 -05:00
sid-707
2c64041ed5
[ruby/prism] Fix typo in comment
...
https://github.com/ruby/prism/commit/eb1a6ba263
2023-11-30 14:10:28 +00:00
Martin Emde
aac8be8034
[ruby/prism] Fix lex_compat for `<<HEREDOC # comment` at EOF
...
Fixes https://github.com/ruby/prism/pull/1874
https://github.com/ruby/prism/commit/304dd78dd2
2023-11-30 14:10:04 +00:00
Nobuyoshi Nakada
1802d14ca8
[Bug #19877 ] Assign captures for direct regexp literal only
2023-11-30 21:40:22 +09:00
Nobuyoshi Nakada
0cdad3b92a
Add `RUBY_REFERENCES`
...
Instead of `RUBY_REFERENCES_START` and `RUBY_REFERENCES_END`, so that
auto-indent works well.
2023-11-30 21:39:28 +09:00
Nobuyoshi Nakada
30f7b7a053
Prefix `REF_EDGE` and `REFS_LIST_PTR` with `RUBY_`
...
Also move `struct` so that `typedef`-ed names can be used.
2023-11-30 21:39:28 +09:00
OKURA Masafumi
18f218d6a1
Add some test cases to Data test
...
I noticed that `deconstruct` and `hash` don't have enough coverage.
The behavior of `hash` is documented so I copied it.
2023-11-30 21:35:04 +09:00
Hiroshi SHIBATA
722cb9a56d
Skip test_resolurion_error_error_code with FreeBSD environment
...
https://rubyci.s3.amazonaws.com/freebsd12/ruby-master/log/20231130T103002Z.fail.html.gz
2023-11-30 20:17:27 +09:00
Yusuke Endoh
e1b65e5f91
Add NEWS entry for the deprecation of subprocess creation/forking
...
[Feature #19630 ]
2023-11-30 19:05:55 +09:00
Kazuhiro NISHIYAMA
f7d268898e
Sort links [ci skip]
2023-11-30 17:39:35 +09:00
Jean Boussier
5259edaff9
Add NEWS entry for WeakMap#delete and `RUBY_CRASH_REPORT`
...
I wasn't too sure where to put `RUBY_CRASH_REPORT`, it's not exactly
a command line option but close enough.
2023-11-30 09:23:31 +01:00
flosacca
30e4778020
[ruby/cgi] Fix unescapeHTML
...
https://github.com/ruby/cgi/commit/67610e6ca8
2023-11-30 08:19:28 +00:00