summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-10-12Respectively, instead of respentivelyVictor Goff
Notes: Merged: https://github.com/ruby/ruby/pull/3651
2020-10-12* 2020-10-12 [ci skip]git
2020-10-12Prohibit setter method names in all kinds of endless methodsNobuyoshi Nakada
Also unwrap NODE_RIPPER to check the method name. Notes: Merged: https://github.com/ruby/ruby/pull/3649
2020-10-11Adjusted indents [ci skip]Nobuyoshi Nakada
2020-10-11Respect the original styles [ci skip]Nobuyoshi Nakada
2020-10-11[ruby/io-console] Refined getch warningsNobuyoshi Nakada
https://github.com/ruby/io-console/commit/f84e6abcce
2020-10-11[ruby/io-console] Relaxed min: option warningNobuyoshi Nakada
When `min: 0` is given to `IO#getch` with `time:` option, it is expected to return nil if timed out, and needed for source code the compatibility with unixen platforms. https://github.com/ruby/io-console/commit/a2afbe72bd
2020-10-11[ruby/io-console] Fix timeout type error (#18)Nobuyoshi Nakada
Fixed TypeError when IO#getch timed out `rb_io_wait` returns a bit-flags Integer representing available events, or Qfalse if timed out. Also the result of `NUM2INT` is not a `VALUE`. ``` $ ./bin/ruby -v -rio/console -e "p IO.console.getch(intr: true, time: 0.1)" ruby 3.0.0dev (2020-10-09T20:27:30Z master 5ea2ea74cc) [x64-mingw32] -e:1:in `getch': no implicit conversion of false into Integer (TypeError) from -e:1:in `<main>' ``` https://github.com/ruby/io-console/commit/3bdfaf62df
2020-10-11* 2020-10-11 [ci skip]git
2020-10-11[ruby/io-console] Fixed "Rework console to use `rb_io_wait`."Nobuyoshi Nakada
* Fixed backward compatibility. * Added missing `rb_scheduler_timeout` declaration. https://github.com/ruby/io-console/commit/813806079f
2020-10-10Add Ractor#receive and Ractor.receive and use it in all placesBenoit Daloze
* Keep Ractor#recv/Ractor.recv as an alias for now. Notes: Merged: https://github.com/ruby/ruby/pull/3626
2020-10-10Update RBS to 0.13.1 (#3645)Soutaro Matsumoto
Notes: Merged-By: soutaro <matsumoto@soutaro.com>
2020-10-10Improve doc in rb_class_real doc (#3637)S.H
Notes: Merged-By: marcandre <github@marc-andre.ca>
2020-10-10Fixed typo in commentIkko Ashimine
alway -> always Notes: Merged: https://github.com/ruby/ruby/pull/3646
2020-10-10* 2020-10-10 [ci skip]git
2020-10-10remove debug codeKoichi Sasada
2020-10-09Let bundled_gems specify commits to test (#3641)Soutaro Matsumoto
Notes: Merged-By: soutaro <matsumoto@soutaro.com>
2020-10-09Refactored lex_context managementNobuyoshi Nakada
Save and restore `lex_context` as-is wholely, and save in `k_class` and `k_module` to workaround look-ahead reading.
2020-10-09rb_const_set sets the class path nowNobuyoshi Nakada
2020-10-09rb_class_real never returns QnilNobuyoshi Nakada
2020-10-08Fix lldb disassembler so it works with core filesAaron Patterson
This fixes the lldb disassembler script so that it doesn't need a live process when disassembling rb_iseq_t. I also added the PC to the output so you can tell what the VM is executing when it crashed. For example: ``` (lldb) rbdisasm ec->cfp->iseq PC IDX insn_name(operands) 0x56039f0a1720 0000 nop 0x56039f0a1728 0001 getlocal_WC_1( 5 ) 0x56039f0a1738 0003 branchunless( 7 ) 0x56039f0a1748 0005 getlocal_WC_0( 3 ) 0x56039f0a1758 0007 putstring( (VALUE)0x56039f0c7eb8 ) 0x56039f0a1768 0009 opt_send_without_block( (struct rb_call_data *)0x56039f09f140 ) 0x56039f0a1778 0011 pop 0x56039f0a1780 0012 getglobal( ID: 0x7fd7 ) 0x56039f0a1790 0014 branchunless( 7 ) 0x56039f0a17a0 0016 getlocal_WC_0( 3 ) 0x56039f0a17b0 0018 putstring( (VALUE)0x56039f0c7e90 ) 0x56039f0a17c0 0020 opt_send_without_block( (struct rb_call_data *)0x56039f09f150 ) 0x56039f0a17d0 0022 pop 0x56039f0a17d8 0023 getlocal_WC_0( 3 ) 0x56039f0a17e8 0025 putobject( (VALUE)0x56039f0c7e68 ) 0x56039f0a17f8 0027 getlocal_WC_1( 6 ) 0x56039f0a1808 0029 dup 0x56039f0a1810 0030 checktype( 5 ) 0x56039f0a1820 0032 branchif( 4 ) 0x56039f0a1830 0034 dup 0x56039f0a1838 0035 opt_send_without_block( (struct rb_call_data *)0x56039f09f160 ) 0x56039f0a1848 0037 tostring 0x56039f0a1850 0038 putobject( (VALUE)0x56039f0c7e40 ) 0x56039f0a1860 0040 concatstrings( 3 ) 0x56039f0a1870 0042 opt_send_without_block( (struct rb_call_data *)0x56039f09f170 ) 0x56039f0a1880 0044 nop 0x56039f0a1888 0045 leave (lldb) p ec->cfp->pc (const VALUE *) $146 = 0x000056039f0a1848 ``` Here we can see the VM is currently executing `opt_send_without_block` (because the PC is one ahead of the current instruction)
2020-10-09* 2020-10-09 [ci skip]git
2020-10-08Enhanced RDoc for String#insert (#3643)Burdette Lamar
* Enhanced RDoc for String#insert Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2020-10-08Expose assert, assert_respond_to and assert_not_respond_to for default gems.Hiroshi SHIBATA
2020-10-08Promote prettyprint to default gemsHiroshi SHIBATA
2020-10-08Promote pp to default gemsHiroshi SHIBATA
2020-10-08* 2020-10-08 [ci skip]git
2020-10-07Add missing WB for iseqAaron Patterson
The write barrier wasn't being called for this object, so add the missing WB. Automatic compaction moved the reference because it didn't know about the relationship (that's how I found the missing WB).
2020-10-07Revert "Don't export rb_callable_receiver"Nobuyoshi Nakada
This reverts commit c839168b1141db53bedef771d1bc78908b6ac782. `rb_callable_receiver` does not need to be exposed under include.
2020-10-06Prevent objects from moving while iterating the heapAaron Patterson
This iterator uses an st_table, but if objects move the references in the st table won't be updated. This patch just changes the st table to an identity hash. Notes: Merged: https://github.com/ruby/ruby/pull/3634
2020-10-06Don't export rb_callable_receiverChris Seaton
Notes: Merged: https://github.com/ruby/ruby/pull/3629
2020-10-06Use proc_binding rather than rb_funcallChris Seaton
FIX Notes: Merged: https://github.com/ruby/ruby/pull/3629
2020-10-06Make `marshal_load` publicAaron Patterson
Ruby specs expected this method to be public
2020-10-06[lib/ostruct] Fix Marshal loadingMarc-Andre Lafortune
2020-10-07* 2020-10-07 [ci skip]git
2020-10-06No longer need libtoolNobuyoshi Nakada
As debug_counter.c has had a global symbol since cdc614cd0a21, ranlib should no longer complain that it has no symbols.
2020-10-06Appended a newline to suppress newline-eof warningNobuyoshi Nakada
2020-10-06include/ruby/memory_view.h: annotate functions卜部昌平
Notes: Merged: https://github.com/ruby/ruby/pull/3631
2020-10-06rb_memory_view_is_contiguous: convert into an inline function卜部昌平
Notes: Merged: https://github.com/ruby/ruby/pull/3631
2020-10-06STRUCT_ALIGNOF: use RUBY_ALIGNOF卜部昌平
This was a workaround for RUBY_ALIGNOF's glitch, which has already been fixed. See also https://github.com/ruby/ruby/pull/3570 Notes: Merged: https://github.com/ruby/ruby/pull/3631
2020-10-06memory_view.h: use bool卜部昌平
Because `bool` is already used in the header there is no reason to hesitate. Notes: Merged: https://github.com/ruby/ruby/pull/3631
2020-10-06RB_RANDOM_DATA_INIT_PARENT: convert into an inline function卜部昌平
Bit readable to me. Notes: Merged: https://github.com/ruby/ruby/pull/3631
2020-10-06rb_rand_if: convert into an inline function卜部昌平
This adds more room for assertions. Notes: Merged: https://github.com/ruby/ruby/pull/3631
2020-10-06include/ruby/random.h: eliminate extern "C"卜部昌平
cf: https://github.com/ruby/ruby/pull/2991/commits/99add258571bf103c6d942bf0e4d510763b73918 Notes: Merged: https://github.com/ruby/ruby/pull/3631
2020-10-06Use $GITHUB_ENV instead of set-envKazuhiro NISHIYAMA
https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ Notes: Merged: https://github.com/ruby/ruby/pull/3630
2020-10-06Remove unused commit_infoKazuhiro NISHIYAMA
Notes: Merged: https://github.com/ruby/ruby/pull/3630
2020-10-06Moved rb_callable_receiver internalNobuyoshi Nakada
2020-10-06Add missing fileutils requireDavid Rodríguez
On my system, the error was being hidden by the presence of a YARD rubygems plugin that was providing the require and making things work.
2020-10-06* 2020-10-06 [ci skip]git
2020-10-05[ruby/tempfile] Improve the documentation for Tempfile.create and recommend ↵Benoit Daloze
Tempfile.open instead https://github.com/ruby/tempfile/commit/8bac025065