1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-06 09:35:44 +01:00

Merge pull request #1240 from github/test-fixes

update ruby version in tests to match gh pages version
This commit is contained in:
Mike Linksvayer 2024-08-30 12:10:07 -07:00 committed by GitHub
commit 2ab4f2b93c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.4
ruby-version: 3.3.4
bundler-cache: true
- name: Run tests

View File

@ -1,6 +1,6 @@
AllCops:
NewCops: enable
TargetRubyVersion: 2.7
TargetRubyVersion: 3.3
Exclude:
- _site/**/*
- vendor/**/*

View File

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

View File

@ -27,7 +27,7 @@ end
def config
SpecHelper.config ||= begin
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)
end
end