Kazuhiro NISHIYAMA
69509df2f4
squeeze space [ci skip]
2019-06-13 16:42:31 +09:00
Martin Dürst
7f79a86d8b
add comments to mention sort.reverse!
...
For array.c (Array#sort) and enum.c (Enumerable#sort_by),
add comments mentioning that sort.reverse! / sort_by { ... }.reverse!
can/should be used to reverse the result. [ci skip]
2019-06-13 15:30:03 +09:00
Takashi Kokubun
2a26c1ea24
Clarify the Ruby version support status in IRB more
2019-06-13 00:41:00 +09:00
git
8d84e119da
* 2019-06-13
2019-06-13 00:32:59 +09:00
Takashi Kokubun
1808029061
make sync-default-gems GEM=irb
...
Upgrade IRB to 41ea43a4a7
Mostly backport changes.
2019-06-13 00:32:20 +09:00
Nobuyoshi Nakada
88411d350e
Another incomplete string case
2019-06-12 15:30:07 +09:00
Nobuyoshi Nakada
9593e76ac2
Ripper::Lexer: fallback parse error token to the previous one
2019-06-12 15:25:06 +09:00
aycabta
8354cfd03b
Treat "begin rescue end" correctly
2019-06-12 11:00:25 +09:00
Neeraj Bhunwal
c1d78a7f0e
do_mutex_lock: release mutex before checking for interrupts (fixes issue 15360)
2019-06-11 15:44:11 -07:00
Jeremy Evans
5e018214e7
Fix SystemStackError when calling a method in an unused refinement
...
Fixes [Bug #15720 ]
2019-06-11 09:43:38 -07:00
git
4f9e7c95e4
* 2019-06-12
2019-06-12 01:16:49 +09:00
git
23e3c1704b
* expand tabs.
2019-06-12 01:16:45 +09:00
Aaron Patterson
6db2d6d852
Add compaction support for more types.
...
This commit adds compaction support for:
* Fibers
* Continuations
* Autoload Constants
2019-06-11 09:16:14 -07:00
Nobuyoshi Nakada
c4cbaef216
assert_cpu_usage_low with timeout scale
...
* test/lib/test/unit/assertions.rb (assert_cpu_usage_low): apply
the timeout scale to measuring period. this assertion is very
runtime environment dependent.
2019-06-11 23:15:46 +09:00
Nobuyoshi Nakada
42f0a8fd6f
MIN_HZ and MIN_MEASURABLE constants
...
* test/lib/test/unit/assertions.rb (Test::Unit::Assertions):
promoted MIN_HZ and MIN_MEASURABLE as constants, which should be
constant through the process.
2019-06-11 23:15:46 +09:00
Nobuyoshi Nakada
eb016d8353
Generalize timeout_scale
...
* test/lib/test/unit.rb (Test::Unit::TimeoutOption): renamed
SubprocessOption.
* test/lib/test/unit.rb (Test::Unit::TimeoutOption#setup_options):
prefer `--timeout-scale` option.
* test/lib/test/unit.rb (Test::Unit::TimeoutOption#non_options):
prefer `ENV["RUBY_TEST_TIMEOUT_SCALE"]`.
2019-06-11 23:15:46 +09:00
Nobuyoshi Nakada
39ae88ad0d
Refined syntax error messages
2019-06-11 22:31:57 +09:00
Nobuyoshi Nakada
140b8117bd
&. is not allowed inside LHS of massign
...
https://hackerone.com/reports/605262
2019-06-11 15:22:16 +09:00
Kazuhiro NISHIYAMA
42ac8890ef
Fail test if load ~/.irbrc
2019-06-11 12:33:34 +09:00
Hiroshi SHIBATA
e4364dbf6e
Fixed the code-style with the upstream rule.
2019-06-11 12:16:26 +09:00
Yusuke Endoh
4adc6f07ef
test/lib/test/unit/assertions.rb (assert_cpu_usage_low): Relax the limit
...
CPU usage 1% causes occesional test failure. Try to use 5%.
https://rubyci.org/logs/rubyci.s3.amazonaws.com/gentoo/ruby-master/log/20190604T153002Z.fail.html.gz
https://rubyci.org/logs/rubyci.s3.amazonaws.com/gentoo/ruby-master/log/20190610T153002Z.fail.html.gz
2019-06-11 07:17:59 +09:00
git
fe9701ee00
* expand tabs.
2019-06-11 06:56:46 +09:00
Yusuke Endoh
de4b2930f7
ext/socket/ipsocket.c: Use SO_REUSEADDR for local_host/port
...
Sometimes ruby/spec fails when trying to specify local_host and
local_port for TCPSocket.open.
https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris11s-sunc/ruby-master/log/20190610T192504Z.fail.html.gz
2019-06-11 06:53:33 +09:00
Yusuke Endoh
6096baea5d
test/net/http/test_http.rb: Extend the timeout
...
https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10s/ruby-master/log/20190610T071910Z.log.html.gz
2019-06-11 06:45:49 +09:00
git
d7e7e99862
* 2019-06-11
2019-06-11 00:25:57 +09:00
Kazuki Tsujimoto
be6b462489
Use checktype for performance
2019-06-11 00:20:10 +09:00
Takashi Kokubun
f0bfa71ab3
Use UTC for file2lastrev timezone
...
02155da7bad37bd1c8adadd486d2d16eac7af43b got a claim about sacrificing
ability to compare arbitrary `RUBY_DESCRIPTION`s without converting
timezones.
Because most of the people would be familiar with timezone conversion
with UTC but it'd be harder when it comes to JST, this commit just
changes the timezone in f42588f754d5885ec30631e5008c383f3ef905d8 to UTC.
Another bonus in using UTC is that we can use a shorter variant of
ISO 8601 format like "2019-06-10T14:26:24Z" (the last Z part).
2019-06-10 23:31:07 +09:00
Takashi Kokubun
02155da7ba
Make file2lastrev timezone consistent with git log
...
Using the same timezone for all commits is convenient when just looking
dates in RUBY_DESCRIPTION, but usually we also check `git log` when
we're interested in the order of commits.
`git log` shows times in committer's timezone and forcing RUBY_RELEASE_DATE
to JST makes it harder to find a corresponding commit from `git log`.
Because this label is only used in development, I believe there's no
strict requirement to use traditional timezone for release here.
Also when building Ruby after committing from a non-JST timezone, I'd be
surprised to see a strange time (in a different timezone) for my very new
commit in `ruby -v`.
2019-06-10 22:35:32 +09:00
Takashi Kokubun
caa90202c9
Make sure to suppress .irbrc on benchmark
...
By the way, this is already improved by nobu:
```
$ benchmark-driver benchmark/irb_exec.yml --rbenv '2.6.3;2.7.0-preview1;before;after' -v
2.6.3: ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
2.7.0-preview1: ruby 2.7.0preview1 (2019-05-31 trunk c55db6aa271df4a689dc8eb0039c929bf6ed43ff) [x86_64-linux]
before: ruby 2.7.0dev (2019-06-10T21:13:14+09:00 master 973fd18f11) [x86_64-linux]
after: ruby 2.7.0dev (2019-06-10T21:18:56+09:00 master 976c689ad4) [x86_64-linux]
Calculating -------------------------------------
2.6.3 2.7.0-preview1 before after
irb_exec 11.868 5.872 6.297 10.278 i/s - 30.000 times in 2.527776s 5.108997s 4.764167s 2.918821s
Comparison:
irb_exec
2.6.3: 11.9 i/s
after: 10.3 i/s - 1.15x slower
before: 6.3 i/s - 1.88x slower
2.7.0-preview1: 5.9 i/s - 2.02x slower
```
2019-06-10 22:04:52 +09:00
Nobuyoshi Nakada
880204cf55
irb/cmd/help.rb: return nil after the redefinition
2019-06-10 21:45:46 +09:00
Nobuyoshi Nakada
976c689ad4
irb: defer requiring rdoc to improve the start up time
2019-06-10 21:18:56 +09:00
Takashi Kokubun
973fd18f11
Add a benchmark of irb boot time
...
```
$ benchmark-driver benchmark/irb_exec.yml --rbenv '2.6.3;2.7.0-preview1'
Calculating -------------------------------------
2.6.3 2.7.0-preview1
irb_exec 11.844 5.171 i/s - 30.000 times in 2.532887s 5.801960s
Comparison:
irb_exec
2.6.3: 11.8 i/s
2.7.0-preview1: 5.2 i/s - 2.29x slower
```
2019-06-10 21:13:14 +09:00
git
b9996b7b32
* 2019-06-10
2019-06-10 19:48:08 +09:00
Benoit Daloze
626ae5a9b6
Resolv specs should pass on Windows now
2019-06-10 12:47:08 +02:00
Benoit Daloze
60af6fef3c
Fix Resolv specs to not depend on a system /etc/hosts file
...
* https://rubyci.org/logs/rubyci.s3.amazonaws.com/archlinux/ruby-master/log/20190609T153804Z.fail.html.gz
* Thanks @naruse for the tip.
2019-06-10 12:45:00 +02:00
Hiroshi SHIBATA
614154bbb6
Added missing dependency for rake examples.
2019-06-09 13:25:56 +09:00
Hiroshi SHIBATA
2c59c58a47
Fixed wrong BUNDLE_BIN_PATH for ruby core.
2019-06-09 12:44:31 +09:00
Hiroshi SHIBATA
44f7f093ab
Added the condition for ruby_core repository.
2019-06-09 12:44:27 +09:00
Hiroshi SHIBATA
57ccea6232
Revert to change for filelist of bundler gemspec.
2019-06-09 12:44:23 +09:00
Hiroshi SHIBATA
8f37629519
Merge bundler master from upstream.
...
Pick from 8dd59e3ba97eb80a599f8149f31bf40773b69dc0
2019-06-09 12:44:10 +09:00
Jeremy Evans
6650899248
Make Resolv::DNS#each_name accept Resolv::IPv{4,6} arguments
...
These arguments were previously documented as supported, but not
actually supported.
Patch from Toru Iwase
Fixes [Bug #15900 ]
2019-06-08 20:31:12 -07:00
git
a432c014c9
* 2019-06-09
2019-06-09 12:30:40 +09:00
Nobuyoshi Nakada
562c0bfeda
Split test_strip_bom for each encoding
2019-06-09 12:27:05 +09:00
Nobuyoshi Nakada
a8ef498d6b
Add tests of the encoding with BOM
2019-06-09 11:11:26 +09:00
Nobuyoshi Nakada
f42588f754
Make RUBY_RELEASE_DATE full on development
...
I cannot tell the order just by commit hashes.
2019-06-08 20:08:18 +09:00
Nobuyoshi Nakada
1ca03dc4f7
Suppress warnings by gcc 9.1
2019-06-08 19:46:32 +09:00
Nobuyoshi Nakada
27a59ca2c8
file.c: fix compile error with MacPorts gcc
...
With the SDK of Xcode 10.2.1, `API_AVAILABLE` and so on macros are
not defined in <os/availability.h> when using a compiler other
than clang (which has `__has_feature` and `__has_attribute`), but
`__API_AVAILABLE` macro and so on are defined, which are also
defined in <Availability.h>.
I suspect this is a bug of the SDK.
2019-06-08 19:40:55 +09:00
Nobuyoshi Nakada
5a840517ae
Fix broken gem unpack
...
* lib/rubygems/commands/unpack_command.rb: 'rubygems/package' is
required here, to fix broken `gem unpack` command.
2019-06-08 18:44:18 +09:00
Nobuyoshi Nakada
21de4a574f
io.c: fold very very long lines
2019-06-08 18:44:04 +09:00
Hiroshi SHIBATA
3776c48cf4
Revert "require rubygems/package where used"
...
This reverts commit b76630f73e8362d3072bfa7178471ddc5d21c235.
It fails with `make test-bundler BUNDLER_SPECS=runtime/setup_spec.rb:1204`
2019-06-08 13:49:37 +09:00