lib/spdx.rb in spdx-2.0.5 vs lib/spdx.rb in spdx-2.0.9

- old
+ new

@@ -196,24 +196,10 @@ end end @exceptions end - def self.aliases - @aliases = JSON.parse(File.read(File.expand_path("../aliases.json", __dir__))) unless defined?(@aliases) - @aliases - end - - def self.alias_exists?(string) - aliases.key?(string) - end - - def self.lookup_alias(string) - id = aliases[string] - lookup_license(id) - end - def self.license_exists?(id) licenses.key?(id.to_s) end def self.lookup_license(id) @@ -225,10 +211,10 @@ json = exceptions[id.to_s] Spdx::Exception.new(id.to_s, json["name"], json["isDeprecatedLicenseId"]) if json end def self.exception_exists?(id) - exceptions.has_key(id.to_s) + exceptions.key?(id.to_s) end def self.licenses unless defined?(@licenses) data = JSON.parse(File.read(File.expand_path("../licenses.json", __dir__)))