forked from patrickhno/cocoa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
40 lines (33 loc) · 1019 Bytes
/
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
# encoding: utf-8
PROJECT_SPECS = if RUBY_VERSION.split.first.to_i >= 2
FileList['spec/**/*_spec.rb'] + FileList['spec/**/*_spec_r2.rb']
else
FileList['spec/**/*_spec.rb']
end
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "cocoa"
gem.homepage = "http://github.com/patrickhno/cocoa"
gem.license = "MIT"
gem.summary = %Q{Ruby bindings for Cocoa}
gem.description = %Q{Ruby FFI bindings for the OSX Cocoa API}
gem.email = "[email protected]"
gem.authors = ["Patrick Hanevold"]
# dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new
desc "Code coverage detail"
task :simplecov do
ENV['COVERAGE'] = "true"
Rake::Task['bacon'].execute
end
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "cocoa #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
Dir['tasks/*.rake'].each{|f| import(f) }
task :default => [:bacon]