public
Description: Webrat - Ruby Acceptance Testing for Web applications
Homepage: http://www.brynary.com/uploads/webrat/rdoc/index.html
Clone URL: git://github.com/brynary/webrat.git
Search Repo:
Add hoe for gem support
brynary (author)
Sun Mar 02 16:35:46 -0800 2008
commit  64a3f9816da08cad3c50441790e9b5442014cb7d
tree    530e1db8bcd216741c5a1df14cb3f323f686542e
parent  a86f8ca56fc044656ac93a9fabbf88a8df5916bd
...
1
2
3
 
 
 
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
 
 
 
 
 
 
 
 
 
 
21
22
23
24
25
26
27
 
 
 
 
 
 
 
 
 
 
...
 
 
 
1
2
3
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
 
 
19
20
21
22
23
24
25
26
27
28
29
0
@@ -1,26 +1,28 @@
0
-require 'rake'
0
-require 'rake/testtask'
0
-require 'rake/rdoctask'
0
+require 'rubygems'
0
+require 'hoe'
0
+require './lib/webrat.rb'
0
 
0
-desc 'Default: run unit tests.'
0
-task :default => :test
0
-
0
-desc 'Test the webrat plugin.'
0
-Rake::TestTask.new(:test) do |t|
0
- t.pattern = 'test/**/*_test.rb'
0
- t.verbose = true
0
-end
0
-
0
-desc 'Generate RDoc documentation for the Webrat plugin.'
0
-Rake::RDocTask.new(:rdoc) do |rdoc|
0
- rdoc.rdoc_dir = 'rdoc'
0
- rdoc.title = 'Webrat'
0
- rdoc.options << '--line-numbers' << '--inline-source'
0
- rdoc.rdoc_files.include('README')
0
- rdoc.rdoc_files.include('lib/**/*.rb')
0
+Hoe.new('webrat', Webrat::VERSION) do |p|
0
+ p.rubyforge_name = 'webrat'
0
+ p.author = ['Bryan Helmkamp', 'Seth Fitzsimmons']
0
+ p.email = 'bryan@brynary.com'
0
+ p.summary = 'Ruby Acceptance Testing for Web applications'
0
+
0
+ p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
0
+ p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
0
+ p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
0
+
0
+ p.test_globs = ['test/**/*_test.rb']
0
 end
0
 
0
 desc "Upload rdoc to brynary.com"
0
-task :publish_rdoc => :rdoc do
0
- sh "scp -r rdoc/ brynary.com:/apps/uploads/webrat"
0
-end
0
\ No newline at end of file
0
+task :publish_rdoc => :docs do
0
+ sh "scp -r doc/ brynary.com:/apps/uploads/webrat"
0
+end
0
+
0
+# desc 'Generate RDoc documentation for the Webrat plugin.'
0
+# Rake::RDocTask.new(:rdoc) do |rdoc|
0
+# rdoc.options << '--line-numbers' << '--inline-source'
0
+# rdoc.rdoc_files.include('README')
0
+# rdoc.rdoc_files.include('lib/**/*.rb')
0
+# end
...
1
2
 
 
 
 
3
...
1
2
3
4
5
6
7
0
@@ -1,2 +1,6 @@
0
 require File.join(File.dirname(__FILE__), "webrat", "rails_extensions")
0
 require File.join(File.dirname(__FILE__), "webrat", "session")
0
+
0
+class Webrat
0
+ VERSION = '0.2.0'
0
+end
0
\ No newline at end of file

Comments

    No one has commented yet.