Age | Commit message (Collapse) | Author |
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3339
|
|
|
|
defines.h already has them. Also __cplusplus can never be defined here.
Notes:
Merged: https://github.com/ruby/ruby/pull/3348
|
|
- 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
|
|
This was introduced in 191ce5344ec42c91571f8f47c85be9138262b1c7
and has been unused since beae6cbf0fd8b6619e5212552de98022d4c4d4d4
Notes:
Merged: https://github.com/ruby/ruby/pull/3353
|
|
|
|
Fix Time#strftime with timezone [Bug #17042]
Notes:
Merged-By: nobu <nobu@ruby-lang.org>
|
|
|
|
https://github.com/ruby/optparse/commit/4c0021b5b2
|
|
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
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3349
|
|
* Enhanced RDoc for Array
Methods:
==
eql?
hash
include?
<=>
Notes:
Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
|
|
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
|
|
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3163
|
|
|
|
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
|
|
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3318
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3318
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3318
|
|
|
|
|
|
|
|
|
|
https://github.com/ruby/rdoc/commit/54500cf12a
|
|
https://github.com/ruby/rdoc/commit/9e27299a46
|
|
Fixes Ruby Bug #15819
https://github.com/ruby/rdoc/commit/94a052d833
|
|
The warn method returns nil, it's a bug of #instance_method_list.
https://github.com/ruby/rdoc/commit/a20df89263
|
|
https://github.com/ruby/irb/commit/6de1341f5e
|
|
https://github.com/ruby/irb/commit/c0d9a26bce
|
|
https://github.com/ruby/irb/commit/ce6d53e6d9
|
|
https://github.com/ruby/irb/commit/f8c10ea24b
|
|
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
|
|
https://github.com/ruby/irb/commit/443e90af80
|
|
https://github.com/ruby/irb/commit/6a457edbd1
|
|
* 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.
|
|
Each class/module/iclass can potentially have their own cc table.
Count their malloc usage.
Notes:
Merged: https://github.com/ruby/ruby/pull/3336
|
|
|
|
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
|
|
https://github.com/ruby/csv/commit/910f8e0c5d
|
|
* 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
|
|
https://github.com/ruby/csv/commit/f9cd046d66
Notes:
Merged: https://github.com/ruby/ruby/pull/3335
|
|
https://github.com/ruby/csv/commit/09dd9f2771
Notes:
Merged: https://github.com/ruby/ruby/pull/3335
|
|
https://github.com/ruby/stringio/commit/376516cd2d
Notes:
Merged: https://github.com/ruby/ruby/pull/3334
|
|
https://github.com/ruby/stringio/commit/59df1c8293
Notes:
Merged: https://github.com/ruby/ruby/pull/3334
|
|
https://github.com/ruby/stringio/commit/1d28e5c969
Notes:
Merged: https://github.com/ruby/ruby/pull/3334
|
|
https://github.com/ruby/stringio/commit/f528538d10
Notes:
Merged: https://github.com/ruby/ruby/pull/3334
|
|
https://github.com/ruby/stringio/commit/8cbe3f7397
Notes:
Merged: https://github.com/ruby/ruby/pull/3334
|
|
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
|