mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
move FSF fix to the fsf_approved_licenses helper
This commit is contained in:
parent
42e559a962
commit
c8012557a4
@ -19,12 +19,6 @@ licenses.each do |license|
|
||||
end
|
||||
|
||||
context "industry approval" do
|
||||
|
||||
# FSF approved the Clear BSD, but doesn't use its SPDX ID or Name
|
||||
if license["id"] == "bsd-3-clause-clear"
|
||||
let(:id) { "clearbsd" }
|
||||
end
|
||||
|
||||
it "should be approved by OSI or FSF or OD" do
|
||||
expect(approved_licenses).to include(id), "See https://git.io/vzCTV."
|
||||
end
|
||||
|
@ -88,6 +88,12 @@ def fsf_approved_licenses
|
||||
name = a.text.strip
|
||||
licenses[id] = name
|
||||
end
|
||||
|
||||
# FSF approved the Clear BSD, but doesn't use its SPDX ID or Name
|
||||
if licenses.keys.include? "clearbsd"
|
||||
licenses["bsd-3-clause-clear"] = licenses["clearbsd"]
|
||||
end
|
||||
|
||||
licenses
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user