git
22bf6e4393
* 2022-02-11 [ci skip]
2022-02-11 11:28:25 +09:00
Nobuyoshi Nakada
36df0c72dc
[DOC] Add .rdoc_options
file
...
Set `--page-dir` option so that direct rdoc call is consistent
with `make html`.
2022-02-11 11:25:05 +09:00
Peter Zhu
2617532499
Free cached mark stack chunks when freeing objspace
...
Cached mark stack chunks should also be freed when freeing objspace.
2022-02-10 09:33:42 -05:00
git
66b9ca8426
Update default gems list at f07a2613e3f14ab713bc5ab8854110 [ci skip]
2022-02-10 08:19:42 +00:00
Hiroshi SHIBATA
f07a2613e3
Support directory layout of ruby/ruby repository
2022-02-10 17:18:05 +09:00
Hiroshi SHIBATA
52d3e31d27
[ruby/ipaddr] Bump version to 1.2.4
...
https://github.com/ruby/ipaddr/commit/6edf6ee6c3
2022-02-10 17:18:05 +09:00
Espartaco Palma
9b768012f6
[ruby/ipaddr] Fix exception calling to_range' after
freeze'
...
https://github.com/ruby/ipaddr/commit/77fe1fca0a
2022-02-10 17:18:05 +09:00
Jean Boussier
100253c7f0
[ruby/ipaddr] Ipaddr#native must also coerce @mask_addr
...
Before it would be left as an IPv6 mask causing `to_range` to fail.
```
>> IPAddr.new("::2").native.to_range
/opt/rubies/3.0.3/lib/ruby/3.0.0/ipaddr.rb:479:in `set': invalid address (IPAddr::InvalidAddressError)
```
https://github.com/ruby/ipaddr/commit/af485192f3
2022-02-10 17:18:05 +09:00
Jean Boussier
5221cb4468
[ruby/ipaddr] Expose IPAddr::VERSION
...
An almost universal convention for gems is to expose Namespace::VERSION
which makes it much easier when debugging etc.
https://github.com/ruby/ipaddr/commit/587ae6996e
2022-02-10 17:18:03 +09:00
Jeremy Evans
fd710d7e99
Fix Range#include? for beginless exclusive string ranges
...
Previously, include? would return true for the end of the range,
when it should return false because the range is exclusive.
Research and Analysis by Victor Shepelev.
Fixes [Bug #18577 ]
2022-02-09 19:47:28 -08:00
John Hawthorn
05b1944c53
objspace: Hide identhash containing internal objs
...
Inside ObjectSpace.reachable_objects_from we keep an internal identhash
in order to de-duplicate reachable objects when wrapping them as
InternalObject. Previously this hash was not hidden, making it possible
to leak references to those internal objects to Ruby if using
ObjectSpace.each_object.
This commit solves this by hiding the hash. To simplify collection of
values, we instead now just use the hash as a set of visited objects,
and collect an Array (not hidden) of values to be returned.
2022-02-09 17:32:43 -08:00
Sven Schwyn
a271acf822
[rubygems/rubygems] Fix typo in multiple gemfiles warning
...
https://github.com/rubygems/rubygems/commit/bc69d19097
2022-02-10 08:38:09 +09:00
卜部昌平
2cc890d7d3
LLVM 15 begun.
...
See also a2601c9887
2022-02-10 08:24:18 +09:00
git
fc988c0be6
* 2022-02-10 [ci skip]
2022-02-10 00:14:47 +09:00
Yusuke Endoh
496591de96
st.c: Do not clear entries_bound when calling Hash#shift for empty hash
...
tab->entries_bound is used to check if the bins are full in
rebuild_table_if_necessary.
Hash#shift against an empty hash assigned 0 to tab->entries_bound, but
didn't clear the bins. Thus, the table is not rebuilt even when the bins
are full. Attempting to add a new element into full-bin hash gets stuck.
This change stops clearing tab->entries_bound in Hash#shift.
[Bug #18578 ]
2022-02-10 00:14:27 +09:00
Nobuyoshi Nakada
8013250136
[ruby/rdoc] Simplify attribute exclusiveness conditions
...
https://github.com/ruby/rdoc/commit/45e33c4b85
2022-02-09 22:22:46 +09:00
Nobuyoshi Nakada
ec6d1cf28f
[ruby/rdoc] Get rid of ruby-mode.el confusions
...
https://github.com/ruby/rdoc/commit/63fac51198
2022-02-09 22:22:45 +09:00
Nobuyoshi Nakada
994b3f1dc6
[ruby/rdoc] Allow cross references to negation operator method
...
https://github.com/ruby/rdoc/commit/69cafb213a
2022-02-09 19:41:12 +09:00
Nobuyoshi Nakada
8db06fe2c9
[ruby/rdoc] Allow cross references to logical operator methods
...
https://github.com/ruby/rdoc/commit/17c0da304d
2022-02-09 19:41:11 +09:00
Soutaro Matsumoto
cbd54cba03
[ruby/rdoc] Skip parentheses on singleton class declaration
...
https://github.com/ruby/rdoc/commit/b6c6d4f978
2022-02-09 18:45:05 +09:00
Nobuyoshi Nakada
88b1d21dbb
[ruby/rdoc] Allow cross references to backtick method
...
https://github.com/ruby/rdoc/commit/52c33157f1
2022-02-09 18:44:41 +09:00
Nobuyoshi Nakada
202f690a5e
[ruby/rdoc] Allow cross references to operator methods
...
Make operator methods, e.g., `Regexp#=~`, `Integer#<=>`, cross
reference targets.
https://github.com/ruby/rdoc/commit/5d332a4128
2022-02-09 18:44:40 +09:00
Nobuyoshi Nakada
dec96dd897
[ruby/rdoc] Support all struct definition functions
...
Currently only `rb_struct_define_without_accessor` is supported by
https://github.com/ruby/rdoc/pull/73 . We should support other
three functions too.
https://github.com/ruby/rdoc/commit/d42288f06c
2022-02-09 18:43:07 +09:00
git
7604933e03
* 2022-02-09 [ci skip]
2022-02-09 15:55:18 +09:00
Nobuyoshi Nakada
adca6f24b1
[DOC] Prefer the original file names over generated names
...
Should also the label in an explicit `rdoc-ref:` link be converted
in the future?
2022-02-09 15:31:10 +09:00
Burdette Lamar
85ad8c65ca
[DOC] Adjustments to links in array.c ( #5532 )
...
Mostly suppressing links to itself.
2022-02-08 08:51:39 -06:00
Paarth Madan
2a30ddd9f3
Remove extraneous "." in String#+@ documentation
2022-02-08 10:33:49 +09:00
git
546730b76b
* 2022-02-08 [ci skip]
2022-02-08 01:41:48 +09:00
Nobuyoshi Nakada
8ca7b0b68a
[DOC] Fix broken links to operator methods
...
Once https://github.com/ruby/rdoc/pull/865 is merged, these hacks
are no longer needed.
2022-02-08 01:39:37 +09:00
Nobuyoshi Nakada
07bf65858d
[DOC] Fix broken links to case_mapping.rdoc
2022-02-08 01:28:08 +09:00
Nobuyoshi Nakada
16fdc1ff46
[DOC] Fix broken links to literals.rdoc
2022-02-08 01:27:52 +09:00
Nobuyoshi Nakada
bc5662d9d8
[DOC] Simplify links to global methods
2022-02-08 01:18:56 +09:00
Peter Zhu
f53f49197f
[DOC] Replace with IO@Modes
2022-02-07 09:52:06 -05:00
Peter Zhu
9b3115ff64
[DOC] Remove extra period
2022-02-07 09:52:06 -05:00
Peter Zhu
a12e2f9aa5
[DOC] Remove extra closing curly bracket
2022-02-07 09:52:06 -05:00
Peter Zhu
a32e5e1b97
[DOC] Use RDoc link style for links in the same class/module
...
I used this regex:
(?<=\[)#(?:class|module)-([A-Za-z]+)-label-([A-Za-z0-9\-\+]+)
And performed a global find & replace for this:
rdoc-ref:$1@$2
2022-02-07 09:52:06 -05:00
Peter Zhu
f9a2802bc5
[DOC] Use RDoc link style for links to other classes/modules
...
I used this regex:
([A-Za-z]+)\.html#(?:class|module)-[A-Za-z]+-label-([A-Za-z0-9\-\+]+)
And performed a global find & replace for this:
rdoc-ref:$1@$2
2022-02-07 09:52:06 -05:00
Peter Zhu
ecd469fad0
[DOC] Fix links in documentation for File and IO
...
Fixes some typos and dead links.
2022-02-07 09:52:06 -05:00
nicholas a. evans
981a75db91
[rubygems/rubygems] Fix missing rdoc for Gem::Version
...
The rdoc for Gem::Version is available here:
* https://docs.ruby-lang.org/en/3.0/Gem/Version.html
However it is currently missing from:
* https://ruby-doc.org/stdlib-3.1.0/libdoc/rubygems/rdoc/Gem/Version.html
* https://docs.ruby-lang.org/en/3.1/Gem/Version.html
* https://docs.ruby-lang.org/en/master/Gem/Version.html
* `ri Gem::Version`
with `ri --version` => 6.4.0 and `gem --version` => 3.3.5
* `yard ri Gem::Version` with `yard --version` => 0.9.27
https://github.com/rubygems/rubygems/commit/c10e5dd884
2022-02-07 23:06:19 +09:00
Nobuyoshi Nakada
0169380741
Appveyor: Link vcpkg DLLs except for readline
2022-02-07 15:30:07 +09:00
Nobuyoshi Nakada
8fe2ce83ef
[MSWin] Link all vcpkg DLLs except for readline
2022-02-07 13:40:48 +09:00
Nobuyoshi Nakada
65ccae5b2a
[MSWin] Install libyaml using vcpkg
2022-02-07 13:40:48 +09:00
Burdette Lamar
a07fa198a6
Improve links to labels in string.c and struct.c ( #5531 )
2022-02-06 09:44:40 -06:00
git
893b0fd723
* 2022-02-07 [ci skip]
2022-02-07 00:03:39 +09:00
Nobuyoshi Nakada
402d76485c
[MSWin] Install libffi using vcpkg
2022-02-06 22:23:55 +09:00
Nobuyoshi Nakada
b9083c206a
[MSWin] Cache installed vcpkg packages
2022-02-06 22:22:58 +09:00
Nobuyoshi Nakada
90a540e9f2
Appveyor: Try readline extension
2022-02-06 19:24:36 +09:00
Nobuyoshi Nakada
2cf687fe6c
Appveyor: DBM extensions have not been bundled already
2022-02-06 19:23:30 +09:00
Nobuyoshi Nakada
7ce3a100f2
Fold command line items
2022-02-06 19:22:44 +09:00
John Hawthorn
c79d2e5474
Fix TAG_THROW through require [Bug #18562 ]
...
Previously this was being incorrectly swapped with TAG_RAISE in the next
line. This would end up checking the T_IMEMO throw_data to the exception
handling (which calls Module#===). This happened to not break existing
tests because Module#=== returned false when klass is NULL.
This commit handles throw from require correctly by jumping to the tag
retaining the TAG_THROW state.
2022-02-05 18:10:19 -08:00