diff --git a/lib/html/proofer.rb b/lib/html/proofer.rb
index 2766b16d..8df33de0 100644
--- a/lib/html/proofer.rb
+++ b/lib/html/proofer.rb
@@ -23,6 +23,13 @@ class Proofer
attr_reader :options, :typhoeus_opts, :hydra_opts, :parallel_opts
+ TYPHOEUS_DEFAULTS = {
+ :followlocation => true,
+ :headers => {
+ "User-Agent" => "Mozilla/5.0 (compatible; HTML Proofer/#{VERSION}; +https://github.com/gjtorikian/html-proofer)"
+ }
+ }
+
def initialize(src, opts = {})
@src = src
@@ -43,12 +50,7 @@ def initialize(src, opts = {})
:checks_to_ignore => []
}
- @typhoeus_opts = opts[:typhoeus] || {
- :followlocation => true,
- :headers => {
- "User-Agent" => "Mozilla/5.0 (compatible; HTML Proofer/#{VERSION}; +https://github.com/gjtorikian/html-proofer)"
- }
- }
+ @typhoeus_opts = TYPHOEUS_DEFAULTS.merge(opts[:typhoeus] || {})
opts.delete(:typhoeus)
@hydra_opts = opts[:hydra] || {}
diff --git a/script/bootstrap b/script/bootstrap
new file mode 100755
index 00000000..bfe3dc50
--- /dev/null
+++ b/script/bootstrap
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+set -e
+
+bundle install "$@"