-
Notifications
You must be signed in to change notification settings - Fork 14
/
Rakefile
20 lines (16 loc) · 960 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require "bundler/gem_tasks"
require 'rake/extensiontask'
require 'rspec/core/rake_task'
Rake::ExtensionTask.new('blurrily') do |ext|
ext.name = 'map_ext' # indicate the name of the extension.
# ext.ext_dir = 'ext/weird_world' # search for 'hello_world' inside it.
ext.lib_dir = 'lib/blurrily' # put binaries into this folder.
# ext.config_script = 'custom_extconf.rb' # use instead of the default 'extconf.rb'.
# ext.tmp_dir = 'tmp' # temporary folder used during compilation.
# ext.source_pattern = "*.{c,cpp}" # monitor file changes to allow simple rebuild.
# ext.config_options << '--with-foo' # supply additional options to configure script.
# ext.gem_spec = spec # optionally indicate which gem specification
# # will be used.
end
RSpec::Core::RakeTask.new(:spec)
task :default => [:compile, :spec]