summaryrefslogtreecommitdiff
path: root/spec
AgeCommit message (Collapse)Author
15 hours[rubygems/rubygems] Fix error when Bundler installation is corruptedDavid Rodriguez
If one upgrades the default copy of Bundler through `gem update --system`, and then reinstalls Ruby without removing the previous copy. Then the new installation will have a correct default bundler gemspec, but a higher copy installed in site_dir. This causes a crash when running Bundler and prints the bug report template. This could probably be fixed in Ruby install script, by removing any previous Bundler default copies, but if the problem is already there, I think it's best to print a proper user error. https://github.com/rubygems/rubygems/commit/ada6de765d
5 daysAdd a ruby_bug spec for String#index clearing $~Jean Boussier
[Bug #20421] The bug was fixed in Ruby 3.3 via 9dcdffb8bf8a3654fd78bf1a58b30c8e13888a7a
10 days[rubygems/rubygems] Remove `Gem::Specification#mark_version`David Rodriguez
This gets in the middle if we ever start allowing to build as if using a different RubyGems version than the one being run. This could be useful to make `gem rebuild` a little more usable, and it's already done by Bundler specs which already make this method a noop when they need this. I'm not sure forcefully setting this, even if user explicitly specified something else is helpful. Since this could potentially prevent gems explicitly setting a constant RubyGems version from building, I changed the error of incorrect RubyGems version from a hard error to a warning, since it will start happening in those cases if we stop overwriting the version. https://github.com/rubygems/rubygems/commit/45676af80d
11 daysReject empty lines in IRB binding specStan Lo
For that particular spec, the empty lines' presence is not relevant. So let's remove them to make the spec easier to maintain.
11 days[PRISM] Enable Socket.gethostbyaddr specKevin Newton
11 daysDeclare as NORETURNNobuyoshi Nakada
12 days[PRISM] Enable passing Symbol specsKevin Newton
12 daysSkip Warning.[] spec if mspec is passing warning optionsKevin Newton
12 days[PRISM] Support interpolated regexp with encoding modifiersKevin Newton
2024-04-29[rubygems/rubygems] Make sure to force latest resolvable version explicitlyDavid Rodriguez
To make sure we can always update to the latest resolvable version for each gem explicitly requested for update, we first run a full update, and then add explicit exact requirements to the resolved versions. This may lead into conflicts, but our resolver already automatically parses those and unlocks additional gems to fix them. https://github.com/rubygems/rubygems/commit/01c0bf34f0
2024-04-29[rubygems/rubygems] Fix circular require warningDavid Rodríguez
https://github.com/rubygems/rubygems/commit/241d0aafcd
2024-04-29[rubygems/rubygems] Show better error when installed gemspecs are unreadableDavid Rodríguez
https://github.com/rubygems/rubygems/commit/924f87c8a9
2024-04-29[rubygems/rubygems] Fix issue with `bundle update` with an out of sync lockfileDavid Rodríguez
An old platform related bug fix made some existing lockfiles no longer work because they included invalid platforms. So to make it backwards compatible, code was added to remove invalid platforms from the lockfile before resolution. This is skipped though when Gemfile has changed dependencies because in that case we will be re-resolving anyways. However, in the `bundle update` case, the detection of "dependencies have changed" was not actually working making Bundler remove all platforms and not be able to resolve. https://github.com/rubygems/rubygems/commit/6452adfd62
2024-04-26[PRISM] Use redundant return flagKevin Newton
2024-04-26[PRISM] Enable coverage in eval ISEQsKevin Newton
2024-04-26[PRISM] Enable coverage in top and main iseqsKevin Newton
2024-04-25[PRISM] Raise LoadError when file cannot be readKevin Newton
2024-04-25[rubygems/rubygems] Add auto_install support to require "bundler/setup"Josh Nichols
We have some places that already use `bundle config auto_install true`, ie: https://github.com/technicalpickles/rubygems/blob/7a144f3374f6a400cc9832f072dc1fc0bca8c724/bundler/lib/bundler/cli.rb#L11 This applies the same logic (copy and pasted) to happen when you `require "bundler/setup"`. https://github.com/rubygems/rubygems/commit/bb3c922341
2024-04-25[PRISM] Enable more passing testsKevin Newton
2024-04-25[rubygems/rubygems] Don't upcase Windows ENV when backing it upDavid Rodriguez
I apparently did that to fix some issue with case insensitivity but I didn't add a spec, and I think not upcasing should not cause issues. https://github.com/rubygems/rubygems/commit/1b6f23275a
2024-04-25[rubygems/rubygems] Properly resolve aliases when `bundle help` is runDavid Rodríguez
https://github.com/rubygems/rubygems/commit/5d9bf03c59
2024-04-19[rubygems/rubygems] Track HEAD changes for old PR proposalHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/e3d180620c
2024-04-19[rubygems/rubygems] Add plugin hooks for Bundler.requirefatkodima
https://github.com/rubygems/rubygems/commit/b373b7ed0d
2024-04-18chore: remove repetitive words (#10573)careworry
Signed-off-by: careworry <worrycare@outlook.com>
2024-04-18Add a hint of `ASCII-8BIT` being `BINARY`Jean Boussier
[Feature #18576] Since outright renaming `ASCII-8BIT` is deemed to backward incompatible, the next best thing would be to only change its `#inspect`, particularly in exception messages.
2024-04-18[rubygems/rubygems] Never write credentials to lockfilesDavid Rodriguez
https://github.com/rubygems/rubygems/commit/e8a363713e
2024-04-17[rubygems/rubygems] Excluding local platform from lockfile should not affect ↵Mike Dalessio
musl vs gnu case This case is for not locking things like `arm-darwin-23` when the lockfile already includes `arm-darwin`, so that we don't infinitely keep redundant versioned platforms in the lockfile when not necessary. We detect this with `Gem::Platform#===`. For example, `Gem::Platform.new("arm-darwin-23") === Gem::Platform.new("arm-darwin")` but they're not `==`. However, in the case of `-musl` vs `-gnu`, those act as the platform "version", but `===` is not commutative for them. This is explained in `===` docs. We only want to exclude the local platform in situations when `Gem::Platform#===` is actually commutative. https://github.com/rubygems/rubygems/commit/8099c4face
2024-04-17`Fiber#raise` recursively raises on nested resuming_fiber. (#10482)Samuel Williams
* Improve consistency of `Fiber.current.raise`.
2024-04-17Revert an accidentally merged change [ci skip]Nobuyoshi Nakada
2024-04-17[Feature #20335] `Thread.each_caller_location` argumentsNobuyoshi Nakada
Accecpt the same arguments as `caller` and `caller_locations`.
2024-04-12[PRISM] Enable more passing testsKevin Newton
2024-04-12[PRISM] Enable passing tests for prismKevin Newton
2024-04-12[rubygems/rubygems] `bundle add --glob` continued- quote glob value ↵David Marshall
invocation in specs, add banner text for CLI recommending single quotes https://github.com/rubygems/rubygems/commit/6d2cf955f9
2024-04-12[rubygems/rubygems] bundler CLI option for add gem --glob=David Marshall
Bundler online documentation says that if the gem is located within a subdirectory of a git repository, you can use the `:glob` option to specify the location of its .gemspec `gem 'cf-copilot', git: 'https://github.com/cloudfoundry/copilot', glob: 'sdk/ruby/*.gemspec'` This change allows for equivalent functionality from the bundler CLI `bundle add cf-copilot --git=https://github.com/cloudfoundry/copilot --glob=sdk/ruby/*.gemspec` https://github.com/rubygems/rubygems/commit/91052e5868
2024-04-11[PRISM] Enable more passing testsKevin Newton
2024-04-11[rubygems/rubygems] Fix installing plugins via relative pathsCody Cutrer
This affected both CLI and Gemfile installs https://github.com/rubygems/rubygems/commit/a0d101a8df
2024-04-11[PRISM] Fix break in super blockKevin Newton
2024-04-11prism_compile.c: X_STRING should be frozenJean Boussier
The backtick method recieves a frozen string unless it is interpolated. Otherwise the string held in the ISeq could be mutated by a custom backtick method.
2024-04-10[Misc #18984] Raise TypeError from Range#size if the range is not iterableKouhei Yanagita
2024-04-05Use rake-13.2.1Hiroshi SHIBATA
2024-04-05[rubygems/rubygems] Fix crash with development bundler binstubDavid Rodriguez
Fixes the following error: ```` $ ruby /home/deivid/code/rubygems/rubygems/bundler/spec/support/bundle.rb clean --force --- ERROR REPORT TEMPLATE ------------------------------------------------------- ``` TypeError: no implicit conversion of Pathname into String /home/deivid/code/rubygems/rubygems/bundler/lib/bundler/runtime.rb:167:in `match' /home/deivid/code/rubygems/rubygems/bundler/lib/bundler/runtime.rb:167:in `block in clean' /home/deivid/code/rubygems/rubygems/bundler/lib/bundler/runtime.rb:164:in `each' /home/deivid/code/rubygems/rubygems/bundler/lib/bundler/runtime.rb:164:in `clean' /home/deivid/code/rubygems/rubygems/bundler/lib/bundler/cli/clean.rb:13:in `run' /home/deivid/code/rubygems/rubygems/bundler/lib/bundler/cli.rb:590:in `clean' /home/deivid/code/rubygems/rubygems/bundler/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run' /home/deivid/code/rubygems/rubygems/bundler/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command' /home/deivid/code/rubygems/rubygems/bundler/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch' /home/deivid/code/rubygems/rubygems/bundler/lib/bundler/cli.rb:34:in `dispatch' /home/deivid/code/rubygems/rubygems/bundler/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start' /home/deivid/code/rubygems/rubygems/bundler/lib/bundler/cli.rb:28:in `start' /home/deivid/code/rubygems/rubygems/bundler/exe/bundle:28:in `block in <top (required)>' /home/deivid/code/rubygems/rubygems/bundler/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors' /home/deivid/code/rubygems/rubygems/bundler/exe/bundle:20:in `<top (required)>' /home/deivid/code/rubygems/rubygems/bundler/spec/support/bundle.rb:5:in `load' /home/deivid/code/rubygems/rubygems/bundler/spec/support/bundle.rb:5:in `<main>' ``` (...) ```` https://github.com/rubygems/rubygems/commit/ff7ce7eb6d
2024-04-03Reset `$.` before matchingNobuyoshi Nakada
This is a global variable and may happen to be set to 4 elsewhere. http://ci.rvm.jp/logfiles/brlog.trunk.20240403-054356#L1707 ``` The if expression with a boolean range ('flip-flop' operator) warns when Integer literals are used instead of predicates FAILED Expected [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] == [] to be truthy but was false ```
2024-04-02Update to ruby/spec@573cf97Andrew Konchin
2024-04-02Use Rake 13.2.0Hiroshi SHIBATA
2024-04-01[PRISM] Enable passing pattern matching testsKevin Newton
2024-04-01[rubygems/rubygems] Improve error message when strict resolution filters out ↵David Rodriguez
everything https://github.com/rubygems/rubygems/commit/1ea44b3749
2024-04-01[rubygems/rubygems] Let GemVersionPromoter sort in preferred order directlyDavid Rodriguez
So that we don't need to reverse the Array. https://github.com/rubygems/rubygems/commit/aeea5e2e00
2024-04-01[rubygems/rubygems] Remove unnecessary filteringDavid Rodriguez
We do that when first caching versions, and then it's no longer necessary. https://github.com/rubygems/rubygems/commit/ede15847db
2024-03-29[rubygems/rubygems] add test case to ensure updating with multiple sources + ↵Alex Robbin
caching maintains the right lockfile https://github.com/rubygems/rubygems/commit/65839757e6
2024-03-29[PRISM] Fix BEGIN{} execution orderKevin Newton