1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

7811 commits

Author SHA1 Message Date
aycabta
a14c01441b Fix encoding compatibility checking of completion correctly 2019-12-09 14:21:20 +09:00
aycabta
0ff84eda4e [ruby/irb] Version 1.2.0
https://github.com/ruby/irb/commit/da6577a88c
2019-12-07 21:56:23 +09:00
aycabta
2e595c2d78 [ruby/irb] New IRB needs Ruby 2.5 or later
https://github.com/ruby/irb/commit/4be3158358
2019-12-07 21:56:06 +09:00
aycabta
ad6837dd60 [ruby/irb] Revert "Reidline mode needs Reline what needs String#grapheme_clusters"
This reverts commit 2b0b19b87c60d2cdb329979acbb96e12a1f940e7.

New IRB parser needs new Ripper what has lex_state too. The new Ripper is
adopted by Ruby 2.5 or later.

https://github.com/ruby/irb/commit/9ab6e35a2c
2019-12-07 21:55:31 +09:00
aycabta
c2afddccb3 [ruby/irb] Reidline mode needs Reline what needs String#grapheme_clusters
https://github.com/ruby/irb/commit/2b0b19b87c
2019-12-07 20:01:53 +09:00
aycabta
e72ffc55ba [ruby/reline] Support Ruby 2.5 or later for String#grapheme_clusters
https://github.com/ruby/reline/commit/33e8c8f15b
2019-12-07 20:01:53 +09:00
Kazuhiro NISHIYAMA
173b864668
Do not start thread when require 'drb/drb' only 2019-12-06 00:12:58 +09:00
Yusuke Endoh
d43b9eb22d lib/drb/drb.rb: suppress warning: instance variable @pool_proxy not initialized 2019-12-05 22:37:08 +09:00
Kazuhiro NISHIYAMA
4c88107c54
Fix warning: already initialized constant DidYouMean::VERSION
```
.../gems/did_you_mean-1.3.1/lib/did_you_mean/version.rb:2: warning: already initialized constant DidYouMean::VERSION
.../lib/did_you_mean/version.rb:2: warning: previous definition of VERSION was here
```
2019-12-05 18:18:55 +09:00
Antonio Terceiro
ed5d032ea3 debug.rb: expand filenames in breakpoints
When debugging some local code, specifying a breakpoint to a local
filename does not work, i.e.

    break lib/foo.rb:10

Expanding the filename makes it work. FWIW byebug has the same behavior.
2019-12-05 13:28:34 +09:00
Yuki Nishijima
18d3b5a93a Do not attempt to call methods on the receiver if it is a basic object 2019-12-04 19:55:01 -05:00
aycabta
e3587ed849 Support disable-completion 2019-12-05 09:02:23 +09:00
aycabta
ad8fbf444a Fix variable catch 2019-12-05 09:02:23 +09:00
Kazuhiro NISHIYAMA
a0bc0e1ba1 Fix thread leak in drb 2019-12-04 20:57:24 +09:00
aycabta
027e847cd2 Fix auto-indent behavior correctly 2019-12-03 13:02:50 +09:00
aycabta
a92560132b Support incremental search by last determined word
In the incremental search by C-r, search word is saved when it's determined. In
the next incremental search by C-r, if a user presses C-r again with the empty
search word, the determined previous search word is used to search.
2019-12-03 01:39:59 +09:00
aycabta
bce38f706e The C-r in vi command mode is also incremental search 2019-12-03 01:39:59 +09:00
aycabta
103b04128f Support incremental search again by C-r in incremental search 2019-12-02 04:18:22 +09:00
aycabta
c7f05310a2 Process Backspace key in incremental search correctly 2019-12-02 03:30:38 +09:00
aycabta
e15b0313a7 Search history to back in the middle of histories 2019-12-02 03:09:41 +09:00
aycabta
8cb3f29abf The ed_search_prev_history should always search to backward 2019-12-01 23:54:57 +09:00
aycabta
f1cfc7da18 Reline::HISTORY can take Range object 2019-12-01 23:54:57 +09:00
Kevin Deisz
171803d5d3 Promote did_you_mean to default gem
At the moment, there are some problems with regard to bundler + did_you_mean because of did_you_mean being a bundled gem. Since the vendored version of thor inside bundler and ruby itself explicitly requires did_you_mean, it can become difficult to load it when using Bundler.setup. See this issue: https://github.com/yuki24/did_you_mean/issues/117#issuecomment-482733159 for more details.
2019-11-30 21:08:19 -05:00
Hiroshi SHIBATA
08c866d528 [ruby/fileutils] Bump version to 1.4.1
https://github.com/ruby/fileutils/commit/da15e3ce06
2019-11-30 18:09:41 +09:00
Hiroshi SHIBATA
32e547954f
Revert "[ruby/fileutils] Fix #install with "X" mode option"
This reverts commit eab88d20ea.

  The some CI was broken with this.
2019-11-30 17:58:39 +09:00
Jeremy Evans
a98632d5c2 [ruby/webrick] Enabled chunked encoding if Transfer-Encoding: chunked header is set
Patch from Leonard Garvey.

Fixes Ruby Bug 9986.

https://github.com/ruby/webrick/commit/8cff7f3995
2019-11-30 17:50:13 +09:00
Hiroshi SHIBATA
edfbffb241 [ruby/webrick] Bump version to 1.6.0
https://github.com/ruby/webrick/commit/c5635fa5e2
2019-11-30 17:49:10 +09:00
Jeremy Evans
c75100d004 [ruby/webrick] Allow WEBrick::HTTPServlet::CGIHandler :CGIInterpreter option to be array
This way you don't need to escape each entry.

Implements Ruby Feature 15170.

https://github.com/ruby/webrick/commit/d8086e600c
2019-11-30 17:48:15 +09:00
zverok
f7cf5416e4 [ruby/webrick] Document HTTPResponse#body callable option
https://github.com/ruby/webrick/commit/d51836d03d
2019-11-30 17:47:49 +09:00
Hiroshi SHIBATA
ea4272d02b [ruby/fileutils] Bump version to 1.4.0
https://github.com/ruby/fileutils/commit/f92145b10b
2019-11-30 17:36:13 +09:00
Hiroshi SHIBATA
3b9e1c0b2e
Move gemspec of fileutils under the toplevel of lib directory. 2019-11-30 17:32:38 +09:00
Nobuyoshi Nakada
eab88d20ea [ruby/fileutils] Fix #install with "X" mode option
`FileUtils#install` methed raises an unexpected `TypeError`, when
called with `mode:` option which has `"X"`.

```
$ ruby -rfileutils -e 'FileUtils.install("tmp/a", "tmp/b", mode: "o+X")'
/opt/local/lib/ruby/2.7.0/fileutils.rb:942:in `directory?': no implicit conversion of File::Stat into String (TypeError)
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:942:in `block (3 levels) in symbolic_modes_to_i'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:933:in `each_char'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:933:in `each'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:933:in `inject'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:933:in `block (2 levels) in symbolic_modes_to_i'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:931:in `each'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:931:in `each_slice'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:931:in `block in symbolic_modes_to_i'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:926:in `each'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:926:in `inject'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:926:in `symbolic_modes_to_i'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:973:in `fu_mode'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:883:in `block in install'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:1588:in `block in fu_each_src_dest'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:1604:in `fu_each_src_dest0'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:1586:in `fu_each_src_dest'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:877:in `install'
	from -e:1:in `<main>'
```

In spite of that `symbolic_modes_to_i` considers the `File::Stat`
`path` case at the beginning, in `"X"` case, `path` is passed to
`FileTest.directory?` method which requires a `String`.  In such
case, the mode in `path` should be examined instead.

https://github.com/ruby/fileutils/commit/2ea54ade2f
2019-11-30 17:31:35 +09:00
Nobuyoshi Nakada
0a7d26bea1
[ruby/fileutils] Remove version.rb
Loading separate version.rb unnecessary increases every start-up
time.  In the other hand, the gemspec file is parsed only when
building the gem file.

https://github.com/ruby/fileutils/commit/8359cf7cce
2019-11-30 17:30:50 +09:00
Hiroshi SHIBATA
856f9990a9 [ruby/forwardable] Bump version to 1.3.0
https://github.com/ruby/forwardable/commit/e56f0f83c6
2019-11-30 15:54:09 +09:00
Jeremy Evans
9fa0166a58 [ruby/forwardable] Fix keyword argument separation warnings on Ruby 2.7+
Do so in a way that is also compatible with previous versions.

https://github.com/ruby/forwardable/commit/b2dd340988
2019-11-30 15:53:42 +09:00
aycabta
f8cc05dec3 Use @eof variable for ReidlineInputMethod#eof?
"IRB::InputMethod#eof?" requires eof status each user input but
"ReidlineInputMethod#eof?" used "Reline.eof?" what is singleton data.
"ReidlineInputMethod#eof?" is changed to use the result of user input.
2019-11-30 11:20:39 +09:00
Hiroshi SHIBATA
c50d30f659 Simplified ErrDimensionMismatch class 2019-11-30 08:00:40 +09:00
Hiroshi SHIBATA
2f66c443d7 Support argument for ErrNotRegular 2019-11-30 08:00:40 +09:00
Hiroshi SHIBATA
0c59bfae0a Also replace E2MM to standard exception class 2019-11-30 08:00:40 +09:00
Hiroshi SHIBATA
c1059e99d3 Support existence usecase for the custom exception classes 2019-11-30 08:00:40 +09:00
Hiroshi SHIBATA
5044260dcd replace raise method from e2mmap on Scalar class 2019-11-30 08:00:40 +09:00
Hiroshi SHIBATA
9b950310be raise method accepts 3 argument with exception class 2019-11-30 08:00:40 +09:00
Hiroshi SHIBATA
f47f2076fe Retire to maintain e2mmap on ruby core 2019-11-30 08:00:40 +09:00
Hiroshi SHIBATA
04511b994e Remove re-define embedded error classes and extract argument on custom error classes 2019-11-30 08:00:40 +09:00
Hiroshi SHIBATA
d82c541ae4 Use simple exception classes instead of e2mmap 2019-11-30 08:00:40 +09:00
aycabta
c4686b9235 Revert "Treat :@1, :@@1, @1, and @@1 correctly to check termination"
This reverts commit 5e275dd2af.

...The @1 type numberd parameter is reverted from Ruby syntax.
2019-11-29 17:38:18 +09:00
aycabta
7d75e94ea9 Fix regexp to complete complex literal
IRB completion logic always needed exponential notation for complex literal
such as 3e6i but it's bug. I fixed to support complex literal without
exponential notation such as 3i.
2019-11-28 15:22:38 +09:00
aycabta
abe8fb49f0 Delete newline when C-k on emacs mode at EOL 2019-11-28 09:32:51 +09:00
aycabta
7769975c3c Remove two removed constants 2019-11-28 08:26:10 +09:00
aycabta
2d0a1a1869 Fix ghost method line no 2019-11-28 08:19:05 +09:00