From 98355c757164bf003cb8a8a47c33bed8ed10e32c Mon Sep 17 00:00:00 2001 From: Mike Linksvayer Date: Thu, 17 Mar 2016 17:30:47 -0700 Subject: [PATCH] upgrade to html-proofer 3 --- Gemfile | 2 +- Rakefile | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index dc0e671..66b1bc6 100644 --- a/Gemfile +++ b/Gemfile @@ -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' diff --git a/Rakefile b/Rakefile index 3eb410c..9cf7614 100644 --- a/Rakefile +++ b/Rakefile @@ -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