Aaron Patterson
e5058b58c2
Only expose Ruby Shape API if VM_CHECK_MODE is enabled
2022-10-13 13:11:01 -07:00
Nobuyoshi Nakada
4b1504ae0a
[ruby/uri] Fix splitting relative URI
...
ffbab83de6
2022-10-13 16:24:53 +09:00
Hiroshi SHIBATA
1cda414622
Raise ArgumentError with empty host url again.
...
Fixup dd5118f852
Co-authored-by: Koichi Sasada <ko1@atdot.net>
2022-10-13 12:32:02 +09:00
NARUSE, Yui
dd5118f852
URI.parse should set empty string in host instead of nil
2022-10-13 11:04:06 +09:00
Nobuyoshi Nakada
0360fca4ad
[DOC] Replace the external URIs to docs with rdoc-ref
2022-10-12 13:30:25 +09:00
Nobuyoshi Nakada
3539da64fc
[DOC] Replace the external URIs to docs with rdoc-ref
2022-10-12 12:27:40 +09:00
Kazuki Yamaguchi
4e29ca0c40
Add :ssl_min_version and :ssl_max_version options
...
Replace :ssl_version option with these two new options. These provide
access to OpenSSL::SSL::SSLContext#{min,max}_version=, which is the
recommended way to specify SSL/TLS protocol versions.
2022-10-12 10:36:51 +09:00
Jemma Issroff
913979bede
Make inline cache reads / writes atomic with object shapes
...
Prior to this commit, we were reading and writing ivar index and
shape ID in inline caches in two separate instructions when
getting and setting ivars. This meant there was a race condition
with ractors and these caches where one ractor could change
a value in the cache while another was still reading from it.
This commit instead reads and writes shape ID and ivar index to
inline caches atomically so there is no longer a race condition.
Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org>
Co-Authored-By: John Hawthorn <john@hawthorn.email>
2022-10-11 08:40:56 -07:00
Jemma Issroff
ad63b668e2
Revert "Revert "This commit implements the Object Shapes technique in CRuby.""
...
This reverts commit 9a6803c90b
.
2022-10-11 08:40:56 -07:00
Nobuyoshi Nakada
1dd774f53a
[ruby/open-uri] Remove unused files from the packages
...
b2d9efbaf8
2022-10-11 10:44:42 +09:00
Maciek Rząsa
0f231f2bab
[ruby/optparse] Don't treat empty string as an option description
...
078638ee6d
2022-10-08 19:30:34 +09:00
st0012
5b3079a8a5
[ruby/irb] Sort constant completion's candidates
...
ee9b33c817
2022-10-08 03:17:42 +09:00
st0012
7cafe09aec
[ruby/irb] Lazily evaluate candidates locals
...
19a2fcbd87
2022-10-08 03:17:42 +09:00
lijunwei
1e6cdc76e4
[ruby/logger] Fix the Logger::Formatter documentation
...
db554fbda7
2022-10-07 19:37:27 +09:00
Nobuyoshi Nakada
39909d8c18
[ruby/rdoc] Escape search results
...
https://hackerone.com/reports/1321358
2ebf8fd510
2022-10-07 12:12:09 +09:00
Nobuyoshi Nakada
a3cb09c7d1
[ruby/rdoc] Escape file names
...
https://hackerone.com/reports/1321358
8c07cc4657
2022-10-07 12:12:08 +09:00
Nobuyoshi Nakada
8d0b2162a0
[ruby/rdoc] Escape main title
...
https://hackerone.com/reports/1187156
5dedb5741d
2022-10-07 12:09:23 +09:00
Nobuyoshi Nakada
586e18b946
[ruby/rdoc] Escape HYPERLINKs
...
ac35485be6
2022-10-07 12:09:22 +09:00
Nobuyoshi Nakada
9e3ab9da7f
[ruby/rdoc] Escape RDOCLINKs
...
https://hackerone.com/reports/1187156
7cecf1efae
2022-10-07 12:09:21 +09:00
Nobuyoshi Nakada
deaa656608
[ruby/rdoc] Escape TIDYLINKs
...
https://hackerone.com/reports/1187156
1ad2dd3ca2
2022-10-07 12:09:20 +09:00
Janko Marohnić
fa2e1b67e5
[ruby/open-uri] Support 308 status redirect
...
d8899ae4ac
2022-10-07 06:58:37 +09:00
Takashi Kokubun
1f2c84de83
[ruby/rdoc] Remove trailing spaces to fix CI
...
5224898228
369e4fa32d
2022-10-06 11:56:05 -07:00
Nobuyoshi Nakada
cf3056be69
[ruby/rdoc] Add center align
...
512cc55a0e
2022-10-06 23:22:02 +09:00
Nobuyoshi Nakada
28e24ce355
[ruby/rdoc] Allow spaces around pipes
...
3b3a583580
2022-10-06 23:21:16 +09:00
Nobuyoshi Nakada
7c03c82444
[ruby/rdoc] Allow escaped pipes in cells
...
333952a62d
2022-10-06 23:17:49 +09:00
Nobuyoshi Nakada
f6c916c7ef
[ruby/rdoc] Allow leading pipes to be ommitted
...
d263a2c9c4
2022-10-06 23:16:54 +09:00
Nobuyoshi Nakada
a19bf47d03
[ruby/rdoc] Allow trailing pipes to be ommitted
...
1318048877
2022-10-06 23:14:29 +09:00
Nobuyoshi Nakada
75a53f6be0
[ruby/rdoc] Allow RDoc markups in table cells
...
b16d3f1727
2022-10-06 18:24:44 +09:00
git
4e1086f903
* remove trailing spaces. [ci skip]
2022-10-06 18:01:08 +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
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
Imir Kiyamov
83a6213f31
[ruby/irb] Fixed sort of variables in completion
...
5842888255
2022-10-05 19:22:13 +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
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
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
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
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
Nobuyoshi Nakada
7f1ca66642
Fallback PKG_CONFIG to the configured pkg-config always
2022-10-02 15:19:14 +09: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
David Rodríguez
a44040c9e4
[rubygems/rubygems] Add notes to make sure we don't forget to backport changes to Bundler
...
1ac5b14c78
Co-authored-by: André Arko <andre@arko.net>
2022-10-01 05:46:41 +09:00
David Rodríguez
f04d249e83
[rubygems/rubygems] Fix matching of eabihf platforms
...
a03d30cd58
2022-10-01 05:46:40 +09:00