mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +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
|
end
|
||||||
|
|
||||||
context "industry approval" do
|
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
|
it "should be approved by OSI or FSF or OD" do
|
||||||
expect(approved_licenses).to include(id), "See https://git.io/vzCTV."
|
expect(approved_licenses).to include(id), "See https://git.io/vzCTV."
|
||||||
end
|
end
|
||||||
|
@ -88,6 +88,12 @@ def fsf_approved_licenses
|
|||||||
name = a.text.strip
|
name = a.text.strip
|
||||||
licenses[id] = name
|
licenses[id] = name
|
||||||
end
|
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
|
licenses
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user