1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 12:50:24 +01:00

Merge branch 'gh-pages' into adius-patch-1

This commit is contained in:
Mike Linksvayer 2016-03-19 10:15:18 -07:00
commit 1f4bd4e8c5
2 changed files with 6 additions and 5 deletions

View File

@ -13,7 +13,7 @@ group :development do
end
group :test do
gem 'html-proofer', '~> 2.6'
gem 'html-proofer', '~> 3.0'
gem 'rake'
gem 'rspec'
gem 'nokogiri'

View File

@ -1,4 +1,4 @@
require 'html/proofer'
require 'html-proofer'
require 'rspec/core/rake_task'
desc 'Run specs'
@ -10,9 +10,10 @@ end
task :test do
sh 'bundle exec jekyll build'
Rake::Task['spec'].invoke
HTML::Proofer.new('./_site', check_html: true,
validation: { ignore_script_embeds: true },
href_swap: { %r{http://choosealicense.com} => '' }).run
HTMLProofer.check_directory('./_site',
check_html: true,
validation: { ignore_script_embeds: true },
url_swap: { %r{http://choosealicense.com} => '' }).run
end
task :approved_licenses do