| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
| |
rb_ary_reset could leave the array in a bad state since it frees memory
but does not unset any flags. This can cause a crash on GC stress. This
commit changes rb_ary_reset to set the array as an empty embedded array.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Calling rb_obj_is_kind_of with an ICLASS returns the same result as
calling it with the ICLASS's original Module.
Most of the time we encounter an ICLASS here checking the validity of a
protected method or super call, which we expect to return true (or raise
a slow exception anyways). We can take advantage of this by performing a
fast class inheritance check on the ICLASS's "includer" in hopes that it
returns true.
If the includer class check returns false we still have to fallback to
the full inheritance chain scan for the module's inclusion, but this
should be less common.
|
|
|
|
| |
rb_ary_reset will free heap allocated arrays and unshare shared arrays.
|
|
|
| |
Showing how to do as @nobu does -- putting doc into doc/*.rdoc instead of in *.c.
|
| |
|
|
|
|
|
| |
In both cases in the if statement, we free heap allocated arrays and
unshare shared arrays.
|
|
|
|
|
|
|
| |
This change makes the sidebar scrollable via `position: sticky` and `overflow: auto`;
See also <https://caniuse.com/?search=sticky>
https://github.com/ruby/rdoc/commit/4d52e24840
|
|
|
|
| |
Must not depend on ruby specific files in Ruby unrelated cases.
|
|
|
|
| |
This reverts commit 1b15756d24c11ed6bfddb5ae53402a071a20ea97.
|
|
|
|
|
|
| |
Fixes [Bug #14103]
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Calling rb_obj_is_kind_of with an ICLASS returns the same result as
calling it with the ICLASS's original Module.
Most of the time we encounter an ICLASS here checking the validity of a
protected method or super call, which we expect to return true (or raise
a slow exception anyways). We can take advantage of this by performing a
fast class inheritance check on the ICLASS's "includer" in hopes that it
returns true.
If the includer class check returns false we still have to fallback to
the full inheritance chain scan for the module's inclusion, but this
should be less common.
|
|
|
|
|
|
|
| |
This change eagerly performs a bitwise and on the parameters. If both
parameters are fixnums, then the result value should also be a fixnum.
We can just test the bit on the result and return if it's a fixnum.
Otherwise return Qundef.
|
| |
|
|
|
|
|
|
| |
This was broken by 71c746379d5872e250d90ae45c585760afaf9516.
Fixes [Bug #18600]
|
| |
|
|
|
|
| |
https://github.com/ruby/io-wait/commit/12e26f574e
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Treats:
#count
#delete
#delete!
#squeeze
#squeeze!
Adds section "Multiple Character Selectors" to doc/character_selectors.rdoc.
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
|
| |
|
| |
|
|
|
|
|
|
| |
All frames should be either iseq frames or cfunc frames. Use a
VM assert instead of a conditional to check for a cfunc frame if
the current frame is not an iseq frame.
|
|
|
|
|
|
|
|
|
|
|
| |
Treats:
#tr (revised to link to "Character Selectors" document)
#tr!
#tr_s
#tr_s!
Also renames doc/character_selector.rdoc to match its title.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For example, consider the following markup:
C1#m(a, b)
Before this patch, it generated this HTML:
<p><a href=\"C1.html#method-i-m\"><code>C1#m</code></a>(a, b)</p>
Which places the method arguments outside of the link.
Now it generates this HTML:
<a href=\"C1.html#method-i-m\"><code>C1#m(a, b)</code></a>
https://github.com/ruby/rdoc/commit/05a2b2222b
|
|
|
|
|
|
|
|
|
|
| |
This is another attempt to fix out-of-src build with
--with-static-linked-ext. The first attempt was
4f1888bda70981d9f5b1bf55ab692e0ce18e79f4 but reverted because it broke
out-of-src build from pre-generated sources via `make dist`.
This patch fixes the second trans C source gen, mentioned in the
previous commit message, by passing MINIRUBY as well as when invoking
from common.mk
|
| |
|
| |
|
|
|
|
|
|
|
| |
This file will be a link target for methods doc that cites character selectors (e.g., String#tr),
It covers only the character selector; +replacement+ is discussed at String#tr (which will be revised and simplified); multiple selectors will be discussed at String#delete and String#count.
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
|
| |
|
| |
|
|
|
|
|
|
| |
Some tests that use signals frequently fail randomly on FreeBSD 13.
Maybe something around signals has changed in FreeBSD 13.
This change skips them tentatively.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
is missing
When I run bundle install with BUNDLE_DEPLOYMENT=true in the environment
on a different platform than I usually do development, I get the
following output to the console (wrapped exactly as shown):
Your bundle only supports platforms ["x86_64-darwin-19"] but your local platform
is x86_64-linux. Add the current platform to the lockfile with `bundle lock
--add-platform x86_64-linux` and try again.
Because the way the message wraps, its not as simple as copying the
suggested command to the clipboard because it contains a newline:
$ bundle lock
Writing lockfile to [...]/Gemfile.lock
$ --add-platform x86_64-linux
Adding a newline right before the command forces the command in the
error message to be on the same line, which facilitates copy-pasting the
command in the message.
https://github.com/rubygems/rubygems/commit/4cf6989b11
|
|
|
|
|
| |
rb_ary_unshare will perform FL_UNSET_SHARED and
rb_ary_decrement_share.
|
|
|
|
| |
Fixes [Misc #18610]
|
| |
|
|
|
|
|
|
|
|
| |
(https://github.com/ruby/ostruct/pull/39)
This gem exposes no executables.
https://github.com/ruby/ostruct/commit/a1242f7ebe
|
|
|
|
| |
https://github.com/ruby/ostruct/commit/322efd0e61
|
|
|
|
| |
https://github.com/ruby/ostruct/commit/7258535073
|
|
|
| |
Currently, the guide says a "What's Here" section should have a labeled list for the methods. Such a list can render very differently in different browsers, and are often erratic in their indentation of continuation lines.
|
| |
|
|
|
|
|
|
| |
Reduce the number of steps required to install a gem from two steps to one by using `bundle add`
https://github.com/rubygems/rubygems/commit/2c968420cd
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
consistent
Previously they had slightly different behavior when combined with
conservative updating flags.
The correct behavior is the `--update-strict` option, so `--script` now
does that, The `--update-strict` option is left there for now but I will
deprecate it later.
https://github.com/rubygems/rubygems/commit/ab42046229
|
| |
|
| |
|
|
|
|
|
|
| |
The related extensions have been removed.
Related: https://github.com/ruby/ruby/pull/4619
|