diff --git a/.rubocop.yml b/.rubocop.yml index 4b122f8..8230cb9 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,5 @@ AllCops: - TargetRubyVersion: 2.5 + TargetRubyVersion: 2.7 Exclude: - _site/**/* - vendor/**/* diff --git a/.travis.yml b/.travis.yml index eb64d9a..23e20cd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ script: "./script/cibuild" #environment language: ruby rvm: - - 2.5.8 + - 2.7.1 addons: apt: diff --git a/_includes/footer.html b/_includes/footer.html index 4b453a7..d3097e6 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -9,7 +9,7 @@ Creative Commons Attribution 3.0 Unported License.
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 192d00e..d66c491 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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']