forked from perfectline/validates_url
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
34 lines (29 loc) · 1.23 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
require 'rake'
require 'rdoc/task'
require 'rake/clean'
require 'rspec/core/rake_task'
require 'jeweler'
desc 'Default: run unit tests.'
task :default => :test
Jeweler::Tasks.new do |jewel|
jewel.name = 'validate_url'
jewel.summary = 'Library for validating urls in Rails.'
jewel.homepage = 'http://github.com/perfectline/validates_url/tree/master'
jewel.description = 'Library for validating urls in Rails.'
jewel.authors = ["Tanel Suurhans", "Tarmo Lehtpuu", "Vladimir Krylov"]
jewel.files = FileList["lib/**/*.rb", "lib/locale/*.yml", "*.rb", "MIT-LICENCE", "README.markdown"]
jewel.add_dependency 'activemodel', '>= 3.0.0'
jewel.add_development_dependency 'rspec'
jewel.add_development_dependency 'diff-lcs', '>= 1.1.2'
end
desc 'Generate documentation plugin.'
RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'ValidatesUrl'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.markdown')
rdoc.rdoc_files.include('lib/**/*.rb')
end
desc 'Run all rspec tests'
RSpec::Core::RakeTask.new(:test)