summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2021-10-13[ruby/reline] Skip when unable to set inputNobuyoshi Nakada
`Reline::Windows` always reads from the console by Windows API using fiddle. https://github.com/ruby/reline/commit/c3bf85f5af
2021-10-12[ruby/reline] Close working pipesNobuyoshi Nakada
https://github.com/ruby/reline/commit/ac519f57ea
2021-10-11[ruby/reline] Fix test class not to overwriteNobuyoshi Nakada
https://github.com/ruby/reline/commit/1e78984c49
2021-10-11[ruby/reline] Reline doesn't have Reline.editing_modeaycabta
https://github.com/ruby/reline/commit/90c61d8188
2021-10-11[ruby/reline] Add I/O testaycabta
https://github.com/ruby/reline/commit/bca9b9012f
2021-10-11[ruby/reline] Use single quotes to match the othersaycabta
https://github.com/ruby/reline/commit/58a7ca4101
2021-10-11[ruby/reline] Add a test for Reline.delete_textaycabta
https://github.com/ruby/reline/commit/d1c5700fa3
2021-10-11[ruby/reline] Add assertions for Reline.pointaycabta
https://github.com/ruby/reline/commit/a8c7b207f0
2021-10-11[ruby/reline] Add a test for Reline.insert_text and Reline.line_bufferaycabta
https://github.com/ruby/reline/commit/ae828208e1
2021-10-11[ruby/irb] Set default return_formataycabta
https://github.com/ruby/irb/commit/7ee15bc668
2021-10-11[ruby/irb] Clean up a duplicated definitionTakashi Kokubun
I simply forgot deleting it. https://github.com/ruby/irb/commit/65399d5e9f
2021-10-10[ruby/irb] trufflruby fails on the show_source testTakashi Kokubun
https://github.com/ruby/irb/commit/460bd12b87
2021-10-10[ruby/irb] Add a test of find_end for show_source commandTakashi Kokubun
https://github.com/ruby/irb/commit/68e6ca95a0
2021-10-11[ruby/reline] Add tests for dialog with fullwidth chars and corner casesaycabta
https://github.com/ruby/reline/commit/35ab5d47a8
2021-10-11[ruby/ipaddr] Make IPAddr#include? consider range of argumentJeremy Evans
It would be nice to use Range#cover? here, but it doesn't work correctly before Ruby 2.6. Switch to manual checks of the beginning of end of the ranges. Fixes Ruby Bug 14119 https://github.com/ruby/ipaddr/commit/f45630da31
2021-10-11[ruby/io-console] Skip Interrupt test on Solaris tooNobuyoshi Nakada
https://github.com/ruby/io-console/commit/48db3616da
2021-10-10[ruby/rubygems] Check safety of packaged symlinksDavid Rodríguez
If we explicitly disallow the creation of symlinks that point to files outside of the destination directory, we can avoid any other safety checks while creating directories, because we can be sure they will always fall under the destination directory as well. https://github.com/rubygems/rubygems/commit/555692b8de
2021-10-10[ruby/rubygems] Explicit check file not created outside of destinationDavid Rodríguez
https://github.com/rubygems/rubygems/commit/1e363dbbcb
2021-10-10[ruby/rubygems] Refactor symlink attack specsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/9180b390aa
2021-10-09[ruby/reline] Fix tests to show dialog to the right edgeaycabta
https://github.com/ruby/reline/commit/6a0d0ada94
2021-10-09[ruby/reline] Add a test for full-width scrollbaraycabta
https://github.com/ruby/reline/commit/cff83e68f8
2021-10-09[rubygems/rubygems] Improve performance of Specification#missing_extensions?Masataka Pocke Kuwabara
https://github.com/rubygems/rubygems/commit/90c1919f94
2021-10-08Remove autoload for constant if the autoload failsJeremy Evans
Previously, if an autoload failed (the file was loaded, but the constant was not defined by the autoloaded file). Ruby will try to autoload again if you delete the autoloaded file from $LOADED_FEATURES. With this change, the autoload and the constant itself are removed as soon as it fails. To handle cases where multiple threads are autoloading, when deleting an autoload, handle the case where another thread already deleted it. Fixes [Bug #15790] Notes: Merged: https://github.com/ruby/ruby/pull/4715 Merged-By: jeremyevans <code@jeremyevans.net>
2021-10-08Add tests for the edge caces of `String#end_with?`Nobuyoshi Nakada
Also, check if a suffix is empty, to guarantee the assumption of `onigenc_get_left_adjust_char_head` that `*s` is always accessible, even in the case of `SHARABLE_MIDDLE_SUBSTRING`.
2021-10-08[ruby/irb] Add tests for truncated show doc dialogaycabta
But pending them now because they need dummy document data to show doc. https://github.com/ruby/irb/commit/ac471ee14e
2021-10-08[ruby/reline] Add a test for narrow screen without scrollbaraycabta
https://github.com/ruby/reline/commit/44cd35e65d
2021-10-08[ruby/reline] Cut off the excess on narrow screenaycabta
https://github.com/ruby/reline/commit/972cc993ca
2021-10-07Dump outer variables tables when dumping an iseq to binaryAaron Patterson
This commit dumps the outer variables table when dumping an iseq to binary. This fixes a case where Ractors aren't able to tell what outer variables belong to a lambda after the lambda is loaded via ISeq.load_from_binary [Bug #18232] [ruby-core:105504] Notes: Merged: https://github.com/ruby/ruby/pull/4942
2021-10-08Remove duplicate value checks on `mrhs` which always has the valueNobuyoshi Nakada
2021-10-07[ruby/ipaddr] Support zone identifiers in IPv6 addressesJeremy Evans
These are supported by Ruby's socket library if the operating system supports zone indentifiers, so they should be supported by ipaddr. See RFCs 4007 and 6874 for additional information. Implements Ruby Feature #10911 https://github.com/ruby/ipaddr/commit/09a6408fb2
2021-10-07[ruby/ipaddr] Add netmask method that returns net mask as string.Bogdan Irimie
https://github.com/ruby/ipaddr/commit/283d16f3a3
2021-10-07[ruby/ipaddr] Disallow leading zeros in maskJeremy Evans
https://github.com/ruby/ipaddr/commit/f49d2d49a4
2021-10-07[ruby/ipaddr] Raise if extra slashes followNobuyoshi Nakada
https://bugs.ruby-lang.org/issues/15832 https://github.com/ruby/ipaddr/commit/de9805d6fa
2021-10-07[ruby/ipaddr] Removing superfluos assingments & returnEspartaco Palma
Also adding test for ntop https://github.com/ruby/ipaddr/commit/0ba16cca10
2021-10-07test/ruby/test_process (test_no_curdir): tentatively skipped on SolarisYusuke Endoh
The test gets stuck on Solaris CI. http://rubyci.s3.amazonaws.com/solaris11-gcc/ruby-master/log/20211006T050007Z.fail.html.gz#test-all ``` [14558/21042] TestProcess#test_no_curdirtimeout: output interval exceeds 1800.0 seconds. timeout: the process group 3857 is alive. ``` Related to ee89543e09a2d4e4c503267c248ba7bfffa668cb
2021-10-05marshal.c Marshal.load accepts a freeze: true option.Jean Boussier
Fixes [Feature #18148] When set, all the loaded objects are returned as frozen. If a proc is provided, it is called with the objects already frozen.
2021-10-05[ruby/reline] Reduce window size so that it can be displayed in my desktopaycabta
https://github.com/ruby/reline/commit/22359d50ab
2021-10-05[ruby/reline] Cyrillic chars are now forced to be displayed in full-width on ↵aycabta
Windows So testing is no longer necessary. https://github.com/ruby/reline/commit/c59589548b
2021-10-05Show the last line at unexpected end-of-input errorNobuyoshi Nakada
2021-10-04Fix regression on Solaris after change to use realpath on loaded featuresJeremy Evans
After the change to use realpath on loaded features, Solaris CI started failing in test_no_curdir (which tests behavior for running ruby without a working directory). I was able to trace the problem to the following call chain: rb_call_inits->Init_Thread->Init_thread_sync->rb_provide-> get_loaded_features_index->rb_check_realpath->rb_dir_getwd_ospath-> ruby_getcwd This will throw an exception, but because Ruby hasn't been fully initialized at the point the exception is thrown, it just exits with a status of 1. The bug here is that rb_check_realpath should not raise an exception, it should return nil. This bug is hit on Solaris because Solaris uses the realpath emulation instead of native realpath, and the realpath emualation raised instead of returning nil if the mode was RB_REALPATH_CHECK. Use rb_rescue in the realpath emulation if the mode is RB_REALPATH_CHECK, and swallow any exceptions raised and return nil. Notes: Merged: https://github.com/ruby/ruby/pull/4935
2021-10-04Revert rescue around internal realpath call on SolarisJeremy Evans
Solaris CI still has a problem even with these commits, so it doesn't appear to fix the issue. Reverting both 84e8e2a39bba874433b661bd378165bd03c9d6aa and bfd2f159f0c60ef8ac5bce6042edd25a571769b7.
2021-10-04Only rescue realpath calls during require on SolarisJeremy Evans
Remove temporary skip of test_no_curdir to see if this fixes the problem. Notes: Merged: https://github.com/ruby/ruby/pull/4931
2021-10-04The same warning for static symbol literalNobuyoshi Nakada
2021-10-04Fix the warning message for dynamic symbol literal in conditionNobuyoshi Nakada
2021-10-03Remove extraneous conversion to float [Bug #18236]Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4927
2021-10-03[ruby/reline] Re-calc the scroll pos when the content in dialog is shortenedaycabta
https://github.com/ruby/reline/commit/12ea63e6e0
2021-10-03Revert "mkmf.rb: try linking at try_var" [Bug #18235]Nobuyoshi Nakada
This reverts commit 524513be399e81bb170ec88aa0d501f33cbde8c3, which can return false positive by existing but unusable symbol, including functions.
2021-10-03[ruby/reline] Add a test for rerendering arg prompt after pastingaycabta
https://github.com/ruby/reline/commit/5414a42b0e
2021-10-03[ruby/reline] Add newlines for readabilityaycabta
https://github.com/ruby/reline/commit/2a60aacebb
2021-10-03[ruby/reline] Stop using Ctrl+j to test on Windowsaycabta
Because Ctrl+j and Enter are the same on Windows. https://github.com/ruby/reline/commit/fa885ed449