forked from morellon/decaptcher
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
52 lines (45 loc) · 1.32 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
$:.unshift(File.dirname(__FILE__) + "/lib")
require "rake"
require "spec/rake/spectask"
require "ocr4r/version"
begin
require "hanna/rdoctask"
rescue LoadError => e
require "rake/rdoctask"
end
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "ocr4r"
gem.version = OCR4R::Version::STRING
gem.summary = %Q{}
gem.description = %Q{}
gem.email = "morellon@gmail.com"
gem.homepage = "http://github.com/morellon/decaptcher"
gem.authors = ["morellon"]
gem.add_development_dependency "rspec"
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end
desc 'Run the specs'
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_opts = ['--colour --format specdoc --loadby mtime --reverse']
t.spec_files = FileList['spec/**/*_spec.rb']
end
desc "Rspec : run all with RCov"
Spec::Rake::SpecTask.new('spec:rcov') do |t|
t.spec_files = FileList['spec/**/*.rb']
t.rcov = true
t.rcov_opts = ['--exclude', 'gems', '--exclude', 'spec']
end
Rake::RDocTask.new do |rdoc|
rdoc.main = "README.rdoc"
rdoc.rdoc_dir = "doc"
rdoc.title = "OCR4R"
rdoc.options += %w[ --line-numbers --inline-source --charset utf-8 ]
rdoc.rdoc_files.include("README.rdoc", "CHANGELOG.rdoc")
rdoc.rdoc_files.include("lib/**/*.rb")
end
task :default => :spec