Skip to content

feat: Show list of ignored gems - #2354

Open
written-fresh wants to merge 6 commits into
Shopify:mainfrom
written-fresh:feat/show-skipped-gems
Open

feat: Show list of ignored gems#2354
written-fresh wants to merge 6 commits into
Shopify:mainfrom
written-fresh:feat/show-skipped-gems

Conversation

@written-fresh

@written-fresh written-fresh commented Jul 20, 2025

Copy link
Copy Markdown
Contributor

Motivation

This PR addresses #1347 which aims to show a message when trying to run tapioca gem on a ignored gem.

Implementation

I have added a skipped gems property to the cli.

Tests

I have now written a test just to confirm something like gem sorbet outputs the warning that it was skipped. More than happy to add more if needed.

No warning

Showing no warning

Warning

image

@written-fresh
written-fresh force-pushed the feat/show-skipped-gems branch from 1ee1e56 to 6645633 Compare August 4, 2026 22:21
@written-fresh
written-fresh marked this pull request as ready for review August 4, 2026 22:24
@written-fresh
written-fresh requested a review from a team as a code owner August 4, 2026 22:24
Comment thread spec/tapioca/cli/gem_spec.rb Outdated
Comment thread lib/tapioca/cli.rb Outdated
Comment thread lib/tapioca/commands/gem_generate.rb Outdated
@written-fresh
written-fresh force-pushed the feat/show-skipped-gems branch from 51a7713 to 28d3674 Compare August 5, 2026 15:22
@written-fresh
written-fresh force-pushed the feat/show-skipped-gems branch from 28d3674 to bcc671b Compare August 5, 2026 15:25

@KaanOzkan KaanOzkan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, few more refactors. Also there might be some long lines, it'd be good to run rubocop before pushing.

Comment thread lib/tapioca/commands/gem_generate.rb
Comment thread lib/tapioca/commands/gem_generate.rb Outdated
Comment thread lib/tapioca/commands/gem_generate.rb Outdated
Comment thread lib/tapioca/commands/gem_generate.rb
Comment thread lib/tapioca/commands/gem_generate.rb Outdated
Comment thread lib/tapioca/commands/gem_generate.rb Outdated
assert_success_status(result)
end

it "reports explicitly requested ignored gems" do

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add a test for not reporting excluded gems when we only run gem and gem --all?

written-fresh and others added 5 commits August 20, 2026 13:03
Co-authored-by: Kaan Ozkan <kaanozkan97@gmail.com>
Co-authored-by: Kaan Ozkan <kaanozkan97@gmail.com>
Co-authored-by: Kaan Ozkan <kaanozkan97@gmail.com>
Co-authored-by: Kaan Ozkan <kaanozkan97@gmail.com>
Co-authored-by: Kaan Ozkan <kaanozkan97@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants