aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* add predefined macros for Doxygen卜部昌平2020-02-061-3/+43
| | | | | | | Predefined macros are practices not very well recommended, but can be better than having no documents at all. Without those predefined macros, Doxygen confused for instace PUREFUNC(int foo()) to be a declaration of PUREFUNC, not foo.
* emacs mode addition卜部昌平2020-02-061-0/+2
| | | | | Now that we have C++ header files, why not let their indents follow our way.
* * 2020-02-06 [ci skip]git2020-02-061-1/+1
|
* Increase the frozen_strings table initial sizeJean Boussier2020-02-061-1/+1
| | | | | | | | | | | It was set to 1000 in a4a2b9be7a55bb61d17cf9673ed0d2a93bb52d31. However on ruby-2.7.0p0, there are much more than 1k frozen string right after boot: ``` $ ruby -robjspace -e 'p ObjectSpace.each_object(String).select { |s| s.frozen? && ObjectSpace.dump(s).include?(%{"fstring":true})}.uniq.count' 5948 ```
* * 2020-02-05 [ci skip]git2020-02-051-1/+1
|
* Fixed the output from separated test in parallel testNobuyoshi Nakada2020-02-051-1/+1
| | | | | | To output to the STDOUT of the parent process according to the parallel test protocol, should send to the `MiniTest::Unit.output` instead of each own STDOUT.
* Fixed FD leaksNobuyoshi Nakada2020-02-051-0/+1
|
* Get rid of nested string interpolations to be editor-friendlyNobuyoshi Nakada2020-02-051-3/+5
|
* just use STDOUTNARUSE, Yui2020-02-041-4/+2
|
* Add call-seq to Pathname#open from File.openKazuhiro NISHIYAMA2020-02-041-0/+7
| | | | | | | before: ``` open(p1 = v1, p2 = v2, p3 = v3) ```
* On Windows it cannot receive fd except 0..2NARUSE, Yui2020-02-041-7/+15
|
* assert_separately uses their own pipe instead of stdoutNARUSE, Yui2020-02-041-3/+8
|
* Add the loaded feature after no exception raisedNobuyoshi Nakada2020-02-042-2/+8
| | | | | Retrying after rescued `require` should try to load the same library again. [Bug #16607]
* Do not warn CR inside string literalNobuyoshi Nakada2020-02-042-8/+15
|
* Fix inaccuracy in encoding testsLars Kanis2020-02-042-5/+5
| | | | | | These tests assume Encoding.find('locale') == Encoding.find('external') and fail if they are distinct.
* Fix linkage of popen_deadlock testMikhail Novosyolov2020-02-041-0/+1
| | | | | | | | DEBUG: BUILDSTDERR: /usr/bin/ld: infinite_loop_dlsym.o: in function `native_loop_dlsym': DEBUG: BUILDSTDERR: /builddir/build/BUILD/ruby-2.7.0/ext/-test-/popen_deadlock/infinite_loop_dlsym.c:16: undefined reference to `dlsym' DEBUG: BUILDSTDERR: collect2: error: ld returned 1 exit status Ruby was built with LibreSSL.
* Fix description of Encoding.default_(in|ex)ternalLars Kanis2020-02-031-3/+2
| | | | | | | | Data written to files is not transcoded per default, but only when default_internal is set. The default for default_internal is nil and doesn't depend on the source file encoding.
* * 2020-02-04 [ci skip]git2020-02-041-1/+1
|
* Fix SimpleDelegator respond_to? regressionJean Boussier2020-02-032-1/+22
| | | | | | | | | In 2.6, SimpleDelegator would always use the target `respond_to?` In 2.7.0 it doesn't if the target does not inherit from Object. This breaks compatibility for delegated objects that inherit from BasicObject and redefine `respond_to?`.
* Check type of empty keyword [Bug #16603]Seiei Miyagi2020-02-032-1/+7
| | | | Co-authored-by: Yusuke Endoh <mame@ruby-lang.org>
* support MJIT with debug option.Koichi Sasada2020-02-031-2/+7
| | | | | VM_CHECK_MODE > 0 with optflags=-O0 can not run JIT tests because of link problems. This patch fix them.
* Parenthesized macro argumentsNobuyoshi Nakada2020-02-031-14/+14
|
* Make `rb_scan_args_kw` inline tooNobuyoshi Nakada2020-02-032-19/+40
|
* Moved runtime assignemntsNobuyoshi Nakada2020-02-031-56/+48
| | | | | | Separate assignemnts of dynamically given runtime values in `rb_scan_args_assign` from parsing statically given format in `rb_scan_args_parse`.
* test/rubygems/test_gem_remote_fetcher.rb: Remove a duplicated testYusuke Endoh2020-02-031-15/+0
| | | | | | | | https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu1604/ruby-master/log/20200203T003005Z.log.html.gz ``` /home/hsbt/chkbuild/tmp/build/20200203T003005Z/ruby/test/rubygems/test_gem_remote_fetcher.rb:485: warning: method redefined; discarding old test_fetch_path_socket_error /home/hsbt/chkbuild/tmp/build/20200203T003005Z/ruby/test/rubygems/test_gem_remote_fetcher.rb:167: warning: previous definition of test_fetch_path_socket_error was here ```
* * 2020-02-03 [ci skip]git2020-02-031-1/+1
|
* `struct rb_scan_args_t::vargs` is never usedNobuyoshi Nakada2020-02-031-1/+0
|
* Removed no longer used variable `last_hash`Nobuyoshi Nakada2020-02-022-12/+3
| | | | | | | | | 1. By substituting `n_var` with its initializer, `0 < n_var` is equivalent to `argc > argi + n_trail`. 2. As `argi` is non-negative, so `argi + n_trail >= n_trail`, and the above expression is equivalent to `argc > n_trail`. 3. Therefore, `f_last` is always false, and `last_hash` is no longer used.
* * 2020-02-02 [ci skip]git2020-02-021-1/+1
|
* [ruby/reline] Bypass cursor down when a char is rendered at eol on Windowsaycabta2020-02-024-3/+23
| | | | | | | A newline is automatically inserted if a character is rendered at eol on Windows command prompt. https://github.com/ruby/reline/commit/4bfea07e4a
* [ruby/reline] Fix Reline::Windows#scroll_downaycabta2020-02-021-1/+1
| | | | | | I mistook Right and Bottom. https://github.com/ruby/reline/commit/8be401c5f5
* [ruby/irb] Exclude useless files from RDocNobuyoshi Nakada2020-02-021-1/+1
| | | | https://github.com/ruby/irb/commit/8f1ab2400c
* [ruby/irb] Add a new easter egg: dancing rubyYusuke Endoh2020-02-023-5/+139
| | | | https://github.com/ruby/irb/commit/e37dc7e58e
* [ruby/irb] Reformat LICENSE.txt [ci skip]Nobuyoshi Nakada2020-02-021-3/+3
| | | | | | To be valid as an ordered list. https://github.com/ruby/irb/commit/078205e57d
* Indent ChangeLog contents [ci skip]Nobuyoshi Nakada2020-02-011-3/+5
| | | | | Separate each entries more obviously as `page-delimiter' works fine.
* Removed useless shebang and executable bit [ci skip]Nobuyoshi Nakada2020-02-011-1/+0
|
* Explicitly set the encoding of ChangeLog file to UTF-8 [ci skip]Nobuyoshi Nakada2020-02-011-0/+1
|
* fix rdoc formatting [ci skip]Taha Husain2020-02-011-2/+1
|
* [ruby/irb] Exclude useless files from RDocNobuyoshi Nakada2020-02-012-4/+1
|
* fix delete unnecessary return卜部昌平2020-02-011-1/+1
| | | | Was my mistake to put return here.
* UnpackedInstaller on rbinstall.rb is inherited from Gem::Installer.Hiroshi SHIBATA2020-02-011-1/+2
| | | | | It also needs to explicitly convert from String to Gem::Package with initialization.
* Gem::Installer.new(String, options) is obsoleted. Explicitly convertedHiroshi SHIBATA2020-02-011-1/+2
| | | | to Gem::Package from String instance.
* Merge the current master branch of rubygems/rubygems.Hiroshi SHIBATA2020-02-0154-1207/+1236
| | | | Just started to develop RubyGems 3.2.0.
* 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.