Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 49 lines (37 sloc) 1.065 kb
8d085de @zenspider Updated History for 3.0 release.
zenspider authored
1 # -*- ruby -*-
2
77466e1 @zenspider Broke out method name mapping into own module.
zenspider authored
3 $: << 'lib'
86a854f @drbrain Rakefile for ZenTest.
drbrain authored
4
266b9d2 @zenspider Hoe'd the rakefile
zenspider authored
5 require 'rubygems'
6 require 'hoe'
9168ae5 @zenspider Final sweep for 3.1.0 release.
zenspider authored
7 require './lib/zentest.rb'
86a854f @drbrain Rakefile for ZenTest.
drbrain authored
8
266b9d2 @zenspider Hoe'd the rakefile
zenspider authored
9 Hoe.new("ZenTest", ZenTest::VERSION) do |p|
cd13375 @zenspider Fixed gem to do summary and description, filelist, homepage, and RF.
zenspider authored
10 paragraphs = File.read("README.txt").split(/\n\n+/)
11
266b9d2 @zenspider Hoe'd the rakefile
zenspider authored
12 p.author = ['Ryan Davis', 'Eric Hodel']
c470aca @zenspider Fixed up gem spec in rakefile.
zenspider authored
13
266b9d2 @zenspider Hoe'd the rakefile
zenspider authored
14 changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
15 summary, *description = p.paragraphs_of("README.txt", 3, 3..8)
86a854f @drbrain Rakefile for ZenTest.
drbrain authored
16
266b9d2 @zenspider Hoe'd the rakefile
zenspider authored
17 p.changes = changes
18 p.summary = summary
19 p.description = description.join("\n\n")
86a854f @drbrain Rakefile for ZenTest.
drbrain authored
20 end
21
b6dfd37 @zenspider Added autotest rake rule.
zenspider authored
22 task :autotest do
23 ruby "-Ilib ./bin/autotest"
be6df18 @zenspider Removed redundancies in rakefile. Using gem spec for most stuff now.
zenspider authored
24 end
8d085de @zenspider Updated History for 3.0 release.
zenspider authored
25
eded3a4 @zenspider Added automatic updating for example_dot_autotest.rb
zenspider authored
26 task :update do
27 File.open "example_dot_autotest.rb", "w" do |f|
28 f.puts "# -*- ruby -*-"
29 f.puts
30 Dir.chdir "lib" do
31 Dir["autotest/*.rb"].sort.each do |s|
32 f.puts "# require '#{s[0..-4]}'"
33 end
34 end
35 end
36 end
37
3d6c857 @zenspider Massive overhaul of autotest and tests.
zenspider authored
38 task :sort do
39 begin
40 sh 'for f in lib/*.rb; do echo $f; grep "^ *def " $f | grep -v sort=skip > x; sort x > y; echo $f; echo; diff x y; done'
41 sh 'for f in test/test_*.rb; do echo $f; grep "^ *def.test_" $f > x; sort x > y; echo $f; echo; diff x y; done'
42 ensure
43 sh 'rm x y'
44 end
45 end
46
53d26bc @drbrain Import Test::Rails.
drbrain authored
47 # vim:syntax=ruby
48
Something went wrong with that request. Please try again.