Homebrew / homebrew-portable-ruby

🚗 Versions of Ruby that can be installed and run from anywhere on the filesystem.
BSD 2-Clause "Simplified" License
128 stars 43 forks source link

Fix GitHub license detection #197

Closed leoheitmannruiz closed 3 months ago

leoheitmannruiz commented 3 months ago

Hey. Currently licensee, the program used by GitHub to detect licenses, is not confident enough about what license is used:

License:        NOASSERTION
Matched files:  LICENSE.txt, README.md
LICENSE.txt:
  Content hash:  5227778a1739d9dabbcc2778eb28743ac1a96b8d
  License:       NOASSERTION
  Closest non-matching licenses:
    BSD-2-Clause similarity:  93.90%
    BSD-3-Clause similarity:  75.47%
    BSD-4-Clause similarity:  63.69%
README.md:
  Content hash:  c8dc1249ae22de18dafafdb525e2cb26ff73c43f
  License:       NOASSERTION
  Closest non-matching licenses:
    WTFPL similarity:      5.45%
    Unlicense similarity:  2.07%
    0BSD similarity:       1.90%

This is due to the disclaimer slightly differing from the one published by SPDX.

Also, the README mentions "BSD 2 Clause (NetBSD) license", which spooks licensee out. I have replaced this with the name of the license being used, as published by SPDX. This is not technically necessary for GitHub to correctly display the license, but I thought I'd fix it while here.

License:        BSD-2-Clause
Matched files:  LICENSE.txt, README.md
LICENSE.txt:
  Content hash:  a307ca750c21f262c95d2bce55e69c05e6c3dee9
  Attribution:   Copyright Homebrew contributors.
  Confidence:    100.00%
  Matcher:       Licensee::Matchers::Exact
  License:       BSD-2-Clause
README.md:
  Content hash:  c03d018955fe2b9429837fbf63f01583de68b995
  Confidence:    90.00%
  Matcher:       Licensee::Matchers::Reference
  License:       BSD-2-Clause
  Closest non-matching licenses:
    WTFPL similarity:      5.56%
    Unlicense similarity:  2.08%
    0BSD similarity:       1.92%
MikeMcQuaid commented 3 months ago

Thanks so much for your first contribution! Without people like you submitting PRs we couldn't run this project. You rock, @leoheitmannruiz!