Permalink
Browse files

Migrated off of Hoe and onto Jeweler, for building/releasing Spidr.

  • Loading branch information...
1 parent 6de444b commit 29c6e6b3fb9a20aac9cb2dcfcf1e29dd5499fc3c @postmodern postmodern committed Feb 11, 2010
Showing with 185 additions and 92 deletions.
  1. +1 −0 .specopts
  2. +1 −0 .yardopts
  3. 0 History.md → ChangeLog.md
  4. +22 −0 LICENSE.txt
  5. +0 −39 Manifest.txt
  6. +11 −31 README.md
  7. +37 −22 Rakefile
  8. +113 −0 spidr.gemspec
View
@@ -0,0 +1 @@
+--colour --format specdoc
View
@@ -0,0 +1 @@
+--markup markdown --title 'Spidr Documentation' --protected --files ChangeLog.md,LICENSE.txt
File renamed without changes.
View
@@ -0,0 +1,22 @@
+(The MIT License)
+
+Copyright (c) 2008-2010 Hal Brodigan
+
+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,39 +0,0 @@
-History.md
-Manifest.txt
-README.md
-Rakefile
-lib/spidr.rb
-lib/spidr/extensions.rb
-lib/spidr/extensions/uri.rb
-lib/spidr/page.rb
-lib/spidr/sanitizers.rb
-lib/spidr/rules.rb
-lib/spidr/filters.rb
-lib/spidr/events.rb
-lib/spidr/actions.rb
-lib/spidr/actions/exceptions.rb
-lib/spidr/actions/exceptions/action.rb
-lib/spidr/actions/exceptions/paused.rb
-lib/spidr/actions/exceptions/skip_link.rb
-lib/spidr/actions/exceptions/skip_page.rb
-lib/spidr/actions/actions.rb
-lib/spidr/session_cache.rb
-lib/spidr/cookie_jar.rb
-lib/spidr/auth_credential.rb
-lib/spidr/auth_store.rb
-lib/spidr/agent.rb
-lib/spidr/spidr.rb
-lib/spidr/version.rb
-spec/spec_helper.rb
-spec/helpers/history.rb
-spec/helpers/wsoc.rb
-spec/helpers/page.rb
-spec/extensions/uri_spec.rb
-spec/page_examples.rb
-spec/page_spec.rb
-spec/rules_spec.rb
-spec/sanitizers_spec.rb
-spec/filters_spec.rb
-spec/actions_spec.rb
-spec/agent_spec.rb
-spec/spidr_spec.rb
View
@@ -1,18 +1,18 @@
# Spidr
-* http://spidr.rubyforge.org/
-* http://github.com/postmodern/spidr
-* http://github.com/postmodern/spidr/issues
-* http://groups.google.com/group/spidr
+* [spidr.rubyforge.org](http://spidr.rubyforge.org/)
+* [github.com/postmodern/spidr](http://github.com/postmodern/spidr)
+* [github.com/postmodern/spidr/issues](http://github.com/postmodern/spidr/issues)
+* [groups.google.com/group/spidr](http://groups.google.com/group/spidr)
* irc.freenode.net #spidr
-## DESCRIPTION:
+## Description
Spidr is a versatile Ruby web spidering library that can spider a site,
multiple domains, certain links or infinitely. Spidr is designed to be fast
and easy to use.
-## FEATURES:
+## Features
* Follows:
* a tags.
@@ -41,7 +41,7 @@ and easy to use.
* Custom proxy settings.
* HTTPS support.
-## EXAMPLES:
+## Examples
Start spidering from a URL:
@@ -147,35 +147,15 @@ Skip the processing of links:
end
end
-## REQUIREMENTS:
+## Requirements
* [nokogiri](http://nokogiri.rubyforge.org/) >= 1.2.0
-## INSTALL:
+## Install
$ sudo gem install spidr
-## LICENSE:
+## License
-The MIT License
+See {file:LICENSE.txt} for license information.
-Copyright (c) 2008-2010 Hal Brodigan
-
-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,28 +1,43 @@
-# -*- ruby -*-
-
require 'rubygems'
-require 'hoe'
-require 'hoe/signing'
-
-Hoe.plugin :yard
-
-Hoe.spec('spidr') do
- self.developer('Postmodern', 'postmodern.mod3@gmail.com')
+require 'rake'
+require './lib/spidr/version.rb'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = 'spidr'
+ gem.version = Spidr::VERSION
+ gem.summary = %Q{A versatile Ruby web spidering library}
+ gem.description = %Q{Spidr is a versatile Ruby web spidering library that can spider a site, multiple domains, certain links or infinitely. Spidr is designed to be fast and easy to use.}
+ gem.email = 'postmodern.mod3@gmail.com'
+ gem.homepage = 'http://github.com/postmodern/spidr'
+ gem.authors = ['Postmodern']
+ gem.add_dependency 'nokogiri', '>= 1.2.0'
+ gem.add_development_dependency 'rspec', '>= 1.3.0'
+ gem.add_development_dependency 'yard', '>= 0.5.3'
+ gem.add_development_dependency 'wsoc', '>= 0.1.1'
+ gem.has_rdoc = 'yard'
+ end
+rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
+end
- self.rspec_options += ['--colour', '--format', 'specdoc']
+require 'spec/rake/spectask'
+Spec::Rake::SpecTask.new(:spec) do |spec|
+ spec.libs += ['lib', 'spec']
+ spec.spec_files = FileList['spec/**/*_spec.rb']
+ spec.spec_opts = ['--options', '.specopts']
+end
- self.yard_options += ['--markup', 'markdown', '--protected']
- self.remote_yard_dir = 'docs'
+task :spec => :check_dependencies
+task :default => :spec
- self.extra_deps = [
- ['nokogiri', '>=1.2.0']
- ]
+begin
+ require 'yard'
- self.extra_dev_deps += [
- ['rspec', '>=1.2.8'],
- ['yard', '>=0.5.3'],
- ['wsoc', '>=0.1.1']
- ]
+ YARD::Rake::YardocTask.new
+rescue LoadError
+ task :yard do
+ abort "YARD is not available. In order to run yard, you must: gem install yard"
+ end
end
-
-# vim: syntax=Ruby
View
@@ -0,0 +1,113 @@
+# Generated by jeweler
+# DO NOT EDIT THIS FILE DIRECTLY
+# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{spidr}
+ s.version = "0.2.3"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Postmodern"]
+ s.date = %q{2010-02-11}
+ s.description = %q{Spidr is a versatile Ruby web spidering library that can spider a site, multiple domains, certain links or infinitely. Spidr is designed to be fast and easy to use.}
+ s.email = %q{postmodern.mod3@gmail.com}
+ s.extra_rdoc_files = [
+ "ChangeLog.md",
+ "LICENSE.txt",
+ "README.md"
+ ]
+ s.files = [
+ ".gitignore",
+ ".specopts",
+ ".yardopts",
+ "ChangeLog.md",
+ "LICENSE.txt",
+ "README.md",
+ "Rakefile",
+ "lib/spidr.rb",
+ "lib/spidr/actions.rb",
+ "lib/spidr/actions/actions.rb",
+ "lib/spidr/actions/exceptions.rb",
+ "lib/spidr/actions/exceptions/action.rb",
+ "lib/spidr/actions/exceptions/paused.rb",
+ "lib/spidr/actions/exceptions/skip_link.rb",
+ "lib/spidr/actions/exceptions/skip_page.rb",
+ "lib/spidr/agent.rb",
+ "lib/spidr/auth_credential.rb",
+ "lib/spidr/auth_store.rb",
+ "lib/spidr/cookie_jar.rb",
+ "lib/spidr/events.rb",
+ "lib/spidr/extensions.rb",
+ "lib/spidr/extensions/uri.rb",
+ "lib/spidr/filters.rb",
+ "lib/spidr/page.rb",
+ "lib/spidr/rules.rb",
+ "lib/spidr/sanitizers.rb",
+ "lib/spidr/session_cache.rb",
+ "lib/spidr/spidr.rb",
+ "lib/spidr/version.rb",
+ "spec/actions_spec.rb",
+ "spec/agent_spec.rb",
+ "spec/auth_store_spec.rb",
+ "spec/cookie_jar_spec.rb",
+ "spec/extensions/uri_spec.rb",
+ "spec/filters_spec.rb",
+ "spec/helpers/history.rb",
+ "spec/helpers/page.rb",
+ "spec/helpers/wsoc.rb",
+ "spec/page_examples.rb",
+ "spec/page_spec.rb",
+ "spec/rules_spec.rb",
+ "spec/sanitizers_spec.rb",
+ "spec/spec_helper.rb",
+ "spec/spidr_spec.rb",
+ "spidr.gemspec"
+ ]
+ s.has_rdoc = %q{yard}
+ s.homepage = %q{http://github.com/postmodern/spidr}
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.5}
+ s.summary = %q{A versatile Ruby web spidering library}
+ s.test_files = [
+ "spec/agent_spec.rb",
+ "spec/helpers/history.rb",
+ "spec/helpers/wsoc.rb",
+ "spec/helpers/page.rb",
+ "spec/spec_helper.rb",
+ "spec/extensions/uri_spec.rb",
+ "spec/page_spec.rb",
+ "spec/spidr_spec.rb",
+ "spec/sanitizers_spec.rb",
+ "spec/page_examples.rb",
+ "spec/filters_spec.rb",
+ "spec/actions_spec.rb",
+ "spec/rules_spec.rb",
+ "spec/auth_store_spec.rb",
+ "spec/cookie_jar_spec.rb"
+ ]
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<nokogiri>, [">= 1.2.0"])
+ s.add_development_dependency(%q<rspec>, [">= 1.3.0"])
+ s.add_development_dependency(%q<yard>, [">= 0.5.3"])
+ s.add_development_dependency(%q<wsoc>, [">= 0.1.1"])
+ else
+ s.add_dependency(%q<nokogiri>, [">= 1.2.0"])
+ s.add_dependency(%q<rspec>, [">= 1.3.0"])
+ s.add_dependency(%q<yard>, [">= 0.5.3"])
+ s.add_dependency(%q<wsoc>, [">= 0.1.1"])
+ end
+ else
+ s.add_dependency(%q<nokogiri>, [">= 1.2.0"])
+ s.add_dependency(%q<rspec>, [">= 1.3.0"])
+ s.add_dependency(%q<yard>, [">= 0.5.3"])
+ s.add_dependency(%q<wsoc>, [">= 0.1.1"])
+ end
+end
+

0 comments on commit 29c6e6b

Please sign in to comment.