aycabta
e356b71d35
[ruby/reline] Remove debug print
...
d7fbaedc6a
2021-01-08 13:25:18 +09:00
aycabta
ea75aed98e
[ruby/reline] Correct var names in Reline were different from vi-*-mode-string
...
8255fc93b9
2021-01-08 13:25:18 +09:00
aycabta
54c1dcba2b
[ruby/reline] Update cursor correctly when just cursor moving
...
This fixes ruby/reline#236 and ruby/reline#239 .
3e3c89d00b
2021-01-08 13:25:18 +09:00
aycabta
559f844bf4
irb: Drop lines from backtrace for tests in Ruby repository
2021-01-08 13:25:18 +09:00
aycabta
111fddd543
[ruby/irb] Fix BACK_TRACE_LIMIT logic
...
30dc5d43fe
2021-01-08 13:25:18 +09:00
aycabta
917050220a
[ruby/irb] Use Exception#full_message to show backtrace in the correct order
...
[Bug #17466 ]
1c76845cca
2021-01-08 13:25:18 +09:00
Nobuhiro IMAI
ed3264d37a
[ruby/irb] refactoring an error handling in IRB::Inspector
...
* moved rescue clause to `#inspect_value` to catch all failures in inspectors
* test with all (currently five kind of) inspect modes
- tweaked the input due to only `Marshal` can inspect(dump) a `BasicObject`
9d112fab8e
2021-01-08 13:25:18 +09:00
Nobuhiro IMAI
f594775230
[ruby/irb] do not escape a predicate method for doc namespace
...
* Fixes #88
d431a30af4
2021-01-08 13:25:18 +09:00
Nobuhiro IMAI
4bb683a570
[ruby/irb] fix typo in IRB::Irb#convert_invalid_byte_sequence
...
d09d3c3d68
2021-01-08 13:25:18 +09:00
Koichi Sasada
55e52c19e7
simplify assertion
...
searched_cme is used only this line so the variable is not needed.
2021-01-07 23:44:25 +09:00
Nobuyoshi Nakada
412d26a385
Update bundled_gems
2021-01-07 20:11:02 +09:00
Nobuyoshi Nakada
184e82e8f0
Follow the NDEBUG given to the whole
2021-01-07 16:52:10 +09:00
Nobuyoshi Nakada
96ce1d9a0f
rbconfig.rb: extract cpu from RUBY_PLATFORM when universal
2021-01-07 14:55:33 +09:00
Igor Zubkov
ee1e690a2d
We don't need "require 'uri'" after "require 'net/http'".
2021-01-07 13:40:42 +09:00
git
4d0985a7bd
* 2021-01-07 [ci skip]
2021-01-07 10:21:34 +09:00
Kenta Murata
82f6085b3e
[ruby/bigdecimal] Fix trailing zero handling in rb_uint64_convert_to_BigDecimal
...
2056604d56
2021-01-07 10:20:40 +09:00
Kenta Murata
698d7947c3
[ruby/bigdecimal] Include TestBigDecimalBase in TestBigDecimalUtil
...
f732201df1
2021-01-07 10:19:46 +09:00
Nobuhiro IMAI
939729dd82
fix result of example [ci skip]
2021-01-06 21:58:34 +09:00
Nobuyoshi Nakada
069649389c
strip trailing spaces [ci skip]
2021-01-06 17:34:18 +09:00
Koichi Sasada
d968829afa
expose some C-APIs for ractor
...
expose some C-APIs to try to make ractor utilities on external gems.
* add
* rb_ractor_local_storage_value_lookup() to check availability
* expose
* rb_ractor_make_shareable()
* rb_ractor_make_shareable_copy()
* rb_proc_isolate() (not public)
* rb_proc_isolate_bang() (not public)
* rb_proc_ractor_make_shareable() (not public)
2021-01-06 16:03:09 +09:00
Takashi Kokubun
d9fdca81ac
600x larger timeout for Reline
...
I didn't notice it's msec. 2.5s is too short.
http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3311385
2021-01-05 23:02:32 -08:00
Koichi Sasada
954d6c7432
remove invalidated cc
...
if cc is invalidated, cc should be released from iseq.
2021-01-06 14:57:48 +09:00
Koichi Sasada
442bd0e92c
show more info about imemo_callcache
2021-01-06 14:57:48 +09:00
Kenta Murata
fa8295ccb9
[ruby/bigdecimal] Rename BDIGIT to DECDIG
...
686487d942
2021-01-06 13:52:12 +09:00
Kenta Murata
7da06c04b2
Need to convert the return value of rb_big_cmp
2021-01-06 13:39:09 +09:00
Kenta Murata
f289f8ae3a
[ruby/bigdecimal] Optimize the conversion from small Bignum
...
4792a917d8
2021-01-06 10:56:48 +09:00
Kenta Murata
31854403b3
[ruby/bigdecimal] Check the function availabilities separately
...
cf839a34c8
75db4dabb9
2021-01-06 09:25:13 +09:00
Marc-Andre Lafortune
a0a6293e78
[ruby/ostruct] Bump version
2021-01-05 18:35:56 -05:00
git
e8945d5eb3
* 2021-01-06 [ci skip]
2021-01-06 08:35:07 +09:00
Adam Hess
e13f41e02d
[ruby/ostruct] Allow ostruct to return a value on super ( #4028 )
...
This fixes cases where you can super in something that inherits from OpenStruct
Co-authored-by: John Hawthorn <john@hawthorn.email>
2021-01-05 18:34:45 -05:00
Marcus Stollsteimer
3108ad7bf3
[DOC] Fix grammar: "is same as" -> "is the same as"
2021-01-05 15:13:53 +01:00
Kazuhiro NISHIYAMA
3d43944725
Fix a typo [ci skip]
2021-01-05 23:10:39 +09:00
Nobuyoshi Nakada
83e62d7798
[ruby/io-console] Shrink struct query_args
...
720be0a3e5
2021-01-05 21:26:15 +09:00
Nobuyoshi Nakada
4272395982
[ruby/io-console] Pre-define chomp! ID
...
028e1c9497
2021-01-05 21:26:13 +09:00
Nobuyoshi Nakada
ead8d89bd7
[ruby/io-console] Ignore chomp! result and return the modified string
...
09e5ccc729
2021-01-05 21:26:11 +09:00
Nobuyoshi Nakada
06454a9457
sync_default_gems.rb: added -a option
...
The option to merge all commits since the commit merged in the
last prefixed commit.
2021-01-05 21:24:10 +09:00
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
...
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.
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
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
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 .
964643400b
2021-01-05 18:06:10 +09:00
aycabta
e72a6ed45f
[ruby/irb] Escape invalid byte sequence in Exception
...
This fixes ruby/irb#141 .
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 .
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>
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.
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