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

59967 Коммитов

Автор SHA1 Сообщение Дата
git 90f5c3c1ea * 2020-01-23 [ci skip] 2020-01-23 02:10:07 +09:00
Jeremy Evans e91c39f1c0 Remove special handling of $SAFE and related C-APIs
These were all deprecated in Ruby 2.7.
2020-01-22 09:09:47 -08:00
0x005c 461db352c2 Rename RUBY_MARK_NO_PIN_UNLESS_NULL to RUBY_MARK_MOVABLE_UNLESS_NULL 2020-01-23 00:11:03 +13:00
Kazuhiro NISHIYAMA c90fc55a1f Drop executable bit of *.{yml,h,mk.tmpl} 2020-01-22 16:04:38 +09:00
Hiroshi SHIBATA 9e3bfed53c
Added usage documentation for sync_default_gems 2020-01-22 16:02:10 +09:00
aycabta cdaae38f79 Use gem name to specify 2020-01-22 13:44:49 +09:00
git e51b6aa81d * 2020-01-22 [ci skip] 2020-01-22 08:55:17 +09:00
Nobuyoshi Nakada 913dc64eb6
Drop executable bit set by 25f2005a63 2020-01-22 08:54:49 +09:00
Nobuyoshi Nakada 5798d35ff6
Also check EWOULDBLOCK as well as EAGAIN 2020-01-21 22:45:10 +09:00
Xia Xionjun 25f2005a63 fix load error with EAGAIN
This is a fix related to the following issue.
rails/rails#33464

Not only in rails apps, some little ruby app with only 2 or 3 ruby
files reproduce the problem during many years.

When I edit linux ruby files by vs code via samba on windows, and
then I execute the ruby files on linux, "require_relative" will
sometimes not work properly.

My solution is to wait a monument if the required relative file is
busy.
2020-01-21 22:41:45 +09:00
Lars Kanis b0ca1fc21b Reline: Fix changed test results due to change to UTF-8 on Windows
In commit f8ea2860b0 the Reline encoding
for native windows console was changed to hardcoded UTF-8.
This caused failures in reline and readline tests, but they were hidden,
because parallel ruby tests incorrectly used Reline::ANSI as IOGate.
Tests failures were raised in single process mode, but not with -j switch.

This patch corrects encodings on native Windows console.
2020-01-21 21:26:58 +09:00
Lars Kanis d1166c6d39 Reline: Use a more robust detection of MinTTY
The previous detection per get_screen_size fails when stdout is passed
to a pipe. That is the case when running ruby tests in parallel ("-j" switch).
In this case Reline believes that it's running on MinTTY and the tests
are running with ANSI IOGate instead of the Windows adapter on MINGW.
So parallel test results were different to that of a single process.
This commit fixes these differencies.

The code is taken from git sources and translated to ruby.
NtQueryObject() is replaced by GetFileInformationByHandleEx(), because
NtQueryObject() is undocumented and is more difficult to use:
  c5a03b1e29/compat/winansi.c (L558)
2020-01-21 21:26:58 +09:00
Kazuhiro NISHIYAMA 1de7941ff8
DocumentRoot is optional
since 2.3.0
0b9d86f29b
2020-01-21 18:13:54 +09:00
Koichi Sasada 8113f3fee4 add default break points 2020-01-21 16:58:00 +09:00
卜部昌平 97d75639a9 VALUE is narrower than rb_serial_t
VALUE and rb_serial_t do not agree with their width.  We have to be
consistent.  Assigning an rb_serial_t value to a VALUE variable is
practically a problem on a ILP32 environment.
2020-01-21 14:21:15 +09:00
git 32fb6c8c11 * 2020-01-21 [ci skip] 2020-01-21 09:53:46 +09:00
aycabta 2943ebd240 [ruby/reline] Implement vi_change_meta
https://github.com/ruby/reline/commit/8538e0e10f
2020-01-21 09:52:32 +09:00
Kenta Murata 93ca212dda [ruby/irb] [ruby/irb] Rewrite an expression to detect multiline
https://github.com/ruby/irb/commit/ed5cf375a6

https://github.com/ruby/irb/commit/5b7bbf9c34
2020-01-21 09:51:26 +09:00
Kenta Murata 51a8055d7d [ruby/irb] Add newline_before_multiline_output
https://github.com/ruby/irb/commit/9eb1801a66
2020-01-21 09:51:16 +09:00
Lars Kanis f451bb5406 [ruby/irb] Fix compatibility with rails before 5.2
Rails before 5.2 added Array#append as an alias to Array#<< ,
so that it expects only one argument.
However ruby-2.5 added Array#append as an alias to Array#push
which takes any number of arguments.

If irb completion is used in `rails c` (for example "IO.<tab>")
it fails with:
  irb/completion.rb:206:in `<<': wrong number of arguments (given 3, expected 1) (ArgumentError)

Using Array#push instead of Array#append fixes compatibility.

https://github.com/ruby/irb/commit/5b7bbf9c34
2020-01-20 19:13:19 +09:00
aycabta 3b407abe9b [ruby/reline] Implement vi_prev_char and vi_to_prev_char
https://github.com/ruby/reline/commit/0ad3ee63fa
2020-01-20 19:13:19 +09:00
aycabta b17797a694 [ruby/reline] Implement vi_to_next_char
https://github.com/ruby/reline/commit/066ecb0a21
2020-01-20 19:13:19 +09:00
Jeremy Evans 9f99760daf
Get rid of use of special variables
Use `"\n"` and `IO#fileno` instead of `$/` and `$.` respectively.
[Feature #14240]
2020-01-20 16:58:58 +09:00
git f31b90f2b9 * 2020-01-20 [ci skip] 2020-01-20 09:50:03 +09:00
Nobuyoshi Nakada bdef392ec6
Fixed double closedir
In the case that shinking the entries buffer to the exact size
failed, `dirp` is already closed.  Found by mame with Coverity
Scan.
2020-01-20 09:49:27 +09:00
Nobuyoshi Nakada 884897dbe2
README.ja.md: removed the badge for Cygwin [ci skip]
The workflow for Cygwin has been removed at
3344f81107.
2020-01-19 21:21:51 +09:00
Nobuyoshi Nakada 2d61684e7c
README.md: removed the badge for Cygwin [ci skip]
The workflow for Cygwin has been removed at
3344f81107.
2020-01-19 21:16:43 +09:00
Nobuyoshi Nakada 0ab93e098f NEWS.md: set code format explicitly [ci skip]
It is not set by default in the Github viewer.
2020-01-19 21:07:24 +09:00
Nobuyoshi Nakada 2f1081a451
Sort globbed results by default [Feature #8709]
Sort the results which matched single wildcard or character set in
binary ascending order, unless `sort: false` is given.  The order
of an Array of pattern strings and braces are not affected.
2020-01-19 14:46:01 +09:00
Ryuta Kamizono af6563f024 Fix typo s/test_ruby2_keywords_hash!/test_ruby2_keywords_hash/
In #2818, `Hash.ruby2_keywords!` has renamed to `Hash.ruby2_keywords_hash`.
2020-01-19 13:06:27 +09:00
Nobuyoshi Nakada edf2cedc9c
Allow rexml to fail on macOS of Github Actions
And revert "Stop test-bundled-gems on macOS for now",
28b290f7f4.
2020-01-19 11:56:39 +09:00
Nobuyoshi Nakada 496f295f91
Test bundled gems with timeout 2020-01-19 11:35:10 +09:00
git b5a2e734da * 2020-01-19 [ci skip] 2020-01-19 09:48:56 +09:00
Nobuyoshi Nakada 28b290f7f4
Stop test-bundled-gems on macOS for now 2020-01-19 09:48:33 +09:00
Nobuyoshi Nakada 979b32d76b
Removed useless sorts of lists generated from literals 2020-01-18 18:46:19 +09:00
Nobuyoshi Nakada eb96e4e981
Made glob option keyword IDs static 2020-01-18 18:14:47 +09:00
Nobuyoshi Nakada 79f0ed3529
NEWS.md: reduce headings level [ci skip]
As the only h2 did not have its exclusively owned body text,
merged it to the first paragraph.  Then pulled up h3 and deeper
headings.
2020-01-18 17:46:52 +09:00
Nobuyoshi Nakada 59d255b940
NEWS.md: made ticket references links [ci skip] 2020-01-18 17:43:07 +09:00
Nobuyoshi Nakada a1ce1dc2a7
NEWS.md: fixed lists and indents [ci skip]
* The definition lists extensions of the RDoc Markdown parser does
  not support nesting.

* The RDoc Markdown parser requires more indents for nested lists.
2020-01-18 17:23:20 +09:00
Nobuyoshi Nakada 93a51c15d9
Update clean-local [ci skip]
* Remove builtin_binary.inc which is generated for each time
  miniruby is built.

* dSYM is a directory, not a file.
2020-01-18 16:47:53 +09:00
git 1e29fe77f4 * 2020-01-18 [ci skip] 2020-01-18 00:17:39 +09:00
Nobuyoshi Nakada 199d829a51
[ruby/io-console] bump up to 0.5.5 2020-01-18 00:17:05 +09:00
Nobuyoshi Nakada 4e56ec4ef7 [ruby/io-console] Set `OPOST` when `intr` is true
To enable implementation-defined output processing, for the
compatibility with readline.  [Bug #16509]

https://bugs.ruby-lang.org/issues/16509

https://github.com/ruby/io-console/commit/8c8b0b6757
2020-01-18 00:15:02 +09:00
Charles Oliver Nutter 569f56e0f7 [ruby/io-console] Filter Ruby engine name rather than just /ruby/
This breaks tests using this path on JRuby because the `jruby`
executable turns into `jjruby` after the sub.

https://github.com/ruby/io-console/commit/e5951aa34c
2020-01-18 00:15:00 +09:00
Hiroshi SHIBATA 4e1a7678cd [ruby/io-console] Update the minimum requirement of Ruby version
https://github.com/ruby/io-console/commit/73e7b6318a
2020-01-18 00:14:58 +09:00
Adam Isom 09271acdaf Update documentation for Array/Hash Argument section of methods.rdoc 2020-01-17 19:50:39 +09:00
Yusuke Endoh 3344f81107 .github/workflows/cygwin.yml: Removed
There is no active maintainer for cygwin.  The CI failure is too noisy.

[Misc #16407]
2020-01-17 17:25:05 +09:00
Yusuke Endoh 7cfe93c028 hash.c: Add a feature to manipulate ruby2_keywords flag
It was found that a feature to check and add ruby2_keywords flag to an
existing Hash is needed when arguments are serialized and deserialized.
It is possible to do the same without explicit APIs, but it would be
good to provide them as a core feature.

https://github.com/rails/rails/pull/38105#discussion_r361863767

Hash.ruby2_keywords_hash?(hash) checks if hash is flagged or not.
Hash.ruby2_keywords_hash(hash) returns a duplicated hash that has a
ruby2_keywords flag,

[Bug #16486]
2020-01-17 17:20:38 +09:00
Yusuke Endoh b23fd59cbb marshal.c: Support dump and load of a Hash with the ruby2_keywords flag
It is useful for a program that dumps and load arguments (like drb).
In future, they should deal with both positional arguments and keyword
ones explicitly, but until ruby2_keywords is deprecated, it is good to
support the flag in marshal.

The implementation is similar to String's encoding; it is dumped as a
hidden instance variable.

[Feature #16501]
2020-01-17 17:20:19 +09:00
Nobuyoshi Nakada c98c492578
Added test for f38b3e8c70 2020-01-17 16:56:53 +09:00