Browse files

Merge commit '94d323'

  • Loading branch information...
2 parents 0c390ed + 94d323d commit c55f4903bff731e066f3b270c80d0f1acac749b3 @youpy committed Nov 16, 2009
Showing with 12 additions and 0 deletions.
  1. +12 −0 Rakefile
View
12 Rakefile
@@ -103,3 +103,15 @@ desc 'Show information about the gem.'
task :debug_gem do
puts spec.to_ruby
end
+
+desc 'Test against the provided URL'
+task :try do
+ url = ENV['URL']
+ raise "URL is required." unless url
+
+ require 'rubygems'
+ require 'www/favicon'
+
+ favicon_url = WWW::Favicon.new.find(url)
+ puts "Favicon URL for #{url} is #{favicon_url.inspect}"
+end

0 comments on commit c55f490

Please sign in to comment.