-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathRakefile
44 lines (32 loc) · 1.19 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
# frozen_string_literal: true
require 'rake/extensiontask'
require 'rake/testtask'
require 'rubygems/package_task'
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
require 'kisaten/version'
Rake::ExtensionTask.new 'kisaten' do |ext|
# This causes the shared object to be placed in lib/kisaten/kisaten.so
# TODO: Test this vs multiple different ruby versions
ext.lib_dir = 'lib/kisaten'
end
spec = Gem::Specification.new 'kisaten' do |spec|
spec.summary = 'Ruby MRI extension for fuzzing Ruby code with afl-fuzz'
spec.version = Kisaten::VERSION
spec.authors = ["Ariel Zelivansky"]
spec.email = "ariel.zelivans@gmail.com"
spec.homepage = "https://github.com/zelivans/kisaten"
spec.license = 'MIT'
# This tells RubyGems to build an extension upon install
spec.extensions = %w[ext/kisaten/extconf.rb]
spec.files = Dir["Rakefile", "{ext,lib}/**/*.{rb,c}", "LICENSE", "README"]
spec.required_ruby_version = ">= 2.0.0"
spec.add_development_dependency "rake-compiler", "~> 0"
end
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.warning = true
t.options = "--verbose"
end
# Build the gem in pkg/kisaten.*.gem
Gem::PackageTask.new spec do end
task :default => :test