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
Nobuyoshi Nakada
f9788ca7fe
Update dependencies
...
internal/rational.h needs internal/warnings.h with Apple clang,
for `UNALIGNED_MEMBER_ACCESS`.
2020-01-17 16:41:46 +09:00
Kazuhiro NISHIYAMA
4e6bcac23e
Update dependencies in makefiles again
...
patch from https://travis-ci.org/ruby/ruby/jobs/638231960
2020-01-17 11:19:01 +09:00
Kenta Murata
5275d8bf4c
rb_rational_raw: convert num and den by to_int
2020-01-17 10:57:51 +09:00
Kenta Murata
47465ab1cc
rb_rational_raw: make a denominator always positive
2020-01-17 10:57:21 +09:00
Kazuhiro NISHIYAMA
73618d84e8
Update dependencies in makefiles
...
patch from https://travis-ci.org/ruby/ruby/jobs/638226493
2020-01-17 10:25:00 +09:00
Kenta Murata
07ce51c5aa
internal/rational.h: insert assertions in RATIONAL_SET_{NUM,DEN}
2020-01-17 10:06:58 +09:00
Kenta Murata
fbc00c2d86
rational.c: remove nurat_s_new
2020-01-17 10:06:19 +09:00
Kenta Murata
019a0ed0c7
Make RATIONAL_SET_{NUM,DEN} static inline functions
2020-01-17 10:04:19 +09:00
Marc-Andre Lafortune
8ab11096ef
Clarify documentation for Module#included_modules and Module#included?
...
[DOC] [ci skip] [Bug #8841 ]
2020-01-16 13:31:25 -06:00
git
95301378fc
* 2020-01-17 [ci skip]
2020-01-17 01:37:30 +09:00
aycabta
800c2a8e4c
Implement vi_insert_at_bol and vi_add_at_eol
2020-01-17 01:37:01 +09:00
aycabta
ec0b366a5c
Add tests for vi_insert and vi_add
2020-01-17 01:37:01 +09:00
Nobuyoshi Nakada
c171ab23e3
Separate numbered parameter scope in eval
...
[Feature #16432 ]
2020-01-16 18:38:48 +09:00
Nobuyoshi Nakada
f38b3e8c70
Fixed the location of args node with numbered parameter
2020-01-16 18:34:31 +09:00
Hiroshi SHIBATA
62baad9fe1
Removed xmlrpc and net-telnet from the bundled gems.
...
[Feature #16484 ][ruby-core:96682]
2020-01-16 16:56:53 +09:00
Nobuyoshi Nakada
fce54a5404
Fix `String#partition`
...
Split with the matched part when the separator matches the empty
part at the beginning. [Bug #11014 ]
2020-01-16 15:36:38 +09:00
git
0b6682dc57
* 2020-01-16 [ci skip]
2020-01-16 11:34:30 +09:00
Nobuyoshi Nakada
4f19666e8b
`Regexp` in `MatchData` can be `nil`
...
`String#sub` with a string pattern defers creating a `Regexp`
until `MatchData#regexp` creates a `Regexp` from the matched
string. `Regexp#last_match(group_name)` accessed its content
without creating the `Regexp` though. [Bug #16508 ]
2020-01-16 11:32:11 +09:00
Yusuke Endoh
815807d2ab
NEWS.md: mention "Freeze Regexp literals" [Feature #8948 ]
2020-01-15 12:43:49 +09:00
Yusuke Endoh
9feca5ceb9
NEWS.md: converted from NEWS
...
and NEWS is deleted
2020-01-15 12:42:47 +09:00
Kazuhiro NISHIYAMA
ac93cf4ff8
Update version guard
...
fix up 98ef38ada4
2020-01-15 10:50:53 +09:00
Jean Boussier
98ef38ada4
Freeze Regexp literals
...
[Feature #8948 ] [Feature #16377 ]
Since Regexp literals always reference the same instance,
allowing to mutate them can lead to state leak.
2020-01-15 10:38:47 +09:00
git
07aef4c99a
* 2020-01-15 [ci skip]
2020-01-15 10:23:37 +09:00
Koichi Sasada
eb4c86a698
Add option hash doc for GC stats.
...
Add a description about optional hash objects for GC.stat and
GC.latest_gc_info. [Bug #14408 ]
The patch is provided by sho-h (Sho Hashimoto).
Thank you so much.
2020-01-15 10:20:19 +09:00
aycabta
8c3efa4940
Use Reline.encoding_system_needs if exists
2020-01-14 15:40:38 +09:00
aycabta
a2638c0d87
Remove an unused setting variable
2020-01-14 15:40:38 +09:00
aycabta
f8ea2860b0
Introduce an abstracted structure about the encoding of Reline
...
The command prompt on Windows always uses Unicode to take input and print
output but most Reline implementation depends on Encoding.default_external.
This commit introduces an abstracted structure about the encoding of Reline.
2020-01-14 15:40:38 +09:00