Yusuke Endoh
ef8c5161b4
ext/ripper/lib/ripper/lexer.rb: fix a wrong delegation
...
The target method name is a typo.
2019-08-07 03:12:49 +09:00
Takashi Kokubun
2d6b92c5f6
Retry ubuntu-toolchain-r-test apt source setup
...
In 614c90fe21
, I assumed
apt-add-repository has been stable recently, but I saw PR randomly
failed for it today.
This commit only deals with "ubuntu-toolchain-r-test" and does NOT deal
with `llvm-toolchain-xenial-8` intentionally, because what it does
(mainly curl from build.travis-ci.org) seems to be more reliable than
"ubuntu-toolchain-r-test". Also `&clang-8` jobs are basically
allow_failures and it's less important to be stabilized.
2019-08-07 01:26:33 +09:00
git
66a13413ee
* 2019-08-07
2019-08-07 00:07:06 +09:00
Nobuyoshi Nakada
e89d9f3deb
Deprecate Float::ROUNDS, which should not be a constant
...
[Bug #16044 ]
2019-08-07 00:02:45 +09:00
Nobuyoshi Nakada
0ed298f382
Refine time_to_r
...
* time.c (time_to_r): get rid canonicalize and uncanonicalize
one-denominator rational, by rb_time_unmagnify_to_rational.
2019-08-06 23:39:14 +09:00
Nobuyoshi Nakada
a04e3585d3
Extracted wmap_live_p
2019-08-06 23:00:29 +09:00
git
3e6b9926b7
* expand tabs.
2019-08-06 20:59:41 +09:00
卜部昌平
b5146e375a
leafify opt_plus
...
Inspired by 346aa557b3
Closes: https://github.com/ruby/ruby/pull/2321
2019-08-06 20:59:19 +09:00
aycabta
43b52ac0a5
Revert "Don't echo results of assignment expressions"
...
This reverts commit 1ee88c51b3
.
2019-08-06 20:28:48 +09:00
Steven Willis
1ee88c51b3
Don't echo results of assignment expressions
2019-08-06 20:15:07 +09:00
Charles Oliver Nutter
842364792f
Use host_os from RbConfig to detect host OS.
...
RUBY_PLATFORM on JRuby is always "java", so it will not reflect
the host operating system. This regex appears to be the consensus
way to detect Windows based on a search of Ruby code on Github:
https://github.com/search?q=%2Fmswin%7Cmsys%7Cmingw%7Ccygwin%7Cbccwin%7Cwince%7Cemc%2F&type=Code
2019-08-06 20:03:23 +09:00
aycabta
d626ca1e98
Remove obsolete TODO comment
2019-08-06 20:03:23 +09:00
aycabta
81a15d636e
Update Unicode URL to 12.1.0
2019-08-06 20:03:23 +09:00
Nobuyoshi Nakada
4daff3a603
The value of rb_scan_args_verify is never used
2019-08-06 12:06:03 +09:00
Nobuyoshi Nakada
5cff9968ae
Distinguish bad scan format from no argument variables
2019-08-06 11:52:42 +09:00
Espartaco Palma
146cf2f444
Removing duplicated assertions on test_array.rb - MINUS method
...
Closes: https://github.com/ruby/ruby/pull/1790
2019-08-06 09:01:05 +09:00
Justin Collins
4f1a00a746
Improve same directory detection in FileUtils
...
Closes: https://github.com/ruby/ruby/pull/1425
2019-08-06 09:01:04 +09:00
Jeremy Evans
96cec6b277
Document that RubyVM::InstructionSequence methods are implementation and version dependent
...
Fixes [Bug #6785 ]
2019-08-05 16:14:30 -07:00
Jeremy Evans
2b6441196e
Remove documentation of %m in Syslog
...
Fixes [Bug #6726 ]
2019-08-05 16:10:25 -07:00
Aaron Patterson
81252c5ccd
Let prev EP move again
...
The last time we committed this, we were asking the VM to write to the
ep. But VM assertions check if the ENV data is the correct type, which
if it's a T_MOVED pointer it's not the correct type. So the vm
assertions would fail. This time we just directly write to it from the
GC and that bypasses the vm assertion checks.
2019-08-05 13:31:58 -07:00
git
c9192ef2e8
* expand tabs.
2019-08-06 00:56:05 +09:00
Aaron Patterson
33d7a58ffb
add compaction support to weak maps
2019-08-05 08:55:34 -07:00
Takashi Kokubun
255e22a827
Use gcc-8 for BASERUBY test
...
as it failed https://travis-ci.org/ruby/ruby/jobs/567942969 , unlike my
fork CI.
This just rollbacks a minor change in
798474deaf10dbea70c02724b5acf4487bbed660.
2019-08-06 00:50:48 +09:00
Takashi Kokubun
e80f407ed4
Give up stabilizing TestProcess on Travis osx
...
They have been too unstable.
Revert "Extend sleep before sending USR1 in TestProcess"
This reverts commit aaf69a8ba8
.
Revert "Extend sleep before sending USR1 in TestProcess"
This reverts commit 076f3fcf11
.
2019-08-06 00:48:00 +09:00
git
48d460d9a6
* 2019-08-06
2019-08-06 00:34:06 +09:00
Takashi Kokubun
614c90fe21
Control Travis apt retries on our own
...
because Travis team does not do it for us:
https://github.com/travis-ci/travis-build/pull/1712
The retried part has failed often even in one day:
https://travis-ci.org/ruby/ruby/jobs/567802384
https://travis-ci.org/ruby/ruby/jobs/567802388
https://travis-ci.org/ruby/ruby/jobs/567695879
https://travis-ci.org/ruby/ruby/jobs/567666931
For doing it easily, this also changes major aliases to
compiler-specific ones, because partially updating `before_install`
logic using `env` key was too hard and we needed to directly write
`before_install` for each package set. As a bonus of it, it may also
skip installing unnecessary packages when just `os: linux` is needed.
I'll revert this if this patch does not contribute to stabilize CI.
2019-08-06 00:33:33 +09:00
Nobuyoshi Nakada
fb9dd6182a
Use negative-sized array instead of zero-division
2019-08-05 23:26:19 +09:00
Nobuyoshi Nakada
4c15b241f8
Unused macro argument `varc`
2019-08-05 23:26:19 +09:00
Benoit Daloze
86ac51c301
[rubygems/rubygems] Use the standard RUBY_ENGINE_VERSION instead of JRUBY_VERSION
...
* RUBY_ENGINE and RUBY_ENGINE_VERSION are defined on every modern Ruby.
* There is no such constant as TRUFFLERUBY_VERSION or RBX_VERSION.
https://github.com/rubygems/rubygems/commit/431d0aefdd
2019-08-05 18:45:24 +09:00
Benoit Daloze
2ea2108a9f
[rubygems/rubygems] Fix error handling of #with_engine_version
...
* If settings constants fail, show that exception instead of getting
another one due to variables being unset and hiding the real cause.
https://github.com/rubygems/rubygems/commit/f38cd67874
2019-08-05 18:45:18 +09:00
David Rodríguez
f9dac1bd54
[rubygems/rubygems] Cleanup after testing `rake package`
...
Sometimes it happens to me that my local tests start failing because I
pull some file removals or renames into my local copy, and those are
still present on my last copy of pkg/. In those cases, the test about
`rake package` will fail with something like the following:
````
Failure:
TestRakePackage#test_builds_ok [/home/deivid/Code/rubygems/test/rubygems/test_rake_package.rb:13]:
Expected `rake package` to work, but got errors:
```
cd pkg/rubygems-update-3.1.0.pre1
WARNING: See http://guides.rubygems.org/specification-reference/ for help
rake aborted!
Gem::InvalidSpecificationException: ["test/rubygems/test_rake_package.rb"] are not files
Tasks: TOP => package => gem => pkg/rubygems-update-3.1.0.pre1.gem
(See full trace by running task with --trace)
```
If you have added or removed files, make sure you run `rake update_manifest` to update the `Manifest.txt` accordingly.
Expected: true
Actual: false
````
So, make sure, package is always built from scratch.
https://github.com/rubygems/rubygems/commit/4e2cc9eb26
2019-08-05 18:45:11 +09:00
Kazuhiro NISHIYAMA
42a9e27d84
[rubygems/rubygems] Use gsub with Hash
...
https://github.com/rubygems/rubygems/commit/83eced0b39
2019-08-05 18:44:59 +09:00
bronzdoc
87bc29fe28
[rubygems/rubygems] Revert cadb66037d9b58c80fc795f39384d533229a1f73
...
https://github.com/rubygems/rubygems/commit/5c3158d975
2019-08-05 18:44:53 +09:00
Hiroshi SHIBATA
8eb2921f56
[rubygems/rubygems] Fixed to warn with shadowing outer local variable.
...
https://github.com/rubygems/rubygems/commit/b0588a87b1
2019-08-05 18:44:46 +09:00
bronzdoc
5a8d848849
[rubygems/rubygems] Remove FIXME comment
...
https://github.com/rubygems/rubygems/commit/5a1d3d618d
2019-08-05 18:44:40 +09:00
Yusuke Endoh
58a478bce4
ext/psych/yaml/loader.c: Cast the difference of pointers to int
...
instead of casting a pointer to int.
Follow up of 39622232c7
.
2019-08-05 14:38:59 +09:00
NAKAMURA Usaku
2403f9ac3a
Expand the timeout of `test_pstore_files_are_accessed_as_binary_files`
...
Sometimes causes timeout error on mswin CI
2019-08-05 12:52:14 +09:00
Nobuyoshi Nakada
6a265278b5
Check if signaled
2019-08-05 12:16:03 +09:00
Nobuyoshi Nakada
dc0c04764f
Refined assertion messages
2019-08-05 11:55:21 +09:00
Nobuyoshi Nakada
521e25baa4
Fixed assertion
...
The regexp should be expected to match the error message.
2019-08-05 11:47:25 +09:00
Nobuyoshi Nakada
8cfa3d861c
Do not expect RSTRING_PTR valid after rb_fstring
2019-08-05 10:51:52 +09:00
Nobuyoshi Nakada
29092d35d3
Moved FailDesc to EnvUtil.failure_description
...
So EnvUtil does not depends on test/unit.
2019-08-05 10:48:49 +09:00
Takashi Kokubun
548cd6e2b5
Drop default leaf definition and obsoleted comments
...
leaf is true by default. Other insns are not specifying it explicitly.
Also the comment describing why it was not leaf is outdated.
2019-08-05 09:16:13 +09:00
Yaw Boakye
6bb3618f28
n+1 to include n in range
...
Python's range stop right before n, which means factL never returns the correct result.
Closes: https://github.com/ruby/ruby/pull/1982
2019-08-05 09:04:32 +09:00
git
253da5b219
* 2019-08-05
2019-08-05 09:00:13 +09:00
Nobuyoshi Nakada
d6ac5c53d4
Revert "Always evaluate the expression RUBY_ASSERT_MESG_WHEN just once"
...
It caused a significant benchmark fall. Some assertions seem to
use expressions with side-effects which cannot be inlined.
This reverts commit b452c03a14
.
2019-08-05 08:55:09 +09:00
Takashi Kokubun
aaf69a8ba8
Extend sleep before sending USR1 in TestProcess
...
just like 076f3fcf11
.
This test also hanged on Travis osx
https://travis-ci.org/ruby/ruby/jobs/567547060
2019-08-04 23:41:34 +09:00
Takashi Kokubun
164f1ac0e9
Revert "Skip test_race_exception on MJIT for now"
...
This reverts commit 7a75baa6e2
.
Revert "Defer skip to avoid errors on ensure"
This reverts commit adfc8d6dba
.
because 76e2370f13
is hoped to fix the
problem.
2019-08-04 23:09:53 +09:00
git
7817a6fa09
* expand tabs.
2019-08-04 22:27:17 +09:00
Nobuyoshi Nakada
76e2370f13
Fix dangling path name from fstring
...
* load.c (rb_require_internal): make sure in advance that the path
to be loaded shares a fstring, to get rid of dangling path name.
Fixed up 5931857281
. [Bug #16041 ]
2019-08-04 22:21:53 +09:00