summaryrefslogtreecommitdiff
path: root/spec
AgeCommit message (Collapse)Author
2025-06-05[rubygems/rubygems] Compare major version onlyDavid Rodríguez
https://github.com/rubygems/rubygems/commit/6b4cf6713d
2025-06-05[rubygems/rubygems] Remove dead spec helpersDavid Rodríguez
https://github.com/rubygems/rubygems/commit/ee5a0158fd
2025-06-05[rubygems/rubygems] Reduce duplication a bitDavid Rodríguez
https://github.com/rubygems/rubygems/commit/0574c62fc0
2025-06-05[rubygems/rubygems] Deprecate x64-mingw32 legacy Windows platform in favor ↵Nicholas La Roux
of x64-mingw-ucrt https://github.com/rubygems/rubygems/commit/71c969be44
2025-06-05[rubygems/rubygems] Reset variables that can cause specs to fail if setDavid Rodríguez
https://github.com/rubygems/rubygems/commit/8df67b7322
2025-06-04Mark as NORETURNNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/13509
2025-06-03Remove hardcoded version of rake from Bundler testsDavid Rodríguez
Let them run against the version resolved by the `test_gems.rb` gemfile. This should fix ruby-core CI job that was broken by the release of rake 13.3.0.
2025-06-03[rubygems/rubygems] Follow coding styleTangRufus
https://github.com/rubygems/rubygems/commit/bfac93100e
2025-06-03[rubygems/rubygems] Test `bin/` is included in the ignore listTangRufus
https://github.com/rubygems/rubygems/commit/7afe81fd45
2025-06-03[rubygems/rubygems] Only ignore `.gitignore` when generating gems with gitTangRufus
https://github.com/rubygems/rubygems/commit/aec5a7887d
2025-06-03[rubygems/rubygems] Ignore `Gemfile`, `gems.rb` & `gems.locked` according to ↵TangRufus
`init_gems_rb` preference https://github.com/rubygems/rubygems/commit/88aeb66f41
2025-06-03[rubygems/rubygems] Extract `ignore_paths` helper methodTangRufus
https://github.com/rubygems/rubygems/commit/d45710ee53
2025-06-03[rubygems/rubygems] Only ignore `test/` when generating gems with `minitest` ↵TangRufus
or `test-unit` https://github.com/rubygems/rubygems/commit/c464f2036a
2025-06-03[rubygems/rubygems] Test it does not add any CI config files into ignore ↵TangRufus
list when not generating any CI config https://github.com/rubygems/rubygems/commit/018bb19244
2025-06-03[rubygems/rubygems] Extract `before` blocksTangRufus
https://github.com/rubygems/rubygems/commit/ff51a51d1a
2025-06-03[rubygems/rubygems] Suffix `.circleci` with `/` in `spec.files` in the ↵TangRufus
`.gemspec` template https://github.com/rubygems/rubygems/commit/e48c6beaf6
2025-06-03[rubygems/rubygems] Suffix `.github` with `/` in `spec.files` in the ↵TangRufus
`.gemspec` template https://github.com/rubygems/rubygems/commit/edf13f7e60
2025-06-03[rubygems/rubygems] Exclude `.rspec` from `spec.files` in the `.gemspec` ↵TangRufus
template https://github.com/rubygems/rubygems/commit/331901941d
2025-06-03[rubygems/rubygems] Exclude `.rubocop.yml` and `.standard.yml` from ↵TangRufus
`spec.files` in the `.gemspec` template https://github.com/rubygems/rubygems/commit/9d937d4f7f
2025-06-03[rubygems/rubygems] Refactor `spec.files` ignore list generationTangRufus
https://github.com/rubygems/rubygems/commit/c11539f325
2025-06-03[rubygems/rubygems] Fix English grammarTangRufus
https://github.com/rubygems/rubygems/commit/160938e75c
2025-06-03[rubygems/rubygems] Moved the REMEMBERING OPTIONS section to be after ↵Matthew Hively
CONFIGURATION KEYS Since the remembering options are discouraged, the preferred method should be explained first. Slight tweak to wording Fix documentation spec test as per suggested patch https://github.com/rubygems/rubygems/commit/9f082ccf31
2025-06-03[rubygems/rubygems] Remove unnecessary duplicate x64-mingw-ucrt entryNicholas La Roux
https://github.com/rubygems/rubygems/commit/d6f1f96585
2025-06-03[rubygems/rubygems] Partially phase out x64-mingw32 in favour of ↵Nicholas La Roux
x64-mingw-ucrt (platforms) - the x64-mingw32 platform has been superseded by x64-mingw-ucrt - the mingw-ucrt platform is present as of Windows 10, which was released 10 years ago in 2015 and all versions prior to 10 are end-of-life and 10 will be by mid October 2025 - newer rubies use the mingw-ucrt platform instead of the mingw32 platform, meaning using the deprecated platform can cause issues during gem installation https://github.com/rubygems/rubygems/commit/b9d871022e
2025-06-02Update to ruby/spec@4d2fc4dAndrew Konchin
Notes: Merged: https://github.com/ruby/ruby/pull/13495
2025-06-02Handle test failure of mock objectHiroshi SHIBATA
Fixup 4c26a38ed3c https://rubyci.s3.amazonaws.com/amazon2/ruby-master/log/20250601T213003Z.fail.html.gz ``` 1) An exception occurred during: Mock.verify_count File.birthtime accepts an object that has a #to_path method FAILED Mock 'path' expected to receive to_path(:any_args) exactly 1 times but received it 0 times /home/chkbuild/chkbuild/tmp/build/20250601T213003Z/ruby/spec/ruby/core/file/birthtime_spec.rb:4:in 'block in <top (required)>' /home/chkbuild/chkbuild/tmp/build/20250601T213003Z/ruby/spec/ruby/core/file/birthtime_spec.rb:3:in '<top (required)>' ```
2025-06-01Skip birthtime failures on old linuxNobuyoshi Nakada
`statx(2)` is available since Linux 4.11 and glibc 2.28. Notes: Merged: https://github.com/ruby/ruby/pull/13491
2025-05-31Update rake version in bundler testsNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/13484
2025-05-31Update rake version in lock filesNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/13484
2025-05-31Update bundled gems list as of 2025-05-31git
2025-05-31Bump bundled bigdecimal to 3.2.1 (#13482)tomoya ishida
Notes: Merged-By: tompng <tomoyapenguin@gmail.com>
2025-05-31rake 13.3.0 -> 13.2.1Koichi Sasada
`make test-bundler-parallel` prints many errors, so try to downgrade rake version. ``` 219) bundle install --standalone run in a subdirectory with --binstubs creates stubs that can be symlinked Failure/Error: raise <<~ERROR #{error_header} ---------------------------------------------------------------------- #{stdboth} ---------------------------------------------------------------------- ERROR RuntimeError: Commands: $ /home/ko1/ruby/build/trunk/ruby -I/home/ko1/ruby/src/trunk/spec/bundler -r/home/ko1/ruby/src/trunk/spec/bundler/support/artifice/compact_index.rb -r/home/ko1/ruby/src/trunk/spec/bundler/support/hax.rb /home/ko1/ruby/src/trunk/tmp/2.13/gems/system/bin/bundle config set --local path /home/ko1/ruby/src/trunk/tmp/2.13/bundled_app/bundle # $? => 0 Invoking `/home/ko1/ruby/build/trunk/ruby -I/home/ko1/ruby/src/trunk/spec/bundler -r/home/ko1/ruby/src/trunk/spec/bundler/support/artifice/compact_index.rb -r/home/ko1/ruby/src/trunk/spec/bundler/support/hax.rb /home/ko1/ruby/src/trunk/tmp/2.13/gems/system/bin/bundle install --standalone --binstubs` failed with output: ---------------------------------------------------------------------- [DEPRECATED] The --binstubs option will be removed in favor of `bundle binstubs --all` Could not find compatible versions Because every version of rails depends on rake = 13.3.0 and rake = 13.3.0 could not be found in rubygems repository https://gem.repo1/ or installed locally, rails cannot be used. So, because Gemfile depends on rails >= 0, version solving has failed. Fetching gem metadata from https://gem.repo1/... Resolving dependencies... ---------------------------------------------------------------------- Shared Example Group: "bundle install --standalone" called from ./spec/bundler/install/gems/standalone_spec.rb:532 # /home/ko1/ruby/src/trunk/spec/bundler/support/command_execution.rb:26:in 'Spec::CommandExecution#raise_error!' # /home/ko1/ruby/src/trunk/spec/bundler/support/subprocess.rb:66:in 'Spec::Subprocess#sh' # /home/ko1/ruby/src/trunk/spec/bundler/support/helpers.rb:216:in 'Spec::Helpers#sys_exec' # /home/ko1/ruby/src/trunk/spec/bundler/support/helpers.rb:107:in 'Spec::Helpers#bundle' # /home/ko1/ruby/src/trunk/spec/bundler/install/gems/standalone_spec.rb:482:in 'block (3 levels) in <top (required)>' # /home/ko1/ruby/src/trunk/spec/bundler/spec_helper.rb:107:in 'block (4 levels) in <top (required)>' # /home/ko1/ruby/src/trunk/spec/bundler/spec_helper.rb:107:in 'block (3 levels) in <top (required)>' # /home/ko1/ruby/src/trunk/spec/bundler/support/helpers.rb:355:in 'block in Spec::Helpers#with_gem_path_as' # /home/ko1/ruby/src/trunk/spec/bundler/support/helpers.rb:369:in 'Spec::Helpers#without_env_side_effects' # /home/ko1/ruby/src/trunk/spec/bundler/support/helpers.rb:350:in 'Spec::Helpers#with_gem_path_as' # /home/ko1/ruby/src/trunk/spec/bundler/spec_helper.rb:106:in 'block (2 levels) in <top (required)>' ``` Notes: Merged: https://github.com/ruby/ruby/pull/13483
2025-05-30Update bundled gems list as of 2025-05-30git
2025-05-31skip tests for BigDecimal 3.2.0Koichi Sasada
Notes: Merged: https://github.com/ruby/ruby/pull/13445
2025-05-30[Feature #21205] Fix up birthtime in ruby/specNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/13474
2025-05-29Initialize `gems` tmp when initializing bundled_gems_spec suiteDavid Rodríguez
That way it works even if no Bundler specs have run before. Notes: Merged: https://github.com/ruby/ruby/pull/13461
2025-05-28[rubygems/rubygems] Fix example name typoTang Rufus
https://github.com/rubygems/rubygems/commit/2d0cf3c31e
2025-05-26[rubygems/rubygems] Bump required_ruby_version to 3.2Samuel Giddins
Ruby 3.1 was EOL March 2025 Signed-off-by: Samuel Giddins <segiddins@segiddins.me> https://github.com/rubygems/rubygems/commit/29c21b1e78
2025-05-20Remove SortedSet autoload and set/sorted_setJeremy Evans
Implements [Feature #21287] Notes: Merged: https://github.com/ruby/ruby/pull/13188
2025-05-19[rubygems/rubygems] Fix test warnings introduced by recent CGI changesDavid Rodríguez
They read like this: ``` /home/runner/work/rubygems/rubygems/bundler/tmp/gems/base/ruby/3.4.0/gems/cgi-0.5.0.beta2/lib/cgi/util.rb:13: warning: method redefined; discarding old rfc1123_date /opt/hostedtoolcache/Ruby/3.4.3/x64/lib/ruby/3.4.0/cgi/util.rb:225: warning: previous definition of rfc1123_date was here /home/runner/work/rubygems/rubygems/bundler/tmp/gems/base/ruby/3.4.0/gems/cgi-0.5.0.beta2/lib/cgi/util.rb:34: warning: method redefined; discarding old pretty /opt/hostedtoolcache/Ruby/3.4.3/x64/lib/ruby/3.4.0/cgi/util.rb:246: warning: previous definition of pretty was here /home/runner/work/rubygems/rubygems/bundler/tmp/gems/base/ruby/3.4.0/gems/cgi-0.5.0.beta2/lib/cgi/escape.rb:16: warning: method redefined; discarding old escape /home/runner/work/rubygems/rubygems/bundler/tmp/gems/base/ruby/3.4.0/gems/cgi-0.5.0.beta2/lib/cgi/escape.rb:29: warning: method redefined; discarding old unescape /home/runner/work/rubygems/rubygems/bundler/tmp/gems/base/ruby/3.4.0/gems/cgi-0.5.0.beta2/lib/cgi/util.rb:13: warning: method redefined; discarding old rfc1123_date /opt/hostedtoolcache/Ruby/3.4.3/x64/lib/ruby/3.4.0/cgi/util.rb:225: warning: previous definition of rfc1123_date was here /home/runner/work/rubygems/rubygems/bundler/tmp/gems/base/ruby/3.4.0/gems/cgi-0.5.0.beta2/lib/cgi/util.rb:34: warning: method redefined; discarding old pretty /opt/hostedtoolcache/Ruby/3.4.3/x64/lib/ruby/3.4.0/cgi/util.rb:246: warning: previous definition of pretty was here /home/runner/work/rubygems/rubygems/bundler/tmp/gems/base/ruby/3.4.0/gems/cgi-0.5.0.beta2/lib/cgi/escape.rb:16: warning: method redefined; discarding old escape /home/runner/work/rubygems/rubygems/bundler/tmp/gems/base/ruby/3.4.0/gems/cgi-0.5.0.beta2/lib/cgi/escape.rb:29: warning: method redefined; discarding old unescape ``` The problem is that `rspec` loads `erb` for its configuration, which loads `cgi/util` from system gems. Then our tests change the `$LOAD_PATH` to make test gems installed in tmp visible to `require`, and then they all require `cgi` as a transitive dependency of `rack-test`, this time from `tmp` gems. This causes system and test specific copies to be mixed together and these warnings to be printed, but we have also observed failures in some tests with errors like > class variable @@accept_charset of CGI::Util is overtaken by CGI::Escape This changes should also fix those failures. The fix is to require all of `rack-test` (including `cgi`) before we have changed the `$LOAD_PATH`. Because the `$LOAD_PATH` is unchanged, RubyGems respects the version of `cgi` activated by RSpec, avoiding the double loads. https://github.com/rubygems/rubygems/commit/34e75465c6
2025-05-19Rename a couple of spec filesDavid Rodríguez
Generally are "realworld" specs are the ones using VCR cassettes of real requests. These files don't use that, so I moved them to a different place.
2025-05-19[rubygems/rubygems] Test JRuby 10David Rodríguez
Necessary changes to get tests passing are: * Rewrite one "out of memory" error spec to not define a subclass inside a RSpec context block. Due to some [JRuby issue], that's failing in JRuby 10, so I rewrote the test so that the Bundler process really goes OOM and that class definition is not necessary. * JRuby 10, even if Ruby 3.4-compatible, has not yet adapted backtraces to include receivers, so our tests need an special case for JRuby when detecting a test method call inside backtraces. * Warbler test is upgraded to use JRuby 10. Getting it to pass needs [a PR] to warbler, so our test is temporarily pointing to that PR. [JRuby issue]: https://github.com/jruby/jruby/issues/8838 [a PR]: https://github.com/jruby/warbler/pull/557 https://github.com/rubygems/rubygems/commit/edec85d4c3
2025-05-19[rubygems/rubygems] Normalize platforms in warbler lockfileDavid Rodríguez
https://github.com/rubygems/rubygems/commit/c7c50343bb
2025-05-19[rubygems/rubygems] Fix typo "shippped" => "shipped"Vít Ondruch
https://github.com/rubygems/rubygems/commit/1762d18d7b
2025-05-16[Bug #20009] Support marshaling non-ASCII name class/moduleNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/13362
2025-05-16"binary" is not valid encoding name in EmacsNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/13361
2025-05-13Add specs for Set mutation during iterationJean Boussier
2025-05-13Set#merge: raise if called during iterationJean Boussier
[Bug #21332] Notes: Merged: https://github.com/ruby/ruby/pull/13322
2025-05-12[rubygems/rubygems] Fix doctor command parsing of otool outputRandy Stauner
I have several gem dylibs that have a line matching "(compatibility " with no file path preceding it. https://github.com/rubygems/rubygems/commit/de9dc2bdc4
2025-05-11spec/ruby/core/module/ancestors_spec.rb: Add a guard for Namespace feat.Yusuke Endoh