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

70323 Коммитов

Автор SHA1 Сообщение Дата
Hiroshi SHIBATA 87b968c903
[ruby/psych] psych depends stringio only CRuby
https://github.com/ruby/psych/commit/e7bbf26cb2
2021-12-20 18:26:58 +09:00
git 4db88173d8 Update default gems list at 706c7a27fa [ci skip] 2021-12-20 09:26:42 +00:00
Hiroshi SHIBATA 706c7a27fa [ruby/psych] Bump version to 4.0.3
https://github.com/ruby/psych/commit/75ab76e788
2021-12-20 18:25:50 +09:00
Hiroshi SHIBATA 24f7a41aed
Update logger version on NEWS 2021-12-20 18:02:19 +09:00
Hiroshi SHIBATA e22c8e63e1 [ruby/logger] Bump version to 1.5.0
https://github.com/ruby/logger/commit/cdeddb2f67
2021-12-20 18:01:50 +09:00
aycabta 7b0f2d618e [ruby/irb] Remove unnecessary space in regexp
https://github.com/ruby/irb/commit/c24a8e2483
2021-12-20 16:19:37 +09:00
aycabta b96ef7684c [ruby/irb] Add East Asian Ambiguous Width to irb_info command
https://github.com/ruby/irb/commit/4cade4b7e5
2021-12-20 16:19:36 +09:00
git 145f7c094f Update bundled gems list at 2021-12-20 2021-12-20 07:05:44 +00:00
aycabta 6ccc15c2ab [ruby/reline] Rename an unused variable name for CI
https://github.com/ruby/reline/commit/ba97f3bd87
2021-12-20 15:52:51 +09:00
aycabta 7572e0c6ec [ruby/reline] Add a test for dialog proc with context
https://github.com/ruby/reline/commit/2ce2696d6e
2021-12-20 14:54:45 +09:00
aycabta bb12281164 [ruby/reline] Add an assertion for overwriting dialog proc with the same name
https://github.com/ruby/reline/commit/96067bc13c
2021-12-20 14:54:44 +09:00
aycabta cc072899a1 [ruby/reline] Rename the variable "p" because it overlaps with the "p" method
https://github.com/ruby/reline/commit/9bf2ca692e
2021-12-20 14:54:43 +09:00
aycabta 145c1e0691 [ruby/reline] Add support for overwriting dialog proc with the same name
https://github.com/ruby/reline/commit/16aa20c380
2021-12-20 14:54:42 +09:00
aycabta c462e07a5c [ruby/reline] Add Reline.dialog_proc(name_sym)
https://github.com/ruby/reline/commit/7e5dbe4750
2021-12-20 14:54:42 +09:00
aycabta ec517d60b0 [ruby/reline] Add a test for Reline.add_dialog_proc
https://github.com/ruby/reline/commit/c4bb1bfd79
2021-12-20 14:54:41 +09:00
aycabta cf508d4db9 [ruby/reline] Add space
https://github.com/ruby/reline/commit/4b7fa6b213
2021-12-20 14:53:45 +09:00
YO4 2a8ff602e0 [ruby/reline] windows jruby issue
jruby needs terminal control with Windows API  on classic console

https://github.com/ruby/reline/commit/b61bc43374
2021-12-20 14:51:52 +09:00
YO4 65cb250cb1 [ruby/reline] windows clear screen with \e 2 J
Windows Terminal does smart screen clearing when \e 2 J (not clear entire screen but scrolls down just needed)

On consoles not support sequences, ruby still converts it to API call.

https://github.com/ruby/reline/commit/c00930dab9
2021-12-20 14:51:52 +09:00
YO4 2c415cda85 [ruby/reline] windows improve scrolling
ScrollConsoleScreenBuffer can't scroll window of Windows Terminal.
Use LF to sctoll.

Microsoft says
```In the virtual terminal sequences world, the size of the window and the size of the screen buffer are fixed to the same value.
```
https://docs.microsoft.com/en-us/windows/console/window-and-screen-buffer-size

https://github.com/ruby/reline/commit/9ff3c70732
2021-12-20 14:51:51 +09:00
aycabta a856489be6 [ruby/reline] Revert "Add a space after a comma"
This reverts commit https://github.com/ruby/reline/commit/6009b3ef7ab7.

To merge a Pull Request...

https://github.com/ruby/reline/commit/83021f4267
2021-12-20 14:50:41 +09:00
aycabta 7dd0e91cac [ruby/reline] Revert "Add space"
This reverts commit https://github.com/ruby/reline/commit/1bb071bcf5a9.

To merge a Pull Request...

https://github.com/ruby/reline/commit/e9fe1b1305
2021-12-20 14:46:35 +09:00
Burdette Lamar 3bb6e4f641
[DOC] Enhanced RDoc for IO (#5304)
Treated:

    ::try_convert
    #write
    #<<
    #flush
    #tell
    #seek
    #pos=
    #rewind
    #eof
2021-12-19 22:04:47 -06:00
Hiroshi SHIBATA 7867a76e69
Update pp version on NEWS 2021-12-20 12:46:11 +09:00
Hiroshi SHIBATA 0a198e4238 [ruby/pp] Bump version to 0.3.0
https://github.com/ruby/pp/commit/c66d1b9cdc
2021-12-20 12:44:31 +09:00
David Rodríguez 1976b38f7a [rubygems/rubygems] Add support in binstubs for trampolining bundler
If `bundler _<version>_` is given, I guess the most reasonable approach
is to completely skip version switching, because the user is technically
opting out of it. But since binstubs completely remove this argument
from `ARGV` after processing it, we have no way of detecting that it was
actually passed in the first place in order to skip the feature. So we
set `BUNDLER_VERSION` explicitly in this case.

https://github.com/rubygems/rubygems/commit/e0f360d6d7
2021-12-20 07:42:53 +09:00
David Rodríguez 72db2e00d4 [rubygems/rubygems] Error tracing should be printed to stderr
https://github.com/rubygems/rubygems/commit/23178f7d7b
2021-12-20 06:49:49 +09:00
Victor Shepelev a0f10a973f
[DOC] Add documentation for hash value omission syntax 2021-12-20 01:09:52 +09:00
Chris AtLee 1dd10e1892
[DOC] Add documentation for Random.rand and Random.seed 2021-12-20 00:50:46 +09:00
git 12ad53f41f * 2021-12-20 [ci skip] 2021-12-20 00:37:20 +09:00
Burdette Lamar f44367effe
[DOC] Addition to IO introduction (#5299)
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2021-12-19 09:37:06 -06:00
Kazuhiro NISHIYAMA ae58b71eeb
Sort URLs by issue numbers [ci skip] 2021-12-19 23:43:39 +09:00
Kazuki Tsujimoto 3f2b581840
Add news about allowing omission of parentheses in one-line pattern matching 2021-12-19 21:37:08 +09:00
Nobuyoshi Nakada e2ec97c4b8
[DOC] How to get the longest last match [Bug #18415] 2021-12-19 20:27:31 +09:00
Kaíque Kandy Koga 0eb1c4ea3a [ruby/irb] Add information about --extra-doc-dir option in the comments
https://github.com/ruby/irb/commit/ac3d4b9e79
2021-12-19 20:26:29 +09:00
Samuel Williams 56811617ab Improve IO::Buffer resize and introduce ownership transfer. 2021-12-20 00:17:17 +13:00
Nobuyoshi Nakada a81e0600a7 [ruby/reline] Load correct version.rb from gemspec
When merged to ruby/ruby, reline.gemspec file is located under
lib/reline, as the same as reline/version.rb.  That is the latter
path relative from the former differs from the ruby/reline case,
and the reline/version.rb in the default load path will be loaded.
Try `require_relative` not to load unexpected files.

https://github.com/ruby/reline/commit/54905d0e1b
2021-12-19 12:14:10 +09:00
aycabta 7159af3491 [ruby/reline] Clear dialog in pasting
https://github.com/ruby/reline/commit/dabf5313e0
2021-12-19 11:19:50 +09:00
Samuel Williams f3e30b26c5 Default size for IO::Buffer. 2021-12-19 12:25:38 +13:00
Koichi Sasada 6bef1ac628 `rb_iseq_update_references()` cares `script_lines`
and it fixes compaction issue:
http://rubyci.s3.amazonaws.com/freebsd12/ruby-master/log/20211218T203001Z.fail.html.gz
2021-12-19 06:15:22 +09:00
Daniel Colson 45f2182438 YJIT: Implement intern
`intern` showed up in the top 20 most frequent exit ops (granted with a
fairly small percentage) in a benchmark run by @jhawthorn on
github/github.

This implementation is similar to gen_anytostring, but with 1
stack pop instead of 2.

Co-authored-by: John Hawthorn <jhawthorn@github.com>
2021-12-18 15:59:30 -05:00
Koichi Sasada dd29ba0764 `iseq_type_sym()` -> `iseq_type_id()`
`iseq_type_sym()` returns `ID` (surprisingly!) so rename it
to `iseq_type_id()`.
2021-12-19 05:35:16 +09:00
Koichi Sasada 89a02d8932 add `rb_iseq_type()` to return iseq type in Symbol
It is shorthand `ISeq#to_a[9]`.
2021-12-19 05:16:29 +09:00
Yusuke Endoh 52b1c76534 Manually sync d2140d795a 2021-12-19 04:13:14 +09:00
Yusuke Endoh 6a51c3e80c Make AST.of possible even under eval when keep_script_lines is enabled
Now the following code works without an exception.

```
RubyVM.keep_script_lines = true

eval(<<END)
def foo
end
END

p RubyVM::AbstractSyntaxTree.of(method(:foo))
```
2021-12-19 04:00:51 +09:00
Yusuke Endoh acac2b8128 Make RubyVM::AbstractSyntaxTree.of raise for backtrace location in eval
This check is needed to fix a bug of error_highlight when NameError
occurred in eval'ed code.
https://github.com/ruby/error_highlight/pull/16

The same check for proc/method has been already introduced since
64ac984129.
2021-12-19 03:51:37 +09:00
Burdette Lamar 7e0e6f9074
What's Here for ENV (#5292)
[DOC] What's Here for ENV
2021-12-18 12:32:11 -06:00
git 1ed520a9ef * 2021-12-19 [ci skip] 2021-12-19 01:07:23 +09:00
Koichi Sasada 45de4025f5 skip -v spec on MJIT
fix this failure:

```
configure ... cppflags=-DMJIT_FORCE_ENABLE
...
make test-spec

1)
The -v command line option when used alone prints version and ends FAILED
Expected
"ruby 3.1.0dev (2021-12-18T10:10:42Z master 78c175280b) +MJIT [x86_64-linux]
"
to include "ruby 3.1.0dev (2021-12-18T10:10:42Z master 78c175280b) [x86_64-linux]"
/tmp/ruby/v3/src/trunk-mjit-wait/spec/ruby/command_line/dash_v_spec.rb:9:in `block (3 levels) in <top (required)>'
/tmp/ruby/v3/src/trunk-mjit-wait/spec/ruby/command_line/dash_v_spec.rb:4:in `<top (required)>'
```

http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3759943
2021-12-19 01:07:02 +09:00
Samuel Williams 235f523a88 Fix spelling of DECLAIR_TYPE. 2021-12-19 00:19:55 +13:00
Samuel Williams 78c175280b Fix code formatting. 2021-12-18 23:10:42 +13:00