summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-23New functions to pass more elements than passedNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/3339
2020-07-23Removed fragile tests in https://github.com/ruby/ruby/pull/3349Nobuyoshi Nakada
2020-07-23dln.h: delete unused codes卜部昌平
defines.h already has them. Also __cplusplus can never be defined here. Notes: Merged: https://github.com/ruby/ruby/pull/3348
2020-07-23include/ruby/util.h: delete unused codes卜部昌平
- util.h includes defines.h, - ... which includes ruby/backward/2/stdarg.h, - ... which always defines _. This `#ifndef _` must never happen. Notes: Merged: https://github.com/ruby/ruby/pull/3348
2020-07-23Remove unused field in rb_iseq_constant_bodyAlan Wu
This was introduced in 191ce5344ec42c91571f8f47c85be9138262b1c7 and has been unused since beae6cbf0fd8b6619e5212552de98022d4c4d4d4 Notes: Merged: https://github.com/ruby/ruby/pull/3353
2020-07-23Ensure time object meets a given condition [Bug #17042]Nobuyoshi Nakada
2020-07-23Merge pull request #3352 from S-H-GAMELINKS/bug/17042-strftimeS.H
Fix Time#strftime with timezone [Bug #17042] Notes: Merged-By: nobu <nobu@ruby-lang.org>
2020-07-23Test for weeknumber with timezone [Bug #17042]Nobuyoshi Nakada
2020-07-23[ruby/optparse] Define OptionParser::VersionNobuyoshi Nakada
https://github.com/ruby/optparse/commit/4c0021b5b2
2020-07-23[ruby/optparse] Update required ruby versionNobuyoshi Nakada
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
2020-07-23Avoid allocating a string when dumping an anonymous module or classJean Boussier
Notes: Merged: https://github.com/ruby/ruby/pull/3349
2020-07-22Enhanced RDoc for Array (#3350)Burdette Lamar
* Enhanced RDoc for Array Methods: == eql? hash include? <=> Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2020-07-22Lazily insert origins on prepend to save memoryAlan Wu
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. Notes: Merged: https://github.com/ruby/ruby/pull/3331
2020-07-23* 2020-07-23 [ci skip]git
2020-07-22Switch reserved for numbered parameter warning to SyntaxErrorJeremy Evans
Notes: Merged: https://github.com/ruby/ruby/pull/3163
2020-07-22Share the size for sigaltstack between configure.ac and signal.cNobuyoshi Nakada
2020-07-22configure.ac: Bump the size of sigaltstackJake Zimmerman
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. Notes: Merged: https://github.com/ruby/ruby/pull/3307
2020-07-22Promote optparse to default gemsHiroshi SHIBATA
2020-07-21Enhanced RDoc for ArrayBurdetteLamar
Notes: Merged: https://github.com/ruby/ruby/pull/3318
2020-07-21Enhanced RDoc for ArrayBurdetteLamar
Notes: Merged: https://github.com/ruby/ruby/pull/3318
2020-07-21Enhanced RDoc for ArrayBurdetteLamar
Notes: Merged: https://github.com/ruby/ruby/pull/3318
2020-07-22Add require 'irb/ruby-lex' to use RubyLexaycabta
2020-07-22Sometimes result indicator (=>) isn't shownaycabta
2020-07-22Use simple assersionaycabta
2020-07-22* 2020-07-22 [ci skip]git
2020-07-22[ruby/rdoc] Create link to unary operator methods correctlyhyrious
https://github.com/ruby/rdoc/commit/54500cf12a
2020-07-22[ruby/rdoc] Remove empty lines from html file by using ERB trim_mode flagBenoit Tigeot
https://github.com/ruby/rdoc/commit/9e27299a46
2020-07-22[ruby/rdoc] Fix parsing of rb_define_module_underJeremy Evans
Fixes Ruby Bug #15819 https://github.com/ruby/rdoc/commit/94a052d833
2020-07-22[ruby/rdoc] Fix RDoc::Context#instance_method_listaycabta
The warn method returns nil, it's a bug of #instance_method_list. https://github.com/ruby/rdoc/commit/a20df89263
2020-07-22[ruby/irb] handle rescue modifier properlyNobuhiro IMAI
https://github.com/ruby/irb/commit/6de1341f5e
2020-07-22[ruby/irb] Add test_eval_object_without_inspect_methodaycabta
https://github.com/ruby/irb/commit/c0d9a26bce
2020-07-22[ruby/irb] Fix error when `inspect` is called but not found in inspectorMasataka Pocke Kuwabara
https://github.com/ruby/irb/commit/ce6d53e6d9
2020-07-22[ruby/irb] Add encoding magic comments of editorsaycabta
https://github.com/ruby/irb/commit/f8c10ea24b
2020-07-22[ruby/irb] Simplify RubyLex.compile_with_errors_suppressedaycabta
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
2020-07-22[ruby/irb] Suppress incomplete encoding magic comment erroraycabta
https://github.com/ruby/irb/commit/443e90af80
2020-07-22[ruby/irb] Suppress incomplete coding magic comment erroraycabta
https://github.com/ruby/irb/commit/6a457edbd1
2020-07-21[DOC] time.c document updated.Tanaka Akira
* 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.
2020-07-20Add memsize support for the call cache tableAlan Wu
Each class/module/iclass can potentially have their own cc table. Count their malloc usage. Notes: Merged: https://github.com/ruby/ruby/pull/3336
2020-07-21* 2020-07-21 [ci skip]git
2020-07-21[ruby/csv] Bump minimum ruby version to 2.5.0 (#159)Gabriel Nagy
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
2020-07-21[ruby/csv] Move doc/* to doc/csv/* to work in ruby/ruby tooSutou Kouhei
https://github.com/ruby/csv/commit/910f8e0c5d
2020-07-20[ruby/csv] Enhanced RDoc for several methods (#158)Burdette Lamar
* 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 Notes: Merged: https://github.com/ruby/ruby/pull/3335
2020-07-20[ruby/csv] Bump versionSutou Kouhei
https://github.com/ruby/csv/commit/f9cd046d66 Notes: Merged: https://github.com/ruby/ruby/pull/3335
2020-07-20[ruby/csv] Require stringio 0.1.3 or laterSutou Kouhei
https://github.com/ruby/csv/commit/09dd9f2771 Notes: Merged: https://github.com/ruby/ruby/pull/3335
2020-07-20[ruby/stringio] Bump version to 0.1.3Nobuyoshi Nakada
https://github.com/ruby/stringio/commit/376516cd2d Notes: Merged: https://github.com/ruby/ruby/pull/3334
2020-07-20[ruby/stringio] No compatibility check in US-ASCII caseNobuyoshi Nakada
https://github.com/ruby/stringio/commit/59df1c8293 Notes: Merged: https://github.com/ruby/ruby/pull/3334
2020-07-20[ruby/stringio] Added non-ASCII but convertible encoding caseNobuyoshi Nakada
https://github.com/ruby/stringio/commit/1d28e5c969 Notes: Merged: https://github.com/ruby/ruby/pull/3334
2020-07-20[ruby/stringio] Removed wrong UNREACHABLENobuyoshi Nakada
https://github.com/ruby/stringio/commit/f528538d10 Notes: Merged: https://github.com/ruby/ruby/pull/3334
2020-07-20[ruby/stringio] Bump version to 0.1.2Nobuyoshi Nakada
https://github.com/ruby/stringio/commit/8cbe3f7397 Notes: Merged: https://github.com/ruby/ruby/pull/3334
2020-07-20[ruby/stringio] Raise an error if encoding conversion not succeededNobuyoshi Nakada
As `rb_str_conv_enc()` returns the argument string object itself unchanged when any conversion failed, check the incompatibility in that case. Fixes https://github.com/ruby/stringio/issues/13 https://github.com/ruby/stringio/commit/ede6bdcc71 Notes: Merged: https://github.com/ruby/ruby/pull/3334