-
Notifications
You must be signed in to change notification settings - Fork 6
/
Rakefile
31 lines (25 loc) · 845 Bytes
/
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
# -*- ruby -*-
require 'rubygems'
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "dryopteris"
s.summary = "HTML sanitization using Nokogiri"
s.email = ["bryan@brynary.com", "mike.dalessio@gmail.com"]
s.homepage = "http://github.com/brynary/dryopteris/tree/master"
s.description = "Dryopteris erythrosora is the Japanese Shield Fern. It also can be used to sanitize HTML to help prevent XSS attacks."
s.authors = ["Bryan Helmkamp", "Mike Dalessio"]
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
require 'rake'
require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs << 'lib'
t.libs << 'test'
t.test_files = FileList['test/*.rb']
t.verbose = true
t.warning = true
end
task :default => :test