Skip to content
Browse files

Added :try rake task, to test the gem against the given URL.

  • Loading branch information...
1 parent 30ae0e0 commit 94d323de7fe57e27fadcd82c87648951bce18cad @myronmarston myronmarston committed
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 94d323d

Please sign in to comment.
Something went wrong with that request. Please try again.