-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
47 lines (38 loc) · 1.04 KB
/
Rakefile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
require 'lib/stylish'
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "stylish"
s.summary = "Write CSS with Ruby"
s.email = "[email protected]"
s.homepage = "http://ionfish.github.com/stylish/"
s.description = "A Ruby library for generating cascading stylesheets."
s.authors = ["Benedict Eastaugh"]
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install " +
"technicalpickles-jeweler -s http://gems.github.com"
end
task :default => :test
desc "Run the Stylish test suite"
task :test do
require 'test/unit'
puts "Stylish version #{Stylish::VERSION}"
testdir = "test"
Dir.foreach(testdir) do |f|
path = "#{testdir}/#{f}"
if File.ftype(path) == "file" && File.basename(f).match(/_test.rb$/)
load path
end
end
end
namespace :example do
desc "An extended generator DSL example."
task :tarski do
require 'example/tarski'
end
desc "Extract base rules from a selector tree."
task :descope do
require 'example/descope'
end
end