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
Nobuyoshi Nakada
8326bf1a21
[rubygems/rubygems] Confirm verification warnings
...
Fix up https://github.com/rubygems/rubygems/pull/6882
https://github.com/rubygems/rubygems/commit/71c73ac6d9
2023-08-21 04:46:08 +00:00
Benoit Daloze
55f930aa7e
[ruby/yarp] Use node kind for Ruby types
...
* For example in ProgramNode:
# attr_reader statements: Node
=>
# attr_reader statements: StatementsNode
https://github.com/ruby/yarp/commit/ffed35238c
2023-08-20 17:32:57 +00:00
Summer ☀️
725ca2f9d8
[ruby/irb] Support VISUAL
env var, and prefer it over EDITOR
...
(https://github.com/ruby/irb/pull/686 )
* Support `VISUAL` env var, and prefer it over `EDITOR`
* Update test/irb/test_cmd.rb
---------
https://github.com/ruby/irb/commit/399b872c31
Co-authored-by: Stan Lo <stan001212@gmail.com>
2023-08-20 17:22:01 +00:00
git
5c75dc51b7
Update default gems list at 314ccdd60c5fe3dfa90651d271209e [ci skip]
2023-08-20 17:17:10 +00:00
Stan Lo
314ccdd60c
[ruby/reline] Bump version to 0.3.8
...
(https://github.com/ruby/reline/pull/582 )
https://github.com/ruby/reline/commit/3840d1f958
2023-08-20 17:16:22 +00:00
tomoya ishida
405c295a21
[ruby/reline] Use fdiv for keyseq_timeout msec to sec conversion
...
(https://github.com/ruby/reline/pull/583 )
https://github.com/ruby/reline/commit/a6504acd63
2023-08-20 17:03:32 +00:00
Nobuyoshi Nakada
812272bdb2
Tempfile is not needed
2023-08-20 20:12:45 +09:00
Nobuyoshi Nakada
f0923164d8
Align the type of num_entries
to st_table
2023-08-20 20:12:44 +09:00
Stan Lo
7c226291d3
[ruby/reline] Remove Timeout usage
...
(https://github.com/ruby/reline/pull/580 )
Timeout's implementation relies on Thread, which would conflict with
`ruby/debug`'s thread-freezing implementation and has casued issues like
- ruby/debug#877
- ruby/debug#934
- ruby/debug#1000
This commit avoids the issue by completely removing the use of Timeout.
https://github.com/ruby/reline/commit/d4f0cd3fe1
2023-08-20 10:40:55 +00:00
Josh Nichols
3544200513
[rubygems/rubygems] fix lint
...
https://github.com/rubygems/rubygems/commit/75c0f27b7e
2023-08-20 09:07:11 +00:00
Josh Nichols
7c4431e61c
[rubygems/rubygems] use a one-liner
...
https://github.com/rubygems/rubygems/commit/46745885e8
2023-08-20 09:07:05 +00:00
Josh Nichols
e5efa01c7d
[rubygems/rubygems] handle removing BUNDLE_
, since using start_with? would still include that
...
https://github.com/rubygems/rubygems/commit/235d9b38d8
2023-08-20 09:07:00 +00:00
Martin Emde
f0bf9391dc
[rubygems/rubygems] Don't rely on globals when not matching regexp for "local."
...
https://github.com/rubygems/rubygems/commit/e79ccdafd8
2023-08-20 09:06:54 +00:00
Josh Nichols
b5a0630cd0
[rubygems/rubygems] Use ! methods once we have a new copy of the string. Use .prepend to avoid allocating a new string.
...
https://github.com/rubygems/rubygems/commit/2ac35a661f
2023-08-20 09:06:48 +00:00
Josh Nichols
29aab66e6b
[rubygems/rubygems] call key.to_s once instead of multiple times to save when it's a symbol
...
https://github.com/rubygems/rubygems/commit/535feb817c
2023-08-20 09:06:43 +00:00
Josh Nichols
239e35254b
[rubygems/rubygems] Use value.match? only on Strings, which avoids allocating a matchdata, which is not used
...
https://github.com/rubygems/rubygems/commit/cbf9ac93d7
2023-08-20 09:06:36 +00:00
Josh Nichols
598048e3dd
[rubygems/rubygems] Use .to_s once in the beginning to save allocations if it's a symbol.
...
https://github.com/rubygems/rubygems/commit/f8167db8a2
2023-08-20 09:06:31 +00:00
Josh Nichols
e921efa476
[rubygems/rubygems] name is often a symbol, so only to_s once to avoid allocating it multiple times
...
https://github.com/rubygems/rubygems/commit/8eac49c429
2023-08-20 09:06:25 +00:00
Josh Nichols
7cb6cbee95
[rubygems/rubygems] String#start_with? is faster than regex with beginning boundaries
...
https://github.com/rubygems/rubygems/commit/d7cde68034
2023-08-20 09:06:19 +00:00
Josh Nichols
b97e45d01a
[rubygems/rubygems] Use ! methods on the array, since it is brand new. The individual keys are also new, so we can use ! methods on each individual one as well.
...
https://github.com/rubygems/rubygems/commit/f2e912b9bb
2023-08-20 09:06:12 +00:00
Josh Nichols
2a61e1dccc
[rubygems/rubygems] Use Array#union to join these, instead of with | multiple times. This saves allocating 2 arrays
...
https://github.com/rubygems/rubygems/commit/48c03b33b7
2023-08-20 09:06:07 +00:00
Josh Nichols
79b187a45e
[rubygems/rubygems] config is a new Hash, and config.values is a new Array. that means we can use bang methods to avoid allocating new copies
...
https://github.com/rubygems/rubygems/commit/8bc13fa55f
2023-08-20 09:06:01 +00:00
Josh Nichols
921c2bba4e
[rubygems/rubygems] ENV.to_h returns a new hash, so we can select!
it to avoid allocating another hash.
...
`String#start_with?` is faster than regex that is bound to the start of
a string.
https://github.com/rubygems/rubygems/commit/9b2006ef09
2023-08-20 09:05:56 +00:00
Samuel Giddins
7e5c3ec5b1
Update specification.rb
...
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
2023-08-20 09:05:29 +00:00
Samuel Giddins
b68be40e24
[rubygems/rubygems] Use assert_raise instead of assert_raises
...
For ruby-core compat
https://github.com/rubygems/rubygems/commit/83aa7b794e
2023-08-20 09:05:23 +00:00
Samuel Giddins
1935433f5f
[rubygems/rubygems] Ensure that loading multiple gemspecs with legacy YAML class references does not warn
...
Before this, you would get constant redefinition warnings on Psych::DefaultKey
Additionally, ensure the retries wont continue infinitely in the case of the ArgumentError not being caused by Marshal trying to load the undefined classes
https://github.com/rubygems/rubygems/commit/919e8c2de4
2023-08-20 09:05:17 +00:00
Akira Matsuda
f69f775f24
[rubygems/rubygems] choose_from_list may return nil index since
...
https://github.com/rubygems/rubygems/commit/abacb0cb34cd
https://github.com/rubygems/rubygems/commit/5e2e9d6e50
2023-08-20 09:04:38 +00:00
Nobuyoshi Nakada
d5ffbca5c4
Move MKSTR
markers for fake.rb into coments
2023-08-20 13:29:42 +09:00
Nobuyoshi Nakada
70ce3c8947
[rubygems/rubygems] Fix leaked tempfiles
...
Fix up https://github.com/rubygems/rubygems/pull/6882
https://github.com/rubygems/rubygems/commit/525b94a89f
2023-08-19 18:02:39 +00:00
git
795587386c
Update default gems list at bd440bf85d6eff5ecf5132e93a0721 [ci skip]
2023-08-19 01:14:50 +00:00
Kevin Newton
bd440bf85d
[ruby/yarp] Bump to version 0.8.0
...
https://github.com/ruby/yarp/commit/bfde753702
2023-08-19 01:14:10 +00:00
Kevin Newton
1d0b627b70
[ruby/yarp] Rename statements to body where appropriate
...
https://github.com/ruby/yarp/commit/0aa7d9d10c
2023-08-19 01:04:04 +00:00
ywenc
3dff315ed3
YJIT: Quiet mode when running with --yjit-stats
( #8251 )
...
Quiet mode for running with --yjit-stats
2023-08-18 18:27:59 -04:00
Kevin Newton
07833049df
[ruby/yarp] Consolidate operator write nodes
...
https://github.com/ruby/yarp/commit/22b287e2b1
2023-08-18 20:25:00 +00:00
Kevin Newton
ec47fc9539
[ruby/yarp] Consolidate OperatorAndWrite and OperatorOrWrite nodes
...
https://github.com/ruby/yarp/commit/9e680a7598
2023-08-18 20:24:56 +00:00
Ngan Pham
3d7a030112
[rubygems/rubygems] Resolve ruby version file relative to bundle root
...
This is a follow up to https://github.com/rubygems/rubygems/issues/6742 .
This change makes it so that the version file is resolved relative to
the Bundle root instead of the working directory.
Why is this useful?
If you run a commnad (eg `rails`) from the `app/` directory, your bundle
would fail to load.
https://github.com/rubygems/rubygems/commit/6d47ee98b9
2023-08-18 19:14:14 +00:00
Mike Dalessio
e1505aebf2
[ruby/yarp] fix: multiple heredocs with embedded expressions with newlines
...
Set heredoc_end to NULL at the start of lexing a heredoc, to avoid
having state from the previous heredoc confuse the parser's current
location.
https://github.com/ruby/yarp/commit/21ee304f0e
2023-08-18 18:30:49 +00:00
HParker
db076d8e84
[ruby/yarp] handle missing HEREDOC endline at start of heredoc
...
https://github.com/ruby/yarp/commit/7b72493b6d
2023-08-18 18:05:09 +00:00
John Hong
744bc4d5d0
[rubygems/rubygems] Make nil a valid license spec
...
https://github.com/rubygems/rubygems/commit/675effb67e
2023-08-18 16:42:49 +00:00
Alan Wu
4524aeba2f
YJIT: Fix return type of Integer#/ with T_FIXNUM inputs
...
Issue found by running ruby/spec with `--yjit-verify-ctx`. Thanks!
2023-08-18 12:17:37 -04:00
Peter Zhu
c8d6419985
Refactor ary_make_partial
2023-08-18 10:25:36 -04:00
Maxime Chevalier-Boisvert
314eed8a5e
YJIT: implement fast path for integer multiplication in opt_mult ( #8204 )
...
* YJIT: implement fast path for integer multiplication in opt_mult
* Update yjit/src/codegen.rs
Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
* Implement mul with overflow checking on arm64
* Fix missing semicolon
* Add arm splitting for lshift, rshift, urshift
---------
Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
2023-08-18 10:05:32 -04:00
Peter Zhu
724223b4ca
Don't check for STR_NOEMBED in rb_fstring
...
We don't need to check for STR_NOEMBED because the check above for
STR_EMBED_P means that it can never be false.
2023-08-18 09:24:45 -04:00
Mike Dalessio
2800d1fd37
[ruby/yarp] fix: unterminated % in arguments
...
https://github.com/ruby/yarp/commit/efb3102369
2023-08-18 12:51:14 +00:00
License Update
20106fe227
[rubygems/rubygems] Update SPDX license list as of 2023-06-18
...
https://github.com/rubygems/rubygems/commit/3db9165335
2023-08-18 08:21:13 +00:00
Takashi Kokubun
57dfd5c245
Revert "Fix tool/update-deps for YARP files"
...
This reverts commit 6fff5c5ba23a2790c9d189de82e157c9fa986f96.
Revert "Use $(top_srcdir) entries for mswin (#8244 )"
This reverts commit e327bf32bdfa610a0f1834048bb1422de992c073.
Revert "Update dependencies"
This reverts commit aba26a88040c322a188292447fd18a2b9c76c713.
Revert "Use {$(VPATH)} for OpenBSD"
This reverts commit 2046e054bc811fd6a8e30c926aa6c9c4a5884262.
---
None of those revisions actually worked for both mswin and OpenBSD at
the same time. I need more time to build something that works for both.
2023-08-18 01:12:41 -07:00
Takashi Kokubun
6fff5c5ba2
Fix tool/update-deps for YARP files
2023-08-18 01:07:05 -07:00
Takashi Kokubun
e327bf32bd
Use $(top_srcdir) entries for mswin ( #8244 )
...
While the $(VPATH) rules live in common.mk, mswin seems to ignore them.
We need to use $(VPATH) for OpenBSD, but we need to use the other one for mswin.
2023-08-18 00:48:13 -07:00
Takashi Kokubun
aba26a8804
Update dependencies
2023-08-18 00:34:36 -07:00