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 'rubygems'
require 'rake/testtask' require 'hoe'
require 'rake/rdoctask' require './lib/webrat.rb'
desc 'Default: run unit tests.' Hoe.new('webrat', Webrat::VERSION) do |p|
task :default => :test p.rubyforge_name = 'webrat'
p.author = ['Bryan Helmkamp', 'Seth Fitzsimmons']
desc 'Test the webrat plugin.' p.email = 'bryan@brynary.com'
Rake::TestTask.new(:test) do |t| p.summary = 'Ruby Acceptance Testing for Web applications'
t.pattern = 'test/**/*_test.rb'
t.verbose = true p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
end 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| p.test_globs = ['test/**/*_test.rb']
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Webrat'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end end
desc "Upload rdoc to brynary.com" desc "Upload rdoc to brynary.com"
task :publish_rdoc => :rdoc do task :publish_rdoc => :docs do
sh "scp -r rdoc/ brynary.com:/apps/uploads/webrat" sh "scp -r doc/ brynary.com:/apps/uploads/webrat"
end 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", "rails_extensions")
require File.join(File.dirname(__FILE__), "webrat", "session") require File.join(File.dirname(__FILE__), "webrat", "session")
class Webrat
VERSION = '0.2.0'
end