-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
52 lines (40 loc) · 1.08 KB
/
Rakefile
File metadata and controls
52 lines (40 loc) · 1.08 KB
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
require 'bundler'
require 'rake'
require 'rake/extensiontask'
require 'rake/testtask'
require 'rspec/core'
require 'rspec/core/rake_task'
require 'yard'
require 'fileutils'
spec = Gem::Specification.load('bonekit.gemspec')
Bundler::GemHelper.install_tasks
Rake::ExtensionTask.new('bonekit', spec) do |ext|
ext.lib_dir = 'lib/bonekit'
end
Gem::PackageTask.new(spec) do |pkg|
end
task :default => :build
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = ["-c", "-f progress"]
t.rspec_opts << "-Ilib"
t.pattern = 'spec/**/*_spec.rb'
t.verbose = true
end
task :spec => :compile
Rake::TestTask.new(:test) do |t|
t.libs = ["lib", "test"]
t.warning = true
t.verbose = true
t.test_files = FileList['test/unit/*_test.rb']
end
task :test => :compile
YARD::Rake::YardocTask.new(:doc) do |t|
t.files = ['lib/**/*.rb','ext/**/*.c']
t.options = ['-o docs/']
t.options << '--debug' << '--verbose' if $trace
end
desc "Update bonekit-c dependency"
task :deps do
system("cp -rf deps/bonekit-c/src/*.h ext/bonekit/")
system("cp -rf deps/bonekit-c/src/*.c ext/bonekit/")
end