mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +01:00
commit
cadd29303e
@ -1,5 +1,5 @@
|
|||||||
AllCops:
|
AllCops:
|
||||||
TargetRubyVersion: 2.5
|
TargetRubyVersion: 2.7
|
||||||
Exclude:
|
Exclude:
|
||||||
- _site/**/*
|
- _site/**/*
|
||||||
- vendor/**/*
|
- vendor/**/*
|
||||||
|
@ -5,7 +5,7 @@ script: "./script/cibuild"
|
|||||||
#environment
|
#environment
|
||||||
language: ruby
|
language: ruby
|
||||||
rvm:
|
rvm:
|
||||||
- 2.5.8
|
- 2.7.1
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
Creative Commons Attribution 3.0 Unported License</a>.
|
Creative Commons Attribution 3.0 Unported License</a>.
|
||||||
</p>
|
</p>
|
||||||
<div class="with-love">
|
<div class="with-love">
|
||||||
Curated with <3 by <a href="https://github.com">GitHub, Inc.</a> and <a href="https://github.com/github/choosealicense.com">You!</a>
|
Curated with ❤️ by <a href="https://github.com">GitHub, Inc.</a> and <a href="https://github.com/github/choosealicense.com">You!</a>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ def fsf_approved_licenses
|
|||||||
object = JSON.parse(OpenURI.open_uri(url).read)
|
object = JSON.parse(OpenURI.open_uri(url).read)
|
||||||
licenses = {}
|
licenses = {}
|
||||||
object['licenses'].each_value do |meta|
|
object['licenses'].each_value do |meta|
|
||||||
next unless (meta.include? 'identifiers') && (meta['identifiers'].include? 'spdx') && (meta.include? 'tags') && (meta['tags'].include? 'libre')
|
next unless meta.dig('identifiers', 'spdx') && (meta.include? 'tags') && (meta['tags'].include? 'libre')
|
||||||
|
|
||||||
meta['identifiers']['spdx'].each do |identifier|
|
meta['identifiers']['spdx'].each do |identifier|
|
||||||
licenses[identifier.downcase] = meta['name']
|
licenses[identifier.downcase] = meta['name']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user