Add hoe for gem support
This commit is contained in:
parent
a86f8ca56f
commit
64a3f9816d
|
@ -0,0 +1 @@
|
|||
doc
|
|
@ -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
|
46
Rakefile
46
Rakefile
|
@ -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
|
||||
|
||||
desc 'Test the webrat plugin.'
|
||||
Rake::TestTask.new(:test) do |t|
|
||||
t.pattern = 'test/**/*_test.rb'
|
||||
t.verbose = true
|
||||
end
|
||||
|
||||
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')
|
||||
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'
|
||||
|
||||
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")
|
||||
|
||||
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"
|
||||
end
|
||||
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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue