diff --git a/Gemfile.lock b/Gemfile.lock index 5c30a7ff..87faf48d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - bolognese (2.3.5) + bolognese (2.3.6) activesupport (>= 4.2.5) benchmark_methods (~> 0.7) bibtex-ruby (>= 5.1.0) diff --git a/lib/bolognese/utils.rb b/lib/bolognese/utils.rb index 07b0aa9c..50b53943 100644 --- a/lib/bolognese/utils.rb +++ b/lib/bolognese/utils.rb @@ -1293,7 +1293,7 @@ def name_to_spdx(name) def hsh_to_spdx(hsh) spdx = resource_json(:spdx).fetch("licenses") - license = spdx.find { |l| l["licenseId"].casecmp?(hsh["rightsIdentifier"]) || l["seeAlso"].first == normalize_cc_url(hsh["rightsURI"]) || l["name"] == hsh["rights"] || l["seeAlso"].first == normalize_cc_url(hsh["rights"]) } + license = spdx.find { |l| l["licenseId"].casecmp?(hsh["rightsIdentifier"]) || l["seeAlso"].first == normalize_cc_url(hsh["rightsUri"]) || l["seeAlso"].first == normalize_cc_url(hsh["rightsURI"]) || l["name"] == hsh["rights"] || l["seeAlso"].first == normalize_cc_url(hsh["rights"]) } if license { diff --git a/lib/bolognese/version.rb b/lib/bolognese/version.rb index 4d40d5f0..682dc5a4 100644 --- a/lib/bolognese/version.rb +++ b/lib/bolognese/version.rb @@ -1,3 +1,3 @@ module Bolognese - VERSION = "2.3.5" + VERSION = "2.3.6" end