summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-12-11Update stdlib versions [ci skip]Kazuhiro NISHIYAMA
2021-12-11intern/select/posix.h: remove unused parameter from rb_fd_dupYuta Saito
This unused parameter seems to be accidently introduced by https://github.com/ruby/ruby/commit/9e6e39c Notes: Merged: https://github.com/ruby/ruby/pull/5241
2021-12-10Enhanced RDoc for String (#5234)Burdette Lamar
Treated: #to_i #to_f #to_s #inspect #dump #undump Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2021-12-11* 2021-12-11 [ci skip]git
2021-12-11[rubygems/rubygems] Add `github` and `ref` options to `bundle add`Vyacheslav Alexeev
https://github.com/rubygems/rubygems/commit/c3e54acab0
2021-12-10[ruby/reline] @convert_meta is true unless 8-bit charactersima1zumi
If Reline::IOGate.encoding contains 7-bit characters, convert-meta will set it On. Because in readline(3): > The default is On, but readline will set it to Off if the locale contains eight-bit characters. As far as I know, 7-bit encoding used in terminals is only US-ASCII. https://github.com/ruby/reline/commit/b71d1fa496
2021-12-10[ruby/reline] Execute compress_meta_key if convert_meta is onima1zumi
fix `#357` When using 8-bit characters, it is better not to use `compress_meta_key`. I believe not to use `compress_meta_key` unless `set convert-meta on` is written in the `.inputrc`. The following is a quote from tmtm's comments. > The behavior of this compress_meta_key method is similar to the behavior of convert-meta=on in readline, but readline turns off convert-meta if the locale contains 8bit characters. > In readline(3): > convert-meta (On) > If set to On, readline will convert characters with the eighth > bit set to an ASCII key sequence by stripping the eighth bit and > prefixing it with an escape character (in effect, using escape > as the meta prefix). The default is On, but readline will set > it to Off if the locale contains eight-bit characters. https://github.com/ruby/reline/commit/9491cc8542 Co-authored-by: TOMITA Masahiro <tommy@tmtm.org>
2021-12-10[ruby/reline] unleash real pasting speedYO4
2700msec -> 410msec read 80 console inputs at once https://github.com/ruby/reline/commit/eb3ef7af98
2021-12-10[ruby/reline] unleash pasting speedYO4
https://github.com/ruby/reline/commit/074e407c62
2021-12-10[ruby/reline] support input surrogate paird codepointYO4
support surrogate pair input https://github.com/ruby/reline/commit/0b4acedc6a
2021-12-10[ruby/reline] follow consolemode changeYO4
fix 'https://github.com/ruby/reline/issues/300' https://github.com/ruby/reline/commit/b2cc6805a8
2021-12-10[rubygems/rubygems] Properly fetch Gem#latest_spec_for with multiple sourcesKevin Logan
https://github.com/rubygems/rubygems/commit/a93ec63df3
2021-12-10[rubygems/rubygems] Ignore dependencies not actually locked from frozen checkDavid Rodríguez
Only needed if there can be no explicit global source (bundler < 3). https://github.com/rubygems/rubygems/commit/73923f4af5
2021-12-10Prefer flat_mapNobuyoshi Nakada
2021-12-10Revert zero-check for allocaNobuyoshi Nakada
Something weird results in int-in-bool-context and stringop-overflow warnings.
2021-12-10Allow configuring TRANSIENT_HEAP_TOTAL_SIZEYuta Saito
Some platforms have memory resource limits, but theap's memory area is too large for such situations. So allow configuring the size at build-time. Notes: Merged: https://github.com/ruby/ruby/pull/5218
2021-12-10Update bundled_gems at 2021-12-10git
2021-12-10Update stdlib versions [ci skip]Kazuhiro NISHIYAMA
2021-12-09Add {Method,UnboundMethod}#{public?,private?,protected?}Jeremy Evans
These methods allow for checking whether the method has that visibility. Implements [Feature #11689] Notes: Merged: https://github.com/ruby/ruby/pull/5040
2021-12-09[DOC] Stop mentioning Qfalse==0 for C extensionsAlan Wu
See [Feature #18397] for detail. Follow up for b859397e1b25a3f7847a380e7dd7db62f94fbe66. [ci skip] Co-authored-by: Koichi Sasada <ko1@atdot.net> Notes: Merged: https://github.com/ruby/ruby/pull/5240 Merged-By: XrXr
2021-12-09[DOC] Stop recommending Qfalse==0 assumption to C extensionsJemma Issroff
Encourage use of RTEST(), direct Qfalse comparison, and remove references to Qfalse == 0 in extension documentation. See [Bug #18397] for detail. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/5230 Merged-By: XrXr
2021-12-10Fix stack buffer overflowNobuyoshi Nakada
https://hackerone.com/reports/1306859 Notes: Merged: https://github.com/ruby/ruby/pull/5239
2021-12-10`TracePoint.allow_reentry`Koichi Sasada
In general, while TracePoint callback is running, other registerred callbacks are not called to avoid confusion by reentrace. This method allow the reentrace. This method should be used carefully, otherwize the callback can be easily called infinitely. [Feature #15912] Co-authored-by: Jean Boussier <jean.boussier@gmail.com> Notes: Merged: https://github.com/ruby/ruby/pull/5231
2021-12-10* 2021-12-10 [ci skip]git
2021-12-09Check month overflow when marshalNobuyoshi Nakada
https://hackerone.com/reports/1244185 Notes: Merged: https://github.com/ruby/ruby/pull/5238
2021-12-09[ruby/securerandom] Split Random::Formatter from SecureRandom [Feature #18190]Nobuyoshi Nakada
https://github.com/ruby/securerandom/commit/1e57277b9e Notes: Merged: https://github.com/ruby/ruby/pull/5237
2021-12-09Fixed filename for Open3::VERSIONHiroshi SHIBATA
2021-12-09Followed up f5d80c26d493c14241d4e3320437e62d7f54eabb for sync_default_gems.rbHiroshi SHIBATA
2021-12-09Adjust gemspec location of default gemsHiroshi SHIBATA
2021-12-09Removed JRuby specific helper for open3Hiroshi SHIBATA
2021-12-09[ruby/open3] Use RbConfig's 'host_os'Charles Oliver Nutter
RUBY_PLATFORM on JRuby is always 'java' so it does not indicate the host OS. https://github.com/ruby/open3/commit/d2308040e6
2021-12-09[ruby/open3] Update to match JRuby 9.4Charles Oliver Nutter
This allows the wrapper functions in the main open3 to be defined while using our ProcessBuilder logic for the internal popen implementation. Note this adds logic to reject redirects from a numeric fd to a live IO object (or not a String or to_path object) since we cannot support direct IO redirects with ProcesBuilder. This patch allows tests to complete with the ProcessBuilder impl. Only three tests fail: * test_numeric_file_descriptor2 and test_numeric_file_descriptor2 fail due to redirecting streams to a pipe IO. * test_pid fails expecting a real PID which we cannot provide via ProcessBuilder. https://github.com/ruby/open3/commit/73f986c233
2021-12-09[ruby/open3] Add JRuby's Windows (JDK non-native) Open3 supportCharles Oliver Nutter
This adds JRuby's logic used on platforms where we do not have native access to posix_spawn and related posix functions needed to do fully-native subprocess launching and management. The code here instead uses the JDK ProcessBuilder logic to simulate most of the Open3 functionality. This code does not pass all tests, currently, but provides most of the key functionality on pure-Java (i.e. no native FFI) platforms. https://github.com/ruby/open3/commit/689da19c42
2021-12-09[ruby/open3] Only use JITSupport on CRubyCharles Oliver Nutter
Fixes #2 https://github.com/ruby/open3/commit/6b7ede69e8
2021-12-09[ruby/open-uri] gemspec: This gem exposes 0 executablesOlle Jonsson
This just makes that fact more explicit. https://github.com/ruby/open-uri/commit/ffbfba5d69
2021-12-09[ruby/io-wait] Bump up 0.2.1Hiroshi SHIBATA
https://github.com/ruby/io-wait/commit/c97ab9a212
2021-12-09[ruby/English] gemspec: Remove unused "executables" configurationOlle Jonsson
This gem exposes no executables. https://github.com/ruby/English/commit/bb1ce0af20
2021-12-09[ruby/rdoc] Support addition Object class when adding methods to top levelaycabta
https://github.com/ruby/rdoc/commit/23747b4950
2021-12-09[ruby/rdoc] Resolve class and method of the same name correctlyaycabta
https://github.com/ruby/rdoc/commit/1e16284fe5
2021-12-09Fix typo of namespaceaycabta
2021-12-09`Ractor.make_shareable` checks proc's seflKoichi Sasada
`Ractor.make_shareable(proc_obj)` raises an `IsolationError` if the self of `proc_obj` is not a shareable object. [Bug #18243] Notes: Merged: https://github.com/ruby/ruby/pull/5232
2021-12-09Fix typo in NEWS-2.5.0 [ci skip]Akihiro Sada
Notes: Merged: https://github.com/ruby/ruby/pull/5236 Merged-By: nobu <nobu@ruby-lang.org>
2021-12-09[rubygems/rubygems] Don't load system rubygems during testsDavid Rodríguez
Since tests are about testing our development copy of rubygems, not whatever is installed in the system. https://github.com/rubygems/rubygems/commit/f5e0b68cdd
2021-12-08YJIT: Fix leak in compilation loopAlan Wu
Previously, when there are too many blocks in a batch, the last block in the batch is not tracked in the array of batches and not freed. Notes: Merged: https://github.com/ruby/ruby/pull/5229
2021-12-08[ruby/ostruct] Bump version to 0.5.2Marc-André Lafortune
2021-12-08[ruby/ostruct] `Proc`'s self should be shareable.Koichi Sasada
To fix the issue https://bugs.ruby-lang.org/issues/18243 we need to make sure the Proc's self is shareable. These procs are used by `define_method` and it doesn't use Proc's self, so `nil` is enough.
2021-12-08Enhanced RDoc for String (#5227)Burdette Lamar
Treats: #replace #clear #chr #getbyte #setbyte #byteslice #reverse #reverse! #include? Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2021-12-09* 2021-12-09 [ci skip]git
2021-12-09ext/ripper/lib/ripper/lexer.rb: Do not deprecate Ripper::Lexer::State#[]Yusuke Endoh
The old code of IRB still uses this method. The warning is noisy on rails console. In principle, Ruby 3.1 deprecates nothing, so let's avoid the deprecation for the while. I think It is not so hard to continue to maintain it as it is a trivial shim. https://github.com/ruby/ruby/pull/5093 Notes: Merged: https://github.com/ruby/ruby/pull/5219
2021-12-08Add `to_f` to predefined conversion method name to ID tableNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/5228