aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* README*.md: `defines.h` moved [ci skip]Kazuhiro NISHIYAMA2020-02-012-2/+2
| | | | at 2b592580bf65040373b55ff2ccc3b59a0a231a18
* * 2020-02-01 [ci skip]git2020-02-011-2/+2
|
* compile.c: remove a unused variableYusuke Endoh2020-02-011-2/+1
|
* Improve `String#slice!` performanceNobuyoshi Nakada2020-01-312-15/+80
| | | | | | | | | | | | | | Instead of searching twice to extract and to delete, extract and delete the found position at the first search. This makes faster nearly twice, for regexps and strings. | |compare-ruby|built-ruby| |:-------------|-----------:|---------:| |regexp-short | 2.143M| 3.918M| |regexp-long | 105.162k| 205.410k| |string-short | 3.789M| 7.964M| |string-long | 1.301M| 2.457M|
* Make `empty_string` a fake stringNobuyoshi Nakada2020-01-311-9/+9
|
* a bit terse Doxygen comments [ci skip]卜部昌平2020-01-311-167/+35
| | | | | | Creative use of `@copydoc` Doxygen command and abusing its half-broken C parser let us delete some lines of documentations, while preserving document coverages.
* support C++ std::nullptr_t卜部昌平2020-01-314-1/+301
| | | | | | | C++ keyword `nullptr` represents a null pointer (note also that NULL is an integer in C++ due to its design flaw). Its type is `std::nullptr_t`, defined in <cstddef> standard header. Why not support it when the backend implementation can take a null pointer as an argument.
* Return the makefile contentNobuyoshi Nakada2020-01-311-0/+1
| | | | | Block for `create_makefile` is expected to return the content of the makefile.
* Removed type-punning pointer casts around `st_data_t`Nobuyoshi Nakada2020-01-311-12/+13
|
* Avoid allocating a temporary empty string in String#slice!Jean Boussier2020-01-311-3/+8
|
* Move .IGNORE in extconf.rbNARUSE, Yui2020-01-312-3/+1
|
* Support nmakeNARUSE, Yui2020-01-311-0/+2
|
* Fix wrong return value in proc documentation.Florian Heinle2020-01-301-1/+1
|
* Ignore expected errors on compiling C++ source [Bug #16331]NARUSE, Yui2020-01-311-0/+1
| | | | | | | | | | | | | | BSD make can run parallel more aggressively than GNU make. It communicate with other make process through -J option in MAKEFLAGS environment variable to notify a build failure happend in an other pararell make process. https://www.freebsd.org/cgi/man.cgi?make It usually works well but ext/-test-/cxxanyargs/Makefile has two targets which are expected to fail (failure.o and failurem1.o). Additional note: To test and debug this issue, following command will speed up it. `make -f exts.mk -j8 clean all`
* * 2020-01-31 [ci skip]git2020-01-311-1/+1
|
* Use `rb_gc_mark` when marking globalsAaron Patterson2020-01-301-1/+1
| | | | | | I think global references should either be 0 or valid heap pointers. `rb_gc_mark_maybe` checks to see if the pointer is a valid heap pointer, but I believe we already know they are valid addresses
* delegate.rb: fixed keyword arguments in DelegateClassNobuyoshi Nakada2020-01-302-1/+9
| | | | | `Delegator.delegating_block` should delegate keyword arguments separately. [ruby-core:96949]
* Optimized branches in pattern matchingNobuyoshi Nakada2020-01-301-61/+46
|
* Unnamed groups are not captured when named groups are usedNobuyoshi Nakada2020-01-301-4/+4
|
* * 2020-01-30 [ci skip]git2020-01-301-1/+1
|
* Unnamed groups are not captured when named groups are usedNobuyoshi Nakada2020-01-301-1/+1
|
* [ruby/reline] Support GNOME style Home/End key sequences [Bug #16510]aycabta2020-01-291-0/+2
| | | | https://github.com/ruby/reline/commit/788f0df845
* Add more debug printKazuhiro NISHIYAMA2020-01-291-2/+11
| | | | https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris11s-sunc/ruby-master/log/20200129T022510Z.fail.html.gz
* skip SEGV (BUG) tests if ENV['RUBY_ON_BUG'] is given.Koichi Sasada2020-01-291-0/+2
| | | | This environment variable can show additional message on BUG.
* support multi-run for test/ruby/enc/test_regex_casefold.rbKoichi Sasada2020-01-291-1/+1
| | | | should not mutate test data.
* Isolate the PRNG for tmpdir/tempfileNobuyoshi Nakada2020-01-291-1/+9
| | | | To get rid of conflicts affected by `srand`.
* Fix a typo [ci skip]Kazuhiro NISHIYAMA2020-01-291-1/+1
|
* Fix file dependency in makeAlan Wu2020-01-281-0/+2
|
* Update to ruby/spec@f8a2d54Benoit Daloze2020-01-2876-224/+2451
|
* Update to ruby/mspec@9bce874Benoit Daloze2020-01-283-1/+11
|
* Run specs on Ruby 2.7 too to make sure they keep passingBenoit Daloze2020-01-281-2/+15
| | | | | | * With keyword argument changes, it's more likely to break only 2.7 and not other versions. * A few specs were broken on 2.7.0 recently, this should catch them earlier.
* Fix some spec breakage on 2.7 related to keyword argumentsJeremy Evans2020-01-281-11/+21
| | | | | | | These specs were probably added in the commit to fully separate keyword arguments after the release of 2.7.0, but apparently not tested on 2.7 before hand. The enclosing ruby_version guard for these specs limits them to 2.7.
* Run specs against the latest release of 2.4Benoit Daloze2020-01-282-2/+2
|
* Fix version guard in __dir__ specBenoit Daloze2020-01-281-2/+2
|
* fix test cleanup.Koichi Sasada2020-01-291-2/+4
| | | | should remove pathname.
* Revert "srand() should not run in tests."Koichi Sasada2020-01-291-46/+24
| | | | | | | This reverts commit 4d132fa130e16eeb4af4177cfaccc00e05e2f864. There are discussions about using srand() in tests. I'll write a ticket about it and continue to discuss.
* Revert "remove debug code."Koichi Sasada2020-01-291-0/+3
| | | | This reverts commit 65768c80beb64a14c3e918f8ed5e41e9349025d0.
* restore $LOADED_FEATURES.Koichi Sasada2020-01-291-0/+5
| | | | | Dir.tmpdir can return same directory because of rand() value, so we shouldn't rely on different name.
* refactoring: use Proc and Constant.Koichi Sasada2020-01-292-12/+5
|
* * 2020-01-29 [ci skip]git2020-01-291-1/+1
|
* ruby_reset_timezone resets leap_second_info.Tanaka Akira2020-01-292-7/+5
| | | | [Bug #15177]
* Extract a function, ruby_reset_timezone().Tanaka Akira2020-01-283-3/+10
| | | | | Initial implementation of ruby_reset_timezone() assigns ruby_tz_uptodate_p to false.
* Stop parsing copyright notices as document [ci skip]Nobuyoshi Nakada2020-01-2812-0/+29
|
* Revert "Added RDoc files to parse [Bug #16596]"Nobuyoshi Nakada2020-01-281-1/+0
| | | | | | This reverts commit 10842daeb571126a090cb10dedf0cda8c2b7f9a8, because it has no effect and the rdoc file has been installed to lib/racc/rdoc directory.
* remove debug code.Koichi Sasada2020-01-281-3/+0
|
* srand() should not run in tests.Koichi Sasada2020-01-281-24/+46
| | | | | | test_rand.rb calls srand() several times, however it change global rand-sequence (and --seeds doesn't have meaning). This patch makes such tests run in other processes.
* use Minitest::Unit.current_repeat_count to skip multi-run.Koichi Sasada2020-01-281-6/+2
|
* support multi-run for test/ruby/test_time.rbKoichi Sasada2020-01-281-0/+7
| | | | | | | | | | | | | ruby/test_time_tz.rb (not sure only this file affects) changes TZ and it seems to change internal state. This internal state change fails test_2038 and test_timegm on 2nd time execution. At this time I have no idea how to fix this issue, so I skips these tests on 2nd trial. You can try this failure with the following command without this patch. $ make test-all TESTS='--repeat-count=2 ruby/require ruby/time ruby/time_tz'
* Minitest::Unit.current_repeat_countKoichi Sasada2020-01-281-4/+8
| | | | This method returns loop counter for multi-run (0 start).
* support multi-run for test/ruby/test_autoload.rbKoichi Sasada2020-01-281-0/+2
| | | | Another test defines Object::A, but it will fail 2nd test.