aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* [rubygems/rubygems] Add `file` option to `ruby` method in GemfileNgan Pham2023-08-171-1/+26
| | | | https://github.com/rubygems/rubygems/commit/fb9354b7bf
* [rubygems/rubygems] Show better error when PAT can't authenticate to a ↵David Rodríguez2023-08-162-20/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | private server Before: ``` Fetching gem metadata from https://rubygems.org/........ Fetching source index from https://rubygems.pkg.github.com/my-org/ Bad username or password for https://x-access-token@rubygems.pkg.github.com/my-org/. Please double-check your credentials and correct them. ``` After: ``` Fetching gem metadata from https://rubygems.org/........ Fetching source index from https://rubygems.pkg.github.com/my-org/ Access token could not be authenticated for https://x-access-token@rubygems.pkg.github.com/my-org/. Make sure it's valid and has the necessary scopes configured. ``` https://github.com/rubygems/rubygems/commit/2ae69c964a
* [rubygems/rubygems] Bad auth should not fallback eitherDavid Rodríguez2023-08-161-0/+9
| | | | https://github.com/rubygems/rubygems/commit/ba3ea27869
* [rubygems/rubygems] Use better status for authentication failuresDavid Rodríguez2023-08-162-2/+2
| | | | https://github.com/rubygems/rubygems/commit/ffa395411f
* [rubygems/rubygems] Fix git source conservativenessDavid Rodríguez2023-08-161-0/+86
| | | | https://github.com/rubygems/rubygems/commit/9a0e0dfd5b
* [DOC] Update to use `SPECOPTS` instead of `MSPECOPT`Nobuyoshi Nakada2023-08-121-4/+4
|
* Add dotted countsNobuyoshi Nakada2023-08-121-6/+26
|
* For parallel testNobuyoshi Nakada2023-08-121-1/+2
|
* Fold dotted outputs from test-specNobuyoshi Nakada2023-08-121-0/+48
|
* Deprecate Kernel#open and IO support for subprocess creation/forkingMike Dalessio2023-08-106-17/+114
| | | | | | | | | | | | | | | | | Deprecate Kernel#open and IO support for subprocess creation and forking. This deprecates subprocess creation and forking in - Kernel#open - URI.open - IO.binread - IO.foreach - IO.readlines - IO.read - IO.write This behavior is slated to be removed in Ruby 4.0 [Feature #19630]
* Update to ruby/spec@9e278f5Benoit Daloze2023-08-0253-174/+457
|
* Fix encoding switches when RUBYOPT is empty or only spacesBenoit Daloze2023-08-021-0/+7
| | | | * Follow-up of dbbc3583ba432c279f07b1fa0afb0a8a9ba50c91 which broke this.
* `Refinement#refined_class` is now deprecatedNobuyoshi Nakada2023-07-311-1/+1
|
* [rubygems/rubygems] Use the dedicated method to convert file pathNobuyoshi Nakada2023-07-301-0/+30
| | | | | | | | The dedicated method `File.path` to deal with pathname-like objects has been provided since ruby 1.9.0. Also adds a test for rubygems/rubygems#6837. https://github.com/rubygems/rubygems/commit/258c6eda80
* Add examples of `return` in `eval`Nobuyoshi Nakada2023-07-301-0/+14
|
* Use Gem::BUNDLED_GEMS::SINCEHiroshi SHIBATA2023-07-281-12/+12
|
* Make {Nil,True,False}Class#singleton_method always raise NameErrorJeremy Evans2023-07-263-0/+45
| | | | | | | | {Nil,True,False}Class#singleton_methods always returns [] indicating that there are no singleton methods defined, so #singleton_method should be consistent with that. Fixes [Bug #11064]
* [rubygems/rubygems] bin/rubocop -AHiroshi SHIBATA2023-07-251-1/+0
| | | | https://github.com/rubygems/rubygems/commit/e8a4184429
* [rubygems/rubygems] Extract Gem::BUNDLED_GEMS from BundlerHiroshi SHIBATA2023-07-251-0/+17
| | | | https://github.com/rubygems/rubygems/commit/e30e86aa60
* [rubygems/rubygems] Skip warnings if bundled gems is already loadedHiroshi SHIBATA2023-07-251-0/+19
| | | | https://github.com/rubygems/rubygems/commit/9583a7eb82
* [rubygems/rubygems] Added warnings targets for old version of RubyHiroshi SHIBATA2023-07-252-4/+34
| | | | https://github.com/rubygems/rubygems/commit/d0c1d97105
* [rubygems/rubygems] Added Ruby version for bundled gems to warningsHiroshi SHIBATA2023-07-251-1/+1
| | | | https://github.com/rubygems/rubygems/commit/d61c1362e7
* [rubygems/rubygems] Added csv as stub gem to build_repo1Hiroshi SHIBATA2023-07-251-0/+1
| | | | https://github.com/rubygems/rubygems/commit/d2f2597c31
* [rubygems/rubygems] Added examples for warnings featureHiroshi SHIBATA2023-07-251-0/+29
| | | | https://github.com/rubygems/rubygems/commit/78807add23
* Use the caller location as default filename for eval family of methodsJean Boussier2023-07-247-26/+87
| | | | | | | | | | | | | | | | | | | [Feature #19755] Before (in /tmp/test.rb): ```ruby Object.class_eval("p __FILE__") # => "(eval)" ``` After: ```ruby Object.class_eval("p __FILE__") # => "(eval at /tmp/test.rb:1)" ``` This makes it much easier to track down generated code in case the author forgot to provide a filename argument.
* [rubygems/rubygems] Rename local to lockfile and global to systemHiroshi SHIBATA2023-07-241-1/+1
| | | | https://github.com/rubygems/rubygems/commit/456fd05d3a
* [rubygems/rubygems] Avoid printing using messages when version has not changedDavid Rodríguez2023-07-241-26/+22
| | | | https://github.com/rubygems/rubygems/commit/9635a2fd74
* [rubygems/rubygems] Exclude Bundler from missing locked dependencies checkDavid Rodríguez2023-07-241-0/+10
| | | | | | | Bundler is special since it's not actually locked in the lockfile as a regular gem (only via `BUNDLED WITH`). So exclude it from that check. https://github.com/rubygems/rubygems/commit/9f1756ec47
* [rubygems/rubygems] Prefer squiggly heredocs over custom helperDavid Rodríguez2023-07-2417-51/+51
| | | | https://github.com/rubygems/rubygems/commit/258476c38a
* [rubygems/rubygems] Remove unused module inclusionDavid Rodríguez2023-07-241-2/+0
| | | | https://github.com/rubygems/rubygems/commit/0f58ef6a32
* [rubygems/rubygems] Refactor spec helpers for reading lockfilesDavid Rodríguez2023-07-242-6/+14
| | | | https://github.com/rubygems/rubygems/commit/ea2a30ba08
* [rubygems/rubygems] Simplify `bundle lock` specsDavid Rodríguez2023-07-241-9/+5
| | | | https://github.com/rubygems/rubygems/commit/6301d3eece
* [ruby/syntax_suggest] Handle new eval source locationJean Boussier2023-07-202-1/+10
| | | | | | | | | See https://bugs.ruby-lang.org/issues/19755 In Ruby 3.3, using `eval` without providing a source location will now default to `"(eval at #{__FILE__}:#{__LINE__})"`. https://github.com/ruby/syntax_suggest/commit/8e5076472e
* Add tests for `return` in `BEGIN` and `END` blocksNobuyoshi Nakada2023-07-191-0/+15
|
* Implement Process.warmupJean Boussier2023-07-171-0/+11
| | | | | | | | | | | | [Feature #18885] For now, the optimizations performed are: - Run a major GC - Compact the heap - Promote all surviving objects to oldgen Other optimizations may follow.
* [Bug #19769] Fix range of size 1 in `String#tr`alexandre1842023-07-152-0/+18
|
* [rubygems/rubygems] Don't run any git commands when sorting and comparing ↵David Rodríguez2023-07-131-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | git sources Previously, when sorting and comparing git Gemfile vs lockfile sources during `bundler/setup` to figure out whether we need to re-resolve or not, we would try to find the default branch if nothing more specific was specified in the Gemfile. If the git cache has been deleted thought, that would fail. The error would still be swallowed (and the branch would simply not be displayed), but trying to clone would still generate the side effect of creating the parent folder for the clone. That could affect non-writable systems that don't expect `bundler/setup` to write to the filesystem at all. To fix this, override `Bundler::Source::Git#identifier` to use exclusively static information, so it does not even try to clone the repo nor generate any side effects. https://github.com/rubygems/rubygems/commit/582eb2ef39
* [rubygems/rubygems] Dont't use Bundler::VERSIONHiroshi SHIBATA2023-07-131-2/+6
| | | | https://github.com/rubygems/rubygems/commit/46cd9be69a
* [rubygems/rubygems] restart with BUNDLE_VERSION if it's specifiedHiroshi SHIBATA2023-07-131-0/+3
| | | | https://github.com/rubygems/rubygems/commit/57cfe7cf8d
* [rubygems/rubygems] Introduce bundle config set version featureHiroshi SHIBATA2023-07-131-0/+19
| | | | https://github.com/rubygems/rubygems/commit/c431a1df52
* [rubygems/rubygems] Remove unused variableDavid Rodríguez2023-07-131-2/+0
| | | | https://github.com/rubygems/rubygems/commit/802457b0a1
* Improve ArgumentError message for Module#set_temporary_nameBenoit Daloze2023-07-061-4/+4
|
* Ensure the name given to Module#set_temporary_name is not a valid constant pathBenoit Daloze2023-07-061-2/+17
| | | | Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* Specs for Module#set_temporary_name should be in their own fileBenoit Daloze2023-07-062-49/+53
|
* Skip a failing spec for the latest bigdecimalTakashi Kokubun2023-07-051-12/+14
|
* [rubygems/rubygems] Test that git sources in lockfiles have stable sort orderEllen Marie Dash2023-07-041-0/+74
| | | | https://github.com/rubygems/rubygems/commit/4c982684ea
* [rubygems/rubygems] Fix git source lockfile unstabilityDavid Rodríguez2023-07-042-11/+11
| | | | | | | | | | | | | | | We have some flags that limit running git commit commands under certain situations, for example, when running under `--local`. However, those should only affect remote git operations, not local read-only operations like `git --version`, or `git rev-parse --abbrev-ref HEAD`. This commit refactors things to achieve that. By doing this, the `#to_s` representation of a source is more consistent, since we don't get any errors when reading the checked out branch, and we avoid some flip-flop lockfile issues. https://github.com/rubygems/rubygems/commit/4a529fce81
* [rubygems/rubygems] Fix another incorrect removal of "ruby" platform from ↵David Rodríguez2023-07-041-0/+46
| | | | | | | | | | lockfile When dependencies in path sources have changed, we'll be re-resolving, and we can't really know whether the resolution will be valid or invalid for the Ruby platform, so skip the removal in that case. https://github.com/rubygems/rubygems/commit/afc3b0956f
* Update to ruby/spec@30e1c35Benoit Daloze2023-06-26428-9236/+3581
|
* Update to ruby/mspec@3cf2d16Benoit Daloze2023-06-262-2/+51
|