1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 12:50:24 +01:00

Merge pull request #757 from astagi/patch-1

Love is ❤️
This commit is contained in:
Mike Linksvayer 2020-07-23 12:33:15 -07:00 committed by GitHub
commit cadd29303e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
AllCops: AllCops:
TargetRubyVersion: 2.5 TargetRubyVersion: 2.7
Exclude: Exclude:
- _site/**/* - _site/**/*
- vendor/**/* - vendor/**/*

View File

@ -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:

View File

@ -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 &lt;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>

View File

@ -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']