| Age | Commit message (Collapse) | Author |
|
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5621
|
|
|
|
|
|
|
|
https://github.com/ruby/cgi/commit/734dfdf1b4
|
|
Otherwise, an empty entry will be generated as `String::new` along
with the one from doc/string.rb.
|
|
With `:markup: ruby` directive so that they are parsed as ruby
scripts.
|
|
|
|
Adds section "Transcoding a Stream," listing relevant methods in IO.
Moves an example from section "String Encoding Example" to the new section.
Removes header "String Encoding Example" for now-empty section.
Changes items in section "Transcoding a String" from labeled list items to bullet list items. (Labeled list items are sometimes rendered with strange indentations for continued lines, and are always rendered with different indentations for the items.)
Notes:
Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
|
|
Although not sure if it is really compatible, let’s give it a
try.
|
|
When relative loading is enabled, the executable ruby is expected
installed at the same directory as the binstub.
|
|
This reverts commit 32ad8df9d1e07e1b2435a8890d070802fcd2989f,
which broke out-of-src build with the pre-generated transcoder sources.
Notes:
Merged-By: nobu <nobu@ruby-lang.org>
|
|
`rb_f_notimplement` has a similar signature with arity=-1, but it has an
extra marker argument to distinguish it from other methods in
compile-time type check in rb_define_method.
This trick is introduced to override a given arity to be -1 since
https://github.com/ruby/ruby/commit/9ef51b0b89a10c8c401cb9f2337e47a25be72cbe
However, the trailing extra argument introduces a signature mismatch
between caller and callee expectation.
This patch adds rb_f_notimplement_internal, which has canonical arity=-1
signature, and makes rb_define_method family to inserts a method entry
with rb_f_notimplement_internal instead of rb_f_notimplement.
Notes:
Merged: https://github.com/ruby/ruby/pull/5612
|
|
https://github.com/ruby/rdoc/commit/135198a31c
|
|
dir.c defines IFTODT if the system doesn't have it. The macro is used
when comparing with rb_pathtype_t's cases. rb_pathtype_t's cases are
defined by DT_XXX macro if they are available, or defined using IFTODT.
Most POSIX-compatible platforms have both IFTODT and DT_XXX and most of
other platforms like MinGW have neither of them. On those platforms,
DT_XXX-oriented rb_pathtype_t is always compared with values converted
by system's IFTODT, and emulated-IFTODT-oriented rb_pathtype_t is always
compared with values converted by emulated-IFTODT.
However, when IFTODT is *not defined* and DT_XXX is *defined*, like
on wasi-libc, DT_XXX-oriented rb_pathtype_t was compared with values
converted by emulated-IFTODT, and they are not guaranteed to be
compatible.
This patch fixes such a situation by using emulated-IFTODT to define
rb_pathtype_t when either IFTODT or DT_XXX is not available.
Notes:
Merged: https://github.com/ruby/ruby/pull/5614
|
|
When out-of-src build, at the beginning of a build, `make -f enc.mk
srcs` generates trans C sources under build dir.
On the other hand, enc/trans/*.o were built from trans C sources
generated under srcdir due to the following auto-generated rules from
enc/depend.
```
encsrcdir = ../src/enc
...
enc/trans/big5.$(OBJEXT): $(encsrcdir)/trans/big5.c
```
Therefore, trans C sources are generated twice under srcdir and build
dir during a build.
Ideally, trans C sources have always been built before compilation of
enc/trans/*.o because the source generation is prereq, so making
enc/trans/*.o doesn't trigger trans C source generation and shouldn't
require MINIRUBY as a make arg for enc.mk. However, the second trans C
source gen is unintentionally triggered by enc/trans/*.o, so `make -f
enc.mk libencs` requires MINIRUBY for now.
When no `--with-static-linked-ext`, `make -f enc.mk libencs` is
triggered from common.mk with MINIRUBY, so there is no problem.
But when `--with-static-linked-ext`, libencs should be statically-linked
to ruby, so `make -f enc.mk libencs` is triggered from exts.mk, and
exts.mk invokes it without MINIRUBY.
Therefore, when out-of-src build and with `--with-static-linked-ext`,
the second trans C source gen fails due to missing MINIRUBY.
This issue is deterministically reproducible without -j because
common.mk's `main` rule also has libencs prerequisite.
This patch supresses the second trans C source gen.
Notes:
Merged: https://github.com/ruby/ruby/pull/5611
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5558
Merged-By: nobu <nobu@ruby-lang.org>
|
|
Make ruby_abi_version have C linkage so that the symbol can be found
in the shared object.
|
|
Notes:
Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
|
|
* Add encoding external/internal example to encoding.rdoc
* Add encoding external/internal example to encoding.rdoc
* Update doc/encoding.rdoc
I think there may be some more of these that I've recently put into io.c. Will check tomorrow and create new PR if so.
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
Notes:
Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5609
|
|
|
|
* If the sleep is not enough to run the rest of the logic the process
would be exited early, e.g., before the signal handler can run.
|
|
|
|
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5613
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5534
|
|
* String#getbyte returns `nil` if `index` is out of range.
* Add String#getbyte example with nil output.
* Modify String#getbyte example to use negative index.
Notes:
Merged: https://github.com/ruby/ruby/pull/5586
Merged-By: nobu <nobu@ruby-lang.org>
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5599
|
|
|
|
Never returns self.
Notes:
Merged: https://github.com/ruby/ruby/pull/5605
Merged-By: nobu <nobu@ruby-lang.org>
|
|
|
|
https://github.com/ruby/securerandom/commit/62ca2828f3
|
|
`resolve_feature_path` doesn't return .so when the given ext is linked
statically by --with-static-linked-ext
Notes:
Merged: https://github.com/ruby/ruby/pull/5582
|
|
When the date is 28 Feb in the local timezone and 27 in the UTC,
the leap second info is wrongly calculated, and the Time for 1 Mar
created with a timezone resulted in an invalid date, 30 Feb.
|
|
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5606
|
|
|
|
Additions and corrections for external/internal encodings.
Notes:
Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
|
|
Not to refer outside the top build directory from rbconfig.
|
|
* Extend intro/defn of 'transcoding'
Notes:
Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
|
|
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5410
|
|
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5601
|
|
In String, treats:
#b
#scrub
#scrub!
#unicode_normalize
#unicode_normalize!
#encode
#encode!
Also adds a note to IO.new (suggested by @jeremyevans).
Notes:
Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
|
|
|
|
|
|
https://github.com/ruby/date/commit/c55004715a
|