mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 21:00:10 +01:00
Merge pull request #374 from github/html-proofer-3.0
upgrade to html-proofer 3
This commit is contained in:
commit
a3ec95b539
2
Gemfile
2
Gemfile
@ -13,7 +13,7 @@ group :development do
|
|||||||
end
|
end
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
gem 'html-proofer', '~> 2.6'
|
gem 'html-proofer', '~> 3.0'
|
||||||
gem 'rake'
|
gem 'rake'
|
||||||
gem 'rspec'
|
gem 'rspec'
|
||||||
gem 'nokogiri'
|
gem 'nokogiri'
|
||||||
|
7
Rakefile
7
Rakefile
@ -1,4 +1,4 @@
|
|||||||
require 'html/proofer'
|
require 'html-proofer'
|
||||||
require 'rspec/core/rake_task'
|
require 'rspec/core/rake_task'
|
||||||
|
|
||||||
desc 'Run specs'
|
desc 'Run specs'
|
||||||
@ -10,9 +10,10 @@ end
|
|||||||
task :test do
|
task :test do
|
||||||
sh 'bundle exec jekyll build'
|
sh 'bundle exec jekyll build'
|
||||||
Rake::Task['spec'].invoke
|
Rake::Task['spec'].invoke
|
||||||
HTML::Proofer.new('./_site', check_html: true,
|
HTMLProofer.check_directory('./_site',
|
||||||
|
check_html: true,
|
||||||
validation: { ignore_script_embeds: true },
|
validation: { ignore_script_embeds: true },
|
||||||
href_swap: { %r{http://choosealicense.com} => '' }).run
|
url_swap: { %r{http://choosealicense.com} => '' }).run
|
||||||
end
|
end
|
||||||
|
|
||||||
task :approved_licenses do
|
task :approved_licenses do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user