Commit graph

67695 commits

Author SHA1 Message Date
Nobuyoshi Nakada
2488589b2f
Removed extra double quotes from domain error messages 2021-07-04 15:28:25 +09:00
Nobuyoshi Nakada
a73f13c907
[DOC] Hash.[] returns a hash with no default value/proc [ci skip] 2021-07-04 14:58:15 +09:00
git
f810c007cf * 2021-07-04 [ci skip] 2021-07-04 11:31:21 +09:00
Nobuyoshi Nakada
eaa1c3190a
[Win32] Fix assembler name when cross compiling
Hostx64\x86\nmake.exe sets AS to ml64 which targets amd64, but we
need assembler for x86.
2021-07-04 11:17:01 +09:00
Nobuyoshi Nakada
ac6924e10e
goruby.c: include golf_prelude.c to get rid of overwriting EXTOBJS 2021-07-03 22:39:14 +09:00
Nobuyoshi Nakada
2d3572a154
Separate toolchain dependent test 2021-07-03 22:11:24 +09:00
Samuel Williams
71146bd4a3 Remove copy coroutine build rule. 2021-07-03 22:50:04 +12:00
git
6f85c9d51c * 2021-07-03 [ci skip] 2021-07-03 12:54:28 +09:00
Nobuyoshi Nakada
ac86fcbfd0
Removed extinit.o from main programs
It is included in libruby, which is linked into the main programs.
2021-07-03 12:52:46 +09:00
Nobuyoshi Nakada
6d8422659a
Fix linking bundled zlib
* Prefix "./" to the import library name to expanded when static
  linking exts.

* Copy zlib shared library to the top build directory.
2021-07-03 12:52:46 +09:00
Nobuyoshi Nakada
287fb680e2
Library arguments to VC are bare file names 2021-07-03 12:52:46 +09:00
Nobuyoshi Nakada
1ac228378c
Use $ignore_error defined in mkmf.rb 2021-07-03 12:52:46 +09:00
Yusuke Endoh
3a95834739 [ruby/error_highlight] Suppress SyntaxError during RubyVM::AST.of
When the original source code is erb, RubyVM::AST.of does not work well.
https://github.com/rails/rails/issues/42678.

b1572761a6
2021-07-02 16:48:20 +09:00
Kazuhiro NISHIYAMA
e105d93b4f
Fix default prompt mode in doc/irb/irb.rd.ja 2021-07-02 13:23:20 +09:00
Nobuyoshi Nakada
8ebb5e23eb Keep GC disabled until VM bootstrap has done [Bug #17583] 2021-07-01 18:49:17 -07:00
Samuel Williams
1862d961a9 Ignore dead threads in coroutine_join. 2021-07-02 12:36:14 +12:00
git
b8da141d32 * 2021-07-02 [ci skip] 2021-07-02 06:47:55 +09:00
Jeremy Evans
e8933fda0c Remove gdbm/dbm related code from CI
The related extensions have been removed.
2021-07-01 14:47:31 -07:00
Martin Dürst
f6539202c5 - add regression tests for U+6E7F (湿) in ISO-2022-JP
In ISO-2022-JP, the bytes use to code are the same as those for "<>".
  This adds regression tests to make sure that these bytes, when representing
  湿, are NOT escaped with encode("ISO-2022-JP, xml: :text) or similar.
  These are additional regression tests for #12052.
2021-07-01 17:33:43 +09:00
Nobuyoshi Nakada
9ca3051660
[DOC] fixed the default value of flags [ci skip] 2021-07-01 14:45:47 +09:00
Nobuyoshi Nakada
9692aeedf1
[DOC] expanded patterns in examples of File.fnmatch [ci skip] 2021-07-01 14:45:47 +09:00
Samuel Williams
1467328edc
More general matrix "configure" parameter, add --with-coroutine=pthread. 2021-07-01 11:23:03 +12:00
Samuel Williams
42130a64f0
Replace copy coroutine with pthread implementation. 2021-07-01 11:23:03 +12:00
Nobuyoshi Nakada
9c9531950c
rbinstall.rb: get rid of making directories when dryrun 2021-07-01 06:42:00 +09:00
Keiko Kaneko
8ee24840c8 [ruby/irb] Update ls.rb without requiring Set, because Set is one of standard libraries
7092ad2ab5
2021-07-01 05:16:31 +09:00
git
518d39388a * 2021-07-01 [ci skip] 2021-07-01 05:12:22 +09:00
Peter Zhu
4a3df35239 Use stride passed into os_obj_of_i 2021-06-30 16:12:03 -04:00
Takashi Kokubun
acbddbe68c [ruby/irb] Rescue a specific error
Rescuing StandardError is prone to bugs caused by a typo or obsoleted methods.

eb5260fcd5
2021-06-30 21:06:52 +09:00
Masataka Pocke Kuwabara
e8c2b03ee1 [ruby/irb] Fix error on ls object_cant_define_singleton
such as `ls 42`, `ls :sym` and so on

b1d436a853
2021-06-30 20:55:18 +09:00
Nobuyoshi Nakada
0feec79846
"nodoc" needs to exclude "doc" [ci skip] 2021-06-30 19:56:37 +09:00
Yusuke Endoh
b6c910e1f4 [ruby/error_highlight] Allow the development version (= master branch) of Ruby 3.1
2dca1446c9
2021-06-30 17:33:57 +09:00
Nobuyoshi Nakada
59ead88563
[DOC] add notes and examples for pipe [ci skip] 2021-06-30 15:45:21 +09:00
Yusuke Endoh
8ccc257434 Add the gemspec for error_highlight 2021-06-30 14:02:28 +09:00
Yusuke Endoh
b270b5df2c Prevent "warning: ambiguity between regexp and two divisions" 2021-06-30 13:41:18 +09:00
Yusuke Endoh
6c6b128c67 [ruby/error_highlight] Bump version
8d483c251e
2021-06-30 13:36:31 +09:00
Yusuke Endoh
ca4e5b1eb3 [ruby/error_highlight] Reconsider the API of ErrorHighlight.spot
acb2046a82
2021-06-30 12:49:27 +09:00
Yusuke Endoh
f428ced69c [ruby/error_highlight] Experimentally support a custom formatter
f40a1de20e
2021-06-30 12:49:18 +09:00
Yusuke Endoh
db7e9b1aac [ruby/error_highlight] Add some comments
e0c90c72c3
2021-06-30 11:46:47 +09:00
Yusuke Endoh
3391682eda tool/sync_default_gems.rb: remove unneeded code for error_highlight sync 2021-06-30 11:39:39 +09:00
Yusuke Endoh
393f84da4a tool/sync_default_gems.rb: Add error_highlight gem 2021-06-30 10:56:59 +09:00
Alan Wu
3dd3ea092a Use Module#ancestors order in recursive constant lookup
Before this commit, const_get with inherit=true and constant lookup
expressions searched the ancestors of the starting point in an order
different from `starting_point.ancestors`.

Items in the ancestry list introduced through prepend were searched
after searching the module they were prepended into. This oddity allowed
for situations where constant lookups gave different results even though
`starting_point.ancestors` is the same.

Do the lookup in the same order as `starting_point.ancestors` by
skipping classes and modules that have an origin iclass. The origin
iclass is in the super chain after the prepended modules.

Note that just like before this commit, the starting point of the
constant lookup is always the first item that we search, regardless of
the presence of any prepended modules.

[Bug #17887]
2021-06-30 10:49:27 +09:00
git
dcd1eedba7 * 2021-06-30 [ci skip] 2021-06-30 10:47:24 +09:00
Nobuyoshi Nakada
94bd3bde81 Specify version to remove as bare numbers 2021-06-30 10:47:01 +09:00
Nobuyoshi Nakada
21600a5f64 Ensure that version number starts with digits 2021-06-30 10:47:01 +09:00
Nobuyoshi Nakada
0b726924a4 Show the removal version 2021-06-30 10:47:01 +09:00
Nobuyoshi Nakada
8118d435d0 rb_warn_deprecated_to_remove_at [Feature #17432]
At compilation time with RUBY_DEBUG enabled, check if the removal
version has been reached.
2021-06-30 10:47:01 +09:00
Yusuke Endoh
d1998d8767 tool/test-bundled-gems.rb: Stop tests conflicting with error_highlight
This hack should be removed after the minitest side is updated.
https://github.com/seattlerb/minitest/pull/880
2021-06-29 23:45:49 +09:00
Yusuke Endoh
9438c99590 Rename error_squiggle to error_highlight 2021-06-29 23:45:49 +09:00
Yusuke Endoh
e946049665 [WIP] add error_squiggle gem
```
$ ./local/bin/ruby -e '1.time {}'
-e:1:in `<main>': undefined method `time' for 1:Integer (NoMethodError)

1.time {}
 ^^^^^
Did you mean?  times
```

https://bugs.ruby-lang.org/issues/17930
2021-06-29 23:45:49 +09:00
Peter Zhu
03dc664493 Fix crash on RGENGC_CHECK_MODE=4
When running btest there is a crash when compiled with
RGENGC_CHECK_MODE=4. The crash happens because `during_gc` is not
turned off before `gc_marks_check` is called, causing the marking to
happen on the main mark stack instead of mark stack created in
`objspace_allrefs`.
2021-06-29 09:28:07 -04:00