git
7da6e9b3ec
* 2021-10-31 [ci skip]
2021-10-31 15:16:45 +09:00
Nobuyoshi Nakada
b7f7117bdc
Rename in_kwarg
as in_argdef
as unrelated to keywords
2021-10-31 13:55:14 +09:00
Nobuyoshi Nakada
1b59ad57ae
Reduce parser stack usage at pattern matching
2021-10-31 13:49:21 +09:00
S.H
a46c220320
Add rb_mod_exc_raise
function and replace duplicate code
2021-10-30 19:24:41 +09:00
Nobuyoshi Nakada
99dad28b7c
Apply the timeout scale to also separated workers
2021-10-30 12:26:06 +09:00
Ulysse Buonomo
1d0ce1a349
[DOC] Fix TracePoint.trace
format [ci skip]
...
Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com>
2021-10-30 10:23:07 +09:00
Yuta Saito
4e0747a8a2
Allow the thread-model to be switched by configure option
...
This change adds --with-thread=IMPL option to the configure. If not
supplied, default implementation for each platform will be used.
2021-10-30 10:18:33 +09:00
Yuta Saito
8590d61ea9
Select including thread impl file at config time
2021-10-30 10:18:33 +09:00
Yuta Saito
ccda26efe7
Split thread-model config into another ac file
...
This is a first step to allow the thread-model implementation to be
switched by configure's option
2021-10-30 10:18:33 +09:00
180909
6c812c6f4e
add missing http response code in doc
2021-10-30 10:16:17 +09:00
Jeremy Evans
2898805535
Use rdoc-ref to fix a few links in the README
...
This may break linking on GitHub, but it's more important for the
links to work in the documentation generated by rdoc.
Fixes [Bug #14743 ]
2021-10-30 10:15:40 +09:00
Peter Leitzen
09bdb43567
Clarify docs about magic comments placement
...
Magic comments like `frozen_string_literal` may appear everywhere
within the first comment section while `encoding` have to be the first
line, or second line after shebang.
2021-10-30 09:59:59 +09:00
David Rodríguez
f634d1ee00
[rubygems/rubygems] Better error when installing a git lockfile and git not present
...
https://github.com/rubygems/rubygems/commit/28f4842196
2021-10-30 06:11:39 +09:00
Benoit Daloze
a954f273a8
Cleanup GC.auto_compact spec
...
* Make the supported check more obvious.
2021-10-29 21:59:35 +02:00
Benoit Daloze
800dad6297
Skip GC.auto_compact= spec for platforms not supporting it
...
* See https://github.com/ruby/spec/pull/891
2021-10-29 21:54:17 +02:00
Maxime Chevalier-Boisvert
2e14fb7df7
Add comments about send method types ( #5059 )
2021-10-29 14:58:49 -04:00
Nobuyoshi Nakada
99c60d4b25
Get rid of exponential backtracks found by CodeQL
...
Since these regexps are used at build/installation, they are not
vulnerabilities.
2021-10-30 02:22:42 +09:00
git
6cee10d8fd
* 2021-10-30 [ci skip]
2021-10-30 00:58:38 +09:00
Matt Valentine-House
d7279f0894
make obj_free return true when it frees an object
...
Previously obj_free returned true when it could not free a slot because
of a finalizer, and false when it successfully frees a slot.
2021-10-29 08:58:22 -07:00
Matt Valentine-House
ed8540ebf4
Prefer size pool heap macros over direct access
2021-10-29 09:17:30 -04:00
Nobuyoshi Nakada
5e52fd4bd1
Preserve the encoding of message from outer local variable
...
In the case of read-only but refering an unshareable object.
2021-10-29 21:40:11 +09:00
Nobuyoshi Nakada
ec2e04c90d
Preserve the encoding of message from outer local variables
2021-10-29 18:53:57 +09:00
Nobuyoshi Nakada
0ad57158c7
Remove redundant calls
...
The ArgumentError should raise in `isolate`.
2021-10-29 18:53:57 +09:00
Josef Šimánek
71b370f6dd
[rubygems/rubygems] Enforce bundler platform (and default gem) to keep invalid gemspec test compatible with ruby-trunk.
...
https://github.com/rubygems/rubygems/commit/a77061d4e9
2021-10-29 18:00:47 +09:00
Josef Šimánek
9b7afd3cff
[rubygems/rubygems] Update mirror_probe realword specs to not rely exactly at raised HTTP exception.
...
- this exception differs across Ruby versions.
https://github.com/rubygems/rubygems/commit/38c6927a5f
2021-10-29 18:00:47 +09:00
Josef Šimánek
0029e0948a
[rubygems/rubygems] Install stringio for standalone spec.
...
- previously it was required already by net/http, but it is not anymore using ruby-trunk
- 996d18a43f
- 364044e090 (diff-a1d29a94def02829fd4f9ba591199acf079e028f5a2002a77c363eb01212e112)
https://github.com/rubygems/rubygems/commit/be1779655a
2021-10-29 18:00:46 +09:00
Josef Šimánek
b179166421
[rubygems/rubygems] Assert NoMethodError message only partialy in downloader_spec.
...
- latest ruby adds error_highlight gem introducing backtrace into exception message
https://github.com/rubygems/rubygems/commit/08c70f9dd0
2021-10-29 18:00:46 +09:00
Josef Šimánek
fd17ae8205
[rubygems/rubygems] Lock racc version in platform_spec.
...
- latest ruby is shipped with racc 1.6 making this spec failing
- this spec is related to platform locking, changing version should not do any harm
https://github.com/rubygems/rubygems/commit/3e18b626cb
2021-10-29 18:00:46 +09:00
Frederik Dudzik
17fb785d15
[rubygems/rubygems] Vendor tsort into rubygems
...
So that it loads a consistent version of the library and `rubygems` is
never affected by gem activation conflicts related to `tsort`.
Getting CI green required updating one `bundler` spec, because `tsort`
is no longer loaded by `bundle clean` until after `BUNDLE_PATH` has been
changed, so to ensure it is found, it needs to be installed under
`BUNDLE_PATH` as well (which will be different from the global system
path on Bundler 3, meaning installing `tsort` to the global system path
is not enough there). This spec workaround can be removed once we also
vendor `tsort` inside `bundler`.
https://github.com/rubygems/rubygems/commit/d326880999
2021-10-29 18:00:46 +09:00
Frederik Dudzik
f45af5f0a4
Support gemification of tsort
...
Co-authored-by: Frederik Dudzik <frederik.dudzik@shopify.com>
Co-authored-by: Jacques Chester <jacques.chester@shopify.com>
2021-10-29 17:32:52 +09:00
Josef Šimánek
a9be84db82
[rubygems/rubygems] Add new default gems to setup_spec exempts.
...
- error_highlight was introduced at e946049665
orriginally as error_squiggle later renamed at 9438c99590
- ruby2_keywords was introduced as a placeholder gem only at 21d2463fbc
https://github.com/rubygems/rubygems/commit/c9ebe7c7d2
2021-10-29 17:22:25 +09:00
David Rodríguez
79f9053599
[rubygems/rubygems] Unskip inline spec that can pass now on the latest rubies
...
https://github.com/rubygems/rubygems/commit/a81d4421b4
2021-10-29 17:13:18 +09:00
Frederik Dudzik
2a90ad7aa5
[rubygems/rubygems] use Rubocop Lint/Debugger check rather than custom spec
...
We have a quality spec that check for debugger statements. Rubocop has a
cop that tests for the same thing. As such it makes sense to remove the
spec and activate the cop.
https://github.com/rubygems/rubygems/commit/dc1eb6eec5
2021-10-29 17:13:03 +09:00
Nobuyoshi Nakada
27220b2fe4
Skip CodeQL if only document files changed [ci skip]
2021-10-29 11:04:58 +09:00
Kazuhiro NISHIYAMA
ffd8592ebc
Update stdlib version
2021-10-29 10:58:56 +09:00
Yusuke Endoh
c1228f833c
vm_core.h: Avoid unaligned access to ic_serial on 32-bit machine
...
This caused Bus error on 32 bit Solaris
2021-10-29 10:57:46 +09:00
Nobuyoshi Nakada
92ad520ad0
Merge macOS CIs to reduce concurrency
...
On GitHub Actions, the macOS runners seem much more expensive than
Ubuntu, and its limit is the most significant bottlenecks for our
CIs. As the "check" tasks usually finish 3 or 4 times faster than
"test-bundler-parallel", it will be balanced by running all three
"check" tasks sequentially.
2021-10-29 10:57:02 +09:00
Nobuyoshi Nakada
96648c5093
Mitigate the timeout of tests [ci skip]
...
* The worker timeouts seem working for test-all.
* The bundled gems have increased.
2021-10-29 10:32:52 +09:00
Burdette Lamar
3e743d3147
Cleanup some RDoc ( #5050 )
...
Mostly adding blank line before and after code segment, to improve compliance with doc\documentation_guide.rdoc.
2021-10-28 17:01:49 -05:00
Nobuyoshi Nakada
9b751db99c
Fix script_lines in loaded iseq as nil
2021-10-29 06:39:57 +09:00
Burdette Lamar
f8bbd608c9
Enhanced RDoc for Numeric ( #4994 )
...
Treats:
#eql?
#<+>
#floor
#ceil
#round
#truncate
#step
2021-10-28 15:11:11 -05:00
Alan Wu
e53d07f583
Rename ::YJIT to RubyVM::YJIT
...
Since the YJIT Ruby module is CRuby specific and not meant for general
use, it should live under RubyVM instead of at top level.
2021-10-28 13:43:02 -04:00
David Rodríguez
d8e97169ba
[rubygems/rubygems] Only delete cached gem when it's corrupted
...
Rescuing all errors here might end up hiding other errors if the
deletion of the cached gem itself raises an error for some reason. Let's
be more conservative.
https://github.com/rubygems/rubygems/commit/3d80dfba08
2021-10-29 02:40:35 +09:00
Koichi Sasada
cbf2078a25
need to mark script_lines
2021-10-29 02:00:06 +09:00
Yusuke Endoh
acb2f86caa
string.c: Add some comments about STR flags
2021-10-29 01:57:29 +09:00
Benoit Daloze
c75df796d8
Update to ruby/spec@21a48d9
2021-10-28 18:54:01 +02:00
git
3bf36979d8
* 2021-10-29 [ci skip]
2021-10-29 00:28:34 +09:00
Nobuyoshi Nakada
0a9cbe8562
Skip tests if only document files changed
2021-10-29 00:22:26 +09:00
osyo-manga
d51ba1e1be
Add changes Enumerable#each_cons and each_slice in NEWS [ci skip]
2021-10-28 18:21:27 +09:00
Nobuyoshi Nakada
e76e1d3ce4
Downloader: retry when RFC 2616 noncompliant dates [ci skip]
...
zlib.net rarely returns the current time in RFC 2616 noncompliant
format in the response header, and the checksum does not match in
that case (maybe creating the tarball on the fly?).
2021-10-28 17:42:36 +09:00