aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* freeze all Range objects.v3_0_0_preview1Koichi Sasada2020-09-252-3/+8
| | | | | Matz want to try to freeze all Range objects. [Feature #15504]
* should not check taint flag on rubyspec.Koichi Sasada2020-09-252-2/+6
| | | | | Now taint flag is obsolete and it is used fro shareaable flag. So we should not check this flag.
* Disable deprecation warning by the default [Feature #16345]Nobuyoshi Nakada2020-09-257-32/+48
| | | | And `-w` option turns it on.
* bump Bundler's version to 2.2.0.rc.1Hiroshi SHIBATA2020-09-231-1/+1
|
* Revert "Prevent SystemStackError when calling super in module with activated ↵Jeremy Evans2020-09-221-59/+20
| | | | | | | | | | | | | | refinement" This reverts commit eeef16e190cdabc2ba474622720f8e3df7bac43b. This also reverts the spec change. Preventing the SystemStackError would be nice, but there is valid code that the fix breaks, and it is probably more common than cases that cause the SystemStackError. Fixes [Bug #17182]
* Make Thread#join always convert its argument, as before 70f08f1eedBenoit Daloze2020-09-211-3/+2
|
* Fix Thread leak in Thread#join specsBenoit Daloze2020-09-211-1/+2
|
* Make `Thread#join` non-blocking.Samuel Williams2020-09-211-0/+5
|
* Fix typos [ci skip]Kazuhiro NISHIYAMA2020-09-171-1/+1
| | | | s/overriden/overridden/
* Update to ruby/spec@e829fb0Benoit Daloze2020-09-1727-134/+296
|
* Warn on a finalizer that captures the object to be finalizedChris Seaton2020-09-161-12/+116
| | | | | Also improve specs and documentation for finalizers and more clearly recommend a safe code pattern to use them.
* 2.8 -> 3.0 in specsBenoit Daloze2020-09-15147-201/+199
|
* Interpolated strings are no longer frozen with frozen-string-literal: trueBenoit Daloze2020-09-151-0/+17
| | | | | * Remove freezestring instruction since this was the only usage for it. * [Feature #17104]
* [ruby/ostruct] Fix dup/cloneMarc-Andre Lafortune2020-09-141-0/+2
|
* [ruby/ostruct] method_missing is privateMarc-Andre Lafortune2020-09-141-26/+3
|
* Make Mutex per-Fiber instead of per-ThreadBenoit Daloze2020-09-141-0/+12
| | | | | | | | | * Enables Mutex to be used as synchronization between multiple Fibers of the same Thread. * With a Fiber scheduler we can yield to another Fiber on contended Mutex#lock instead of blocking the entire thread. * This also makes the behavior of Mutex consistent across CRuby, JRuby and TruffleRuby. * [Feature #16792]
* Revert the related commits about `Tempfile.open` change.Hiroshi SHIBATA2020-09-091-25/+3
| | | | | Start with https://github.com/ruby/ruby/commit/fa21985a7a2f8f52a8bd82bd12a724e9dca74934 to https://github.com/ruby/ruby/commit/d7492a0be885ea9f2b9f71e3e95582f9a859c439
* Fix constant names set using const_set on a singleton classMarc-Andre Lafortune2020-09-023-12/+42
| | | | Fixes [Bug #14895]
* Deprecate iterator? methodNobuyoshi Nakada2020-08-311-6/+8
| | | | [Feature #15547] [Fix GH-2071]
* Thread.exclusive: delete卜部昌平2020-08-311-32/+34
| | | | | | Has been deprecated since 2069c9e031fc968d6d3d0fe30a9316851e4d91d8. [Feature #17125][ruby-core:99636]
* Adapt specs for the new Tempfile.open with block behaviorBenoit Daloze2020-08-291-3/+25
|
* Fix warnings related to new Socket.gethostby* deprecationsBenoit Daloze2020-08-292-18/+18
|
* Update to ruby/spec@335eb9bBenoit Daloze2020-08-2822-344/+556
|
* Update to ruby/mspec@53a6e3eBenoit Daloze2020-08-286-9/+14
|
* States Time.at expects rational-like argument to respond to #to_intNobuyoshi Nakada2020-08-281-0/+6
| | | | https://bugs.ruby-lang.org/issues/17131
* do not test --version卜部昌平2020-08-221-3/+9
| | | | | | | `llvm-strip-7` is a sane valid strip command that LLVM 7 ships, albeit it does not understand `--version`. It is a bad idea to check that option. Instead just see if the command actually strips something. A copy of `/bin/sh` should suffice. That file must be ubiquitous.
* [Feature #16513] TracePoint#inspect returns "... file:line" (#3391)Nguyễn Quang Minh2020-08-062-3/+106
| | | | | | | | | * Fix debug documents to match Thread#to_s change (Feature #16412 ticket) * TracePoint#inspect returns "... file:line" (Feature #16513) * Guard older version of Ruby in Tracepoint inspection tests * Focus on current thread only when running TracePoint inspection test
* [rubygems/rubygems] https functionality was merged into `net/https`David Rodríguez2020-07-311-5/+0
| | | | https://github.com/rubygems/rubygems/commit/d81ce9e457
* Fix arity of Hash#to_proc [Bug #12671]Benoit Daloze2020-07-291-0/+4
|
* Use https instead of httpKazuhiro NISHIYAMA2020-07-283-6/+6
|
* Do not assume all compilers accept same flags as gccNobuyoshi Nakada2020-07-281-1/+1
|
* Update to ruby/spec@07164daBenoit Daloze2020-07-2738-44/+733
|
* Update to ruby/mspec@9cffee9Benoit Daloze2020-07-271-1/+4
|
* Switch reserved for numbered parameter warning to SyntaxErrorJeremy Evans2020-07-221-10/+29
|
* Make StringIO encoding fixedNobuyoshi Nakada2020-07-202-3/+3
| | | | Get rid of affects by default external encoding.
* Import remaining changesDavid Rodríguez2020-07-154-39/+54
| | | | | The "sync with commits" scripts failed to properly import these for some reason.
* [rubygems/rubygems] Tag the specs with :readlineUtkarsh Gupta2020-07-151-5/+5
| | | | | | | | | | | | The newly added specs needs to be tagged as :readline, otherwise they fail on Windows with the backtrace: `ZeroDivisionError: divided by 0`. Such issues are already being skipped on Windows. Signed-off-by: Utkarsh Gupta <utkarsh@debian.org> https://github.com/rubygems/rubygems/commit/391f860af4
* [rubygems/rubygems] Add tests with different flag combinationsUtkarsh Gupta2020-07-151-11/+44
| | | | | | | | | | | Since this PR was made because we missed checking RuboCop offenses with different flags, therefore adding tests so that all flag combinations are tested. Signed-off-by: Utkarsh Gupta <utkarsh@debian.org> https://github.com/rubygems/rubygems/commit/d08250efc2
* [rubygems/rubygems] Allow setting a tag prefix to be used by gem release tasksDavid Rodríguez2020-07-151-0/+17
| | | | https://github.com/rubygems/rubygems/commit/679008f23a
* [rubygems/rubygems] Fix line spacing to make Layout/EmptyLines happyUtkarsh Gupta2020-07-151-1/+1
| | | | | | | | | | | | | The Gemfile wasn't properly put in the last commit. As a result, Layout/EmptyLines inspected an offense in the Gemfile. This also fixes the spec w.r.t change in the task default. Signed-off-by: Utkarsh Gupta <utkarsh@debian.org> https://github.com/rubygems/rubygems/commit/d1418fddd3
* [rubygems/rubygems] Remove unneeded trailing conditions on exitstatusDavid Rodríguez2020-07-1520-52/+52
| | | | https://github.com/rubygems/rubygems/commit/27e0e4ecb6
* [rubygems/rubygems] Easier way to find path to ruby binaryDavid Rodríguez2020-07-151-4/+1
| | | | https://github.com/rubygems/rubygems/commit/cdc201f5c4
* [rubygems/rubygems] Remove unnecessary assertions on exitstatusDavid Rodríguez2020-07-1521-46/+0
| | | | | | | Since our helpers now raise by default if the subcommand fails, these will never actually fail and are not necessary. https://github.com/rubygems/rubygems/commit/6153b9321e
* [rubygems/rubygems] No need to update remotesDavid Rodríguez2020-07-151-1/+0
| | | | | | Everything is already fetched locally. https://github.com/rubygems/rubygems/commit/9c304639b1
* [rubygems/rubygems] Git clone already takes care of thisDavid Rodríguez2020-07-151-1/+0
| | | | https://github.com/rubygems/rubygems/commit/6e0c28d3ab
* [rubygems/rubygems] Clone rubygems from the local repoDavid Rodríguez2020-07-151-1/+1
| | | | | | | | | | | | | It simplifies things and should avoid issues like the one we had where the master branch had a bad `.gitattributes` file and changing it on a PR would be disregarded. In order for this to work, we need to make sure to fetch all tags from the repository, so that they can properly be checked out later. This does not apply to the case of testing against `RGV=..`, since no extra cloning is needed there. https://github.com/rubygems/rubygems/commit/d088d936b8
* [rubygems/rubygems] Skip this spec on ruby_core workflowUtkarsh Gupta2020-07-151-2/+3
| | | | | | | | | | | | | | | ruby_core has an 'ast.rb' file that gets in the middle and breaks this spec, so it's better we skip this test on this workflow for now. Also, slightly change the spec name from "run" to "runs" and change the last assertion, it's cleaner to check empty error. Thanks to David Rodríguez for this! Signed-off-by: Utkarsh Gupta <utkarsh@debian.org> https://github.com/rubygems/rubygems/commit/ba8eaa70c3
* [rubygems/rubygems] Use latest version of rubocop for RUBY_VERSION > 2.4Utkarsh Gupta2020-07-151-1/+2
| | | | | | | | | | | | With older versions of rubocop, the dependency on `jaro_winkler` seems to be a pain. However, in the later versions of rubocop, this dependency was dropped. So we only need to use the older version for ruby2.3. Signed-off-by: Utkarsh Gupta <utkarsh@debian.org> https://github.com/rubygems/rubygems/commit/9cd87eaee3
* [rubygems/rubygems] Use `--config .rubocop.yml` insteadUtkarsh Gupta2020-07-151-1/+1
| | | | | | | | | | | because rubocop configuration inheritance is messed up and when using `--ignore-parent-exclusion`, even though the exit status is 0, the example still fails because of the configuration issue. Signed-off-by: Utkarsh Gupta <utkarsh@debian.org> https://github.com/rubygems/rubygems/commit/3e20b2738c
* [rubygems/rubygems] Lock rubocop version to 0.80.1Utkarsh Gupta2020-07-151-1/+1
| | | | | | | | | | | | | | | The later RuboCop versions don't work with ruby2.3 so we should lock the version to what works with ruby2.3 as we haven't dropped the support yet. And since we're using the older version of rubocop, also fix `Max` value of `LineLength` to 120, which is the current standard. Without this, rubocop will throw the line length offenses. Signed-off-by: Utkarsh Gupta <utkarsh@debian.org> https://github.com/rubygems/rubygems/commit/46d0a800a2