Commit graph

74217 commits

Author SHA1 Message Date
Nishant Patel
43e925090b [ruby/open-uri] fix: added test case that validates that bad TLS version is silently ignored
4b91b11730
2022-10-06 18:00:58 +09:00
Nishant Patel
cdbaac3f4b [ruby/open-uri] feat: allow option to pass version of SSL / TLS to use during communication. Allow versions are OpenSSL::SSL::SSLContext::METHODS
8729858517
2022-10-06 18:00:57 +09:00
Hiroshi SHIBATA
7f80ec47c3 [ruby/open-uri] Use omit instead of skip for test-unit
63f466d6ed
2022-10-06 17:15:27 +09:00
Hiroshi SHIBATA
cc5313ceab [ruby/open-uri] Run global constant count test only under Ruby 3.2
a8f1605ae9
2022-10-06 17:15:26 +09:00
Jean Boussier
d15b38d944 [ruby/open-uri] Avoid busting the global constant cache
`Object#extend(mod)` bump the global constant cache if the module
has constants of its own.

So by moving these constants outside of `Meta` we avoid bumping
the cache.

363c399bac
2022-10-06 16:55:44 +09:00
Daniel Colson
3e84290213 [ruby/rdoc] Remove unused abbrev require
This library originally used `abbrev` to expand abbreviations into
fully-qualified classes, but that was replaced in
f9ffe6684e

`abbrev` is no longer used anywhere, so this commit removes the require.

b76775f27d
2022-10-06 10:04:41 +09:00
David Rodríguez
358fe26b31 [rubygems/rubygems] Fix little UI issue when bundler shows duplicated gems in a list
3f71d882e9
2022-10-06 05:13:39 +09:00
Nobuyoshi Nakada
139e79e5a9
[DOC] Remove unknown markup or macro [ci skip]
Also remove the ancient word "Windows NT".
2022-10-05 19:43:54 +09:00
Imir Kiyamov
83a6213f31 [ruby/irb] Fixed sort of variables in completion
5842888255
2022-10-05 19:22:13 +09:00
Kouhei Yanagita
107acbd9a4 [ruby/irb] Add description of IRB_LANG, IRBRC, and XDG_CONFIG_HOME to man
564bd91387
2022-10-05 19:20:22 +09:00
Kaíque Kandy Koga
d880322243 [ruby/irb] Update remark of self.install_extend_commands.
Create line

64d6a461d5
2022-10-05 19:15:28 +09:00
Hiroshi SHIBATA
2f6a263787 [ruby/irb] Use USE_REIDLINE for backword compatibility
e58a3c1b39
2022-10-05 18:59:31 +09:00
Hiroshi SHIBATA
b84140f607
Mentioned removing libffi sources from fiddle 2022-10-05 18:26:17 +09:00
Hiroshi SHIBATA
0b4352b91d
Removed the related files for downloading with extlibs 2022-10-05 18:22:06 +09:00
Gannon McGibbon
19e4a4c624 [ruby/irb] Rename IDB::ReidlineInputMethod to IRB::RelineInputMethod
Deprecates IDB::ReidlineInputMethod and USE_REIDLINE in favor of
IRB::RelineInputMethod and USE_RELINE. The Input method uses Reline to
read input from the console, so it can be named directly after the
Reline library like other inputs methods are (Readline, Stdio, etc.).

5bcade7130
2022-10-05 17:14:19 +09:00
git
48c261a040 Update default gems list at 203b831065 [ci skip] 2022-10-05 06:25:40 +00:00
st0012
203b831065 [ruby/irb] Bump version to 1.4.2
f9960dbd37
2022-10-05 15:25:02 +09:00
Hiroshi SHIBATA
f081bba875 [ruby/irb] Added aycabta to authors
a6bfa7b2e6
2022-10-05 15:15:33 +09:00
Alan Wu
7293bfe1bf
YJIT: add support for calling bmethods (#6489)
* YJIT: fix a parameter name

* YJIT: add support for calling bmethods

This commit adds support for the VM_METHOD_TYPE_BMETHOD method type in
YJIT. You can get these type of methods from facilities like
Kernel#define_singleton_method and Module#define_method.

Even though the body of these methods are blocks, the parameter setup
for them is exactly the same as VM_METHOD_TYPE_ISEQ, so we can reuse
the same logic in gen_send_iseq(). You can see this from how
vm_call_bmethod() eventually calls setup_parameters_complex() with
arg_setup_method.

Bmethods do need their frame environment to be setup differently. We
handle this by allowing callers of gen_send_iseq() to control the iseq,
the frame flag, and the prev_ep. The `prev_ep` goes into the same
location as the block handler would go into in an iseq method frame.

Co-authored-by: John Hawthorn <john@hawthorn.email>

Co-authored-by: John Hawthorn <john@hawthorn.email>
2022-10-04 22:48:05 -04:00
Burdette Lamar
5fc68e1101
[DOC] Adding remarks about HTML and tables (#6485)
* Adding remarks about HTML and tables
2022-10-04 13:50:33 -05:00
Nobuyoshi Nakada
40ceceb1a5 [Bug #19028] Suppress GCC 12 -Wuse-after-free false warning
GCC 12 introduced a new warning flag `-Wuse-after-free`, however it
has a false positive at `realloc` when optimization is disabled, since
the memory requested for reallocation is guaranteed to not be touched.
This workaround is very unclear why the false warning is suppressed by
a statement-expression GCC extension.
2022-10-04 21:53:59 +09:00
git
6378825df5 Update bundled gems list at 2022-10-04 2022-10-04 07:09:33 +00:00
Vaevictusnet
7726f6bfff Correcting example for swapcase! method
Example, line 3, swapcase! was incorrect. implied that the swapcase! did /not/ change the starting string.
2022-10-04 10:07:01 +09:00
David Rodríguez
b2668248b6 [rubygems/rubygems] Make sure RSpec diffs don't omit the different part
We sometimes check assertions on lockfile contents, which involves
comparing a reasonably long string. Sometimes RSpec is not able to show
the part of the string that's actually different, making it hard to
figure out the issue.

Configuring this setting should fix the issue in most cases.

5ad8ee499e
2022-10-04 06:22:50 +09:00
Jimmy Miller
efc7766244
Split cmp operations that aren't 32/64 bit for arm (#6484) 2022-10-03 16:57:27 -04:00
Nobuyoshi Nakada
cbd82f5250
Cannot define from defined Data class again 2022-10-03 23:28:01 +09:00
Nobuyoshi Nakada
c198cf4329
Remove an unused macro [ci skip] 2022-10-03 23:19:55 +09:00
Nobuyoshi Nakada
8218cb73ba
[Bug #19034] No runtime check for utimensat if unavailable 2022-10-03 23:18:34 +09:00
Victor Gama
bc6c1e0e25 [rubygems/rubygems] Copy template contents instead of file and perms
This allows the file to be created without copying permissions
from Bundler's installation source. The previous behaviour was
noticed after installing Ruby through brew, and using bundle
init, which yielded a read-only Gemfile.

839a06851d
2022-10-03 20:41:45 +09:00
David Rodríguez
b7a61cb485 [rubygems/rubygems] Revert "Cleaup unnecessary code"
Unclear why, but 2e05dadbc5 created some
warnings in ruby-core CI, so let's revert it.

729ce3a6e1
2022-10-03 19:54:24 +09:00
Benoit Daloze
b91f685a26 Mark struct METHOD->owner for the GC
* Fixes 6b7d32a5e5
* See [Bug #18729]
2022-10-03 12:03:46 +02:00
st0012
10e830c25b [ruby/irb] Remove unused error
f09a1874b6
2022-10-03 07:00:54 +09:00
st0012
b97e909ef4 [ruby/irb] Remove unnecessary Thread presence check
They were introduced around 20 years ago, when Thread is not yet
stabilized. So we don't need them anymore.

4c75e03b2b
2022-10-03 07:00:53 +09:00
osyo-manga
7b88ffb34f [ruby/irb] Change to explicit method call in completion (https://github.com/ruby/irb/pull/369)
Ensure that methods are called even when local variables are defined.
see: https://github.com/ruby/irb/issues/368

c34d54b8bb
2022-10-03 06:55:53 +09:00
st0012
5cab9d0ee2 [ruby/irb] Remove patches for Ruby 2.4
They were added in b34f26a0dd

0e760d2674
2022-10-03 04:59:51 +09:00
st0012
42fcbcc215 [ruby/irb] Remove unnecessary condition
daffb8bfe5
2022-10-03 04:59:50 +09:00
st0012
55e2116f2c [ruby/irb] Refactor ripper_lex_without_warning
0db0a8ddc5
2022-10-03 04:59:49 +09:00
Burdette Lamar
ded895baa9
[DOC] RDoc changes for IO (#6458)
Moves Expect library doc into io.c.
    Changes certain links to local sections, now pointing to sections in doc/io_streams.rdoc.
    Removes local sections now superseded by sections in doc/io_streams.rdoc.
2022-10-02 08:24:08 -05:00
Nobuyoshi Nakada
85fc822307
CodeQL slowness on syntax_suggest fixed at 2.10.5
This reverts commit d152ac677c, "Make
CodeQL ignore syntax_suggest because of the performance problem".
Probably all instances seem to already have updated to 2.10.5 now.
2022-10-02 18:36:45 +09:00
Nobuyoshi Nakada
f3a3ab110e
[Bug #16909] Honor the tool prefix against pkg-config 2022-10-02 16:08:38 +09:00
Nobuyoshi Nakada
de9c612d63
Also the tests should use the configured pkg-config 2022-10-02 15:19:14 +09:00
Nobuyoshi Nakada
7f1ca66642
Fallback PKG_CONFIG to the configured pkg-config always 2022-10-02 15:19:14 +09:00
Nobuyoshi Nakada
88c12a2937
Indent folded bootstraptest dots 2022-10-01 18:53:41 +09:00
Nobuyoshi Nakada
56f2fd3bc9
Use the dedicated function to check arity 2022-10-01 16:24:36 +09:00
Nobuyoshi Nakada
15d3b7fe6d
Fix an out of bound access 2022-10-01 16:20:22 +09:00
Nobuyoshi Nakada
27adf5321e
Add macros for assertions 2022-10-01 15:58:47 +09:00
Nobuyoshi Nakada
c767618d4c
Do not define the method only for RDoc
`Data.members` fails an assertion.
2022-10-01 15:36:01 +09:00
John Hawthorn
70538beaa9 Fix YJIT args for rb_vm_set_ivar_idx
This was broken accidentally with the revert of shapes (it conflicted
with some unrelated cleanup).
2022-09-30 17:26:27 -07:00
John Hawthorn
1143fe340a Fix YJIT build after shapes-revert
An variable had been renamed in between the merge and revert, so the
build was broken. This restores it.
2022-09-30 16:29:10 -07:00
Aaron Patterson
9a6803c90b
Revert "This commit implements the Object Shapes technique in CRuby."
This reverts commit 68bc9e2e97d12f80df0d113e284864e225f771c2.
2022-09-30 16:01:50 -07:00