summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Simplify bin_path_spec.rb guard"Takashi Kokubun2019-10-031-1/+1
| | | | | | | | This reverts commit a56d742e69aa8a3a1fe92fc515d93f6e51cf5fbc. I was checking the CI result of the wrong revision. It actually worked fine https://ci.appveyor.com/project/ruby/ruby/builds/27866303. Never mind...
* Simplify bin_path_spec.rb guardTakashi Kokubun2019-10-031-1/+1
| | | | | For some reason the guard_not seems not working as expected https://ci.appveyor.com/project/ruby/ruby/builds/27866153/job/v6wa6q6p7b7n7r37
* bin_path_spec.rb has failed from the beginningTakashi Kokubun2019-10-031-1/+1
| | | | | for mswin. This spec is not valid for mswin platform. https://ci.appveyor.com/project/ruby/ruby/builds/27748774/job/85khngfpc806m5lj
* Treat return in block in class/module as LocalJumpError (#2511)Jeremy Evans2019-10-021-10/+11
| | | | | | return directly in class/module is an error, so return in proc in class/module should also be an error. I believe the previous behavior was an unintentional oversight during the addition of top-level return in 2.4.
* Update to ruby/spec@2699ea4Benoit Daloze2019-09-292-12/+15
|
* Fix or suppress keyword argument separation warnings in util_specJeremy Evans2019-09-292-8/+24
| | | | | | | | | | | Some warnings are because the @o.rb_scan_args call doesn't include keyword arguments, but the first argument is passed to rb_scan_args may have a last hash treated as keywords. Those should be handled using rb_scan_args_kw on Ruby 2.7. Other warnings are for the deprecated rb_scan_args behavior to split option hashes or treat a nil argument as an option hash. Those warnings should just be suppressed.
* Update to ruby/spec@34e6246Benoit Daloze2019-09-2935-133/+127
|
* Update to ruby/mspec@5dda9fbBenoit Daloze2019-09-297-3/+16
|
* Skip default gemspecs spec if the default_specifications_dir cannot be foundBenoit Daloze2019-09-291-4/+9
|
* Update to ruby/spec@e69a14cBenoit Daloze2019-09-298-8/+158
|
* Update to ruby/mspec@8cabcefBenoit Daloze2019-09-291-16/+20
|
* Update to ruby/spec@519df35Benoit Daloze2019-09-2983-308/+1416
|
* Update to ruby/mspec@8106083Benoit Daloze2019-09-2928-241/+298
|
* [EXPERIMENTAL] Make NilClass#to_s, TrueClass#to_s and FalseClass#to_s return ↵Jean Boussier2019-09-273-0/+30
| | | | | | | | a frozen String * Always the same frozen String for each of these values. * Avoids extra allocations whenever calling these 3 methods. * See [Feature #16150]
* [EXPERIMENTAL] Make Module#name return a frozen StringJean Boussier2019-09-261-5/+19
| | | | | | * Always the same frozen String for a given Module or Class. * Avoids extra allocations whenever calling Module#name. * See [Feature #16150]
* [EXPERIMENTAL] Make Symbol#to_s return a frozen StringBenoit Daloze2019-09-261-0/+17
| | | | | | * Always the same frozen String for a given Symbol. * Avoids extra allocations whenever calling Symbol#to_s. * See [Feature #16150]
* Fix documentation for ENV.each to return ENVJeremy Evans2019-09-201-1/+1
| | | | | | | | Also have spec check that it returns ENV. Mostly from burdettelamar@yahoo.com (Burdette Lamar). Fixes [Bug #16164]
* Removed Scanf from the ruby repository.Hiroshi SHIBATA2019-09-208-160/+0
|
* Removed CMath from the ruby repository.Hiroshi SHIBATA2019-09-2036-835/+0
|
* Allow calling a private accessor with `self.`Nobuyoshi Nakada2019-09-202-1/+3
| | | | [Feature #11297] [Feature #16123]
* Added version guardNobuyoshi Nakada2019-09-201-4/+12
| | | | [Feature #11297] [Feature #16123]
* Allow calling a private method with `self.`Dylan Thacker-Smith2019-09-201-1/+1
| | | | | | | | | | This makes it consistent with calling private attribute assignment methods, which currently is allowed (e.g. `self.value =`). Calling a private method in this way can be useful when trying to assign the return value to a local variable with the same name. [Feature #11297] [Feature #16123]
* Fixed up ccbfb054b1dcd06d30924c4a83af1bac75d78c31Hiroshi SHIBATA2019-09-181-1/+1
|
* Fixed the rubocop warningsHiroshi SHIBATA2019-09-181-1/+1
|
* [bundler/bundler] Merge all `bundle check --path` specsDavid Rodríguez2019-09-181-25/+30
| | | | | | And skip them all for bundler 3. https://github.com/bundler/bundler/commit/b88936cdc2
* [bundler/bundler] Merge #7340Bundlerbot2019-09-181-27/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | 7340: Fix bundle clean issue r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that `bundle clean` is crashing under some conditions. ### What was your diagnosis of the problem? My diagnosis was that sometimes (when the bundle includes git sourced gems with extensions), it assumes that some paths exist, but they don't. ### What is your fix for the problem, implemented in this PR? My fix is to ignore those paths. ### Why did you choose this fix out of the possible options? I chose this fix because it fixes the issue. Fixes #7338. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net> (cherry picked from commit b007fde67c77c1f15f13b97eda186644c2a2be04) https://github.com/bundler/bundler/commit/3766053507
* [bundler/bundler] Fix remembered flag deprecation messageDavid Rodríguez2019-09-181-1/+1
| | | | | | It was suggested a deprecated command as a fix. https://github.com/bundler/bundler/commit/e330a9a34f
* [bundler/bundler] Add a spec for installing git deps after packaging w/o gitSamuel Giddins2019-09-181-0/+17
| | | | https://github.com/bundler/bundler/commit/65351c58b8
* [bundler/bundler] Revert "Add all platforms to lockfile by default"David Rodríguez2019-09-182-23/+5
| | | | | | This reverts commit 3dc509e645abb497e4dc92a7c42be471ff87db0b. https://github.com/bundler/bundler/commit/b5766564fb
* [bundler/bundler] Revert "Remove now meaningless warning"David Rodríguez2019-09-181-0/+19
| | | | | | This reverts commit 00b095b98fe4bd44950beaf3bc9f1d91eac7b69e. https://github.com/bundler/bundler/commit/e93bce3b20
* [bundler/bundler] Fix comments and messages to refer to https urlTakayuki Nakata2019-09-181-1/+1
| | | | https://github.com/bundler/bundler/commit/a86b49f1b9
* [bundler/bundler] Remove duplicated spec filterDavid Rodríguez2019-09-181-1/+1
| | | | https://github.com/bundler/bundler/commit/b7fc6f4187
* [bundler/bundler] Deprecate `--path` flag to `bundle check`David Rodríguez2019-09-181-0/+22
| | | | https://github.com/bundler/bundler/commit/0a0e7cf5ec
* Refine Timezone fixtureNobuyoshi Nakada2019-09-153-18/+39
|
* Make test-all and test-spec runnable on AndroidYusuke Endoh2019-09-093-3/+3
| | | | | | Calling some syscall functions such as Dir.chroot causes SIGSYS instead of EPERM on Android. This change skips all tests that stops the test-suite run.
* Improve Proc#to_s specsBenoit Daloze2019-09-081-7/+9
|
* Removed useless braces to suppress a warningNobuyoshi Nakada2019-09-081-2/+2
|
* armv7l and armv7l are the same platform, generalize to armv7Benoit Daloze2019-09-071-1/+1
| | | | [Bug #16007]
* Add `File.absolute_path?` (#2198)David Rodríguez2019-09-051-0/+53
| | | | | In order to check whether a path is absolute or not in a portable way. [Feature #15868]
* Remove bad expectation in specJeremy Evans2019-09-031-1/+0
| | | | | This spec should not be checking where methods are defined, only that the method works as expected (returns a Lazy instance).
* Prohibit nul-separated glob pattern [Feature #14643] (#2419)Nobuyoshi Nakada2019-09-021-1/+7
|
* Ignore the all of warnings with inline_spec.rb of bundler examples.Hiroshi SHIBATA2019-09-011-1/+1
|
* Warn for keyword to last hash parameter when method has no optional/rest ↵Jeremy Evans2019-08-301-4/+12
| | | | | | | | | parameters Previously, there was no warning in this case, even though we will be changing the behavior in Ruby 3. Fixes [Bug #14130]
* Fix a couple of bundler issues with keyword argument separationJeremy Evans2019-08-301-3/+4
| | | | | There are more issues than this, but hopefully this is enough to get make test-bundler passing in CI.
* Update specs to handle non-Symbols for keyword splats in 2.7Jeremy Evans2019-08-305-150/+378
| | | | Also handle some warnings for behavior that will change in 3.0.
* spec/ruby/core/unboundmethod/bind_call_spec.rb: Add ruby_version_is guardYusuke Endoh2019-08-301-36/+38
|
* spec/ruby/core/unboundmethod/bind_call_spec.rb: AddedYusuke Endoh2019-08-301-0/+50
| | | | | For UnboundMethod#bind_call [Feature #15955] introduced in 002e592e0d67bb0271d16314a32380ad947c9ae9.
* Fixed a comment [ci skip]Nobuyoshi Nakada2019-08-291-1/+1
| | | | | | A range literal in conditional expression is turned into a flip-flop, as a Range object is never falsy and does not make a sense.
* Revert "Remove warnings of flip-flop deprecation from tests and specs"Nobuyoshi Nakada2019-08-293-15/+10
| | | | | | | | This reverts commit bf7a32d22079cc44eb19794e41d82b886d5d17b3. flip-flop is no longer deprecated. [Feature #5400]
* Follows callback declaration updatesNobuyoshi Nakada2019-08-284-11/+16
|