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

55029 Коммитов

Автор SHA1 Сообщение Дата
Koichi Sasada 4dc5d3c5dd add new debug_counters about is_pointer_to_heap().
is_pointer_to_heap() is used for conservative marking. To analyze
this function's behavior, introduce some debug_counters.
2019-05-07 14:10:43 +09:00
Nobuyoshi Nakada 7e72ce0f73
Load OptionParser defaults from XDG and Haiku standards 2019-05-06 15:30:44 +09:00
git 970a25b104 * 2019-05-06 2019-05-06 11:08:03 +09:00
Nobuyoshi Nakada f1b0db2c70
Revert "UTF-8 is one of byte based encodings"
This reverts commit 5776ae3475.

Mistaken `max` as `min`.
2019-05-06 11:02:12 +09:00
Marcus Stollsteimer 594a033ff0 Improve description of Ruby in README
Use improved description as suggested by Olivier Lacan (@olivierlacan),
see https://github.com/ruby/www.ruby-lang.org/pull/1888.
2019-05-05 09:52:34 +02:00
Marcus Stollsteimer 35ff4ed47f Improve documentation for String#{dump,undump} 2019-05-05 09:51:40 +02:00
Jeremy Evans bb4ac7a650
Fix use of numbered parameter inside proc that is default value of optarg
This allows cases such as:

```ruby
m ->(a = ->{@1}) {a}
m.call.call(1)

m2 ->(a: ->{@1}) {a}
m2.call.call(2)
```

Previously, this would cause a syntax error.

[Bug#15789]
2019-05-05 16:32:45 +09:00
Jeremy Evans 0c0ed1cee8
Fix use of numbered parameter inside proc that is default value of optarg
This allows cases such as:

```ruby
m ->(a = ->{@1}) {a}
m.call.call(1)

m2 ->(a: ->{@1}) {a}
m2.call.call(2)
```

Previously, this would cause a syntax error.

[Bug#15789]
2019-05-05 15:33:10 +09:00
Jeremy Evans b8f3be295b
Fix a case where numbered parameters should not be allowed
Because `proc{|| @1}` is a syntax error, the following should
also be syntax errors:

```ruby
proc { |
| @1}
```

```ruby
proc { |; a| @1 }
```

This fixes both cases.

[Bug #15825]
2019-05-05 14:46:39 +09:00
Nobuyoshi Nakada 374c8f4eba
Fixed about ARGF.lineno
[Bug #15823]
2019-05-05 14:35:35 +09:00
git 84e71e9fc1 * 2019-05-05 2019-05-05 11:13:58 +09:00
git f1b52d3a88 * expand tabs. 2019-05-05 11:13:54 +09:00
Nobuyoshi Nakada ff21e75d32
parse.y: duplicated when clause warning
* parse.y (case_args): moved "duplicated when clause" warning from
  compile phase, so that `ruby -wc` shows them.
2019-05-05 00:29:12 +09:00
Masatoshi SEKI 848edb03f8 ignore test_RangeError 2019-05-04 23:32:13 +09:00
Marcus Stollsteimer a380f4c2b7 Fix typos, grammar, and style 2019-05-04 15:31:21 +02:00
Marcus Stollsteimer 8bf3040e30 Fix grammar 2019-05-04 15:02:20 +02:00
Nobuyoshi Nakada b9e52db283
Add a pathologic check 2019-05-04 22:00:22 +09:00
git 7d30cd47c4 * remove trailing spaces. 2019-05-04 19:29:14 +09:00
Masatoshi SEKI 8980b53a48 add DRb::WeakIdConv (Bug #15711) 2019-05-04 19:28:57 +09:00
Hiroshi SHIBATA b72623012d
Update broken URL in Float documentation.
[Misc #15775][ruby-core:92332]
2019-05-04 06:23:25 +09:00
git a3cbce7822 * 2019-05-04 2019-05-04 00:00:01 +09:00
git 04fd98d596 * expand tabs. 2019-05-03 23:59:58 +09:00
Nobuyoshi Nakada 77440e949b
Improve performance of case-conversion methods 2019-05-03 23:59:18 +09:00
Marcus Stollsteimer 1f349ea297 Fix typo 2019-05-03 16:12:22 +02:00
Nobuyoshi Nakada 5776ae3475
UTF-8 is one of byte based encodings 2019-05-03 15:33:59 +09:00
git 58cd4b7bde * 2019-05-03 2019-05-03 06:26:18 +09:00
NAKAMURA Usaku 7d02bab0b0
Nil cannot and should not convert to a string 2019-05-03 06:24:57 +09:00
git 5c87bb3b90 * expand tabs. 2019-05-02 22:44:43 +09:00
Nobuyoshi Nakada 5e23b1138f
Fix potential memory leak 2019-05-02 22:44:20 +09:00
git d6efb386ba * 2019-05-02 2019-05-02 14:47:26 +09:00
Kazuhiro NISHIYAMA a1ae478a31
Fix a typo 2019-05-02 14:44:47 +09:00
Nobuyoshi Nakada 71952440ad
Silence a (probable) debug print 2019-05-01 20:55:08 +09:00
Nobuyoshi Nakada 474af9ee9a
No last commit when up-to-date
Get the last commit title from the upstream to the head, so that
no `last_commit` line will be shown when the branch is up to date
with the upstream.
2019-05-01 20:47:00 +09:00
Nobuyoshi Nakada 2f0f9115d3
Ignore ChangeLog 2019-05-01 20:27:51 +09:00
NAKAMURA Usaku dcb6a6ae3e
Windows simply causes an error to open invalid path 2019-05-01 17:38:45 +09:00
NARUSE, Yui fc3e80cf6d guard include with has_feature
clang's sanitizer/msan_interface.h has fallback macros.
It causes redefinition of __msan_unpoison().
2019-05-01 01:07:05 +09:00
aycabta 3de03544ff Add Reline.delete_text that raises NotImplementedError 2019-05-01 00:45:54 +09:00
git c06821161a * 2019-05-01 2019-05-01 00:03:58 +09:00
manga_osyo 4e88e86928 Add exception support in `Range#first`.
Closes: https://github.com/ruby/ruby/pull/2163
2019-05-01 00:03:30 +09:00
Kazuhiro NISHIYAMA 0eedec6867
Change Accept-Encoding from `*` to `identity`
When `Accept-Encoding` is `*`,
http://www.unicode.org/Public/12.1.0/ucd/ returns gzipped content now.
So set `identity`.
2019-04-30 22:35:38 +09:00
NAKAMURA Usaku dd942cd5b3
Use redirect keyword arguments instead of ">" 2019-04-30 22:24:45 +09:00
Nobuyoshi Nakada 50872f4a15
Use array mode of `system` instead of `shellescape`
`&.` is not available in ruby 2.0.
2019-04-30 22:23:20 +09:00
Nobuyoshi Nakada df3de40932
String#[] with index to extract matched substring safely 2019-04-30 22:13:47 +09:00
NAKAMURA Usaku 1dd94dfba3
Must use IO::NULL instead of platform dependent filename 2019-04-30 21:51:03 +09:00
NAKAMURA Usaku 830e40ee05
Skip on Windows now when using reline because it causes hang of whole tests 2019-04-30 19:45:44 +09:00
NAKAMURA Usaku 5a83a1d554
**Must** use IO::NULL for null device 2019-04-30 18:01:17 +09:00
Kazuhiro NISHIYAMA c222f4d31f
`from` is not nil but `""` on shallow clone [ci skip] 2019-04-30 16:20:46 +09:00
NAKAMURA Usaku 151b7d72bd
Forgotten to remove 2019-04-30 15:02:03 +09:00
aycabta 94b740b249 Use Ripper for IRB
The debug option of IRB is deleted because it's just for IRB's pure Ruby
parser.
2019-04-30 14:40:06 +09:00
aycabta 567cb1ae1d Use Encoding::UTF_8 if RELINE_TEST_ENCODING doesn't exist 2019-04-30 12:53:24 +09:00