forked from ericboesch/bitset
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
41 lines (34 loc) · 1.17 KB
/
Rakefile
File metadata and controls
41 lines (34 loc) · 1.17 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
require 'rake'
require 'rubygems'
require 'ruby_memcheck'
require 'ruby_memcheck/rspec/rake_task'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = ["--color"]
t.fail_on_error = false
end
namespace :spec do
memcheck_config = RubyMemcheck.config(binary_name: "bitset")
RubyMemcheck::RSpec::RakeTask.new(memcheck_config, :valgrind)
end
task :default => :spec
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "bitset"
gem.homepage = "http://github.com/ericboesch/bitset"
gem.license = "MIT"
gem.summary = 'Bitset implementation.'
gem.description = 'A fast C-based Bitset. It supports the standard set operations as well as operations you may expect on bit arrays,such as popcount.'
gem.email = "eric.boesch@nist.gov"
gem.authors = ["Tyler McMullen"]
# Other significant contributions from Eric Boesch, Gabriel Formica, and Brendon McLean.
end
Jeweler::RubygemsDotOrgTasks.new
require 'rdoc/task'
RDoc::Task.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "bitset #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('ext/**/*.c')
end