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

9097 Коммитов

Автор SHA1 Сообщение Дата
Hiroshi SHIBATA c082c6eb7c Sync RubyGems and Bundler with upstream 2021-07-07 15:31:52 +09:00
David Rodríguez 6e2240a2f9 Sync latest bundler & rubygems development version 2021-07-07 13:30:20 +09:00
Hiroshi SHIBATA 02a3cac658 [ruby/rdoc] Bump version to 6.3.2
https://github.com/ruby/rdoc/commit/0a3a674583
2021-07-06 11:02:14 +09:00
Nobuyoshi Nakada 3dacc14fd3 [ruby/rdoc] Fix links without paths
https://github.com/ruby/rdoc/commit/424bd5db4d
2021-07-05 11:34:37 +09:00
Nobuyoshi Nakada f88a9097a4 [ruby/rdoc] Fix for explicit http link
https://github.com/ruby/rdoc/commit/caf234665c
2021-07-05 11:34:35 +09:00
Nobuyoshi Nakada 7c8aa0a5d2 [ruby/rdoc] Allow a label in a link to another document text
https://github.com/ruby/rdoc/commit/85bb2d33bb
2021-07-05 11:34:33 +09:00
aycabta caa123b50e [ruby/rdoc] Support ActiveSupport::Concern.included
ref. 168ddaa08a/activerecord/lib/active_record/core.rb (L9-L20)

https://github.com/ruby/rdoc/commit/a2d651dade

Co-authored-by: Fumiaki MATSUSHIMA <mtsmfm@gmail.com>
2021-07-05 11:34:29 +09:00
Ulysse Buonomo ec9a9af375 [ruby/rdoc] Fix chained inclusion ancestors_of
Fixes #814

Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com>

https://github.com/ruby/rdoc/commit/b45f747216
2021-07-05 11:34:25 +09:00
xstnztk c7d1989986 [ruby/rdoc] Document 'ruby:' to show core documentation in ri
ri supports 'ruby:' as a kind of "pseudo gem name" to display files of the core Ruby documentation such as syntax and NEWS. Add the appropriate documentation to the description of options shown by "ri --help".

https://github.com/ruby/rdoc/commit/a0e5df6702
2021-07-05 11:34:22 +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.

https://github.com/ruby/error_highlight/commit/b1572761a6
2021-07-02 16:48:20 +09:00
Keiko Kaneko 8ee24840c8 [ruby/irb] Update ls.rb without requiring Set, because Set is one of standard libraries
https://github.com/ruby/irb/commit/7092ad2ab5
2021-07-01 05:16:31 +09:00
Takashi Kokubun acbddbe68c [ruby/irb] Rescue a specific error
Rescuing StandardError is prone to bugs caused by a typo or obsoleted methods.

https://github.com/ruby/irb/commit/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

https://github.com/ruby/irb/commit/b1d436a853
2021-06-30 20:55:18 +09:00
Yusuke Endoh b6c910e1f4 [ruby/error_highlight] Allow the development version (= master branch) of Ruby 3.1
https://github.com/ruby/error_highlight/commit/2dca1446c9
2021-06-30 17:33:57 +09:00
Yusuke Endoh 8ccc257434 Add the gemspec for error_highlight 2021-06-30 14:02:28 +09:00
Yusuke Endoh 6c6b128c67 [ruby/error_highlight] Bump version
https://github.com/ruby/error_highlight/commit/8d483c251e
2021-06-30 13:36:31 +09:00
Yusuke Endoh ca4e5b1eb3 [ruby/error_highlight] Reconsider the API of ErrorHighlight.spot
https://github.com/ruby/error_highlight/commit/acb2046a82
2021-06-30 12:49:27 +09:00
Yusuke Endoh f428ced69c [ruby/error_highlight] Experimentally support a custom formatter
https://github.com/ruby/error_highlight/commit/f40a1de20e
2021-06-30 12:49:18 +09:00
Yusuke Endoh db7e9b1aac [ruby/error_highlight] Add some comments
https://github.com/ruby/error_highlight/commit/e0c90c72c3
2021-06-30 11:46:47 +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
Yusuke Endoh 809f120374 Use String#include? instead of end_with? to avoid message duplication
Previously, did_you_mean used `msg.end_with?(suggestion)` to check if
its suggestion is already added.

I'm now creating a gem that also modifies Exception's message. This
breaks did_you_mean's duplication check.
This change makes the check use String#include? instead of end_with?.

https://github.com/ruby/did_you_mean/commit/b35e030549
2021-06-29 15:49:51 +09:00
Yusuke Endoh 612b6fcd37 Let Correctable#original_message skip prepended method definitions
Previously, DidYouMean::Correctable#original_message did
`method(:to_s).super_method.call` to call the original to_s method by
skipping Correctable#to_s.

I'm now creating a gem that prepends another to_s method to NameError,
which confuses the hack. An immediate solution is to replace it with
`method(:to_s).super_method.super_method.call` to skip the two methods.
But it is too ad-hoc.

This changeset uses more extensible approach and allow a prepended
module to declare that they should be skipped by defining a constant
named `SKIP_TO_S_FOR_SUPER_LOOKUP`.

https://github.com/ruby/did_you_mean/commit/8352c154e3
2021-06-29 15:49:51 +09:00
Nobuyoshi Nakada 4670458af8 Should require "rbconfig" to use RbConfig
https://github.com/ruby/did_you_mean/commit/fbe5aaaae8
2021-06-29 15:49:51 +09:00
Yuki Nishijima 8356d9e374 Start v1.6.0 development
https://github.com/ruby/did_you_mean/commit/3f69171813
2021-06-29 15:49:51 +09:00
Nobuyoshi Nakada 9eae8cdefb
Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
Takashi Kokubun 35c7e83bb3 [ruby/irb] Optimize show_source command further
https://github.com/ruby/irb/pull/249 actually slowed down how `code` is
concatenated. The original way of creating `code` is faster.

[before]
    user     system      total        real
2.420137   0.005364   2.425501 (  2.426264)

[after]
    user     system      total        real
1.000221   0.007454   1.007675 (  1.008295)

Theoretically, this implementation might skip lines that don't appear in
Ripper tokens, but this assumes such lines don't impact whether the code
passes compilation or not. At least normal blank lines seem to have an
`on_ignored_nl` token anyway though.

https://github.com/ruby/irb/commit/27dd2867cd
2021-06-27 10:52:49 +09:00
Masataka Pocke Kuwabara 6eb7c663c6 [ruby/irb] Improve performance of `show_source` for large class
https://github.com/ruby/irb/commit/2b79e9ad21
2021-06-27 10:36:11 +09:00
Samuel Williams bf376cae0c [ruby/reline] Fix missing require.
https://github.com/ruby/reline/commit/010b28dfe9
2021-06-25 17:42:45 +09:00
Samuel Williams e788481843 [ruby/reline] Avoid using blocking `IO.select`.
https://github.com/ruby/reline/commit/de94746393
2021-06-25 17:42:45 +09:00
Hiroshi SHIBATA b048fd572a
Followed up 66d2fc7989 2021-06-25 17:27:17 +09:00
Aaron Patterson b036a44e57
[ruby/racc] Remove Object monkey patch
I don't think we need this monkey patch anymore, so lets remove it!

https://github.com/ruby/racc/commit/464485e912
2021-06-25 17:26:27 +09:00
Hiroshi SHIBATA 7641a83d1f
[ruby/racc] Removed needless condition for old versions of RubyGems.
https://github.com/ruby/racc/commit/fe3183b1ff
2021-06-25 17:26:27 +09:00
Hiroshi SHIBATA dd0a9507a2
[ruby/racc] Drop to support Ruby 2.4
https://github.com/ruby/racc/commit/5af1a42a3b
2021-06-25 17:26:27 +09:00
Hiroshi SHIBATA 77c1f6b1ec
[ruby/racc] Followed up #162
https://github.com/ruby/racc/commit/d66cd12166
2021-06-25 17:26:27 +09:00
Jean Boussier 71344a1d63 [ruby/racc] Stop compressing integer lists
It is unclear why this was implemented, I assume
it was for performance back in 2006.

However today, this compression defeats bytecode caching
entirely and end up being counter productive.

https://github.com/ruby/racc/commit/ae3703c1d0
2021-06-25 17:23:06 +09:00
Nobuyoshi Nakada 627aafac86
Remove also debug symbol directory at clean on macOS 2021-06-24 17:04:42 +09:00
Nobuyoshi Nakada 1356b90c91
Prefer configured command as RM_RF 2021-06-24 17:04:41 +09:00
Hiroshi SHIBATA 193eea9dcd [ruby/rdoc] Specify working directory for RDoc::Options#check_files
https://github.com/ruby/rdoc/commit/f6cca9bd2f
2021-06-23 11:05:16 +09:00
Keiko Kaneko de779f4a62 [ruby/irb] Sort ls result ordered by anscestry
https://github.com/ruby/irb/commit/fdd5c0a71e
2021-06-22 22:32:42 +09:00
aycabta 046fd3ac8c Rescue conversion error of inputrc 2021-06-21 22:12:14 +09:00
aycabta 30cc07fdc1 Check Ruby version to use Fiddle with variadic args in test-all 2021-06-21 18:44:10 +09:00
Ulysse Buonomo 5cc11845b2 [ruby/irb] Improve stackprof measure
Allow usage of more detailed args when setting stackprof callback.

Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com>

https://github.com/ruby/irb/commit/c9d101f450
2021-06-21 18:03:49 +09:00
aycabta 90df426426 [ruby/reline] Version 0.2.6
https://github.com/ruby/reline/commit/5917e3a337
2021-06-21 17:58:49 +09:00
aycabta 00b027a69b [ruby/reline] Fix explamation of #read_io
https://github.com/ruby/reline/commit/301ed11bec
2021-06-21 17:58:49 +09:00
aycabta 95a3cdade6 [ruby/reline] Remove FIXME comment in #render
https://github.com/ruby/reline/commit/acd8f8efbb
2021-06-21 17:58:49 +09:00
aycabta b06218ce6f [ruby/reline] Remove TODO comment in #render_partial
https://github.com/ruby/reline/commit/bb6ea232c2
2021-06-21 17:58:49 +09:00
aycabta 8135f489be [ruby/reline] Add binding C-x C-x to em_exchange_mark on Windows
https://github.com/ruby/reline/commit/24a2489b62
2021-06-21 17:58:49 +09:00