Skip to content

Commit 4c67348

Browse files
committed
Avoid some warnings for rake tasks
1 parent 3f2f514 commit 4c67348

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Rakefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@ namespace :import do
129129
desc "Spiders #{HOST} and converts HTML to Markdown"
130130
task :pages do
131131
Spidr.site("http://#{HOST}/index.html") do |agent|
132-
agent.ignore_links_like /\/cgi-bin\//
133-
agent.ignore_links_like /\.cgi[\/]?$/
134-
agent.ignore_links_like /\/[a-z_]+\/feeds\//
135-
agent.ignore_links_like /\/[a-z_]+\/old-man\//
132+
agent.ignore_links_like(/\/cgi-bin\//)
133+
agent.ignore_links_like(/\.cgi[\/]?$/)
134+
agent.ignore_links_like(/\/[a-z_]+\/feeds\//)
135+
agent.ignore_links_like(/\/[a-z_]+\/old-man\//)
136136

137137
agent.every_ok_page do |page|
138138
local_path = url_to_path(page.url)

0 commit comments

Comments
 (0)