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

Merge pull request #821 from github/ruby3

Allow bundle updae and tests to be run under ruby 3
This commit is contained in:
Mike Linksvayer 2021-04-04 23:10:40 -07:00 committed by GitHub
commit b5a6416045
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -3,8 +3,8 @@
source 'https://rubygems.org'
require 'json'
require 'open-uri'
versions = JSON.parse(open('https://pages.github.com/versions.json').read)
require 'net/http'
versions = JSON.parse(Net::HTTP.get(URI('https://pages.github.com/versions.json')))
gem 'github-pages', versions['github-pages']

View File

@ -6,7 +6,7 @@ require 'spec_helper'
require 'yaml'
describe 'ruby version' do
pages_versions = JSON.parse(open('https://pages.github.com/versions.json').read)
pages_versions = JSON.parse(URI.open('https://pages.github.com/versions.json').read)
pages_ruby_version = pages_versions['ruby']
ci_config_file = '.github/workflows/test.yml'