summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-01-25Support ID_TABLE_STOP for replace functionPeter Zhu
Iteration should top if the replace function returns ID_TABLE_STOP. Notes: Merged: https://github.com/ruby/ruby/pull/5486
2022-01-25Call rb_id_table_foreach_values insteadPeter Zhu
These places never replace the value, so call rb_id_table_foreach_values instead of rb_id_table_foreach_values_with_replace. Notes: Merged: https://github.com/ruby/ruby/pull/5486
2022-01-25Rename rb_id_table_foreach_with_replacePeter Zhu
Renames rb_id_table_foreach_with_replace to rb_id_table_foreach_values_with_replace and passes only the value to the callback. We can use this in GC compaction when we cannot access the global symbol array. Notes: Merged: https://github.com/ruby/ruby/pull/5486
2022-01-26Revert "`ID` in `rb_id_table_foreach_with_replace` [Feature #18253]"Nobuyoshi Nakada
This reverts commit 530e485265dac6e2aea1d587a4a79a314cc772cf. `rb_id_table_foreach_with_replace` is used during GC compaction, and the global symbols array can have been moved at that time.
2022-01-26* 2022-01-26 [ci skip]git
2022-01-26[rubygems/rubygems] Use Gem::Platform.local instead of RUBY_PLATFORMNgan Pham
In certain places, we want to display the platform name with `Gem::Platform.local` instead of `RUBY_PLATFORM`. Fixes https://github.com/rubygems/rubygems/issues/5264 https://github.com/rubygems/rubygems/commit/bdd1848ae8
2022-01-25Remove redundant if statement in try_movePeter Zhu
The if statement is redundant since if `index == 0` then `BITS_BITLENGTH * index == 0`. Notes: Merged: https://github.com/ruby/ruby/pull/5479
2022-01-25NEWS: `Fixnum` and `Bignum` are removed finally [Feature #12005]Nobuyoshi Nakada
2022-01-25[rubygems/rubygems] Fix spec to not touch the networkDavid Rodríguez
And not depend on the state of rack's master branch, in particular, on their Ruby support range. https://github.com/rubygems/rubygems/commit/9ea4baffac
2022-01-25[rubygems/rubygems] Remove unnecessary commentDavid Rodríguez
https://github.com/rubygems/rubygems/commit/ef4e5c6169
2022-01-25enable `RUBY_ON_BUG` on release buildKoichi Sasada
[Feature #18483] Notes: Merged: https://github.com/ruby/ruby/pull/5481
2022-01-25[ruby/pathname] Officially drop support for ruby 2.6 or olderDavid Rodríguez
The gem doesn't even install on old rubies, but since the gemspec claims it's supported, `gem install pathname` will try to install it and print an error. This commit doesn't fix the above issue. The only way to fix it would be to restore support and release a new version that actually supports old rubies. However, such a change has been proposed and ignored for a long time. So this issue proposes to leave that broken but at least bring the gemspec manifest and the CI matrix in sync to hopefully avoid this issue from happening again in the future. https://github.com/ruby/pathname/commit/3ee010b538
2022-01-24`ID` in `rb_id_table_foreach_with_replace` [Feature #18253]Nobuyoshi Nakada
Pass the `ID` from `rb_id_table_foreach_with_replace` to callback functions. Notes: Merged: https://github.com/ruby/ruby/pull/5458
2022-01-24Keep right operand within width when right shiftingPeter Zhu
NUM_IN_PAGE could return a value much larger than 64. According to the C11 spec 6.5.7 paragraph 3 this is undefined behavior: > If the value of the right operand is negative or is greater than or > equal to the width of the promoted left operand, the behavior is > undefined. On most platforms, this is usually not a problem as the architecture will mask off all out-of-range bits. Notes: Merged: https://github.com/ruby/ruby/pull/5478
2022-01-25* 2022-01-25 [ci skip]git
2022-01-25[rubygems/rubygems] Forbid downgrading past the originally shipped version ↵David Rodríguez
on Ruby 3.1 https://github.com/rubygems/rubygems/commit/68bef90339
2022-01-24[wasm] Disallow compactionPeter Zhu
WebAssembly doesn't support signals so we can't use read barriers so we can't use compaction. Notes: Merged: https://github.com/ruby/ruby/pull/5475
2022-01-24Fixed an missing percent in the batch fileNobuyoshi Nakada
2022-01-24[ruby/io-wait] [DOC] Fix the return values [ci skip]Nobuyoshi Nakada
Even since 0.1.0, other than +true+ or +false+ may be returned. https://github.com/ruby/io-wait/commit/d0721e300a
2022-01-24[ruby/io-wait] Document mandatory require for using io/wait methodsapatniv
https://github.com/ruby/io-wait/commit/2beb05bd48
2022-01-24Update default gems list at 328e6bf3b3a167529e5c64a281e773 [ci skip]git
2022-01-24[ruby/bigdecimal] Version 3.1.2Kenta Murata
https://github.com/ruby/bigdecimal/commit/57e2194135
2022-01-24[ruby/bigdecimal] Fix the maximum precision of the quotientKenta Murata
Fixes https://github.com/ruby/bigdecimal/pull/220 https://github.com/ruby/bigdecimal/commit/127a1b5a31
2022-01-24[ruby/bigdecimal] Fix typoKenta Murata
https://github.com/ruby/bigdecimal/commit/79c09b4dac
2022-01-24[ruby/rdoc] Fix typo in RDoc::Task examplegemmaro
https://github.com/ruby/rdoc/commit/7a77e55c2a
2022-01-24* 2022-01-24 [ci skip]git
2022-01-24[ruby/reline] Ignore global constants when checking if Fiddle::VERSION existsPostmodern
If a top-level `VERSION` constant exists, or if a module containing a `VERSION` constant is included into the top-level scope, then `Fiddle.const_defined?(:VERSION)` will erroneously return true when `RUBY_VERSION < 3.0.0`. https://github.com/ruby/reline/commit/8529c8e47a
2022-01-23Fix a typo [ci skip]Kazuhiro NISHIYAMA
2022-01-23* 2022-01-23 [ci skip]git
2022-01-23Reuse the default `AC_LANG_PROGRAM(C)` definitionNobuyoshi Nakada
2022-01-22Override `AC_C_PROGRAM` on old autoconfNobuyoshi Nakada
Autoconf 2.69 fails to detect `-Werror=old-style-definition` due to the old style definition of `main`.
2022-01-22GCC provides -Wdiv-by-zeroNobuyoshi Nakada
2022-01-22Fix error: old-style function definitionKazuhiro NISHIYAMA
https://rubyci.s3.amazonaws.com/debian-riscv64/ruby-master/log/20220122T050018Z.log.html.gz#miniruby ``` compiling vm_trace.c vm_trace.c: In function 'rb_vm_memsize_postponed_job_buffer': vm_trace.c:1599:1: error: old-style function definition [-Werror=old-style-definition] 1599 | rb_vm_memsize_postponed_job_buffer() | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
2022-01-22[ruby/psych] Add strict_integer option to parse numbers with commas as stringsSeth Boyles
Authored-by: Seth Boyles <sethboyles@gmail.com> https://github.com/ruby/psych/commit/75bebb37b8
2022-01-22* 2022-01-22 [ci skip]git
2022-01-21Accurately report VM memsizeKevin Newton
Currently the calculation only counts the size of the struct. This commit adds the size of the associated st tables, id tables, and linked lists. Still missing is the size of the ractors and (potentially) the size of the object space. Notes: Merged: https://github.com/ruby/ruby/pull/5428
2022-01-21respect `--quiet` option for btestKoichi Sasada
Do not print anymore except errors.
2022-01-21* 2022-01-21 [ci skip]git
2022-01-21[ruby/etc] Exclude change logs for pre 1.0Nobuyoshi Nakada
https://github.com/ruby/etc/commit/c8a133fe95
2022-01-21[ruby/etc] Derive extra_rdoc_files from filesNobuyoshi Nakada
https://github.com/ruby/etc/commit/e8ecce3442
2022-01-21[ruby/etc] Move development dependencies to GemfileNobuyoshi Nakada
https://github.com/ruby/etc/commit/5cabc3996a
2022-01-20Mark `rb_clear_constant_cache` as internal use onlyNobuyoshi Nakada
In the past, many internal functions are declared in intern.h under include/ruby directory, because there were no headers for internal use.
2022-01-20[wasm] skip pull-requests labeled as Documentation [ci skip]Nobuyoshi Nakada
2022-01-20[ruby/psych] Remove alias of load to unsafe_loadMichael Nikitochkin
https://github.com/ruby/psych/commit/39e23cc86f
2022-01-20Fix warningsKazuhiro NISHIYAMA
``` compiling ..../ruby/ruby/dln.c ..../ruby/ruby/dln.c:108:1: warning: unused function 'init_funcname_len' [-Wunused-function] init_funcname_len(const char **file) ^ ..../ruby/ruby/dln.c:122:19: warning: unused variable 'funcname_prefix' [-Wunused-const-variable] static const char funcname_prefix[sizeof(FUNCNAME_PREFIX) - 1] = FUNCNAME_PREFIX; ^ 2 warnings generated. ```
2022-01-20[rubygems/rubygems] Rename `Gem.open_with_flock` to `Gem.open_file`David Rodríguez
Since it only uses `flock` on Windows. https://github.com/rubygems/rubygems/commit/b877de4d9c
2022-01-20[rubygems/rubygems] Restrict `flock` to WindowsDavid Rodríguez
It was introduced to fix some race conditions there, but it doesn't seem necessary on other systems and it's actually causing issues there. https://github.com/rubygems/rubygems/commit/27b682c812
2022-01-20MinGW also uses `rb_w32_shutdown`Nobuyoshi Nakada
Winsock's `shutdown` is incompatible with the other platforms. And autoconf fails to detect WINAPI functions on 32bit Windows, probably due to the argument size suffixes. Notes: Merged: https://github.com/ruby/ruby/pull/5469 Merged-By: nobu <nobu@ruby-lang.org>
2022-01-20* 2022-01-20 [ci skip]git
2022-01-20[rubygems/rubygems] Change generated namespaced test class name in minitestYusuke Nakamura
* `foo` => `TestFoo` * `foo_bar` => `TestFooBar` * `foo-bar` => `Foo::TestBar` https://github.com/rubygems/rubygems/commit/353cdd61c3