Граф коммитов

68026 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 178ee1e801
Already initialized modules cannot be replaced [Bug #17048] 2021-09-17 11:14:04 +09:00
Nobuyoshi Nakada 8f41c791b1
Add spec for MatchData#match and MatchData#match_length [Feature #18172] 2021-09-17 10:27:00 +09:00
John Hawthorn 5a048829a4 Add WB_PROTECTED to mutexes
mutex_mark is (basically) NULL, so we don't have any references to mark.
This means we should safely be able to mark Mutex as WB_PROTECTED
without changing anything else.
2021-09-17 10:03:39 +09:00
Nobuyoshi Nakada 34d6720fee
Prohibit test method redefinition 2021-09-17 08:54:18 +09:00
git 8450b6a91d * 2021-09-17 [ci skip] 2021-09-17 08:39:26 +09:00
Nobuyoshi Nakada 475a4651b6
[Feature #18172] Fix duplicate test name 2021-09-17 08:38:29 +09:00
Nobuyoshi Nakada cbbda3e648
Adjust indent in string.c [ci skip] 2021-09-16 23:49:16 +09:00
Nobuyoshi Nakada aa3d8388c0
NEWS for [Feature #18172] [ci skip] 2021-09-16 19:55:31 +09:00
Nobuyoshi Nakada f2cb6288bc
[Feature #18172] Add MatchData#match_length
The method to return the length of the matched substring
corresponding to the given argument.
2021-09-16 19:55:06 +09:00
Nobuyoshi Nakada 09d724e6f8
[Feature #18172] Add MatchData#match
The method to return the single matched substring corresponding to
the given argument.
2021-09-16 19:55:06 +09:00
Nobuyoshi Nakada ddb32e6616
[Bug #18173] Update loaded_features_index
If $LOADED_FEATURES is changed in the just required file, also the
index table needs to be updated before loaded_features_snapshot is
reset.  If the snapshot is reset without updating the table, the
name of the added feature will not be found.
2021-09-16 18:48:20 +09:00
Shugo Maeda 5f1385bec0
Add a newline [ci skip] 2021-09-16 17:31:39 +09:00
Shugo Maeda 81fd91ab1b
Add details of Hash value ommission [ci skip] 2021-09-16 17:29:48 +09:00
S.H 68bd5626c3
Remove unneeded ruby_reset_leap_second_info function declaration (#4824) 2021-09-16 13:21:06 +09:00
Burdette Lamar 745287d43a
Enhanced RDoc for Range#minmax (#4846) 2021-09-15 15:51:54 -05:00
Burdette Lamar e967740d07
Enhanced RDoc for Range#max (#4844) 2021-09-15 14:48:47 -05:00
git 67e3727d71 * 2021-09-16 [ci skip] 2021-09-16 03:37:51 +09:00
Burdette Lamar 97374c7eec
Enhanced RDoc for Range#min (#4842) 2021-09-15 13:37:34 -05:00
Peter Zhu db51bcada4 Fix total_freed_objects for invalidated pages
When the object is moved back into the T_MOVED, the flags of the T_MOVED
is not copied, so the FL_FROM_FREELIST flag is lost. This causes
total_freed_objects to always be incremented.
2021-09-15 09:59:37 -04:00
Peter Zhu a65ac2d6fa Don't overwrite free_slots count during sweeping
gc_compact_finish may invalidate pages, which may move objects from this
page to other pages, which updates the free_slots of this page.
2021-09-15 09:00:42 -04:00
Peter Zhu e624d0d202 Update the free_slots count of the original page
When invalidating a page during compaction, the free_slots count should
be updated for the page of the object and not the page of the forwarding
address (since the object gets moved back to the forwarding address).
2021-09-15 09:00:42 -04:00
Olle Jonsson 92ac1721c2 [ruby/racc] gemspec: Link to https in homepage [ci skip]
https://github.com/ruby/racc/commit/96075f7720
2021-09-15 16:55:12 +09:00
Olle Jonsson 645acf5771 [ruby/racc] Prefer __dir__ over File.dirname(__FILE__)
https://github.com/ruby/racc/commit/c49df40658
2021-09-15 16:20:18 +09:00
Shugo Maeda fae0f2486d
Add test cases for constants and keywords 2021-09-15 16:11:40 +09:00
Nobuyoshi Nakada a27c274f04
[DOC] Fix broken links [ci skip]
* As the "doc/" prefix is specified by the `--page-dir` option,
  remove from the rdoc references.
* Refer to the original .rdoc instead of the converted .html.
2021-09-15 14:16:14 +09:00
卜部昌平 63ab2fedc8 include/ruby/atomic.h: add doxygen
Must not be a bad idea to improve documents. [ci skip]
2021-09-15 09:25:23 +09:00
卜部昌平 789232f9fd template/Doxyfile.tmpl: modernise
applied doxygen -g for Doxygen 1.9.3.
2021-09-15 09:25:23 +09:00
Hiroshi SHIBATA f650ca7568
[ruby/racc] Rename helper to case 2021-09-15 08:52:49 +09:00
Hiroshi SHIBATA 845ab32a29
[ruby/racc] Ignored loading CoreAssertions in test case
https://github.com/ruby/racc/commit/1f8b05b298
2021-09-15 08:49:24 +09:00
Hiroshi SHIBATA 8f6b42e0cb
[ruby/logger] Ignored loading CoreAssertions in test runner
https://github.com/ruby/logger/commit/2fd5401ad6
2021-09-15 08:49:24 +09:00
Olle Jonsson f77f9b9328
[ruby/logger] gemspec: Drop unused "executables" configuration
This gem exposes 0 executables.

https://github.com/ruby/logger/commit/fbd9315393
2021-09-15 08:49:23 +09:00
S.H b8c3a84bdd
Refactor and Using RBOOL macro 2021-09-15 08:11:05 +09:00
Jean Boussier 89242279e6 Marshal.load: do not call the proc until strings have their encoding
Ref: https://bugs.ruby-lang.org/issues/18141
2021-09-15 08:00:18 +09:00
Burdette Lamar a0357acf19
Enhanced RDoc for Range (#4839)
Treated:

    #size
    #to_a
    #each
    #begin
    #end
    #first
    #last
2021-09-14 17:51:31 -05:00
git aa18f645ed * 2021-09-15 [ci skip] 2021-09-15 06:08:37 +09:00
Burdette Lamar 1af5a0c574
Bsearch doc for Array and Range (#4838)
This PR creates doc/bsearch.rdoc to provide common documentation for bsearch in Array and Range.
2021-09-14 16:08:21 -05:00
Jeremy Evans 57d315c937 Handle overwriting Object::ENV in spawn
Instead of looking for Object::ENV (which can be overwritten),
directly look for the envtbl variable.  As that is static in hash.c,
and the lookup code is in process.c, add a couple non-static
functions that will return envtbl (or envtbl#to_hash).

Fixes [Bug #18164]
2021-09-14 05:55:14 -09:00
ima1zumi 616d671758 [ruby/reline] Remove unused using method
follow #347

https://github.com/ruby/reline/commit/37453a83a3
2021-09-14 22:28:50 +09:00
Nobuyoshi Nakada fa05697e48 Use `%printer` directive for Bison 3.8 2021-09-14 18:51:38 +09:00
git 6031f4268b Update bundled_gems at 2021-09-14 2021-09-14 07:04:28 +00:00
S.H 3fd8531331
Remove uneeded initialize local variable (#4818) 2021-09-13 23:22:01 -07:00
S-H-GAMELINKS 692dfc5088 Refactor vm_yield function 2021-09-14 14:58:28 +09:00
Kenichi Kamiya bb84c75001 Revert "Force recycle intermediate collection in Hash#transform_keys! [Bug #17735]"
This reverts commit 522d4cd32f.
2021-09-14 14:53:42 +09:00
aycabta 881136d2ff [ruby/reline] The behaviour of Alt+key on Windows is changed
ref. https://github.com/ruby/reline/commit/dc2cf90fa6

https://github.com/ruby/reline/commit/4d1518aafc
2021-09-14 05:39:18 +09:00
Burdette Lamar 4e03032a83
Enhanced RDoc for Range (#4833)
Treated:

    ::new
    #include_end?
    #==
    #eql?
    #hash
    #step
2021-09-13 14:00:39 -05:00
git ebad1e8293 * 2021-09-14 [ci skip] 2021-09-14 00:37:38 +09:00
Burdette Lamar 94dea77cd6
Links for What's Here sections (#4827)
Makes What's Here sections in Time and Dir link to What's Here for super and included modules (like all the others).
2021-09-13 10:37:15 -05:00
Hiroshi SHIBATA 43f49b2d1c
Fixup 455978cd13 2021-09-13 21:15:36 +09:00
Hiroshi SHIBATA ec6f04c092
Use capture_output instead of capture_io 2021-09-13 21:14:42 +09:00
Hiroshi SHIBATA be04006c7d
Rename capture_io to capture_output and deprecate to use capture_io 2021-09-13 20:56:34 +09:00