aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Improved Enumerable::Lazy#flat_mapNobuyoshi Nakada2020-07-233-42/+60
| | | | | | | | | | | | | | | | | | | | |compare-ruby|built-ruby| |:-------|-----------:|---------:| |num3 | 96.333k| 160.732k| | | -| 1.67x| |num10 | 96.615k| 159.150k| | | -| 1.65x| |ary2 | 103.836k| 172.787k| | | -| 1.66x| |ary10 | 109.249k| 177.252k| | | -| 1.62x| |ary20 | 106.628k| 177.371k| | | -| 1.66x| |ary50 | 107.135k| 162.282k| | | -| 1.51x| |ary100 | 106.513k| 177.626k| | | -| 1.67x|
* New functions to pass more elements than passedNobuyoshi Nakada2020-07-231-4/+26
|
* Removed fragile tests in https://github.com/ruby/ruby/pull/3349Nobuyoshi Nakada2020-07-231-22/+0
|
* dln.h: delete unused codes卜部昌平2020-07-231-16/+0
| | | | defines.h already has them. Also __cplusplus can never be defined here.
* include/ruby/util.h: delete unused codes卜部昌平2020-07-231-21/+0
| | | | | | | | - util.h includes defines.h, - ... which includes ruby/backward/2/stdarg.h, - ... which always defines _. This `#ifndef _` must never happen.
* Remove unused field in rb_iseq_constant_bodyAlan Wu2020-07-232-5/+0
| | | | | This was introduced in 191ce5344ec42c91571f8f47c85be9138262b1c7 and has been unused since beae6cbf0fd8b6619e5212552de98022d4c4d4d4
* Ensure time object meets a given condition [Bug #17042]Nobuyoshi Nakada2020-07-231-15/+11
|
* Merge pull request #3352 from S-H-GAMELINKS/bug/17042-strftimeS.H2020-07-231-0/+4
| | | Fix Time#strftime with timezone [Bug #17042]
* Test for weeknumber with timezone [Bug #17042]Nobuyoshi Nakada2020-07-231-0/+1
|
* [ruby/optparse] Define OptionParser::VersionNobuyoshi Nakada2020-07-232-2/+12
| | | | https://github.com/ruby/optparse/commit/4c0021b5b2
* [ruby/optparse] Update required ruby versionNobuyoshi Nakada2020-07-231-1/+1
| | | | | | | Now needs `DidYouMean#formatter` which is provided since did_you_mean 1.2, which requires ruby 2.5. https://github.com/ruby/optparse/commit/d44bb5c715
* Avoid allocating a string when dumping an anonymous module or classJean Boussier2020-07-232-2/+32
|
* Enhanced RDoc for Array (#3350)Burdette Lamar2020-07-221-46/+72
| | | | | | | | | | | | * Enhanced RDoc for Array Methods: == eql? hash include? <=>
* Lazily insert origins on prepend to save memoryAlan Wu2020-07-223-10/+20
| | | | | | | | | | | | | | | | 98286e9850936e27e8ae5e4f20858cc9c13d2dde made it so that `Module#include` allocates an origin iclass on each use. Since `include` is widely used, the extra allocation can contribute significantly to memory usage. Instead of always allocating in anticipation of prepend, this change takes a different approach. The new setup inserts a origin iclass into the super chains of all the children of the module when prepend happens for the first time. rb_ensure_origin is made static again since now that adding an origin now means walking over all usages, we want to limit the number of places where we do it.
* * 2020-07-23 [ci skip]git2020-07-231-1/+1
|
* Switch reserved for numbered parameter warning to SyntaxErrorJeremy Evans2020-07-223-19/+37
|
* Share the size for sigaltstack between configure.ac and signal.cNobuyoshi Nakada2020-07-222-4/+7
|
* configure.ac: Bump the size of sigaltstackJake Zimmerman2020-07-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The RubyVM uses C macro defines to feature detect whether `backtrace(2)` support is available, and if so it includes C level backtraces when the RubyVM itself crashes. But on my machine, C level backtraces from `vm_dump.c` didn't work when using a version of Ruby buillt on the machine, but worked fine when using a version of Ruby built on another machine and copied to my machine. The default autoconf test for backtraces uses a sigaltstack size that is too small, so the SIGSEGV signal handler itself causes a SIGSEGV). I noticed that signal.c uses a larger sigaltstack size: https://github.com/ruby/ruby/blob/v2_6_5/signal.c#L568 The specific variables it looks at: - `HAVE_BACKTRACE` this is a macro defined by autoconf because there is a line in the configure script like `AC_CHECK_FUNCS(backtrace)` (see the autoconf docs for more). - `BROKEN_BACKTRACE` this comes from a custom program that Ruby's configure script runs to attempt to figure out whether actually using backtrace(2) in a real program works. You can see the autoconf program here. <https://github.com/ruby/ruby/blob/v2_6_5/configure.ac#L2817-L2863> It uses sigaltstack and SA_ONSTACK to create a seperate stack for handling signals. The problem was: SIGSTKSZ (which comes from a system header!) was not suggesting a large enough stack size. When checking on an Ubuntu 16.04 box, we found that SIGSTKSZ was 8192 and MINSIGSTKSZ was 2048.
* Promote optparse to default gemsHiroshi SHIBATA2020-07-224-3/+26
|
* Enhanced RDoc for ArrayBurdetteLamar2020-07-211-7/+1
|
* Enhanced RDoc for ArrayBurdetteLamar2020-07-211-2/+4
|
* Enhanced RDoc for ArrayBurdetteLamar2020-07-211-60/+90
|
* Add require 'irb/ruby-lex' to use RubyLexaycabta2020-07-221-0/+1
|
* Sometimes result indicator (=>) isn't shownaycabta2020-07-221-1/+1
|
* Use simple assersionaycabta2020-07-221-3/+1
|
* * 2020-07-22 [ci skip]git2020-07-221-1/+1
|
* [ruby/rdoc] Create link to unary operator methods correctlyhyrious2020-07-222-3/+3
| | | | https://github.com/ruby/rdoc/commit/54500cf12a
* [ruby/rdoc] Remove empty lines from html file by using ERB trim_mode flagBenoit Tigeot2020-07-2216-134/+131
| | | | https://github.com/ruby/rdoc/commit/9e27299a46
* [ruby/rdoc] Fix parsing of rb_define_module_underJeremy Evans2020-07-221-1/+1
| | | | | | Fixes Ruby Bug #15819 https://github.com/ruby/rdoc/commit/94a052d833
* [ruby/rdoc] Fix RDoc::Context#instance_method_listaycabta2020-07-221-1/+1
| | | | | | The warn method returns nil, it's a bug of #instance_method_list. https://github.com/ruby/rdoc/commit/a20df89263
* [ruby/irb] handle rescue modifier properlyNobuhiro IMAI2020-07-222-5/+36
| | | | https://github.com/ruby/irb/commit/6de1341f5e
* [ruby/irb] Add test_eval_object_without_inspect_methodaycabta2020-07-221-0/+17
| | | | https://github.com/ruby/irb/commit/c0d9a26bce
* [ruby/irb] Fix error when `inspect` is called but not found in inspectorMasataka Pocke Kuwabara2020-07-221-0/+1
| | | | https://github.com/ruby/irb/commit/ce6d53e6d9
* [ruby/irb] Add encoding magic comments of editorsaycabta2020-07-221-0/+26
| | | | https://github.com/ruby/irb/commit/f8c10ea24b
* [ruby/irb] Simplify RubyLex.compile_with_errors_suppressedaycabta2020-07-222-12/+11
| | | | | | | | | | | | | | | | nobu-san reviewed, https://github.com/ruby/irb/pull/106#pullrequestreview-423400033 > How about lexer = Ripper::Lexer.new(";\n#{code}", nil, 0)? > Encoding pragma is effective only at the beginning. > And the semicolon and newline will be skipped because the position is before > the initial pos. I employ the way. Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> https://github.com/ruby/irb/commit/e593cc65b7
* [ruby/irb] Suppress incomplete encoding magic comment erroraycabta2020-07-222-2/+16
| | | | https://github.com/ruby/irb/commit/443e90af80
* [ruby/irb] Suppress incomplete coding magic comment erroraycabta2020-07-223-21/+53
| | | | https://github.com/ruby/irb/commit/6a457edbd1
* [DOC] time.c document updated.Tanaka Akira2020-07-211-113/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fraction -> subsecond for consistency with method name * The sentence, "A non-portable feature allows the offset to be negative on some systems.", is removed. Time before 1970 should work portably now. If localtime() doesn't work before 1970, Ruby should extrapolate it. * Time::new -> Time.new "::" for method call is not common notation now. * Time#to_i truncates subsecond * Time#to_f approximates a value in Time object * Time#to_r The sentence, "You can use this method to convert _time_ to another Epoch.", is removed. It is not clear because no actual example of "another Epoch" is given. * Time#usec truncates fraction of microseconds. * Time#nsec truncates fraction of nanoseconds. * describe Time#inspect shows subsecond since Ruby 2.7.0.
* Add memsize support for the call cache tableAlan Wu2020-07-201-0/+24
| | | | | Each class/module/iclass can potentially have their own cc table. Count their malloc usage.
* * 2020-07-21 [ci skip]git2020-07-211-1/+1
|
* [ruby/csv] Bump minimum ruby version to 2.5.0 (#159)Gabriel Nagy2020-07-211-1/+1
| | | | | | A dependency to stringio was added to csv, which requires Ruby version >= 2.5. Bump the gemspec version accordingly. https://github.com/ruby/csv/commit/bc5a26029f
* [ruby/csv] Move doc/* to doc/csv/* to work in ruby/ruby tooSutou Kouhei2020-07-211-29/+29
| | | | https://github.com/ruby/csv/commit/910f8e0c5d
* [ruby/csv] Enhanced RDoc for several methods (#158)Burdette Lamar2020-07-201-16/+112
| | | | | | | | | | | * Enhanced RDoc for several methods * Update lib/csv.rb Co-authored-by: Sutou Kouhei <kou@cozmixng.org> Co-authored-by: Sutou Kouhei <kou@cozmixng.org> https://github.com/ruby/csv/commit/72e8b00e51
* [ruby/csv] Bump versionSutou Kouhei2020-07-201-1/+1
| | | | https://github.com/ruby/csv/commit/f9cd046d66
* [ruby/csv] Require stringio 0.1.3 or laterSutou Kouhei2020-07-201-0/+1
| | | | https://github.com/ruby/csv/commit/09dd9f2771
* [ruby/stringio] Bump version to 0.1.3Nobuyoshi Nakada2020-07-201-1/+1
| | | | https://github.com/ruby/stringio/commit/376516cd2d
* [ruby/stringio] No compatibility check in US-ASCII caseNobuyoshi Nakada2020-07-202-2/+9
| | | | https://github.com/ruby/stringio/commit/59df1c8293
* [ruby/stringio] Added non-ASCII but convertible encoding caseNobuyoshi Nakada2020-07-201-0/+3
| | | | https://github.com/ruby/stringio/commit/1d28e5c969
* [ruby/stringio] Removed wrong UNREACHABLENobuyoshi Nakada2020-07-201-1/+0
| | | | https://github.com/ruby/stringio/commit/f528538d10
* [ruby/stringio] Bump version to 0.1.2Nobuyoshi Nakada2020-07-201-1/+1
| | | | https://github.com/ruby/stringio/commit/8cbe3f7397