mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
Merge branch 'gh-pages' into epl-2.0
This commit is contained in:
commit
7b6067ed2c
@ -5,7 +5,7 @@ script: "./script/cibuild"
|
|||||||
#environment
|
#environment
|
||||||
language: ruby
|
language: ruby
|
||||||
rvm:
|
rvm:
|
||||||
- 2.4.0
|
- 2.4.2
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: BSD 2-clause "Simplified" License
|
title: BSD 2-Clause "Simplified" License
|
||||||
spdx-id: BSD-2-Clause
|
spdx-id: BSD-2-Clause
|
||||||
redirect_from: /licenses/bsd/
|
redirect_from: /licenses/bsd/
|
||||||
source: https://opensource.org/licenses/BSD-2-Clause
|
source: https://opensource.org/licenses/BSD-2-Clause
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: BSD 3-clause Clear License
|
title: BSD 3-Clause Clear License
|
||||||
spdx-id: BSD-3-Clause-Clear
|
spdx-id: BSD-3-Clause-Clear
|
||||||
source: https://spdx.org/licenses/BSD-3-Clause-Clear.html
|
source: https://spdx.org/licenses/BSD-3-Clause-Clear.html
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: BSD 3-clause "New" or "Revised" License
|
title: BSD 3-Clause "New" or "Revised" License
|
||||||
spdx-id: BSD-3-Clause
|
spdx-id: BSD-3-Clause
|
||||||
source: https://opensource.org/licenses/BSD-3-Clause
|
source: https://opensource.org/licenses/BSD-3-Clause
|
||||||
hidden: false
|
hidden: false
|
||||||
|
@ -32,8 +32,8 @@ University of Illinois/NCSA Open Source License
|
|||||||
|
|
||||||
Copyright (c) [year] [fullname]. All rights reserved.
|
Copyright (c) [year] [fullname]. All rights reserved.
|
||||||
|
|
||||||
Developed by: [fullname]
|
Developed by: [project]
|
||||||
[project]
|
[fullname]
|
||||||
[project_url]
|
[project_url]
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person
|
Permission is hereby granted, free of charge, to any person
|
||||||
|
@ -71,8 +71,13 @@ def rule?(tag, group)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def spdx_list
|
def spdx_list
|
||||||
url = 'https://raw.githubusercontent.com/sindresorhus/spdx-license-list/master/spdx.json'
|
SpecHelper.spdx ||= begin
|
||||||
SpecHelper.spdx ||= JSON.parse(open(url).read)
|
url = 'https://spdx.org/licenses/licenses.json'
|
||||||
|
list = JSON.parse(open(url).read)['licenses']
|
||||||
|
list.each_with_object({}) do |values, memo|
|
||||||
|
memo[values['licenseId']] = values
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def spdx_ids
|
def spdx_ids
|
||||||
@ -86,7 +91,7 @@ end
|
|||||||
def osi_approved_licenses
|
def osi_approved_licenses
|
||||||
SpecHelper.osi_approved_licenses ||= begin
|
SpecHelper.osi_approved_licenses ||= begin
|
||||||
licenses = {}
|
licenses = {}
|
||||||
list = spdx_list.select { |_id, meta| meta['osiApproved'] }
|
list = spdx_list.select { |_id, meta| meta['isOsiApproved'] }
|
||||||
list.each do |id, meta|
|
list.each do |id, meta|
|
||||||
licenses[id.downcase] = meta['name']
|
licenses[id.downcase] = meta['name']
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user