From 64a3f9816da08cad3c50441790e9b5442014cb7d Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Sun, 2 Mar 2008 19:35:46 -0500 Subject: [PATCH] Add hoe for gem support --- .gitignore | 1 + CHANGELOG => History.txt | 0 MIT-LICENSE => MIT-LICENSE.txt | 0 Manifest.txt | 18 +++++++++++++ README => README.txt | 0 Rakefile | 46 ++++++++++++++++++---------------- TODO => TODO.txt | 0 lib/webrat.rb | 4 +++ 8 files changed, 47 insertions(+), 22 deletions(-) create mode 100644 .gitignore rename CHANGELOG => History.txt (100%) rename MIT-LICENSE => MIT-LICENSE.txt (100%) create mode 100644 Manifest.txt rename README => README.txt (100%) rename TODO => TODO.txt (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..325ab0d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +doc \ No newline at end of file diff --git a/CHANGELOG b/History.txt similarity index 100% rename from CHANGELOG rename to History.txt diff --git a/MIT-LICENSE b/MIT-LICENSE.txt similarity index 100% rename from MIT-LICENSE rename to MIT-LICENSE.txt diff --git a/Manifest.txt b/Manifest.txt new file mode 100644 index 0000000..6067843 --- /dev/null +++ b/Manifest.txt @@ -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 diff --git a/README b/README.txt similarity index 100% rename from README rename to README.txt diff --git a/Rakefile b/Rakefile index a559268..1da0a2d 100644 --- a/Rakefile +++ b/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 \ No newline at end of file +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 diff --git a/TODO b/TODO.txt similarity index 100% rename from TODO rename to TODO.txt diff --git a/lib/webrat.rb b/lib/webrat.rb index 6c695dc..3fd3a64 100644 --- a/lib/webrat.rb +++ b/lib/webrat.rb @@ -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 \ No newline at end of file