Permalink
Browse files

* added LICENSE

 * added .gemspec
 * added docs
  • Loading branch information...
1 parent a3ecb2a commit a15d9abeaf7d9f5a25f8d12e96f827598899a421 @youpy committed Jul 1, 2008
Showing with 79 additions and 14 deletions.
  1. +3 −0 .gitignore
  2. +20 −0 LICENSE
  3. +11 −7 README
  4. +12 −7 Rakefile
  5. +33 −0 www-favicon.gemspec
View
@@ -0,0 +1,3 @@
+html
+pkg
+coverage
View
@@ -0,0 +1,20 @@
+Copyright (c) 2008 youpy
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -1,29 +1,33 @@
= www-favicon
-
== Description
-
+library for finding favicon from specific URL
== Installation
=== Archive Installation
- rake install
+ rake install
=== Gem Installation
- gem install wwwfavicon
+ gem install www-favicon
== Features/Problems
== Synopsis
+
+ require 'rubygems'
+ require 'www-favicon'
+ favicon = WWW::Favicon.new
+ favicon_url = favicon.find('http://www.google.com/')
== Copyright
-Author:: youpy <youpy@>
-Copyright:: Copyright (c) 2008 youpy
-License::
+Author:: youpy <youpy@buycheapviagraonlinenow.com>
+Copyright:: Copyright (c) 2008 youpy
+License:: The MIT License
View
@@ -1,7 +1,7 @@
require 'rubygems'
require 'rake'
require 'rake/clean'
-require 'rake/testtask'
+require 'spec/rake/spectask'
require 'rake/packagetask'
require 'rake/gempackagetask'
require 'rake/rdoctask'
@@ -13,7 +13,7 @@ include FileUtils
NAME = "www-favicon"
AUTHOR = "youpy"
EMAIL = "youpy@buycheapviagraonlinenow.com"
-DESCRIPTION = "detect favicon url"
+DESCRIPTION = "find favicon url"
RUBYFORGE_PROJECT = "wwwfavicon"
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
BIN_FILES = %w( )
@@ -30,13 +30,13 @@ RDOC_OPTS = [
"--inline-source",
]
-task :default => [:test]
+task :default => [:spec]
task :package => [:clean]
-Rake::TestTask.new("test") do |t|
- t.libs << "test"
- t.pattern = "test/**/*_test.rb"
- t.verbose = true
+Spec::Rake::SpecTask.new do |t|
+ t.spec_opts = ['--options', "spec/spec.opts"]
+ t.spec_files = FileList['spec/*_spec.rb']
+ t.rcov = true
end
spec = Gem::Specification.new do |s|
@@ -129,3 +129,8 @@ task :release => [:clean, :package] do |t|
puts "Releasing #{NAME} v. #{VERS}"
rf.add_release RUBYFORGE_PROJECT, NAME, VERS, *files
end
+
+desc 'Show information about the gem.'
+task :debug_gem do
+ puts spec.to_ruby
+end
View
@@ -0,0 +1,33 @@
+Gem::Specification.new do |s|
+ s.name = %q{www-favicon}
+ s.version = "0.0.1"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["youpy"]
+ s.autorequire = %q{}
+ s.date = %q{2008-07-02}
+ s.description = %q{find favicon url}
+ s.email = %q{youpy@buycheapviagraonlinenow.com}
+ s.extra_rdoc_files = ["README", "ChangeLog"]
+ s.files = ["README", "ChangeLog", "Rakefile", "lib/www", "lib/www/favicon.rb"]
+ s.has_rdoc = true
+ s.homepage = %q{http://wwwfavicon.rubyforge.org}
+ s.rdoc_options = ["--title", "www-favicon documentation", "--charset", "utf-8", "--opname", "index.html", "--line-numbers", "--main", "README", "--inline-source", "--exclude", "^(examples|extras)/"]
+ s.require_paths = ["lib"]
+ s.rubyforge_project = %q{wwwfavicon}
+ s.rubygems_version = %q{1.2.0}
+ s.summary = %q{find favicon url}
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 2
+
+ if current_version >= 3 then
+ s.add_runtime_dependency(%q<hpricot>, [">= 0"])
+ else
+ s.add_dependency(%q<hpricot>, [">= 0"])
+ end
+ else
+ s.add_dependency(%q<hpricot>, [">= 0"])
+ end
+end

0 comments on commit a15d9ab

Please sign in to comment.