Hiroshi SHIBATA
78ef7eeb36
Manually picked 724bdb8e1d
2020-09-14 14:07:37 +09:00
Hiroshi SHIBATA
eace12c25b
Fixup 8f71bb0e4f76ab12e469d33bc560bd76cc3aaf90
2020-09-14 14:06:02 +09:00
aycabta
b682e0fc21
[ruby/irb] Version 1.2.6
...
https://github.com/ruby/irb/commit/5a7dd8c3bf
2020-09-14 02:14:02 +09:00
aycabta
5bb9e12573
[ruby/irb] Need calculate_width and split_by_width of Reline::Unicode of reline 0.1.5 or later
...
https://github.com/ruby/irb/commit/c05bc9e595
2020-09-14 02:13:32 +09:00
aycabta
8f9b1902f4
[ruby/irb] Omit output if first line of multiline is too long
...
https://github.com/ruby/irb/commit/0feeae38c5
2020-09-14 02:13:18 +09:00
aycabta
e468d9f49c
[ruby/irb] Add OMIT_ON_ASSIGNMENT
...
Omit the results evaluated at assignment if they are too long.
The behavior of ECHO_ON_ASSIGNMENT being on by default is hard to understand,
so I change it to off by default. Instead, we turn OMIT_ON_ASSIGNMENT on by
default. The result is displayed on assignment, but it will always be short
and within one line of the screen.
https://github.com/ruby/irb/commit/c5ea79d5ce
2020-09-14 02:13:11 +09:00
aycabta
5d841f5631
[ruby/irb] Version 1.2.5
...
https://github.com/ruby/irb/commit/07beb3964d
2020-09-14 02:12:58 +09:00
aycabta
3a3e933033
[ruby/reline] Version 0.1.5
...
https://github.com/ruby/reline/commit/c8a419beb5
2020-09-14 02:12:12 +09:00
aycabta
ae508633b7
Suppress "assigned but unused variable" warning
2020-09-12 10:07:18 +09:00
aycabta
777d536749
[ruby/reline] Support for word movement escape sequences in iTerm2
...
https://github.com/ruby/reline/commit/187235f88c
2020-09-12 08:35:52 +09:00
aycabta
f36dc2b6de
[ruby/reline] Treat prompt correctly when Reline.prompt_proc isn't set
...
https://github.com/ruby/reline/commit/9c9ba0eff3
2020-09-12 08:35:52 +09:00
aycabta
ce389ade45
[ruby/reline] Move cursor to currect vertical pos after rendering a logical line
...
https://github.com/ruby/reline/commit/9b932df544
2020-09-12 08:35:52 +09:00
aycabta
9baf1bd0a4
[ruby/reline] Stop using chomp option of lines method
...
https://github.com/ruby/reline/commit/3e2f55c3e0
2020-09-12 08:35:52 +09:00
aycabta
0ec19cc843
[ruby/reline] Stop erasing chars after the cursor at eol
...
When the cursor is at the end of the line and erases characters after the
cursor, some terminals delete the character at the cursor position.
https://github.com/ruby/reline/commit/e96ec97b02
2020-09-12 08:35:52 +09:00
aycabta
2e34b35a0f
[ruby/reline] Skip the nil obtained from getc
...
The nil means there is nothing in the buffer in some systems. Incidentally,
Errno::EIO is raised if the I/O is closed.
https://github.com/ruby/reline/commit/c698634e74
2020-09-12 08:35:52 +09:00
Yoshinao Muramatu
a840ef8569
[ruby/reline] not clear scrollback buffer
...
https://github.com/ruby/reline/commit/ba800f1461
2020-09-12 08:35:51 +09:00
Yoshinao Muramatu
0862744010
[ruby/reline] clear_screen use Windows API
...
https://github.com/ruby/reline/commit/2c5ee54cb3
2020-09-12 08:35:51 +09:00
aycabta
770e66030a
[ruby/reline] Use str.encoding by default for split_by_width
...
https://github.com/ruby/reline/commit/2d32604c9e
2020-09-12 08:35:51 +09:00
Hiroshi SHIBATA
6042b7433d
Promote time.rb to default gems
2020-09-12 08:29:06 +09:00
Hiroshi SHIBATA
01e0d74965
Promote resolv-replace to default gems
2020-09-11 22:01:08 +09:00
Hiroshi SHIBATA
e0675b1c76
Promote resolv to default gems
2020-09-11 21:50:07 +09:00
Hiroshi SHIBATA
d1851ba5b9
Promote securerandom to default gems
2020-09-11 21:15:25 +09:00
Hiroshi SHIBATA
2f24818319
Promote open-uri to default gems
2020-09-11 20:38:18 +09:00
Hiroshi SHIBATA
d55c914f0f
Removed DRb.default_safe_level and DRb#safe_level
2020-09-11 10:52:52 +09:00
Hiroshi SHIBATA
cf76a4a5c2
Promote base64 to default gems
2020-09-10 18:56:17 +09:00
Hiroshi SHIBATA
cf681038d6
Promote shellwords to default gems
2020-09-10 18:56:17 +09:00
Hiroshi SHIBATA
cee8e95761
Promote abbrev to default gems
2020-09-10 18:56:16 +09:00
Aaron Patterson
475c8701d7
Make SecureRandom support Ractor
...
SecureRandom lazily defines `get_random`. Accessing the mutex to define
the `get_random` method is not supported inside a Ractor. This commit
defines `gen_random` when `securerandom` is required and makes it
suppore Ractor (as well as thread safe).
Here is a test program:
```ruby
require "securerandom"
r = Ractor.new do
loop do
Ractor.yield SecureRandom.hex
end
end
p r.take
```
Before this commit:
```
$ make runruby
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems ./test.rb
<internal:ractor>:38: warning: Ractor is experimental, and the behavior may change in future versions of Ruby! Also there are many implementation issues.
/Users/aaron/git/ruby/lib/securerandom.rb:94:in `gen_random': can not access instance variables of classes/modules from non-main Ractors (RuntimeError)
<internal:ractor>:124:in `take': thrown by remote Ractor. (Ractor::RemoteError)
from ./test.rb:9:in `<main>'
/Users/aaron/git/ruby/lib/securerandom.rb:94:in `gen_random': can not access instance variables of classes/modules from non-main Ractors (RuntimeError)
from /Users/aaron/git/ruby/lib/securerandom.rb:155:in `random_bytes'
from /Users/aaron/git/ruby/lib/securerandom.rb:176:in `hex'
from ./test.rb:5:in `block (2 levels) in <main>'
from ./test.rb:4:in `loop'
from ./test.rb:4:in `block in <main>'
make: *** [runruby] Error
```
After this commit:
```
$ make runruby
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems ./test.rb
<internal:ractor>:38: warning: Ractor is experimental, and the behavior may change in future versions of Ruby! Also there are many implementation issues.
"3fc8885157e3911bab4b5d7619bb0308"
```
2020-09-09 12:45:43 -07:00
Hiroshi SHIBATA
01828a955a
Promote tsort to default gems
2020-09-09 21:53:09 +09:00
Hiroshi SHIBATA
b194973dcd
Revert the related commits about Tempfile.open change.
...
Start with fa21985a7a
to d7492a0be8
2020-09-09 21:10:48 +09:00
Jeremy Evans
6997109fca
[ruby/tempfile] Revert Tempfile.open unlinking the file
...
Document difference in behavior between Tempfile.open and
Tempfile.create.
https://github.com/ruby/tempfile/commit/426d6f887f
2020-09-09 20:15:41 +09:00
Marc-Andre Lafortune
fbaab562d9
lib/ostruct.rb: Revert "To use RuntimeError instead of FrozenError for old ruby versions."
...
This reverts commit 4cd1fc8b3559353069860eee90b1b5bade013917.
2020-09-04 01:23:14 -04:00
Nobuyoshi Nakada
0eec4ae851
Get rid of using Socket.gethostbyname
2020-08-31 17:45:27 +09:00
Benoit Daloze
d7492a0be8
Revert changes to rdoc & rubygems regarding Tempfile.open(&block)
...
* They likely want to support older Ruby/tempfile versions
* Reverts part of e8c3872555fc85640505974e6b1c39d315572689
2020-08-29 12:49:20 +02:00
Benoit Daloze
3beecafc2c
Fix usages of Tempfile.open(&block) that expected the file to still be there after the block
2020-08-29 12:30:24 +02:00
Benoit Daloze
e8c3872555
Simplify Tempfile.open calls with a block as they now unlink the file automatically
2020-08-29 12:23:23 +02:00
Benoit Daloze
fa21985a7a
Sync with ruby/tempfile@aa9ea12d94
2020-08-29 12:05:48 +02:00
aycabta
1f09c43628
[ruby/reline] Move width calculator methods to Reline::Unicode
...
https://github.com/ruby/reline/commit/f348ecd9f5
2020-08-28 11:05:18 +09:00
tompng
cdd7d41046
[ruby/reline] fix cursor_pos regexp match
...
https://github.com/ruby/reline/commit/1dd80ef188
2020-08-28 11:05:18 +09:00
aycabta
8882927036
[ruby/irb] Discard newlines at end of file
...
https://github.com/ruby/irb/commit/0b2773d91d
2020-08-28 11:05:18 +09:00
Kenta Murata
72cb9bc55f
[webrick][DOC] Describe the stance of WEBrick about its security and utilization ( #3457 )
...
WEBrick is not recommended for the production use. We need to explicitly
describe this fact in the document to avoid troubles due to misunderstanding.
2020-08-26 14:28:05 +09:00
Hiroshi SHIBATA
e6ac1fb612
Specify the executable of erb
2020-08-25 08:44:14 +09:00
Hiroshi SHIBATA
8c97883b73
Promote erb to default gems
2020-08-21 20:18:44 +09:00
Hiroshi SHIBATA
bc374e5cea
Promote rinda to default gems
2020-08-21 18:10:03 +09:00
Hiroshi SHIBATA
dfda2f739b
Promote find to default gems
2020-08-20 21:00:53 +09:00
Hiroshi SHIBATA
8a40e9b5a2
Promote set to default gems
2020-08-20 12:39:11 +09:00
Hiroshi SHIBATA
5b04e2362c
[ruby/racc] Fixed the licenses field of gemspec
...
https://github.com/ruby/racc/commit/a1aeecff03
2020-08-19 19:35:04 +09:00
Hiroshi SHIBATA
d3b2c1a175
Fixed the invalid SPDX identifier on gemspec
2020-08-18 20:26:40 +09:00
Hiroshi SHIBATA
8fb02b7a97
Update the license for the default gems to dual licenses
2020-08-18 20:26:39 +09:00
Hiroshi SHIBATA
0bb8bd7623
Added the missing licenses field to some default gems
2020-08-18 20:26:39 +09:00