summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-03-02* 2022-03-02 [ci skip]git
2022-03-01Fix race in TestThread#test_thread_status_in_trapBenoit Daloze
* If the sleep is not enough to run the rest of the logic the process would be exited early, e.g., before the signal handler can run.
2022-03-01Only define RUBY_DLN_CHECK_ABI when supportedPeter Zhu
2022-03-01ABI checking is not supported on WindowsPeter Zhu
2022-03-01dln.c: suppress unused function 'abi_check_enabled_p' warning for wasiYuta Saito
Notes: Merged: https://github.com/ruby/ruby/pull/5613
2022-03-01[DOC] Fix reference in rb_enc_associate() descriptionLars Kanis
Notes: Merged: https://github.com/ruby/ruby/pull/5534
2022-03-01[DOC] Fix String#getbyte docMau Magnaguagno
* String#getbyte returns `nil` if `index` is out of range. * Add String#getbyte example with nil output. * Modify String#getbyte example to use negative index. Notes: Merged: https://github.com/ruby/ruby/pull/5586 Merged-By: nobu <nobu@ruby-lang.org>
2022-03-01[DOC] Fix function name in exampleLars Kanis
Notes: Merged: https://github.com/ruby/ruby/pull/5599
2022-03-01* 2022-03-01 [ci skip]git
2022-03-01[DOC] Fix documentation for Array#deleteVivek Bharath Akupatni
Never returns self. Notes: Merged: https://github.com/ruby/ruby/pull/5605 Merged-By: nobu <nobu@ruby-lang.org>
2022-02-28Update default gems list at eb40ff73bfc8afae1d87e214f31564 [ci skip]git
2022-02-28[ruby/securerandom] Bump up v0.2.0Hiroshi SHIBATA
https://github.com/ruby/securerandom/commit/62ca2828f3
2022-02-28spec: skip ext's extension spec for --with-static-linked-extYuta Saito
`resolve_feature_path` doesn't return .so when the given ext is linked statically by --with-static-linked-ext Notes: Merged: https://github.com/ruby/ruby/pull/5582
2022-02-28Fix a typo of macro nameNobuyoshi Nakada
When the date is 28 Feb in the local timezone and 27 in the UTC, the leap second info is wrongly calculated, and the Time for 1 Mar created with a timezone resulted in an invalid date, 30 Feb.
2022-02-28st.c: Fix a typo in a commentYusuke Endoh
2022-02-28Merge RubyGems and Bundler masterHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/5606
2022-02-28* 2022-02-28 [ci skip]git
2022-02-27[DOC] Enhanced RDoc for encoding (#5603)Burdette Lamar
Additions and corrections for external/internal encodings. Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-02-27fake.rb: Set prefix to `$topdir`Nobuyoshi Nakada
Not to refer outside the top build directory from rbconfig.
2022-02-27[DOC] Extend intro/defn of 'transcoding' (#5602)Burdette Lamar
* Extend intro/defn of 'transcoding' Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-02-27* 2022-02-27 [ci skip]git
2022-02-26[DOC] Move String.new to allow non US-ASCII charactersNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/5410
2022-02-26[DOC] Fix the pseudo codeNobuyoshi Nakada
2022-02-26[DOC] Place a non-US-ASCII document in a document-specific scriptNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/5601
2022-02-25[DOC] Enhanced RDoc for some encoding methods (#5598)Burdette Lamar
In String, treats: #b #scrub #scrub! #unicode_normalize #unicode_normalize! #encode #encode! Also adds a note to IO.new (suggested by @jeremyevans). Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-02-26* 2022-02-26 [ci skip]git
2022-02-26Deprecate the unintentional ability to parse `Symbol`Nobuyoshi Nakada
2022-02-25[ruby/date] Use `assert_deprecated_warn`Nobuyoshi Nakada
https://github.com/ruby/date/commit/c55004715a
2022-02-25[ruby/date] Suppress declaration-after-statement warningsNobuyoshi Nakada
https://github.com/ruby/date/commit/60bd16009d
2022-02-25[ruby/date] Deprecate the unintentional ability to parse `Symbol`Nobuyoshi Nakada
https://github.com/ruby/date/commit/d57818f3b3
2022-02-25[ruby/date] Scale timeoutsNobuyoshi Nakada
https://github.com/ruby/date/commit/2889698e2f
2022-02-25[ruby/date] Update testsNobuyoshi Nakada
https://github.com/ruby/date/commit/5a138afce9
2022-02-25[ruby/date] Anchor at beginning of numbersNobuyoshi Nakada
https://hackerone.com/reports/1254844 https://github.com/ruby/date/commit/2f7814cc22
2022-02-25[ruby/date] Anchor at beginning of numbersNobuyoshi Nakada
https://hackerone.com/reports/1254844 https://github.com/ruby/date/commit/7ffe25e458
2022-02-25[ruby/date] Separate era from preceding wordNobuyoshi Nakada
https://github.com/ruby/date/commit/017149e53e
2022-02-25[ruby/date] Use possessive matchNobuyoshi Nakada
Reduce backtracks at the same character classes arounding an optional pattern. https://github.com/ruby/date/commit/1fd15f7c49
2022-02-25[ruby/date] Extracted common leading patternNobuyoshi Nakada
https://github.com/ruby/date/commit/ec86dbbdc1
2022-02-24[DOC] Enhancements for encoding.rdoc (#5578)Burdette Lamar
Adds sections: String Encoding Symbol and Regexp Encodings Filesystem Encoding Locale Encoding IO Encodings External Encoding Internal Encoding Script Encoding Transcoding Transcoding a String Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-02-24Fix yjit readme link pointing to old shopify readme (#5596)Adrien S
Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
2022-02-24[DOC] Fix typo in yjit docseileencodes
I noticed this yesterday when pairing with Aaron, there was an extra "e" in "callees". Notes: Merged: https://github.com/ruby/ruby/pull/5597
2022-02-25* 2022-02-25 [ci skip]git
2022-02-24Add ABI version to ruby_version tag on WindowsPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/5595
2022-02-24Add ABI version to RUBY_LIB_VERSIONPeter Zhu
This commit adds the ABI version as build metadata to RUBY_LIB_VERSION. This will ensure that gems are installed in a path with the ABI version. Notes: Merged: https://github.com/ruby/ruby/pull/5591
2022-02-23Constant time class to class ancestor lookupJohn Hawthorn
Previously when checking ancestors, we would walk all the way up the ancestry chain checking each parent for a matching class or module. I believe this was especially unfriendly to CPU cache since for each step we need to check two cache lines (the class and class ext). This check is used quite often in: * case statements * rescue statements * Calling protected methods * Class#is_a? * Module#=== * Module#<=> I believe it's most common to check a class against a parent class, to this commit aims to improve that (unfortunately does not help checking for an included Module). This is done by storing on each class the number and an array of all parent classes, in order (BasicObject is at index 0). Using this we can check whether a class is a subclass of another in constant time since we know the location to expect it in the hierarchy. Notes: Merged: https://github.com/ruby/ruby/pull/5568
2022-02-23Never call kind_of with klass=0John Hawthorn
Notes: Merged: https://github.com/ruby/ruby/pull/5568
2022-02-24* 2022-02-24 [ci skip]git
2022-02-23rb_provide_feature: Prevent $LOADED_FEATURES from being copiedJean Boussier
[Bug #18599] `vm->loaded_features` and `vm->loaded_features_snapshot` both share the same root. When a feature is pushed into `loaded_features`, the sharing is broken and `loaded_features` is copied. So an application requiring 1000 files, will allocate 1000 arrays of increasing size, which is very wasteful. To avoid this, we first clear the snapshot, so that `loaded_features` can directly be pushed into. Co-Authored-By: Peter Zhu <peter.zhu@shopify.com> Notes: Merged: https://github.com/ruby/ruby/pull/5593
2022-02-23Use rb_ary_behead for rb_ary_shiftPeter Zhu
rb_ary_shift is just a special case of rb_ary_behead where we behead only 1 element. Notes: Merged: https://github.com/ruby/ruby/pull/5590
2022-02-23Update bundled gems list at 2022-02-23git
2022-02-23Rename the wrong variable name `beg` to `len`Shugo Maeda