summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-03-21Add Hash#{update, merge!} test to ensure receiver modifiable in blockKenichi Kamiya
Notes: Merged: https://github.com/ruby/ruby/pull/4299
2021-03-21Add ins_methods_type_i functionS.H
Notes: Merged: https://github.com/ruby/ruby/pull/4269 Merged-By: nobu <nobu@ruby-lang.org>
2021-03-21* 2021-03-21 [ci skip]git
2021-03-21Refactor hash aset callbackNobuyoshi Nakada
2021-03-20Add write-barrier in tallyNobuyoshi Nakada
2021-03-20Refactor hash update callbacksNobuyoshi Nakada
2021-03-20Remove unneeded declarationsS.H
Notes: Merged: https://github.com/ruby/ruby/pull/4295 Merged-By: nobu <nobu@ruby-lang.org>
2021-03-20Remove unneeded declarations in bignum.cS.H
Notes: Merged: https://github.com/ruby/ruby/pull/4271 Merged-By: nobu <nobu@ruby-lang.org>
2021-03-20Some Hash destructive methods ensure the receiver modifiable [Bug #17736]Kenichi Kamiya
refs: * https://bugs.ruby-lang.org/issues/17736 * https://github.com/ruby/ruby/pull/4296 This commit aims to cover following methods * Hash#select! * Hash#filter! * Hash#keep_if * Hash#reject! * Hash#delete_if I think these are not all. --- * Ensure the receiver is modifiable or not * Assert the receiver is not modified Notes: Merged: https://github.com/ruby/ruby/pull/4297
2021-03-20[ruby/irb] Don't call Ruby 2.4+'s String#pretty_printTakashi Kokubun
https://github.com/ruby/irb/commit/89bcf107be
2021-03-20Ensure the receiver is modifiable before shrinking [Bug #17736]Nobuyoshi Nakada
* Ensure the receiver is modifiable before shinking [Bug #17736] * Assert the receivers are not modified Notes: Merged: https://github.com/ruby/ruby/pull/4296 Merged-By: nobu <nobu@ruby-lang.org>
2021-03-20Remove unused rb_ast_parse_array declarationS.H
Notes: Merged: https://github.com/ruby/ruby/pull/4270 Merged-By: nobu <nobu@ruby-lang.org>
2021-03-19Fix typos in rhash.h (#4292)Kenichi Kamiya
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2021-03-20No longer aclocal is used [ci skip]Nobuyoshi Nakada
2021-03-20[ruby/irb] Add all lib files automaticallyTakashi Kokubun
https://github.com/ruby/irb/commit/ecc82336b7
2021-03-20* 2021-03-20 [ci skip]git
2021-03-20configure.ac: enable FORCE_FILESYSTEM for EmscriptenYusuke Endoh
2021-03-19[ruby/irb] Define "measure" command without forced overrideaycabta
https://github.com/ruby/irb/commit/9587ba13b5
2021-03-19Include CommonCrypto/CommonCryptoError.h for old XcodeNobuyoshi Nakada
2021-03-19Remove unneeded dependencies on macOS [Feature #17730]Rick Mark
Notes: Merged: https://github.com/ruby/ruby/pull/4289
2021-03-19Use CommonRandom if availableNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4289
2021-03-19Fix Enumerable#inject with high negative fixnums [Bug #17731]Marc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/4288
2021-03-19gc.c: Use dedicated APIs for conservative GC in EmscriptenYusuke Endoh
Emscripten provides "emscripten_scan_stack" to get the beginning and end pointers of the stack for conservative GC. Also, "emscripten_scan_registers" allows the GC to mark local variables in WASM.
2021-03-19configure.ac: don't use pthread_sigmask in emscriptenYusuke Endoh
2021-03-19configure.ac: avoid spaces in a LDFLAGS optionYusuke Endoh
Seems like it confuses "make ruby" for emscripten.
2021-03-19Fix infinite loop at illegal sequence [Bug #17729]Nobuyoshi Nakada
As mblen returns -1 on failure, skip the first byte and try the succeeding bytes in that case. Close https://github.com/ruby/ruby/pull/4281 Notes: Merged: https://github.com/ruby/ruby/pull/4284
2021-03-19Remove duplicated float_arg definationS-H-GAMELINKS
Notes: Merged: https://github.com/ruby/ruby/pull/4283
2021-03-19* 2021-03-19 [ci skip]git
2021-03-18Make a few functions staticAlan Wu
Notes: Merged: https://github.com/ruby/ruby/pull/4285
2021-03-18Avoid rehashing in Hash#replace/dup/initialize_copy [Bug #16996]Marc-Andre Lafortune
2021-03-18Avoid rehashing in Hash#select/reject [Bug #16996]Marc-Andre Lafortune
2021-03-18Try to fix errors in TestIRB::TestHistory tooKazuhiro NISHIYAMA
https://github.com/ruby/actions/runs/2137935523?check_suite_focus=true#step:9:562 ``` 1) Error: TestIRB::TestHistory#test_history_concurrent_use: Errno::EACCES: Permission denied @ dir_s_mkdir - /home/runner/.config/irb /home/runner/work/actions/actions/ruby/lib/fileutils.rb:253:in `mkdir' /home/runner/work/actions/actions/ruby/lib/fileutils.rb:253:in `fu_mkdir' /home/runner/work/actions/actions/ruby/lib/fileutils.rb:231:in `block (2 levels) in mkdir_p' /home/runner/work/actions/actions/ruby/lib/fileutils.rb:229:in `reverse_each' /home/runner/work/actions/actions/ruby/lib/fileutils.rb:229:in `block in mkdir_p' /home/runner/work/actions/actions/ruby/lib/fileutils.rb:211:in `each' /home/runner/work/actions/actions/ruby/lib/fileutils.rb:211:in `mkdir_p' /home/runner/work/actions/actions/ruby/lib/irb/init.rb:355:in `rc_file_generators' /home/runner/work/actions/actions/ruby/lib/irb/init.rb:330:in `rc_file' /home/runner/work/actions/actions/ruby/test/irb/test_history.rb:170:in `block in assert_history' /home/runner/work/actions/actions/ruby/lib/tmpdir.rb:96:in `mktmpdir' /home/runner/work/actions/actions/ruby/test/irb/test_history.rb:168:in `assert_history' /home/runner/work/actions/actions/ruby/test/irb/test_history.rb:133:in `test_history_concurrent_use' ```
2021-03-18Fix errors when XDG_CONFIG_HOME points to non-writable directoryKazuhiro NISHIYAMA
`$HOME/.config` is not writable on CI because I think tests should not corrupt user's data. And GitHub Actions CI sets `XDG_CONFIG_HOME` since `Version: 20210309.1`. https://github.com/ruby/actions/runs/2130811016?check_suite_focus=true#step:16:301 ``` Errno::EACCES: Permission denied @ dir_s_mkdir - /home/runner/.config/irb ```
2021-03-18* 2021-03-18 [ci skip]git
2021-03-17return bool instead of VALUEAaron Patterson
Notes: Merged: https://github.com/ruby/ruby/pull/4279
2021-03-17Use rb_fstring for "defined" strings.Aaron Patterson
We can take advantage of fstrings to de-duplicate the defined strings. This means we don't need to keep the list of defined strings on the VM (or register them as mark objects) Notes: Merged: https://github.com/ruby/ruby/pull/4279
2021-03-17Refactor vm_defined to return a booleanAaron Patterson
We just need this function to return whether or not the thing we're looking for is defined. If it's defined, return something true, otherwise false. Notes: Merged: https://github.com/ruby/ruby/pull/4279
2021-03-17Stop calling `rb_iseq_defined_string` in vm_definedAaron Patterson
We already have access to the string from the iseqs, so we can stop calling this function. Notes: Merged: https://github.com/ruby/ruby/pull/4279
2021-03-17Store strings for `defined` in the iseqsAaron Patterson
We can know the string used for "defined" calls at compile time, then store the string in the instruction sequences Notes: Merged: https://github.com/ruby/ruby/pull/4279
2021-03-17[DOC] Update README [ci skip]Nobuyoshi Nakada
* Use `autogen.sh`. * The subversion repository is only for old versions, and secondary now. * Moved long links to footnotes.
2021-03-17autogen.sh: Make it work with sh (not bash)Yusuke Endoh
2021-03-17Remove unused DEFAULT_KCODEKazuhiro NISHIYAMA
2021-03-17Improved autogen.shNobuyoshi Nakada
* update in the source directory * make symbolic links instead of copies * forward the arguments to autoreconf as-is
2021-03-17get rid of aclocal (#4280)卜部昌平
Notes: Merged-By: mame <mame@ruby-lang.org>
2021-03-17autogen.sh: Allow AUTORECONF envvar to specify the autoreconf executableYusuke Endoh
2021-03-17autogen.sh: AddedYusuke Endoh
Currently it just runs "autoreconf --install"
2021-03-17[Feature #17684] Declare --disable-gems is for debuggingNARUSE, Yui
2021-03-17Adjusted indents [ci skip]Nobuyoshi Nakada
2021-03-16Skip refined method when exporting methods with changed visibilityJeremy Evans
Previously, attempting to change the visibility of a method in a singleton class for a class/module that is prepended to and refined would raise a NoMethodError. Fixes [Bug #17519] Notes: Merged: https://github.com/ruby/ruby/pull/4200
2021-03-17test_zlib(test_path_tmpfile): fix Zlib instance leakSorah Fukumori
follow-up: commit cf831f49189c4a890da6845e39199a5dfaf4fb48