-
Notifications
You must be signed in to change notification settings - Fork 10
/
Rakefile
55 lines (49 loc) · 1.49 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
53
54
55
# encoding: UTF-8
require 'rake'
require 'rake/rdoctask'
require 'rake/testtask'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/test_*.rb'
t.verbose = false
end
task :default => :test
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'BabelPhish'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "babelphish"
gem.summary = "Translate with Google like a fule => 'fool'"
gem.email = "[email protected]"
gem.homepage = "http://github.com/jbasdf/babelphish"
gem.description = "Babelphish helps you make a quick translation of your application using Google Translate."
gem.authors = ["Justin Ball", "Michael Jenik"]
gem.add_dependency "ya2yaml"
gem.add_dependency "json"
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
# TODO get rcov working
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |t|
t.libs << 'lib'
t.pattern = 'test/*_test.rb'
t.verbose = true
# t.output_dir = 'coverage'
# t.rcov_opts << '--exclude "gems/*"'
end
rescue LoadError
task :rcov do
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
end
end