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'
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'