Nobuyoshi Nakada
075824ebd5
sync_default_gems.rb: reduced accesses to REPOSITORIES
2021-01-05 21:23:07 +09:00
Nobuyoshi Nakada
903af74bbd
[ruby/irb] Ensure to restore $VERBOSE
...
https://github.com/ruby/irb/commit/cef474a76a
2021-01-05 18:07:18 +09:00
aycabta
0123bc9d38
[ruby/irb] Use error tokens if there are no correct tokens in the same place
...
For example, the broken code "%www" will result in only one error token.
https://github.com/ruby/irb/commit/9fa39a7cf3
2021-01-05 18:06:43 +09:00
aycabta
5a1866caff
[ruby/irb] Use Ripper::Lexer#scan to take broken tokens
...
ref. https://github.com/ruby/reline/pull/242
https://github.com/ruby/irb/commit/54f90cb6c9
2021-01-05 18:06:34 +09:00
aycabta
505e01fe12
[ruby/irb] Heredoc may contain multiple newlines in a single token
...
Use the start token as the indentation criteria so that it works properly in
heredoc.
ref. https://github.com/ruby/reline/pull/242
https://github.com/ruby/irb/commit/9704808dfd
2021-01-05 18:06:26 +09:00
aycabta
5012512398
[ruby/irb] Handle indentations related to keyword "do" correctly
...
This fixes ruby/irb#158 .
https://github.com/ruby/irb/commit/964643400b
2021-01-05 18:06:10 +09:00
aycabta
e72a6ed45f
[ruby/irb] Escape invalid byte sequence in Exception
...
This fixes ruby/irb#141 .
https://github.com/ruby/irb/commit/0815317d42
2021-01-05 18:05:06 +09:00
aycabta
cce72a2411
[ruby/irb] Newline in oneliner def doesn't reset indent
...
This closes ruby/irb#132 .
https://github.com/ruby/irb/commit/43456dcf5e
2021-01-05 18:04:45 +09:00
Koichi Sasada
e91160f757
set RUBY_ON_BUG on runruby rule.
...
set RUBY_ON_BUG='gdb -x $(srcdir)/.gdbinit -p' to catch SEGV
on `make runruby` rule.
2021-01-05 16:50:00 +09:00
Yusuke Endoh
b9c1b3f8d8
configure.ac: disable using __builtin_setjmp on ARM Android
...
A patch from Tee KOBAYASHI <xtkoba+ruby@gmail.com>. [Bug #17511 ]
2021-01-05 13:59:03 +09:00
Burdette Lamar
f2d0d4cb0a
RDoc: Enhanced introduction for Enumerable ( #4004 )
...
* RDoc: Enhanced introduction for Enumerable
* RDoc: Enhanced introduction for Enumerable
* RDoc: Enhanced introduction for Enumerable
2021-01-04 23:39:13 -05:00
aycabta
515d6b47ad
[ruby/irb] Stringify when a non-object is passed to PP#text
...
If a nested object is passed to #pp, it may be sometimes passed to the #text
method as an object without being stringified.
This is fixed on the Ruby main repository;
433a3be86a
but it was a bug of Ripper so still needs this workaround for using irb
as a gem on Ruby 3.0.0 or earlier.
Co-authored-by: k0kubun <takashikkbn@gmail.com>
https://github.com/ruby/irb/commit/8d13df22ee
2021-01-04 20:14:31 -08:00
Marcus Stollsteimer
451b456051
[ruby/io-console] [DOC] Note that IO#getpass returns a chomped string
...
IO#getpass uses String#chomp! on the read input line.
https://github.com/ruby/io-console/commit/1e98c93bc8
2021-01-05 12:59:53 +09:00
Nobuyoshi Nakada
3adf84a079
Commented out the sh-specific code, in cmd.exe
2021-01-05 11:53:41 +09:00
Yusuke Endoh
449ef72cb9
configure.ac: Stop auto-detection of __ANDROID_API__ when cross-compiling
...
A patch from Tee KOBAYASHI <xtkoba+ruby@gmail.com>. [Bug #17491 ]
2021-01-05 10:16:05 +09:00
Takashi Kokubun
7a3322a0fd
Fix broken JIT of getinlinecache
...
e7fc353f04
reverted vm_ic_hit_p's signature change made in 53babf35ef
,
which broke JIT compilation of getinlinecache.
To make sure it doesn't happen again, I separated vm_inlined_ic_hit_p to
make the intention clear.
2021-01-04 13:09:08 -08:00
Takashi Kokubun
87c546b5fa
Avoid using inconsistent coding style
...
Other `_mjit_compile_*.erb` files don't use goto. These files'd better
be consistent for readability.
2021-01-04 10:45:01 -08:00
Koichi Sasada
e7fc353f04
enable constant cache on ractors
...
constant cache `IC` is accessed by non-atomic manner and there are
thread-safety issues, so Ruby 3.0 disables to use const cache on
non-main ractors.
This patch enables it by introducing `imemo_constcache` and allocates
it by every re-fill of const cache like `imemo_callcache`.
[Bug #17510 ]
Now `IC` only has one entry `IC::entry` and it points to
`iseq_inline_constant_cache_entry`, managed by T_IMEMO object.
`IC` is atomic data structure so `rb_mjit_before_vm_ic_update()` and
`rb_mjit_after_vm_ic_update()` is not needed.
2021-01-05 02:27:58 +09:00
Nobuyoshi Nakada
bf21faec15
stdlib.h is always included in include/ruby/defines.h
...
Since commit:6537dc309962c7fefcb8d698bbebe4e4f78d0096.
2021-01-05 01:06:33 +09:00
Gui Heurich
f42593c98e
Update compilers.h [ci skip]
2021-01-05 01:06:07 +09:00
Kazuhiro NISHIYAMA
3fee9e7021
Fix indent [ci skip]
...
Suggested by @hanachin at
https://github.com/rurema/doctree/pull/2425#discussion_r551327592
2021-01-05 00:19:48 +09:00
git
1fe111d7d0
* 2021-01-05 [ci skip]
2021-01-05 00:02:01 +09:00
Nobuyoshi Nakada
433a3be86a
ripper: call #pretty_print on also `state`
2021-01-04 23:37:00 +09:00
Nobuyoshi Nakada
afa9d65d61
make-snapshot: add -extlibs option
...
`make-snapshot` with `-extlibs` (or `-extlibs=yes`) includes
extracted and patched external library sources that the extension
libraries depend on.
2021-01-04 19:55:35 +09:00
Nobuyoshi Nakada
ec31ee25c4
Updated bundled_gems
2021-01-04 19:55:34 +09:00
Takashi Kokubun
095972e799
Skip mjit_wait if iseq is not a target
2021-01-04 00:24:02 -08:00
Nobuyoshi Nakada
758ac834a2
Daily bundled_gems update [ci skip]
2021-01-04 16:42:44 +09:00
Nobuyoshi Nakada
977252421b
ifchange: check the number of arguments
2021-01-04 15:54:09 +09:00
Nobuyoshi Nakada
8da7f4abc7
[DOC] Update Proc.new without a block [ci skip]
...
[Feature #10499 ]
[Feature #15554 ]
2021-01-04 15:54:09 +09:00
Takashi Kokubun
cf4a6b5e7b
Add a missing dependency
2021-01-03 22:48:13 -08:00
Kenta Murata
4b90ea8480
Update ext/bigdecimal/depend
2021-01-04 13:42:10 +09:00
Kenta Murata
71f0dd339b
[ruby/bigdecimal] Move some definitions to missing.h
...
https://github.com/ruby/bigdecimal/commit/c2b22cc8b3
https://github.com/ruby/bigdecimal/commit/8cbca8481d
https://github.com/ruby/bigdecimal/commit/f05aecf673
2021-01-04 13:29:10 +09:00
Hiroshi SHIBATA
69ed64949b
Track Bundler master(2.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20
2021-01-04 13:14:43 +09:00
Hiroshi SHIBATA
5537adf719
Track RubyGems master(3.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20
2021-01-04 13:14:43 +09:00
Nobuyoshi Nakada
35c3a24c8c
Fixed error message when % at EOF
2021-01-04 12:11:37 +09:00
git
68c2fc4cc0
* 2021-01-04 [ci skip]
2021-01-04 12:05:37 +09:00
Kenta Murata
597e063606
Revert "Include RUBY_EXTCONF_H if available"
...
It is unnecessary because RUBY_EXTCONF_H has already been included in
ruby/internal/config.h.
This reverts commit 0644f466b0
.
2021-01-04 12:01:04 +09:00
Nobuyoshi Nakada
f4be7a510e
Added tests for Time#getlocal with UTC offset
2021-01-03 23:56:04 +09:00
Kenta Murata
0644f466b0
Include RUBY_EXTCONF_H if available
2021-01-03 23:38:21 +09:00
Nobuyoshi Nakada
bc4c862a76
[ruby/timeout] Removed deprecated names that had been warned for 5 years
...
https://github.com/ruby/timeout/commit/f9a9758a41
2021-01-03 20:19:30 +09:00
Takashi Kokubun
4724bf856f
Avoid hanging on --jit-wait after MJIT.pause
...
When a worker is stopped, nobody will JIT a method for you.
2021-01-03 00:05:38 -08:00
git
09ec8d6866
* 2021-01-03 [ci skip]
2021-01-03 11:56:16 +09:00
Marc-Andre Lafortune
a495cb2fd5
NEWS-3.0.0: backquote a few code related words. [doc]
2021-01-02 21:55:03 -05:00
Marc-Andre Lafortune
fdf3539967
NEWS: We have links now, and there is no changelog anymore [doc]
2021-01-02 21:54:00 -05:00
Nobuyoshi Nakada
68ea7720b3
NEWS: [Feature #17312 ] [ci skip]
2021-01-02 17:27:24 +09:00
zverok
b8d33df1d9
Add Enumerable#compact and Enumerator::Lazy#compact
2021-01-02 17:27:24 +09:00
Nobuyoshi Nakada
f690eb34e2
Fixed dangling imemo_tmpbuf
...
The count of rb_alloc_tmp_buffer_with_count is the allocation size
counted in VALUE size but not in the requested element size.
Co-authored-by: Yusuke Endoh <mame@ruby-lang.org>
Co-authored-by: Koichi Sasada <ko1@atdot.net>
2021-01-02 12:11:52 +09:00
Nobuyoshi Nakada
4b6fd8329b
mkmf.rb: always try_compile as try_header
...
Get rid of "present but cannot be compiled" headers, on some
multi-architecture platforms.
2021-01-02 12:11:02 +09:00
Kenta Murata
a6bbba1135
Avoid to use __builtin_clzl in SPARC Solaris
2021-01-02 12:06:14 +09:00
Takashi Kokubun
4182035e27
Add -v to make benchmark
...
I simply can't tell which of compare-ruby and built-ruby is what.
2021-01-01 18:41:22 -08:00