forked from vjt/sanitize-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
43 lines (34 loc) · 1.14 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
require 'rake'
require 'rake/rdoctask'
require 'lib/sanitize/rails'
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = 'sanitize-rails'
gemspec.summary = 'A sanitizer bridge for Rails applications'
gemspec.authors = ['Marcello Barnaba']
gemspec.email = 'vjt@openssl.it'
gemspec.homepage = 'http://github.com/vjt/sanitize-rails'
gemspec.files = %w( README.md Rakefile rails/init.rb ) + Dir['lib/**/*']
gemspec.extra_rdoc_files = %w( README.md )
gemspec.has_rdoc = true
gemspec.version = Sanitize::Rails::Version
gemspec.require_path = 'lib'
gemspec.add_dependency('rails', '~> 3.0')
gemspec.add_dependency('sanitize')
end
rescue LoadError
puts 'Jeweler not available. Install it with: gem install jeweler'
end
desc 'Generate the rdoc'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.add %w( README.md lib/**/*.rb )
rdoc.main = 'README.md'
rdoc.title = 'Sanitizer-Rails'
end
desc 'Will someone help write tests?'
task :default do
puts
puts 'Can you help in writing tests? Please do :-)'
puts
end