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

Allow bundle updae and tests to be run under ruby 3

This commit is contained in:
Mike Linksvayer 2021-04-04 23:02:13 -07:00
parent 0c4ee982e5
commit ec9bbeaeae
No known key found for this signature in database
GPG Key ID: 136DBD194F0080CF
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -6,7 +6,7 @@ require 'spec_helper'
require 'yaml' require 'yaml'
describe 'ruby version' do 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'] pages_ruby_version = pages_versions['ruby']
ci_config_file = '.github/workflows/test.yml' ci_config_file = '.github/workflows/test.yml'