aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Merge Bundler 2.1.2 from bundler/bundler.Hiroshi SHIBATA2019-12-251-0/+6
| | | | [Misc #16449][ruby-core:96458]
* Get rid of false positive misspellingsNobuyoshi Nakada2019-12-241-1/+1
| | | | [Bug #16437]
* Revert "Should return "." for File.extname("file.") also on Windows"NAKAMURA Usaku2019-12-231-2/+2
| | | | | | | | We want to introduce consistency and better compatibility with unixen, but the Windows APIs doues not have consistency fundamentally and we can not found any logical way... This reverts commit 61aff0cd189e67fa6f2565639ad0128fa33b88fc.
* Move version guard outside to make it clear the method was added in Ruby 2.5Benoit Daloze2019-12-221-2/+2
|
* Should return "." for File.extname("file.") also on WindowsNAKAMURA Usaku2019-12-221-2/+2
| | | | | But not changes another cases, such as "file.rb." [Bug #15267]
* Add spec for capturing Kernel#lambda with Kernel#methodAlan Wu2019-12-211-0/+7
|
* Add specs for calling into Kernel#lambda with superAlan Wu2019-12-212-1/+38
|
* Makes the receiver to FrozenError.new a keyword parameterNobuyoshi Nakada2019-12-201-1/+1
| | | | [Feature #16419]
* Fixed misspellingsNobuyoshi Nakada2019-12-208-10/+10
| | | | Fixed misspellings reported at [Bug #16437], for default gems.
* Fixed misspellingsNobuyoshi Nakada2019-12-2012-17/+17
| | | | Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
* Merge bundler-2.1.1 from bundler/bundlerHiroshi SHIBATA2019-12-181-0/+6
|
* close datasocket on stor of server sideNARUSE, Yui2019-12-171-1/+1
|
* Delegate should be supported nowDavid Rodríguez2019-12-151-1/+1
| | | | Since `did_you_mean` dropped its dependency on it.
* Fixed test failures with gem command path on ruby core repo.Hiroshi SHIBATA2019-12-154-4/+8
|
* Prepare to release bundler-2.1.0Hiroshi SHIBATA2019-12-1547-248/+269
|
* Test `Thread#to_s` when used from to_s_spec.rbNobuyoshi Nakada2019-12-112-11/+12
|
* `Thread#to_s` has been added at ruby 2.5Nobuyoshi Nakada2019-12-112-8/+4
|
* Thread#to_s is not same as #inspect on old version.Koichi Sasada2019-12-111-0/+5
| | | | Thread#to_s returns simple Object#to_s until Ruby 2.4.
* fix for old MRI versionsKoichi Sasada2019-12-111-1/+2
|
* Make Thread#to_s consistent with Method and Proc to_sJean byroot Boussier2019-12-113-40/+61
|
* Revert "Regexp#match{?} with nil raises TypeError as String, Symbol (#1506)"NARUSE, Yui2019-12-041-28/+12
| | | | | This reverts commit 2a22a6b2d8465934e75520a7fdcf522d50890caf. Revert [Feature #13083]
* Revert "Revert nil error and adding deprecation message"NARUSE, Yui2019-12-041-16/+4
| | | | This reverts commit 452bee3ee8d68059fabd9b1c7a75661b14e3933e.
* Revert "Improve warning message"NARUSE, Yui2019-12-041-2/+2
| | | | This reverts commit 31110d820cc1258cbc84b46ecc65b254c7d5529a.
* Revert "Fix warnings in Regexp#{match,match?} specs"NARUSE, Yui2019-12-041-10/+6
| | | | This reverts commit 782d1b8fb0a039cedef9ad9c94f432dad51901e6.
* Make more attempts to check for the precision of Process.timesBenoit Daloze2019-12-021-2/+2
| | | | | * Process.clock_getres specs use 10_000 but that's quite slow for the Process.times spec.
* Fix random failure on getusage-missing environmentsTakashi Kokubun2019-12-021-32/+4
| | | | | | | | | | | `* 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 ```
* Debug random failure of ruby-spec on ci.rvm.jpTakashi Kokubun2019-12-011-4/+32
|
* Update to ruby/spec@dcf4955Benoit Daloze2019-12-011-0/+21
|
* Update to ruby/mspec@aa28e95Benoit Daloze2019-12-012-6/+5
|
* [ruby/spec] Fix failures with LC_ALL=CNobuyoshi Nakada2019-12-0110-17/+41
| | | | | https://github.com/ruby/spec/commit/51047687c0 https://github.com/ruby/spec/commit/2b87b467cc
* Fixed type of an index variableNobuyoshi Nakada2019-12-011-1/+1
|
* Skip if getrusage is not supportedTakashi Kokubun2019-11-301-0/+5
| | | | | | | 1243255c3a36433041012b6107a5ac48658a0895 broke ci.rvm.jp tests like http://ci.rvm.jp/results/trunk_clang_39@silicon-docker/2445098. 253232c028a5565dbeecc05fab5e81b35ab58bcc works only if getrusage is supported.
* Update to ruby/spec@4eec3dcBenoit Daloze2019-11-30174-421/+1775
|
* Update to ruby/mspec@a401f63Benoit Daloze2019-11-3056-278/+305
|
* check interrupts at each frame pop timing.Koichi Sasada2019-11-291-0/+3
| | | | | | | | | | | | | | | | | | 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...
* Fix glob base in bundler.gemspecKazuhiro NISHIYAMA2019-11-191-1/+2
|
* Skip some tests if extracted from tarballKazuhiro NISHIYAMA2019-11-191-0/+9
|
* Allow unknown if ruby coreKazuhiro NISHIYAMA2019-11-191-2/+10
|
* Deprecate taint/trust and related methods, and make the methods no-opsJeremy Evans2019-11-18110-1652/+2085
| | | | | | 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.
* Warn on access/modify of $SAFE, and remove effects of modifying $SAFEJeremy Evans2019-11-183-114/+115
| | | | | | | | | | | | | | | | | 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.
* Merge Bundler 2.1.0.pre3 released versionHiroshi SHIBATA2019-11-1318-63/+74
|
* Show the name `Kernel#proc` in the warning messageNobuyoshi Nakada2019-11-121-1/+1
|
* Merge Bundler 2.1.0.pre.3Hiroshi SHIBATA2019-11-1187-904/+957
| | | | | | | | | | | | | | | 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)
* Removed trial and errorsNobuyoshi Nakada2019-11-091-26/+0
|
* Specify the permissionNobuyoshi Nakada2019-11-091-1/+1
| | | | To make the temporary directory non-writable by group and others.
* Fixed the debug printNobuyoshi Nakada2019-11-091-1/+1
|
* Debug-print tmpdir infoNobuyoshi Nakada2019-11-091-2/+3
|
* Add debug printKazuhiro NISHIYAMA2019-11-091-0/+17
|
* Try to fix test-spec failure on macOSYusuke Endoh2019-11-091-0/+8
| | | | | | | | | | 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.
* Exclude some clocks on armv8 tooBenoit Daloze2019-11-061-1/+1
| | | | * See https://bugs.ruby-lang.org/issues/16234#note-16