81932 Commits

Author SHA1 Message Date
Takashi Kokubun
0f1c7e3bcb
RJIT: Just skip generating code for aarch64/arm64 (#9221) 2023-12-13 09:36:06 -08:00
tomoya ishida
c83a648fc8 [ruby/irb] Remove unused lvar in mesure command test
(https://github.com/ruby/irb/pull/814)

https://github.com/ruby/irb/commit/320178b120
2023-12-13 17:05:35 +00:00
David Rodríguez
a4b43e9264 [rubygems/rubygems] Add missing resolv, timeout, and net-protocol licenses
https://github.com/rubygems/rubygems/commit/00694651a3
2023-12-13 15:47:43 +00:00
Peter Zhu
f8ddcecbdf [Bug #20061] Clear mark bits when rb_free_on_exit
When compiling with cppflags=-DRGENGC_CHECK_MODE, the following crashes:

```
$ RUBY_FREE_ON_EXIT=1 ./miniruby -e 0
-e: [BUG] obj_free: RVALUE_MARKED(0x0000000103570020 [3LM    ] T_CLASS (anon)) != FALSE
```

This commit clears the mark bits when rb_free_on_exit is enabled.
2023-12-13 10:39:06 -05:00
Jeremy Evans
0d53dba7ce Make String#chomp! raise ArgumentError for 2+ arguments if string is empty
String#chomp! returned nil without checking the number of passed
arguments in this case.
2023-12-13 07:05:21 -08:00
Jeremy Evans
c42e4a38e9 Fix tool/ln_sr.rb passing 2 arguments to String#chomp!
I'm guessing String#sub! was desired here.
2023-12-13 07:05:21 -08:00
Matt Valentine-House
9eba7a0892 [PRISM] Break nodes should add an entry to the parent catch table 2023-12-13 09:33:07 -05:00
Matt Valentine-House
cb8a9851ca [PRISM] Remove errant NOP when redo_label is set 2023-12-13 09:33:07 -05:00
Matt Valentine-House
9267dbdd7a [PRISM] Generate instruction for when redo_label is set 2023-12-13 09:33:07 -05:00
Ufuk Kayserilioglu
f390c51b15 [PRISM] Use PM_KEYWORD_HASH_NODE_FLAGS_STATIC_KEYS flag in compiler 2023-12-13 08:16:11 -05:00
Jemma Issroff
798a89fae1 [PRISM] If receiver on CallNode is SelfNode, use FCALL flags 2023-12-13 08:11:45 -05:00
eileencodes
1ad991c54d [PRISM] Fix attrset edge cases
In some cases code may look like an attrset ID but should actually
return the value of the method, not the passed values.

In ruby/prism#2051 a flag was added when we have a attribute write call.
I used this flag to add the proper instructions when we have a real
attrset instead of using `rb_is_attrset_id` which was kind of hacky
anyway.

The value that should be returned in the newly added test is 42, not 2.
Previously the changes we had made returned 2.

Related to ruby/prism#1715
2023-12-13 08:11:21 -05:00
Alex Koval
36ca99b343 [ruby/prism] fix typo in docs
https://github.com/ruby/prism/commit/d7fbc09345
2023-12-13 12:17:57 +00:00
tomoya ishida
745ab3e4c7 [ruby/irb] Warn and do nothing if block is passed to measure command
(https://github.com/ruby/irb/pull/813)

https://github.com/ruby/irb/commit/e79a90a1e6
2023-12-13 11:06:26 +00:00
Hiroshi SHIBATA
a7ad9f3836
We need only one line for detecting caller gem name 2023-12-13 17:30:48 +09:00
Takashi Kokubun
e282d7b880 Avoid warning --jit when only YJIT is enabled 2023-12-13 00:05:12 -08:00
Nobuyoshi Nakada
75f4a687ed
Fix a typo for RJIT_TARGET_OK (#8222) 2023-12-12 23:28:22 -08:00
Takashi Kokubun
20a09387d1 Skip a GC test for RJIT
It randomly fails like this:
https://github.com/ruby/ruby/actions/runs/7191443542/job/19586164973
2023-12-12 23:24:19 -08:00
git
f49097c842 Update default gems list at 5f5f8dbbb6a7861e9c591ad0914994 [ci skip] 2023-12-13 06:12:18 +00:00
Hiroshi SHIBATA
5f5f8dbbb6 [ruby/resolv] Bump up 0.3.0
https://github.com/ruby/resolv/commit/22153c2a45
2023-12-13 15:11:21 +09:00
git
a66d083bbf Update default gems list at 39023792dbded9250040224accda18 [ci skip] 2023-12-13 05:59:13 +00:00
Hiroshi SHIBATA
39023792db [ruby/io-console] Bump up 0.7.0
https://github.com/ruby/io-console/commit/3e5586e632
2023-12-13 05:58:25 +00:00
git
caef4e98cb Update default gems list at 06edde22f462f736c16ae9038b015f [ci skip] 2023-12-13 05:43:52 +00:00
Hiroshi SHIBATA
06edde22f4 [ruby/io-nonblock] Bump up 0.3.0
https://github.com/ruby/io-nonblock/commit/501e2ffea3
2023-12-13 05:42:58 +00:00
git
02f0aa6137 Update default gems list at 5cabe1e9cc6829d1918c65bf29c4ba [ci skip] 2023-12-13 05:11:39 +00:00
Hiroshi SHIBATA
5cabe1e9cc [ruby/io-wait] Bump up 0.3.1
https://github.com/ruby/io-wait/commit/5ec3db36c8
2023-12-13 05:10:54 +00:00
git
8a8fd32e13 Update default gems list at 12c775c94249b57dadfda0c2de9568 [ci skip] 2023-12-13 05:02:01 +00:00
Hiroshi SHIBATA
12c775c942 [ruby/etc] Bump up 1.4.3
https://github.com/ruby/etc/commit/743c26086d
2023-12-13 05:01:16 +00:00
David Rodríguez
ac939d9ca3 [rubygems/rubygems] Improve default gem handling
If a gem is specified in the Gemfile (or resolved as a transitive
dependency), it's always resolved from remote/installed sources. Default
gems are only used as a fallback for gems not included in the bundle.

I believe this leads to more consistent behavior and more portable apps,
since all gems will be installed to the configured bundle path,
regardless of whether they are default gems or not.

https://github.com/rubygems/rubygems/commit/091b4fcf2b
2023-12-13 13:02:22 +09:00
David Rodríguez
1a7aa5560f [rubygems/rubygems] Refactor bundle info
https://github.com/rubygems/rubygems/commit/0e919eaa87
2023-12-13 13:02:22 +09:00
David Rodríguez
70428247c6 [rubygems/rubygems] Remove dead code
https://github.com/rubygems/rubygems/commit/fad186df39
2023-12-13 13:02:21 +09:00
David Rodríguez
6b3c9cebe9 Normalize bundler bindir
This makes bundler consistent with all other gems, and makes the default
installation of Bundler in the release package look like any other
bundler installation.

Before (on preview3, for example), Bundler executable is installed at:

lib/ruby/gems/3.3.0+0/gems/bundler-2.5.0.dev/libexec/bundle

Now it's installed in the standard location:

lib/ruby/gems/3.3.0+0/gems/bundler-2.5.0.dev/exe/bundle
2023-12-13 12:59:23 +09:00
Hiroshi SHIBATA
866b6fcd69 RubyGems 3.5+ will use vendored net-http 2023-12-13 12:16:55 +09:00
Hiroshi SHIBATA
5015481e53 Removed duplicated LICENSE file 2023-12-13 12:16:55 +09:00
Vít Ondruch
befbcfd90c [rubygems/rubygems] Explain the 3 states options[:user_install] can have.
This was issue previously, so hopefully this comment tries to state this
explicitly for future readers.

https://github.com/rubygems/rubygems/commit/8ccd830f85
2023-12-13 12:16:55 +09:00
Vít Ondruch
1fa5dd883e [rubygems/rubygems] Test if the user dir is used for auto user installation
This is mainly to align this test case with the
`test_process_options_does_not_fallback_to_user_install_when_gem_home_
not_writable_and_no_user_install`, where the `install_dir` is checked
already.

https://github.com/rubygems/rubygems/commit/02b1884b61
2023-12-13 12:16:55 +09:00
Vít Ondruch
402fd96ddc [rubygems/rubygems] Make sure --no-user-install is respected for auto user installation
The `options[:user_install]` might have three states:
* `true`: `--user-install`
* `false`: `--no-user-install` and
* `nil`: option was not specified

However, this had not been respected previously and the `false` and `nil`
were treated the same. This could lead to auto user installation despite
`--no-user-install` being specified on the command line.

Fixes https://github.com/rubygems/rubygems/pull/7237

https://github.com/rubygems/rubygems/commit/9281545474
2023-12-13 12:16:55 +09:00
David Rodríguez
844759ccdb [rubygems/rubygems] Add a spec to cover what vendoring timeout fixes
https://github.com/rubygems/rubygems/commit/2662e45d75
2023-12-13 12:16:55 +09:00
David Rodríguez
5323935f57 [rubygems/rubygems] Remove no longer needed gem install during test
https://github.com/rubygems/rubygems/commit/bdb78d8289
2023-12-13 12:16:55 +09:00
David Rodríguez
20d99a2f5f [rubygems/rubygems] Resolv needs vendoring too
https://github.com/rubygems/rubygems/commit/cdfc6923e4
2023-12-13 12:16:55 +09:00
David Rodríguez
f188a41afe [rubygems/rubygems] Use vendored timeout from RubyGems
https://github.com/rubygems/rubygems/commit/cfc5018c54
2023-12-13 12:16:55 +09:00
David Rodríguez
a7c9163b5d [rubygems/rubygems] Vendor timeout in RubyGems too
https://github.com/rubygems/rubygems/commit/e2e7440ede
2023-12-13 12:16:55 +09:00
David Rodríguez
90317472e8 [rubygems/rubygems] Use vendored net-http in Bundler
https://github.com/rubygems/rubygems/commit/0d758e8926
2023-12-13 12:16:55 +09:00
David Rodríguez
ce924ce1fb [rubygems/rubygems] Vendor net-http and net-protocol in RubyGems
https://github.com/rubygems/rubygems/commit/99d91c9ed2
2023-12-13 12:16:55 +09:00
David Rodríguez
6cefad7704 [rubygems/rubygems] Avoid loading artifice when not necessary
https://github.com/rubygems/rubygems/commit/ef97ad37bd
2023-12-13 12:16:55 +09:00
David Rodríguez
7d5d2eef78 [rubygems/rubygems] Load hax.rb before anything when BUNDLER_IGNORE_DEFAULT_GEM set
https://github.com/rubygems/rubygems/commit/111bd11c36
2023-12-13 12:16:55 +09:00
David Rodríguez
8d1a203664 [rubygems/rubygems] Require rubygems/request where it's used
https://github.com/rubygems/rubygems/commit/73b9498658
2023-12-13 12:16:55 +09:00
Jemma Issroff
196c24620e [PRISM] Correctly parse non-base 10 integers in Prism
This commit passes an `end` to rb_int_parse_cstr which allows us
to correctly parse non-base 10 integers which are enclosed in
parenthesis. Prior to this commit, we were getting a putobject nil
when compiling `(0o0)` for example.
2023-12-12 22:00:50 -05:00
KJ Tsanaktsidis
a2994c300b Add changelog entry for [Feature #20057] 2023-12-13 13:35:05 +11:00
KJ Tsanaktsidis
a8d2d93aff Add a test case for preregistering with different data
We want to make sure that if preregister is called with different data,
that the postponed job table is updated.
2023-12-13 13:35:05 +11:00