mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 21:00:10 +01:00
commit
388481d75e
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -13,6 +13,8 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
|
@ -8,7 +8,7 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of
|
|||||||
|
|
||||||
using:
|
using:
|
||||||
caniuse: https://github.com/Fyrd/caniuse/blob/master/LICENSE
|
caniuse: https://github.com/Fyrd/caniuse/blob/master/LICENSE
|
||||||
WHATWG HTML standard: https://github.com/whatwg/html/blob/master/LICENSE
|
FiveThirtyEight data: https://github.com/fivethirtyeight/data/blob/master/LICENSE
|
||||||
Kubernetes documentation: https://github.com/kubernetes/website/blob/master/LICENSE
|
Kubernetes documentation: https://github.com/kubernetes/website/blob/master/LICENSE
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: ODC Open Database License v1.0
|
title: Open Data Commons Open Database License v1.0
|
||||||
spdx-id: ODbL-1.0
|
spdx-id: ODbL-1.0
|
||||||
nickname: ODbL
|
nickname: ODbL
|
||||||
|
|
||||||
|
@ -33,13 +33,11 @@ def config
|
|||||||
end
|
end
|
||||||
|
|
||||||
def licenses
|
def licenses
|
||||||
SpecHelper.licenses ||= begin
|
SpecHelper.licenses ||= site.collections['licenses'].docs.map do |license|
|
||||||
site.collections['licenses'].docs.map do |license|
|
|
||||||
spdx_lcase = File.basename(license.basename, '.txt')
|
spdx_lcase = File.basename(license.basename, '.txt')
|
||||||
license.to_liquid.merge('spdx-lcase' => spdx_lcase)
|
license.to_liquid.merge('spdx-lcase' => spdx_lcase)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def shown_licenses
|
def shown_licenses
|
||||||
licenses.reject { |l| l['hidden'] }
|
licenses.reject { |l| l['hidden'] }
|
||||||
@ -139,6 +137,7 @@ module Licensee
|
|||||||
dir = ::File.dirname(__FILE__)
|
dir = ::File.dirname(__FILE__)
|
||||||
::File.expand_path '../_licenses', dir
|
::File.expand_path '../_licenses', dir
|
||||||
end
|
end
|
||||||
|
|
||||||
def spdx_dir
|
def spdx_dir
|
||||||
::File.expand_path '../license-list-XML/src', __dir__
|
::File.expand_path '../license-list-XML/src', __dir__
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user