-
Notifications
You must be signed in to change notification settings - Fork 13
/
Rakefile
52 lines (46 loc) · 1.67 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
47
48
49
50
51
52
# encoding: utf-8
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
NAME = "validatious-on-rails"
SUMMARY = %Q{Rails plugin that maps model validations to class names on form elements to integrate with Validatious.}
HOMEPAGE = "http://github.com/grimen/#{NAME}"
AUTHORS = ["Jonas Grimfelt", "Christian Johansen"]
EMAIL = "grimen@gmail.com"
SUPPORT_FILES = %w(README)
begin
gem 'jeweler', '>= 1.2.1'
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = NAME
gemspec.summary = SUMMARY
gemspec.description = SUMMARY
gemspec.homepage = HOMEPAGE
gemspec.authors = AUTHORS
gemspec.email = EMAIL
gemspec.require_paths = %w{lib}
gemspec.files = SUPPORT_FILES << %w(Rakefile) <<
Dir.glob(File.join('{app,config,generators,lib,test,rails}', '**', '*').to_s).reject { |v| v =~ /\.log/i }
gemspec.executables = %w()
gemspec.extra_rdoc_files = SUPPORT_FILES
end
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
desc %Q{Default: Run unit tests for "#{NAME}".}
task :default => :test
desc %Q{Run unit tests for "#{NAME}".}
Rake::TestTask.new(:test) do |test|
test.libs << %w(lib test)
test.pattern = File.join('test', '**', '*_test.rb')
test.verbose = true
end
desc %Q{Generate documentation for "#{NAME}".}
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = NAME
rdoc.options << '--line-numbers' << '--inline-source' << '--charset=UTF-8'
rdoc.rdoc_files.include(SUPPORT_FILES)
rdoc.rdoc_files.include(File.join('lib', '**', '*.rb'))
end