lib/licensee/license_meta.rb in licensee-9.9.2 vs lib/licensee/license_meta.rb in licensee-9.9.3
- old
+ new
@@ -51,7 +51,11 @@
# Backward compatibalize `#["spdx-id"]` calls to avoid a breaking change
def [](key)
key = 'spdx_id' if key == 'spdx-id'
super(key)
end
+
+ def source
+ "https://spdx.org/licenses/#{spdx_id}.html" if spdx_id
+ end
end
end