path: root/spec
AgeCommit message (Collapse)Author
9 hoursThe tzdata 2022c removed Amsterdam Mean TimeNobuyoshi Nakada
40 hours[rubygems/rubygems] Fix Ruby platform incorrectly removed on `bundle update`David Rodríguez
6 daysFix Array#[] with ArithmeticSequence with negative steps (#5739)Jeremy Evans
* Fix Array#[] with ArithmeticSequence with negative steps Previously, Array#[] when called with an ArithmeticSequence with a negative step did not handle all cases correctly, especially cases involving infinite ranges, inverted ranges, and/or exclusive ends. Fixes [Bug #18247] * Add Array#slice tests for ArithmeticSequence with negative step to test_array Add tests of rb_arithmetic_sequence_beg_len_step C-API function. * Fix ext/-test-/arith_seq/beg_len_step/depend * Rename local variables * Fix a variable name Co-authored-by: Kenta Murata <> Notes: Merged-By: mrkn <>
6 daysOnly allow procs created by Symbol#to_proc to call public methodsJeremy Evans
Fixes [Bug #18826] Co-authored-by: Nobuyoshi Nakada <> Notes: Merged: Merged-By: jeremyevans <>
8 days[Bug #18946] New tests for fixed Time/DateTime conversionsNobuyoshi Nakada
8 days[Bug #18946] Use Gregorian dates to testNobuyoshi Nakada
10 daysSilent backtrace from cve_2019_8325_spec.rbNobuyoshi Nakada
Since the change at f310ac1cb2964f635f582862763b2155aacf2c12 to show the backtraces by default, this test started to show the backtraces. As the backtraces are not the subject of this test, silence them by using Gem::SilentUI. Notes: Merged: Merged-By: nobu <>
11 days[rubygems/rubygems] Fix yanked gems being unintentionally update when other ↵David Rodríguez
gems are unlocked This is a regression from a change intended to raise errors when user puts a gem under an incorrect source in the Gemfile by mistake. To fix the issue, we revert the change that caused it and implement it in a different way that restores the resolver independency from real specifications. Now it deals only with names and versions and does not try to materialize anything into real specifications before resolving.
11 daysTest that defaults to text modeAlan Wu
Co-authored-by: Nobuyoshi Nakada <> Notes: Merged:
12 days[rubygems/rubygems] Automatically remove "ruby" from lockfile if incompleteDavid Rodríguez
14 days[rubygems/rubygems] Fix `bundle outdated --strict`David Rodríguez
It should be an alias of `--filter-strict`. `--update-strict` is essentially a dummy option with no special behavior associated and should be deprecated.
14 days[rubygems/rubygems] Fix conservative updates regardless of `--strict`David Rodríguez
14 daysMerge rubygems/bundler HEADHiroshi SHIBATA
Pick from Notes: Merged:
2022-08-02Implement Queue#pop(timeout: sec)Jean Boussier
[Feature #18774] As well as `SizedQueue#pop(timeout: sec)` If both `non_block=true` and `timeout:` are supplied, ArgumentError is raised. Notes: Merged:
2022-08-02[rubygems/rubygems] Preserve the previous behavior of raising an error when ↵David Rodríguez
in frozen mode
2022-08-02[rubygems/rubygems] Check for errors in error streamDavid Rodríguez
2022-08-02[rubygems/rubygems] Don't discard candidates matching ruby metadataDavid Rodríguez
Do dependency filtering and materialization in one step. Before, dependency filtering would not consider ruby metadata so it would discard variants that end up not being materializable in the end. Co-authored-by: Ian Ker-Seymer <>
2022-08-01[rubygems/rubygems] Fix crash when running `bundle outdated` in debug modeDavid Rodríguez
Previously it would crash like this: ```` $ /Users/deivid/.asdf/installs/ruby/3.1.2/bin/ruby -I/Users/deivid/Code/rubygems/rubygems/bundler/spec -r/Users/deivid/Code/rubygems/rubygems/bundler/spec/support/artifice/fail.rb -r/Users/deivid/Code/rubygems/rubygems/bundler/spec/support/hax.rb /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/bin/bundle outdated --patch --strict --filter-patch Running `bundle outdated --filter-patch --patch --strict` with bundler Found changes from the lockfile, re-resolving dependencies because bundler is unlocking Using a local server, bundler won't use the CompactIndex API Fetching source index from file:///Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/remote4/ Resolving dependencies... --- ERROR REPORT TEMPLATE ------------------------------------------------------- ``` RuntimeError: LazySpecification has not been materialized yet (calling :loaded_from []) /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/ `method_missing' /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/ `gem_column_for' /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/ `block in print_gems_table' /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/ `map' /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/ `print_gems_table' /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/ `run' /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/ `outdated' /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/ `run' /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/ `invoke_command' /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/ `dispatch' /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/ `dispatch' /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/ `start' /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/ `start' /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/ `block in <top (required)>' /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/ `with_friendly_errors' /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/ `<top (required)>' /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/bin/bundle:25:in `load' /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/bin/bundle:25:in `<main>' ``` ````
2022-08-01[rubygems/rubygems] Fix comment incorrectly copied from another specDavid Rodríguez
2022-07-30[rubygems/rubygems] Make `--standalone` play nice with `--local`David Rodríguez
I'm not sure if using relative paths in the generated script is best for this case, since it makes the script not movable, but that can be improved later.
2022-07-29Merge rubygems master from ↵Hiroshi SHIBATA Notes: Merged:
2022-07-27Update to ruby/spec@cbfaf51Benoit Daloze
2022-07-27Update to ruby/mspec@290e36aBenoit Daloze
2022-07-27[rubygems/rubygems] Add ignore_funding_requests config flagmoe
2022-07-27[rubygems/rubygems] Use main as default branch for Bundler specsDavid Rodríguez
2022-07-26Merge rubygems/bundler HEADHiroshi SHIBATA
Merge from Notes: Merged:
2022-07-21Do not chomp trailing line separator IO#each with nil separator and chompJeremy Evans
nil separator means no sepator, so chomp should not remove a line separator. Partially Fixes [Bug #18770] Notes: Merged:
2022-07-21Do not have class/module keywords look up ancestors of ObjectJeremy Evans
Fixes case where Object includes a module that defines a constant, then using class/module keyword to define the same constant on Object itself. Implements [Feature #18832] Notes: Merged:
2022-07-19[rubygems/rubygems] Bundler: change error/warning message for multiple ↵Takuya Noguchi
global sources Signed-off-by: Takuya Noguchi <>
2022-07-18[rubygems/rubygems] Improve error message when gems cannot be foundDavid Rodríguez
Include the source of each gem.
2022-07-17[rubygems/rubygems] bundler: fix typo in inline RuboCop configTakuya Noguchi
Signed-off-by: Takuya Noguchi <>
2022-07-17[rubygems/rubygems] Show a proper error if extension dir is not writableDavid Rodríguez
Instead of showing the bug report template.
2022-07-14[rubygems/rubygems] Fix misleading error if compact index cannot be copiedDavid Rodríguez
Previously if `~/.bundle/cache/compact_index/*/version` were owned by root with read-only access, `bundle install` would fail with a misleading error message. For example: ``` There was an error while trying to write to `/tmp/bundler-compact-index-20220711-1823-npllre/versions`. It is likely that you need to grant write permissions for that path. ``` This happened because the EACCESS error was caught by `SharedHelpers.filesystem_access`, which makes it look like the target directory is at fault instead of the source. We can't simply drop this guard because that causes the opposite problem: the permission error appears to come from the source instead of the target, since `CompactIndexClient::Cache#lines` also wraps read access errors. Instead, bring a minimal implementation of `FileUtils.cp` and nest calls to `SharedHelpers.filesystem_access` properly. Co-authored-by: Stan Hu <>
2022-07-13Merge RubyGems and Bundler masterHiroshi SHIBATA
Notes: Merged:
2022-07-08[rubygems/rubygems] Fix `simulate_windows` helperDavid Rodríguez
It should also set the proper class variable so that `Gem.win_platform?` returns true.
2022-07-02[rubygems/rubygems] Account for default gems not having remote when cachingDavid Rodríguez
2022-07-02Relax `not_before` limitNobuyoshi Nakada
Use the value as similar as other tests below. Trying to fix sporadic “not yet valid” failures on some CIs. Notes: Merged:
2022-07-01Fix TODO in stringio/truncate_spec.rbNobuyoshi Nakada
2022-07-01stop CI failures.Koichi Sasada
302f353fd9223d020e48495eaa7a03ce5d539409 seems break the rubyspec. @nobu please check it.
2022-06-30Add more check to debug failuresKazuhiro NISHIYAMA
2022-06-27[rubygems/rubygems] Print error messages just once in verbose modeDavid Rodríguez
When running a command with the `--verbose` flag that ends up raising a `BundlerError`, Bundler will unnecessarily print the error twice. This commit fixes the issue by removing the duplicate logging.
2022-06-26Fix Process.clock_gettime specs on OpenBSDJeremy Evans
2022-06-26Update to ruby/spec@ab32a1aBenoit Daloze
2022-06-26Update to ruby/mspec@78b5d86Benoit Daloze
2022-06-26[rubygems/rubygems] Fix pending Bundler specsDavid Rodríguez
When testing under the ruby/ruby setup, mkmf.rb needs to the `$extout` global variable set properly. This is because, in this particular case, the `ruby.h` header needed to compile extensions is constructed from `$(extout)/include($arch)/ruby/config.h` but `$extout` is not set by default. I tried to fix this in mkmf.rb itself but I couldn't figure it. But setting it externally to workaround the issue fixes the specs, so I'll start with that. Also setting it externally causes issues when running specs upstream against Ruby 2.3 (I guess because of some difference with Ruby 2.3 mkmf.rb implementation). So I'm avoiding doing it on Ruby 2.3 to woraround that.
2022-06-24Sync RubyGems & Bundler with upstream repoDavid Rodríguez
Notes: Merged:
2022-06-23[rubygems/rubygems] Fix standalone script generation for statically linked ↵David Rodríguez
dev ruby
2022-06-23[rubygems/rubygems] Fix `bundle package --no-install` no longer skipping installDavid Rodríguez
This is a regression from The funny thing is that we have a spec for this feature, so it was unclear how we regressed here. It turns out there was a bug in one of our negative matchers checking that gems ARE NOT included in a bundle. This commit fixes the bug in the negative matcher and reverts (with a slightly simpler diff).
2022-06-20[Feature #18788] Spec for options as `String` to ``Nobuyoshi Nakada
Co-Authored-By: Janosch Müller <> Notes: Merged:
2022-06-20Spec update for warnning suspicious flag to ``Nobuyoshi Nakada
Notes: Merged: