1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-21 12:20:10 +01:00

rubocop ruby 3 things

This commit is contained in:
Mike Linksvayer 2024-08-30 19:07:34 +00:00 committed by GitHub
parent fd5a9ec7fb
commit 8c856288c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ rows << :separator
eligible = !current && spdx && approved_licenses.include?(license) eligible = !current && spdx && approved_licenses.include?(license)
rows << ['Eligible', eligible] rows << ['Eligible', eligible]
puts Terminal::Table.new title: "License: #{license}", rows: rows puts Terminal::Table.new title: "License: #{license}", rows:
puts puts
puts "Code search: https://github.com/search?q=#{license}+filename%3ALICENSE&type=Code" puts "Code search: https://github.com/search?q=#{license}+filename%3ALICENSE&type=Code"

View File

@ -27,7 +27,7 @@ end
def config def config
SpecHelper.config ||= begin SpecHelper.config ||= begin
config = Jekyll::Configuration.new.read_config_file config_file config = Jekyll::Configuration.new.read_config_file config_file
config = Jekyll::Utils.deep_merge_hashes(config, source: source) config = Jekyll::Utils.deep_merge_hashes(config, source:)
Jekyll::Utils.deep_merge_hashes(Jekyll::Configuration::DEFAULTS, config) Jekyll::Utils.deep_merge_hashes(Jekyll::Configuration::DEFAULTS, config)
end end
end end