Burdette Lamar
448ff162c4
[DOC] Adding font usage to doc guide ( #8255 )
2023-08-23 10:09:24 -04:00
Nobuyoshi Nakada
129663c4a8
tool/lib/output.rb: Make --color
option like GNU coreutils
2023-08-23 19:40:56 +09:00
Nobuyoshi Nakada
de4a1ca792
tool/lib/output.rb: Add --create-only
and --overwrite
options
2023-08-23 19:40:56 +09:00
Nobuyoshi Nakada
f1c6da65f4
tool/lib/output.rb: Add --no-color
option
2023-08-23 19:40:55 +09:00
Takashi Kokubun
e89150b1d4
Render YARP templates into the build directory ( #8266 )
2023-08-22 21:56:51 -07:00
Jeremy Evans
347993e95c
Call ruby_init_setproctitle before process_options
...
Fixes [Bug #11269 ]
2023-08-22 21:45:20 -07:00
eileencodes
b92d599eec
Fix typo in anonymous class string
...
If anonymous was shorted it should be `anon` not `annon`. Fixes typo in
APPEND_S for anonymous classes.
2023-08-23 13:09:18 +09:00
yui-knk
00054de6b5
Remove nd_entry from NODE_GASGN and NODE_GVAR
...
After a0f12a0258e4020bd657ee80b7d8f22bd33ea223 NODE_GASGN and
NODE_GVAR hold same value on both nd_vid and nd_entry.
This commit stops setting value to nd_entry and makes to use only
nd_vid.
2023-08-23 07:59:54 +09:00
Alan Wu
ff55238913
YJIT: x64: Split mem-to-mem Insn::Store like Insn::Mov
...
The ARM backend allows for this so let's make x64 consistent.
2023-08-22 18:43:56 -04:00
Maxime Chevalier-Boisvert
c23e2e19b7
YJIT: add code_region_overhead stat output ( #8262 )
2023-08-22 17:36:12 -04:00
Benoit Daloze
2d75069779
[ruby/yarp] Use require_relative for yarp/ffi
...
https://github.com/ruby/yarp/commit/c0598f8805
2023-08-22 21:19:09 +00:00
Peter Zhu
837c12b0c8
Use STR_EMBED_P instead of testing STR_NOEMBED
2023-08-22 16:31:36 -04:00
Jemma Issroff
9b373fb428
[ruby/yarp] Fix small typo in templating to specify where template comes from
...
https://github.com/ruby/yarp/commit/96d69ceef6
2023-08-22 18:04:59 +00:00
Nobuyoshi Nakada
7127f39bac
Add notes and name a magic number
2023-08-22 23:46:32 +09:00
yui-knk
0ed3624c62
Wrap nd_head in node dump message with brackets
2023-08-22 20:01:25 +09:00
Hiroshi SHIBATA
1c93288f8b
Added bigdecimal to warning targets for the bundled gems.
...
[Bug #19843 ]
2023-08-22 14:35:25 +09:00
Takashi Kokubun
ceafdb5a23
Place -a in the correct location [ci skip]
...
It doesn't use optparse, so the location is not flexible.
2023-08-21 21:46:53 -07:00
git
ccc80043db
Update default gems list at eec7a3f9ee0a40f4f5e22e0131c3ac [ci skip]
2023-08-22 04:46:44 +00:00
Takashi Kokubun
eec7a3f9ee
[ruby/erb] Version 4.0.3
...
https://github.com/ruby/erb/commit/c594f2fb86
2023-08-21 21:45:55 -07:00
Takashi Kokubun
be889b6d6c
Add a forgotten default value for ignored_paths
2023-08-21 21:45:33 -07:00
Josh Nichols
0955ca342e
[ruby/erb] Enable frozen_string_literal in all files
...
(https://github.com/ruby/erb/pull/49 )
I was surprised to see erb show up when I was using memory_profiler on
my app. ERB::Compiler#compile has a blank string literal, and it
ended up allocating some 41532 blank strings for a relatively small surface
area.
https://github.com/ruby/erb/commit/b7e45c2bdc
2023-08-22 04:41:22 +00:00
Takashi Kokubun
925ce3f4fb
Skip commits that are empty after conflict resolution
2023-08-21 13:30:41 -07:00
Maxime Chevalier-Boisvert
eee83af34c
Update yjit.md, document --yjit-stats=quiet
2023-08-21 16:24:06 -04:00
Takashi Kokubun
2502821abb
Exclude docs/ from YARP sync
2023-08-21 13:17:59 -07:00
Gaurav Khanna
b9ef819116
[rubygems/rubygems] Support ruby file: ".tool-versions"
in Gemfile
...
(https://github.com/rubygems/rubygems/pull/6898 )
Supports .tool-versions (ASDF) by checking for a line starting with "ruby"
before falling back to reading the entire file, as in .ruby-version.
https://github.com/rubygems/rubygems/commit/6c0a3e793a
2023-08-21 20:14:35 +00:00
Mike Dalessio
95e29b0423
[ruby/yarp] fix: avoid invalid memory read when CR is present without LF
...
https://github.com/ruby/yarp/commit/2296c037de
2023-08-21 19:00:55 +00:00
Mike Dalessio
461f8eaba7
[ruby/yarp] fix: parsing a '%' expression with a CR but not a newline
...
Previously this failed an assertion and aborted.
https://github.com/ruby/yarp/commit/a037d942a8
2023-08-21 19:00:52 +00:00
Stan Lo
ca6db02c2a
[ruby/irb] Avoid overriding user's irb_name
setting in debugger
...
integration
(https://github.com/ruby/irb/pull/688 )
* Avoid overriding user's irb_name setting in debugger integration
Instead of always setting `irb_name` to `irb:rdbg`, it should respect
the user's setting and only append `:rdbg` to it.
* Introduce write_rc test helper
https://github.com/ruby/irb/commit/2ce7593351
2023-08-21 18:23:32 +00:00
Jemma Issroff
7d26c03267
Manually resync YARP
...
YARP commits were synced out of order. We are doing this reset
commit to ensure that all files are currently correct and we can
proceed with monitoring syncs so this doesn't happen again.
2023-08-21 10:45:56 -07:00
Mike Dalessio
2cecd3c8c1
[ruby/yarp] fix: newline tracking for nl-terminated % %q %Q
...
https://github.com/ruby/yarp/commit/1e4940864b
2023-08-21 10:43:25 -07:00
Mike Dalessio
9ca547b9fe
[ruby/yarp] prefactor: extract yp_newline_list_check_append
...
https://github.com/ruby/yarp/commit/149c74291b
2023-08-21 10:43:24 -07:00
Mike Dalessio
926857eb1e
[ruby/yarp] fix: support newline-terminated regular expressions
...
Previously, parsing a snippet like this:
%r\nfoo\n
would result in tracking the second newline twice, resulting in a
failed runtime assertion.
Fixing that issue reveals another bug, which is that the _first_
newline was not being tracked at all. So we introduce a call to
yp_newline_list right when we construct the REGEXP_BEGIN token.
https://github.com/ruby/yarp/commit/0d5d759091
2023-08-21 10:43:23 -07:00
Kevin Newton
e63bac3128
[ruby/yarp] Rename statements to body where appropriate
...
https://github.com/ruby/yarp/commit/0aa7d9d10c
2023-08-21 10:43:21 -07:00
Kevin Newton
a7f40fc2d7
[ruby/yarp] Change AndWriteNode, OrWriteNode, OperatorWriteNode to contain write nodes
...
It makes it more difficult to find all locations where a variable
is written to if they're just read nodes. To keep things consistent
we should make them write nodes.
https://github.com/ruby/yarp/commit/840e094045
2023-08-21 10:43:18 -07:00
Kevin Newton
988b0108fb
[ruby/yarp] Consolidate OperatorAndWrite and OperatorOrWrite nodes
...
https://github.com/ruby/yarp/commit/9e680a7598
2023-08-21 10:43:16 -07:00
HParker
339b34be47
[ruby/yarp] handle missing HEREDOC endline at start of heredoc
...
https://github.com/ruby/yarp/commit/7b72493b6d
2023-08-21 10:43:15 -07:00
Kevin Newton
4fb2b3b6bf
[ruby/yarp] Ensure correct location with if/elsif, allow FOCUS env var, fix newlines on __END__
...
https://github.com/ruby/yarp/commit/9da0bc4452
2023-08-21 10:43:13 -07:00
Kevin Newton
0fd57ee01d
[ruby/yarp] Handle interpolated regular expressions with the o flag for locals checking
...
https://github.com/ruby/yarp/commit/db95191207
2023-08-21 10:43:12 -07:00
Kevin Newton
524d99daaf
[ruby/yarp] Update to latest unparser
...
https://github.com/ruby/yarp/commit/5ba7394261
2023-08-21 10:43:11 -07:00
Kevin Newton
289c0da5b7
[ruby/yarp] Update to latest whitequark
...
https://github.com/ruby/yarp/commit/3607efb01d
2023-08-21 10:43:09 -07:00
Mike Dalessio
05c59995fa
[ruby/yarp] fix: newline tracking for nl-terminated % %q %Q
...
https://github.com/ruby/yarp/commit/1e4940864b
2023-08-21 10:33:45 -07:00
Mike Dalessio
dcc8afe9a4
[ruby/yarp] prefactor: extract yp_newline_list_check_append
...
https://github.com/ruby/yarp/commit/149c74291b
2023-08-21 10:33:43 -07:00
Jemma Issroff
67cd60ed97
Manually move files from test/snapshots to test/yarp/snapshots
2023-08-21 10:32:12 -07:00
Alan Wu
817ffa8ec4
YJIT: Remove unnecessary roundtrip conversion
2023-08-21 12:52:34 -04:00
Mike Dalessio
ac819f4db9
[ruby/yarp] fix: support newline-terminated regular expressions
...
Previously, parsing a snippet like this:
%r\nfoo\n
would result in tracking the second newline twice, resulting in a
failed runtime assertion.
Fixing that issue reveals another bug, which is that the _first_
newline was not being tracked at all. So we introduce a call to
yp_newline_list right when we construct the REGEXP_BEGIN token.
https://github.com/ruby/yarp/commit/0d5d759091
2023-08-21 12:22:53 -04:00
Kevin Newton
f83c1d62bd
[ruby/yarp] Update to latest seattlerb
...
https://github.com/ruby/yarp/commit/d5365f08d0
2023-08-21 12:20:11 -04:00
Kevin Newton
0c61406319
Fix YARP sync
2023-08-21 12:20:07 -04:00
Stan Lo
86ac17efde
[ruby/irb] Move input processing out of RubyLex
...
(https://github.com/ruby/irb/pull/683 )
* Add a test case for Ctrl-C handling
* Test symbol aliases with integration tests
There are a few places that also need to check symbol aliases before
`Irb#eval_input`. But since the current command test skip them, we
don't have test coverage on them.
* Move each_top_level_statement and readmultiline to Irb
This will save RubyLex from knowning information about commands and aliases.
https://github.com/ruby/irb/commit/69cb5b5615
2023-08-21 15:42:15 +00:00
Benoit Daloze
2929c47243
[ruby/yarp] Add a convenience value method for numeric literals
...
https://github.com/ruby/yarp/commit/a328f27d8f
2023-08-21 15:25:28 +00:00
Peter Zhu
196116e576
Refactor rb_ensure_iv_list_size
...
We don't really need obj_ivar_heap_alloc and obj_ivar_heap_realloc since
they're just one liners.
2023-08-21 09:13:36 -04:00