Add hoe for gem support

This commit is contained in:
Bryan Helmkamp 2008-03-02 19:35:46 -05:00
parent a86f8ca56f
commit 64a3f9816d
8 changed files with 47 additions and 22 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
doc

18
Manifest.txt Normal file
View File

@ -0,0 +1,18 @@
History.txt
MIT-LICENSE.txt
Manifest.txt
README.txt
Rakefile
TODO.txt
init.rb
install.rb
lib/webrat.rb
lib/webrat/rails_extensions.rb
lib/webrat/session.rb
test/checks_test.rb
test/clicks_button_test.rb
test/clicks_link_test.rb
test/fills_in_test.rb
test/helper.rb
test/selects_test.rb
test/visits_test.rb

View File

View File

@ -1,26 +1,28 @@
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rubygems'
require 'hoe'
require './lib/webrat.rb'
desc 'Default: run unit tests.'
task :default => :test
Hoe.new('webrat', Webrat::VERSION) do |p|
p.rubyforge_name = 'webrat'
p.author = ['Bryan Helmkamp', 'Seth Fitzsimmons']
p.email = 'bryan@brynary.com'
p.summary = 'Ruby Acceptance Testing for Web applications'
desc 'Test the webrat plugin.'
Rake::TestTask.new(:test) do |t|
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
desc 'Generate RDoc documentation for the Webrat plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Webrat'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
p.test_globs = ['test/**/*_test.rb']
end
desc "Upload rdoc to brynary.com"
task :publish_rdoc => :rdoc do
sh "scp -r rdoc/ brynary.com:/apps/uploads/webrat"
task :publish_rdoc => :docs do
sh "scp -r doc/ brynary.com:/apps/uploads/webrat"
end
# desc 'Generate RDoc documentation for the Webrat plugin.'
# Rake::RDocTask.new(:rdoc) do |rdoc|
# rdoc.options << '--line-numbers' << '--inline-source'
# rdoc.rdoc_files.include('README')
# rdoc.rdoc_files.include('lib/**/*.rb')
# end

View File

View File

@ -1,2 +1,6 @@
require File.join(File.dirname(__FILE__), "webrat", "rails_extensions")
require File.join(File.dirname(__FILE__), "webrat", "session")
class Webrat
VERSION = '0.2.0'
end