mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
commit
cadd29303e
@ -1,5 +1,5 @@
|
||||
AllCops:
|
||||
TargetRubyVersion: 2.5
|
||||
TargetRubyVersion: 2.7
|
||||
Exclude:
|
||||
- _site/**/*
|
||||
- vendor/**/*
|
||||
|
@ -5,7 +5,7 @@ script: "./script/cibuild"
|
||||
#environment
|
||||
language: ruby
|
||||
rvm:
|
||||
- 2.5.8
|
||||
- 2.7.1
|
||||
|
||||
addons:
|
||||
apt:
|
||||
|
@ -9,7 +9,7 @@
|
||||
Creative Commons Attribution 3.0 Unported License</a>.
|
||||
</p>
|
||||
<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>
|
||||
</footer>
|
||||
|
||||
|
@ -105,7 +105,7 @@ def fsf_approved_licenses
|
||||
object = JSON.parse(OpenURI.open_uri(url).read)
|
||||
licenses = {}
|
||||
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|
|
||||
licenses[identifier.downcase] = meta['name']
|
||||
|
Loading…
x
Reference in New Issue
Block a user