David Rodríguez
9f43160014
Delegate should be supported now
...
Since `did_you_mean` dropped its dependency on it.
2019-12-15 16:41:10 +09:00
Hiroshi SHIBATA
286cb3395f
Fixed test failures with gem command path on ruby core repo.
2019-12-15 16:41:10 +09:00
Hiroshi SHIBATA
38002a8adb
Prepare to release bundler-2.1.0
2019-12-15 16:41:10 +09:00
Nobuyoshi Nakada
3098798044
Test `Thread#to_s` when used from to_s_spec.rb
2019-12-11 16:52:06 +09:00
Nobuyoshi Nakada
d2d42081ce
`Thread#to_s` has been added at ruby 2.5
2019-12-11 16:52:06 +09:00
Koichi Sasada
1269157a6e
Thread#to_s is not same as #inspect on old version.
...
Thread#to_s returns simple Object#to_s until Ruby 2.4.
2019-12-11 16:10:26 +09:00
Koichi Sasada
6025783a3b
fix for old MRI versions
2019-12-11 14:00:32 +09:00
Jean byroot Boussier
8a80bfcfd4
Make Thread#to_s consistent with Method and Proc to_s
2019-12-11 11:59:14 +09:00
NARUSE, Yui
8852fa8760
Revert "Regexp#match{?} with nil raises TypeError as String, Symbol ( #1506 )"
...
This reverts commit 2a22a6b2d8
.
Revert [Feature #13083 ]
2019-12-04 06:40:54 +09:00
NARUSE, Yui
08074eb712
Revert "Revert nil error and adding deprecation message"
...
This reverts commit 452bee3ee8
.
2019-12-04 06:40:54 +09:00
NARUSE, Yui
a705f6472c
Revert "Improve warning message"
...
This reverts commit 31110d820c
.
2019-12-04 06:40:54 +09:00
NARUSE, Yui
34a66b1f36
Revert "Fix warnings in Regexp#{match,match?} specs"
...
This reverts commit 782d1b8fb0
.
2019-12-04 06:40:54 +09:00
Benoit Daloze
424ad9a493
Make more attempts to check for the precision of Process.times
...
* Process.clock_getres specs use 10_000 but that's quite slow for
the Process.times spec.
2019-12-02 21:23:10 +01:00
Takashi Kokubun
a47d6c256f
Fix random failure on getusage-missing environments
...
`* 1e6` makes a spurious result about floating point number's precision.
```
irb(main)[01:0]> 16.028
=> 16.028
irb(main)[02:0]> (16.028 * 1e6)
=> 16027999.999999998
```
2019-12-02 00:17:41 -08:00
Takashi Kokubun
185f760873
Debug random failure of ruby-spec on ci.rvm.jp
2019-12-01 23:23:40 -08:00
Benoit Daloze
617a3735ae
Update to ruby/spec@dcf4955
2019-12-01 14:11:42 +01:00
Benoit Daloze
60d362b0bb
Update to ruby/mspec@aa28e95
2019-12-01 14:11:40 +01:00
Nobuyoshi Nakada
ab516e263c
[ruby/spec] Fix failures with LC_ALL=C
...
https://github.com/ruby/spec/commit/51047687c0
https://github.com/ruby/spec/commit/2b87b467cc
2019-12-01 21:55:51 +09:00
Nobuyoshi Nakada
bdc62dfc8e
Fixed type of an index variable
2019-12-01 14:38:33 +09:00
Takashi Kokubun
5b1f7f26b4
Skip if getrusage is not supported
...
1243255c3a
broke ci.rvm.jp tests like
http://ci.rvm.jp/results/trunk_clang_39@silicon-docker/2445098 .
253232c028
works only if getrusage is supported.
2019-11-30 13:29:01 -08:00
Benoit Daloze
1243255c3a
Update to ruby/spec@4eec3dc
2019-11-30 21:26:52 +01:00
Benoit Daloze
ab8345271e
Update to ruby/mspec@a401f63
2019-11-30 21:26:49 +01:00
Koichi Sasada
36da0b3da1
check interrupts at each frame pop timing.
...
Asynchronous events such as signal trap, finalization timing,
thread switching and so on are managed by "interrupt_flag".
Ruby's threads check this flag periodically and if a thread
does not check this flag, above events doesn't happen.
This checking is CHECK_INTS() (related) macro and it is placed
at some places (laeve instruction and so on). However, at the end
of C methods, C blocks (IMEMO_IFUNC) etc there are no checking
and it can introduce uninterruptible thread.
To modify this situation, we decide to place CHECK_INTS() at
vm_pop_frame(). It increases interrupt checking points.
[Bug #16366 ]
This patch can introduce unexpected events...
2019-11-29 17:47:02 +09:00
Kazuhiro NISHIYAMA
fea24bbfdb
Fix glob base in bundler.gemspec
2019-11-19 00:29:10 +09:00
Kazuhiro NISHIYAMA
9aa75795f9
Skip some tests if extracted from tarball
2019-11-19 00:29:10 +09:00
Kazuhiro NISHIYAMA
e9992bcab0
Allow unknown if ruby core
2019-11-19 00:29:10 +09:00
Jeremy Evans
ffd0820ab3
Deprecate taint/trust and related methods, and make the methods no-ops
...
This removes the related tests, and puts the related specs behind
version guards. This affects all code in lib, including some
libraries that may want to support older versions of Ruby.
2019-11-18 01:00:25 +02:00
Jeremy Evans
c5c05460ac
Warn on access/modify of $SAFE, and remove effects of modifying $SAFE
...
This removes the security features added by $SAFE = 1, and warns for access
or modification of $SAFE from Ruby-level, as well as warning when calling
all public C functions related to $SAFE.
This modifies some internal functions that took a safe level argument
to no longer take the argument.
rb_require_safe now warns, rb_require_string has been added as a
version that takes a VALUE and does not warn.
One public C function that still takes a safe level argument and that
this doesn't warn for is rb_eval_cmd. We may want to consider
adding an alternative method that does not take a safe level argument,
and warn for rb_eval_cmd.
2019-11-18 01:00:25 +02:00
Hiroshi SHIBATA
bb9ecd026a
Merge Bundler 2.1.0.pre3 released version
2019-11-13 10:19:51 +09:00
Nobuyoshi Nakada
bf34ade7ef
Show the name `Kernel#proc` in the warning message
2019-11-12 22:58:09 +09:00
Hiroshi SHIBATA
7585bc3187
Merge Bundler 2.1.0.pre.3
...
Features:
- Add caller information to some deprecation messages to make them easier to fix [#7361 ](https://github.com/bundler/bundler/pull/7361 )
- Reconcile `bundle cache` vs `bundle package` everywhere. Now in docs, CLI help and everywhere else `bundle cache` is the preferred version and `bundle package` remains as an alias [#7389 ](https://github.com/bundler/bundler/pull/7389 )
- Display some basic `bundler` documentation together with ruby's RDoc based documentation [#7394 ](https://github.com/bundler/bundler/pull/7394 )
Bugfixes:
- Fix typos deprecation message and upgrading docs [#7374 ](https://github.com/bundler/bundler/pull/7374 )
- Deprecation warnings about `taint` usage on ruby 2.7 [#7385 ](https://github.com/bundler/bundler/pull/7385 )
- Fix `--help` flag not correctly delegating to `man` when used with command aliases [#7388 ](https://github.com/bundler/bundler/pull/7388 )
- `bundle add` should cache newly added gems if an application cache exists [#7393 ](https://github.com/bundler/bundler/pull/7393 )
- Stop using an insecure folder as a "fallback home" when user home is not defined [#7416 ](https://github.com/bundler/bundler/pull/7416 )
- Fix `bundler/inline` warning about `Bundler.root` redefinition [#7417 ](https://github.com/bundler/bundler/pull/7417 )
2019-11-11 18:56:25 +09:00
Nobuyoshi Nakada
03fdf02321
Removed trial and errors
2019-11-09 23:00:32 +09:00
Nobuyoshi Nakada
a68205c5c1
Specify the permission
...
To make the temporary directory non-writable by group and others.
2019-11-09 22:40:14 +09:00
Nobuyoshi Nakada
774cfb0655
Fixed the debug print
2019-11-09 22:15:15 +09:00
Nobuyoshi Nakada
20bc038ea3
Debug-print tmpdir info
2019-11-09 21:59:07 +09:00
Kazuhiro NISHIYAMA
352096ef60
Add debug print
2019-11-09 16:45:27 +09:00
Yusuke Endoh
9deca1a3b9
Try to fix test-spec failure on macOS
...
Not sure what is happening, but spec/ruby/security/cve_2018_6914_spec.rb
fails on macOS.
https://github.com/ruby/ruby/runs/294462511#step:10:134
I suspect that the state of a directory is weird immediately after it is
created (not writable or even world writable?). This change tries to
make sure that ENV["TMPDIR"] is actually used by Dir.tmpdir.
2019-11-09 00:25:28 +09:00
Benoit Daloze
40e161a612
Exclude some clocks on armv8 too
...
* See https://bugs.ruby-lang.org/issues/16234#note-16
2019-11-06 23:10:15 +01:00
Jun Aruga
f5c7fc495a
Fix spawn_spec.rb for Travis arm64 environment.
...
The process group id (/proc/[pid]/stat 5th field) is 0
in the Travis arm64 environment.
This is a case where it is available.
$ cat /proc/4543/stat
4543 (ruby) S 4525 4525 1384 34818 4525 4194304 37443 1754841 0 0 366 105 2291 391 20 0 3 0 1381328 1428127744 11475 18446744073709551615 94195983785984 94195986670225 140728933833312 0 0 0 0 0 1107394127 0 0 0 17 2 0 0 1 0 0 94195987686512 94195987708942 94196017770496 140728933835483 140728933835595 140728933835595 140728933842904 0
This is a case where it is not available in Travis arm64 environment.
$ cat /proc/19179/stat
19179 (ruby) S 19160 0 0 0 -1 4194560 37618 1710547 313 163 770 665 5206 1439 20 0 2 0 17529566 1196347392 10319 18446744073709551615 187650811428864 187650815023116 281474602721280 0 0 0 0 4096 1107390031 0 0 0 17 22 0 0 0 0 0 187650815091456 187650815114064 187651414974464 281474602725080 281474602725211 281474602725211 281474602729420 0
See "man proc" for detail.
2019-11-06 09:08:37 -08:00
Nobuyoshi Nakada
c6a52cffd1
Separated `@counter` and `@tally` so that "-ft" works with "-j"
2019-11-05 17:43:38 +09:00
Nobuyoshi Nakada
fa52a924aa
Enable "-f" option in multi_exec mode
...
Make `MultiFormatter` a module and extend the formatter specified
by "-f" option.
2019-11-05 17:42:35 +09:00
Nobuyoshi Nakada
19f91f7880
`DottedFormatter#finish` consistency
...
Rmoved optional parameter `printed_exceptions`, and clear
`exceptions` just after printing each exception, instead.
2019-11-05 17:42:35 +09:00
Nobuyoshi Nakada
dfb3322d27
`DottedFormatter#state` consistency
...
Let the method of `DottedFormatter` subclasses have the same
arity.
2019-11-05 17:42:35 +09:00
NARUSE, Yui
bea322a352
Revert "[EXPERIMENTAL] Make Symbol#to_s return a frozen String [Feature #16150 ]"
...
This reverts commit 6ffc045a81
.
2019-11-05 17:30:54 +09:00
Benoit Daloze
782d1b8fb0
Fix warnings in Regexp#{match,match?} specs
2019-11-03 11:25:42 +01:00
Kenichi Kamiya
31110d820c
Improve warning message
...
https://github.com/ruby/ruby/pull/2637#discussion_r341812475
2019-11-03 11:03:04 +01:00
Kenichi Kamiya
452bee3ee8
Revert nil error and adding deprecation message
2019-11-03 11:03:04 +01:00
Yusuke Endoh
5f6fbf8725
spec: Fix syntax errors
...
Follow up of 473882e01f
2019-10-31 17:11:23 +09:00
Hiroshi SHIBATA
473882e01f
Skip tainted examples for stringio
2019-10-31 16:50:00 +09:00
Nobuyoshi Nakada
fee5cde00b
Fix tests for CVE-2018-6914
...
Since the current working directory is not involved in `Tempfile`
and `Dir.mktmpdir` (except for the last resort), it is incorrect
to derive the traversal path from it. Also, since the rubyspec
temporary directory is created under the build directory, this is
not involved in the target method. Fixed sporadic errors in
test-spec.
2019-10-29 22:40:41 +09:00