Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix default gem RBI generation #562

Merged
merged 2 commits into from
Oct 26, 2021
Merged

Fix default gem RBI generation #562

merged 2 commits into from
Oct 26, 2021

Conversation

paracycle
Copy link
Member

Motivation

Changes in #541 broke default gem RBI generation.

Implementation

Mostly reverting back to the old code, with an explicit T.unsafe instead of a shim.

Tests

Added a test with did_you_mean gem to test RBI generation for default gems. I validated that the test fails without the revert and passes after the revert.

If a gem is a default gem, that does not mean that the `spec` is a
`Gem::Specification`. It is still a `Bundler::RemoteSpecification` which
delegates the `files` method to a gem spec.
@paracycle paracycle requested review from Morriar and a team October 25, 2021 22:59
lib/tapioca/gemfile.rb Show resolved Hide resolved
@paracycle paracycle merged commit 51b8ce5 into main Oct 26, 2021
@paracycle paracycle deleted the uk-revert-bundler-change branch October 26, 2021 15:58
@Morriar Morriar added the bugfix label Oct 29, 2021
@paracycle paracycle added the backported Backported to stable branch label Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported Backported to stable branch bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants