Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add hoe for gem support

  • Loading branch information...
commit 64a3f9816da08cad3c50441790e9b5442014cb7d 1 parent a86f8ca
@brynary authored
View
1  .gitignore
@@ -0,0 +1 @@
+doc
View
0  CHANGELOG → History.txt
File renamed without changes
View
0  MIT-LICENSE → MIT-LICENSE.txt
File renamed without changes
View
18 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
View
0  README → README.txt
File renamed without changes
View
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
View
0  TODO → TODO.txt
File renamed without changes
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.