mirror of
https://github.com/github/choosealicense.com
synced 2024-12-21 20:30:10 +01:00
rubocop fixes
This commit is contained in:
parent
9a138e1ef3
commit
07e3e9521f
@ -33,11 +33,9 @@ def config
|
||||
end
|
||||
|
||||
def licenses
|
||||
SpecHelper.licenses ||= begin
|
||||
site.collections['licenses'].docs.map do |license|
|
||||
spdx_lcase = File.basename(license.basename, '.txt')
|
||||
license.to_liquid.merge('spdx-lcase' => spdx_lcase)
|
||||
end
|
||||
SpecHelper.licenses ||= site.collections['licenses'].docs.map do |license|
|
||||
spdx_lcase = File.basename(license.basename, '.txt')
|
||||
license.to_liquid.merge('spdx-lcase' => spdx_lcase)
|
||||
end
|
||||
end
|
||||
|
||||
@ -139,6 +137,7 @@ module Licensee
|
||||
dir = ::File.dirname(__FILE__)
|
||||
::File.expand_path '../_licenses', dir
|
||||
end
|
||||
|
||||
def spdx_dir
|
||||
::File.expand_path '../license-list-XML/src', __dir__
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user