Nobuyoshi Nakada
fad3412d47
[ruby/rdoc] Get rid of a trailing space
...
https://github.com/ruby/rdoc/commit/7b7b91768e
2021-03-16 15:47:27 +09:00
aycabta
ff9a008871
[ruby/rdoc] Suppress unused variable warning of "text"
...
https://github.com/ruby/rdoc/commit/3a4120b155
2021-03-16 15:47:27 +09:00
aycabta
61a29a41e1
[ruby/rdoc] Allow empty .rdoc_options
...
https://github.com/ruby/rdoc/commit/0c8cb25b50
2021-03-16 15:47:27 +09:00
aycabta
971a0cd246
[ruby/rdoc] Allow partial default values to be overridden with .rdoc_options
...
https://github.com/ruby/rdoc/commit/e14800891f
2021-03-16 15:47:27 +09:00
Nobuyoshi Nakada
de8e6218a3
[ruby/rdoc] Fixed CodeFence without blank lines
...
Currently a fenced code block needs a preceding blank line, it
should not be required, as:
https://github.github.com/gfm/#fenced-code-blocks
> A fenced code block may interrupt a paragraph, and does not
> require a blank line either before or after.
Just recommended:
https://docs.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks
> We recommend placing a blank line before and after code blocks
> to make the raw formatting easier to read.
https://github.com/ruby/rdoc/commit/0e1776caf3
2021-03-16 15:47:27 +09:00
Nobuyoshi Nakada
10b082064e
[ruby/rdoc] Add table style
...
https://github.com/ruby/rdoc/commit/2219c5ae80
2021-03-16 15:47:27 +09:00
Nobuyoshi Nakada
3651f678a7
[ruby/rdoc] Support GFM table
...
https://github.com/ruby/rdoc/commit/9dc933df16
2021-03-16 15:47:27 +09:00
Pankaj Doharey
05898c5b90
[ruby/rdoc] Update Rdoc.css sidebar panel.
...
Updates css so the sidebar look like a panel instead of looking like chopped edges.
https://github.com/ruby/rdoc/commit/b0098c6d72
2021-03-16 15:47:27 +09:00
Kazuhiro NISHIYAMA
31b19ba84e
Fix a link [ci skip]
2021-03-16 14:07:27 +09:00
git
ff5ff75cdb
* 2021-03-16 [ci skip]
2021-03-16 01:15:31 +09:00
aycabta
b346935cbc
Copy only generated parser files when RDoc syncs
2021-03-16 01:15:29 +09:00
Nobuyoshi Nakada
18a3bf5a0e
NEWS of [Feature #12194 ] [ci skip]
2021-03-15 22:36:05 +09:00
Yusuke Endoh
9e5105ca45
Support GCC's DWARF 5 [Bug #17585 ] ( #4240 )
...
Co-Authored-By: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
2021-03-15 15:22:34 +09:00
Nobuyoshi Nakada
82b6f89283
File.dirname optional level
...
* file.c (rb_file_dirname_n): chomp N level of base names.
[Feature #12194 ]
2021-03-15 15:09:05 +09:00
git
ba9de878a6
* 2021-03-15 [ci skip]
2021-03-15 10:18:16 +09:00
xtkoba (Tee KOBAYASHI)
0846c2da45
Check backref number buffer overrun [Bug #16376 ]
2021-03-15 10:17:50 +09:00
Nobuyoshi Nakada
2a6bfd2246
Properly convert time_t [Bug #17645 ]
2021-03-14 20:18:50 +09:00
Nobuyoshi Nakada
8a5a91eead
--dont-cuddle-else [ci skip]
2021-03-14 20:18:30 +09:00
git
ce9fb9b23c
* 2021-03-14 [ci skip]
2021-03-14 20:10:59 +09:00
xtkoba (Tee KOBAYASHI)
3ac28de541
Explicitly cast __s64 to time_t [Bug #17645 ]
...
A workaround of shorten-64-to-32 error where 32-bit linux.
2021-03-14 20:10:01 +09:00
Kenichi Kamiya
c7e6914b39
[Doc] Fix multiple `Magic Comments` example
...
[ci skip]
2021-03-13 15:44:34 +09:00
Nobuyoshi Nakada
07ff1f4b0b
Revert "Extracted AtomicWrite"
...
This reverts commit 2148ee78a5
, mistakenly committed.
2021-03-13 09:14:20 +09:00
Nobuyoshi Nakada
983f6d0f2a
Moved locking VM to an atomic operation
2021-03-13 09:11:21 +09:00
Nobuyoshi Nakada
2148ee78a5
Extracted AtomicWrite
2021-03-13 09:10:45 +09:00
git
722e6c1d04
* 2021-03-13 [ci skip]
2021-03-13 00:35:39 +09:00
Jeremy Evans
aaab3b1de9
Fix integer/float remainder with infinity argument of opposite sign
...
Previously, the result was incorrect:
4.remainder(-Float::INFINITY)
Before: => NaN
After: => 4
4.2.remainder(-Float::INFINITY)
Before: => NaN
After: => 4.2
Fixes [Bug #6120 ]
2021-03-12 07:35:18 -08:00
Nobuyoshi Nakada
701001e36e
Removed an unused declaration
2021-03-12 19:28:17 +09:00
Nobuyoshi Nakada
d91ade3e1e
Renamed functions for Fiber singleton methods
2021-03-12 18:15:56 +09:00
Nobuyoshi Nakada
90c12defb3
Constified variables for getenv
2021-03-12 17:13:53 +09:00
Soutaro Matsumoto
2ea600f9a6
Bundle RBS 1.1.1 ( #4259 )
2021-03-12 17:07:53 +09:00
Nobuyoshi Nakada
ea39955e23
Removed a duplicate setting for mingw
2021-03-12 15:51:29 +09:00
git
0446a33945
* 2021-03-12 [ci skip]
2021-03-12 15:30:51 +09:00
NARUSE, Yui
6b978d5427
Remove .travis.yml
...
Reason:
* Recent build is failed.
https://travis-ci.org/github/ruby/ruby/jobs/762561190
* Current configuration uses Ubuntu 16.04 (xenial), whose EOL is Apr 2021.
If someone want to recover Travis CI builds, please fix above two issues.
2021-03-12 15:27:57 +09:00
Kazuhiro NISHIYAMA
a6c93a1d1d
Revert "Update bundled_gems"
...
This reverts commit b37f60fbd4
.
Because test-bundled-gems failed.
2021-03-11 10:46:01 +09:00
Nobuyoshi Nakada
a6b5d70bca
Create the test file under the created temporary directory
...
Fixes https://github.com/ruby/ruby/pull/4255
2021-03-11 09:21:21 +09:00
Jean Boussier
ef88225886
Simplify ibf_dump_object_symbol by delegating to ibf_dump_object_string
2021-03-10 13:44:07 -08:00
Jean Boussier
1041bff3b2
Add a benchmark for RubyVM::InstructionSequence.load_from_binary
2021-03-10 13:44:07 -08:00
Jean Boussier
2de7fbcdbb
Pre-freeze ISeq names to avoid useless duplication
2021-03-10 13:44:07 -08:00
Jean Boussier
d00e7deb5c
Use rb_enc_interned_str in ibf_load_object_string
2021-03-10 13:44:07 -08:00
Jean Boussier
8463c8a425
Specialize ibf_load_object_symbol and ibf_dump_object_symbol
2021-03-10 13:44:07 -08:00
Jean Boussier
a03653d386
proc.c: make bind_call use existing callable method entry when possible
...
The most common use case for `bind_call` is to protect from core
methods being redefined, for instance a typical use:
```ruby
UNBOUND_METHOD_MODULE_NAME = Module.instance_method(:name)
def real_mod_name(mod)
UNBOUND_METHOD_MODULE_NAME.bind_call(mod)
end
```
But it's extremely common that the method wasn't actually redefined.
In such case we can avoid creating a new callable method entry,
and simply delegate to the receiver.
This result in a 1.5-2X speed-up for the fast path, and little to
no impact on the slowpath:
```
compare-ruby: ruby 3.1.0dev (2021-02-05T06:33:00Z master b2674c1fd7
) [x86_64-darwin19]
built-ruby: ruby 3.1.0dev (2021-02-15T10:35:17Z bind-call-fastpath d687e06615) [x86_64-darwin19]
| |compare-ruby|built-ruby|
|:---------|-----------:|---------:|
|fastpath | 11.325M| 16.393M|
| | -| 1.45x|
|slowpath | 10.488M| 10.242M|
| | 1.02x| -|
```
2021-03-10 13:43:22 -08:00
Jeremy Evans
d9fea496af
Remove cvar overtaken classes at end of test methods
...
Fixes issues when the same tests are executed more than once,
which some CI machines do.
2021-03-10 12:09:45 -08:00
eileencodes
cbc7c1c061
Add cvar overtaken tests
...
While working on another project we noticed that there were no tests for
the cvar overtaken exception when using classes. This change adds a test
for cvar overtaken with classes and moves the cvar overtaken test for
modules into the new file.
Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
2021-03-10 09:40:00 -08:00
eileencodes
23a48d8fe6
Refactor `rb_class_ivar_set`
...
In every caller of `rb_class_ivar_set` it checks for the `RCLASS_IV_TBL`
and then creates it if it doesn't exist. Instead of repeating this in
every caller, this can be done once in `rb_class_ivar_set`.
2021-03-10 09:39:18 -08:00
git
9cdb5a5153
* 2021-03-11 [ci skip]
2021-03-11 02:38:40 +09:00
John Hawthorn
9d0ae387c8
Remove DEFINED_IVAR2 from enum
...
This version of defined? doesn't seem to be possible to emit anymore.
2021-03-10 09:38:20 -08:00
Nobuyoshi Nakada
4c80b9d063
Fix `coroutine_type` variable name
2021-03-10 22:13:06 +09:00
Kazuhiro NISHIYAMA
b37f60fbd4
Update bundled_gems
2021-03-10 19:37:28 +09:00
git
67b7999755
* 2021-03-10 [ci skip]
2021-03-10 08:59:44 +09:00
Nobuyoshi Nakada
f0b3700ddc
Given argument does not need to cache
2021-03-09 23:05:24 +09:00