-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
30 lines (24 loc) · 871 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
require 'mkmf'
project = 'rb_lovely'
create_makefile(project)
require 'rake/extensiontask'
spec = Gem::Specification.new do |s|
s.name = project
s.version = '0.7.3'
s.authors = ['James Pike']
s.email = %w([email protected])
s.homepage = "https://github.com/nuisanceofcats/rb_lovely"
s.license = 'Expat'
s.summary = 'Fast sorted sets and hashes.'
s.description = 'A fast sorted set built using std::set and a fast sorted hash built using boost::multi_index_container.'
s.platform = Gem::Platform::RUBY
s.files = FileList['ext/rb_lovely/*.{cpp,hpp}', 'yard.rb', '.yardopts']
s.extensions = FileList['ext/**/extconf.rb']
end
# not really sure what this does but whatever
Gem::PackageTask.new(spec) { |pkg| pkg.gem_spec = spec }
Rake::ExtensionTask.new(project)
task :default => :compile
task :test => [:clobber, :compile] do
system 'rspec'
end