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

Merged
CI
5d ago
+70-1

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