summaryrefslogtreecommitdiff
path: root/spec
AgeCommit message (Collapse)Author
2023-08-16[rubygems/rubygems] Use better status for authentication failuresDavid Rodríguez
https://github.com/rubygems/rubygems/commit/ffa395411f
2023-08-16[rubygems/rubygems] Fix git source conservativenessDavid Rodríguez
https://github.com/rubygems/rubygems/commit/9a0e0dfd5b
2023-08-12[DOC] Update to use `SPECOPTS` instead of `MSPECOPT`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8210
2023-08-12Add dotted countsNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8210
2023-08-12For parallel testNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8210
2023-08-12Fold dotted outputs from test-specNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8210
2023-08-10Deprecate Kernel#open and IO support for subprocess creation/forkingMike Dalessio
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] Notes: Merged: https://github.com/ruby/ruby/pull/7915
2023-08-02Update to ruby/spec@9e278f5Benoit Daloze
2023-08-02Fix encoding switches when RUBYOPT is empty or only spacesBenoit Daloze
* Follow-up of dbbc3583ba432c279f07b1fa0afb0a8a9ba50c91 which broke this.
2023-07-31`Refinement#refined_class` is now deprecatedNobuyoshi Nakada
2023-07-30[rubygems/rubygems] Use the dedicated method to convert file pathNobuyoshi Nakada
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
2023-07-30Add examples of `return` in `eval`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8127
2023-07-28Use Gem::BUNDLED_GEMS::SINCEHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/8126
2023-07-26Make {Nil,True,False}Class#singleton_method always raise NameErrorJeremy Evans
{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] Notes: Merged: https://github.com/ruby/ruby/pull/7973
2023-07-25[rubygems/rubygems] bin/rubocop -AHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/e8a4184429
2023-07-25[rubygems/rubygems] Extract Gem::BUNDLED_GEMS from BundlerHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/e30e86aa60
2023-07-25[rubygems/rubygems] Skip warnings if bundled gems is already loadedHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/9583a7eb82
2023-07-25[rubygems/rubygems] Added warnings targets for old version of RubyHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d0c1d97105
2023-07-25[rubygems/rubygems] Added Ruby version for bundled gems to warningsHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d61c1362e7
2023-07-25[rubygems/rubygems] Added csv as stub gem to build_repo1Hiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d2f2597c31
2023-07-25[rubygems/rubygems] Added examples for warnings featureHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/78807add23
2023-07-24Use the caller location as default filename for eval family of methodsJean Boussier
[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. Notes: Merged: https://github.com/ruby/ruby/pull/8070
2023-07-24[rubygems/rubygems] Rename local to lockfile and global to systemHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/456fd05d3a
2023-07-24[rubygems/rubygems] Avoid printing using messages when version has not changedDavid Rodríguez
https://github.com/rubygems/rubygems/commit/9635a2fd74
2023-07-24[rubygems/rubygems] Exclude Bundler from missing locked dependencies checkDavid Rodríguez
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
2023-07-24[rubygems/rubygems] Prefer squiggly heredocs over custom helperDavid Rodríguez
https://github.com/rubygems/rubygems/commit/258476c38a
2023-07-24[rubygems/rubygems] Remove unused module inclusionDavid Rodríguez
https://github.com/rubygems/rubygems/commit/0f58ef6a32
2023-07-24[rubygems/rubygems] Refactor spec helpers for reading lockfilesDavid Rodríguez
https://github.com/rubygems/rubygems/commit/ea2a30ba08
2023-07-24[rubygems/rubygems] Simplify `bundle lock` specsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/6301d3eece
2023-07-20[ruby/syntax_suggest] Handle new eval source locationJean Boussier
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
2023-07-19Add tests for `return` in `BEGIN` and `END` blocksNobuyoshi Nakada
2023-07-17Implement Process.warmupJean Boussier
[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. Notes: Merged: https://github.com/ruby/ruby/pull/7662
2023-07-15[Bug #19769] Fix range of size 1 in `String#tr`alexandre184
Notes: Merged: https://github.com/ruby/ruby/pull/8080 Merged-By: nobu <nobu@ruby-lang.org>
2023-07-13[rubygems/rubygems] Don't run any git commands when sorting and comparing ↵David Rodríguez
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
2023-07-13[rubygems/rubygems] Dont't use Bundler::VERSIONHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/46cd9be69a
2023-07-13[rubygems/rubygems] restart with BUNDLE_VERSION if it's specifiedHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/57cfe7cf8d
2023-07-13[rubygems/rubygems] Introduce bundle config set version featureHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/c431a1df52
2023-07-13[rubygems/rubygems] Remove unused variableDavid Rodríguez
https://github.com/rubygems/rubygems/commit/802457b0a1
2023-07-06Improve ArgumentError message for Module#set_temporary_nameBenoit Daloze
Notes: Merged: https://github.com/ruby/ruby/pull/8035
2023-07-06Ensure the name given to Module#set_temporary_name is not a valid constant pathBenoit Daloze
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> Notes: Merged: https://github.com/ruby/ruby/pull/8035
2023-07-06Specs for Module#set_temporary_name should be in their own fileBenoit Daloze
Notes: Merged: https://github.com/ruby/ruby/pull/8035
2023-07-05Skip a failing spec for the latest bigdecimalTakashi Kokubun
2023-07-04[rubygems/rubygems] Test that git sources in lockfiles have stable sort orderEllen Marie Dash
https://github.com/rubygems/rubygems/commit/4c982684ea
2023-07-04[rubygems/rubygems] Fix git source lockfile unstabilityDavid Rodríguez
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
2023-07-04[rubygems/rubygems] Fix another incorrect removal of "ruby" platform from ↵David Rodríguez
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
2023-06-26Update to ruby/spec@30e1c35Benoit Daloze
2023-06-26Update to ruby/mspec@3cf2d16Benoit Daloze
2023-06-21Allow setting the name of a class or module. (#7483)Samuel Williams
Introduce `Module#set_temporary_name` for setting identifiers for otherwise anonymous modules/classes. Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2023-06-20Merge rubygems/rubygems HEADHiroshi SHIBATA
Pick from https://github.com/rubygems/rubygems/commit/880dd95996c93adc1e032399816931b243c5fe17 Notes: Merged: https://github.com/ruby/ruby/pull/7961
2023-06-15[rubygems/rubygems] Rubocop 1.51.0 or later didn't support Ruby 2.6Hiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/522b5f1ecd