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:
parent
0c4ee982e5
commit
ec9bbeaeae
4
Gemfile
4
Gemfile
@ -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']
|
||||||
|
|
||||||
|
@ -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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user