Skip to content

[Documentation] Include shadcn/ui MIT notice in LICENSE.txt - #577

Merged
cirdes merged 2 commits into
mainfrom
docs/shadcn-mit-notice
Oct 27, 2026
Merged

cirdes merged 2 commits into
mainfrom
docs/shadcn-mit-notice

Conversation

@cirdes

@cirdes cirdes commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

Related issue

No issue. Found while checking shadcn/ui's license for the shadcn-audit work.

Description

RubyUI's component styles, structure and examples come from shadcn/ui, which is MIT licensed. MIT asks for one thing: ship shadcn's copyright and permission notice with copies or substantial portions. The gem didn't.

  • gem/LICENSE.txt keeps RubyUI's MIT text and adds a "Third-party notices" section with shadcn's license verbatim (Copyright (c) 2023 shadcn). The file already ships in the gem through s.files.
  • gem/README.md's License section used to link shadcn's LICENSE as if it were RubyUI's. It now links LICENSE.txt and credits shadcn there.
  • gem/test/license_test.rb checks the notice is present, that the gemspec ships LICENSE.txt, and that the README no longer points at shadcn's license as ours.

No per-file headers: shadcn's own CLI copies components into apps without them, and the notice travels with the gem.

Testing instructions

  1. cd gem && bundle exec rake (297 runs, 0 failures; standardrb clean).
  2. gem build ruby_ui.gemspec && tar -xOf ruby_ui-*.gem data.tar.gz | tar -tz | grep LICENSE lists LICENSE.txt; its tail is shadcn's MIT notice.

🤖 Generated with Claude Code

RubyUI components derive from shadcn/ui (MIT), whose license requires the
copyright and permission notice in copies. Append it to LICENSE.txt under
a third-party notices section and point the README license section at
LICENSE.txt instead of shadcn's license file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread gem/test/license_test.rb Resolved
…ether

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cirdes
cirdes merged commit 098d2dd into main Oct 27, 2026
8 checks passed
@cirdes
cirdes deleted the docs/shadcn-mit-notice branch October 27, 2026 00:40
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.

1 participant