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

59058 Коммитов

Автор SHA1 Сообщение Дата
John Hawthorn 26fd8d962c Optimize pinned page sorting
Previously we would count the pinned objects on each comparison. Since
sorting is O(N log N) and we calculated this on both left and right
pages on each comparison this resulted in a extra iterations over the
slots.
2019-11-22 12:42:24 -08:00
John Hawthorn 3f4199b0af Use value of use_verifier in gc_compact 2019-11-22 12:42:24 -08:00
git 144bff43fc * 2019-11-23 [ci skip] 2019-11-23 01:58:08 +09:00
Kazuhiro NISHIYAMA 271cb9acd2
Suppress git error message
`fatal: not a git repository (or any of the parent directories): .git`
2019-11-23 01:57:19 +09:00
Kazuhiro NISHIYAMA d7f100226d
Skip test_validate_gemspec when tarball and git installed too
`git --version` failed as expected when git is not installed,
but unexpectedly pass when git installed and pwd is not in git working directory.
So use `git rev-parse` instead, and it failed when git installed too.
2019-11-23 01:57:19 +09:00
Yusuke Endoh 053f78e139 internal.h: Add a prototype declaration for rb_gvar_readonly_setter
emscripten fails to compile ruby due to lack of this.
2019-11-22 23:56:18 +09:00
Vít Ondruch 994435d0ef Revert "Update dependencies"
This reverts commit e1b2341488.

This allows to build Psych against system libyaml again on Fedora.

[Bug #16359]
2019-11-22 22:42:33 +09:00
NARUSE, Yui 35608760ff Add github repo to remove_tag 2019-11-22 19:05:58 +09:00
Nobuyoshi Nakada a93d0a4e62
Check -1 arity for C++ 2019-11-22 18:42:49 +09:00
git f9d20a1bf1 * 2019-11-22 [ci skip] 2019-11-22 13:58:32 +09:00
Kazuhiro NISHIYAMA 8eb0a9e566
Use jsDelivr instead of raw.githubusercontent.com
Try to fix download error on Solaris CI

https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-master/log/20191121T162422Z.fail.html.gz
```
tool/downloader.rb:243:in `rescue in download': failed to download config.guess (RuntimeError)
Net::HTTPFatalError: 503 "Service Unavailable": https://raw.githubusercontent.com/gcc-mirror/gcc/master/config.guess
```
2019-11-22 13:55:59 +09:00
Kazuhiro NISHIYAMA 88d6009d91
Use more strict regexp to avoid to match naninanirb.rb 2019-11-21 23:10:30 +09:00
Nobuyoshi Nakada ffab1bfdfc
Fixed for old git 2019-11-21 15:17:34 +09:00
Nobuyoshi Nakada 97a5af62a3
Skip updating revision.h when the revision is unchanged
note: GNU make only.
2019-11-21 10:57:36 +09:00
Jeremy Evans a9d4f2d03c Support %U/%u/%W/%w/%V/%g/%G formats in Time.strptime
Most of these formats were documented as supported, but were not
actually supported. Document that %g and %G are supported.

If %U/%W is specified without yday and mon/mday are not specified,
then Date.strptime is used to get the appropriate yday.

If cwyear is specifier without the year, or cwday and cweek are
specified without mday and mon, then use Date.strptime and convert
the resulting value to Time, since Time.make_time cannot handle
those conversions

Fixes [Bug #9836]
Fixes [Bug #14241]
2019-11-21 03:32:20 +02:00
aycabta 8f1062127e Add test/reline/test_string_processing.rb 2019-11-21 07:28:18 +09:00
aycabta 9131e62f18 [ruby/reline] Version 0.0.7
09d370bdc1
2019-11-21 07:14:27 +09:00
aycabta f30f78e2e0 Version 0.0.6 2019-11-21 07:04:53 +09:00
aycabta e4127cdd3e Version 1.1.0 2019-11-21 07:04:40 +09:00
aycabta 95f20f463a Consider escape sequence to calculate prompt width 2019-11-21 07:01:41 +09:00
Koichi Sasada 1197a036ae Add a proper cast to pass JIT tests on mswin.
https://ci.appveyor.com/project/ruby/ruby/builds/29001248/job/ye80bsrmewdgw294
2019-11-21 04:38:40 +09:00
aycabta eee70b41d4 Add a warning message and --legacy of an alias of --singleline 2019-11-21 02:44:35 +09:00
Y. Ushiki 9d6f78822c Refactor filter_backtrace 2019-11-21 02:44:35 +09:00
Y. Ushiki 04d0d93ebf Fix filter_backtrace for context-mode 0 2019-11-21 02:44:35 +09:00
aycabta 91bf3b7a77 Use singleline/multiline instead of readline/reidline 2019-11-21 02:44:35 +09:00
Nobuyoshi Nakada 9b52bacc62
Refined inspection of argument forwarding 2019-11-21 02:18:13 +09:00
git f835a74da4 * 2019-11-21 [ci skip] 2019-11-21 00:48:59 +09:00
manga_osyo 6723aa07e5 Change argument `Proc` to `#call` defined object.
This is the same as the behavior of Readline.
2019-11-21 00:47:37 +09:00
manga_osyo 81586a4d9f Add <Home> <End> keys. 2019-11-21 00:47:36 +09:00
Kazuhiro NISHIYAMA 777973084e
Add tests of argument forwarding's parameters and inspect 2019-11-20 17:57:52 +09:00
aycabta 633625a083 Mintty on Cygwin isn't a kind of command prompt, can process ANSI escape code 2019-11-20 17:55:19 +09:00
Koichi Sasada ae818b589e add a NEWS entry for Method#inspect 2019-11-20 17:21:50 +09:00
Nobuyoshi Nakada fc22b0eaa3
Always forward declaration is needed
`rb_resolve_refined_method_callable` is referenced in
`refine_sym_proc_call`, even when pre-compiling mjit header on
mswin.
2019-11-20 16:28:18 +09:00
Nobuyoshi Nakada 83900528ad
Turn C4047 warning into error
Warned at making precompiled header on mswin.

```
building rb_mjit_header-2.7.0.pch
vm.c
d:\a\ruby\ruby\src\vm_args.c(1117): warning C4047: '=': 'const rb_callable_method_entry_t *' differs in levels of indirection from 'int'
rb_mjit_header-2.7.0.pch updated
```
2019-11-20 16:28:18 +09:00
卜部昌平 7608baf92a re-add function prototypes
This commit reverts a part of 0e8219f591
which broke icc.  See also https://rubyci.org/logs/rubyci.s3.amazonaws.com/icc-x64/ruby-master/log/20191120T010006Z.fail.html.gz
2019-11-20 15:54:06 +09:00
Nobuyoshi Nakada f90b22e3dc
Revert the line for nextafter.c for FreeBSD make 2019-11-20 15:37:05 +09:00
zverok 50cc934145 Update representation (discussed on ruby tracker) 2019-11-20 13:42:56 +09:00
zverok baf482bab4 Fix test_module.rb 2019-11-20 13:42:56 +09:00
zverok 4b583cff97 Method parameters inspect
Example:

    def m(a, b=nil, *c, d:, e: nil, **rest, &block)
    end
    p method(:m)
    #=> #<Method: m(a, b=<default>, *c, d:, e: <default>, **rest, &block) ...>
2019-11-20 13:42:56 +09:00
aycabta da0d7211aa Fix indent of a line when a newline is inserted to the next 2019-11-20 10:04:41 +09:00
aycabta 9306602f24 Replace typo "bock" with "block" 2019-11-20 09:58:33 +09:00
aycabta 19a310b0ac A preceding token of "do" of block has EXPR_CMDARG or EXPR_ENDFN
meth do # the preceding token of "do" has EXPR_CMDARG
  end

  meth() do # the preceding token of "do" has EXPR_ENDFN
  end
2019-11-20 09:56:13 +09:00
aycabta 49b4507fd3 Number sign comment (# bla bla) is a kind of newline character 2019-11-20 08:39:43 +09:00
aycabta bc0da8e3ff Generate history file path correctly when $HOME/.irbrc doesn't exist 2019-11-20 08:19:58 +09:00
Kazuki Tsujimoto ff41663403
Fix memory corruption in Enumerable#reverse_each [ruby-dev:50867] [Bug #16354] 2019-11-19 15:35:14 -06:00
Nobuyoshi Nakada 61131edba7
Revert "[ripper] Quoted label without expression must be a local variable"
This reverts commit 0b8c73aa65, which
seems breaking RVALUE consistency check.
2019-11-20 00:56:04 +09:00
git f3c9803528 * 2019-11-20 [ci skip] 2019-11-20 00:07:26 +09:00
Kazuki Tsujimoto 2439948bcc
Avoid needless object allocation 2019-11-19 08:53:01 -06:00
Kazuhiro NISHIYAMA 822d7ae316
Add a test
and rename from b.rb

[ruby-core:95055] [Bug #16177]
2019-11-19 17:36:47 +09:00
Nobuyoshi Nakada 0b8c73aa65
[ripper] Quoted label without expression must be a local variable 2019-11-19 17:18:27 +09:00