forked from rurema/bitclust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
43 lines (35 loc) · 1 KB
/
Rakefile
File metadata and controls
43 lines (35 loc) · 1 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
task :release do
puts "do not use this task. use gem push."
exit
end
$:.push File.expand_path("../lib", __FILE__)
require "bundler/gem_helper"
require 'bitclust/version'
task :default => [:test]
desc "run test"
task :test do
sh 'ruby test/run_test.rb'
end
desc "Re-generate sig/prototype"
task :sig do
out_dir = 'sig-prototype'
FileUtils.rm_rf out_dir
sh "rbs prototype rb --out-dir=#{out_dir} lib"
FileUtils.rm "#{out_dir}/bitclust/compat.rbs"
sh "rbs subtract --write #{out_dir} sig"
FileUtils.rmdir ["#{out_dir}/bitclust/generators", "#{out_dir}/bitclust/subcommands", "#{out_dir}/bitclust", "#{out_dir}"]
sh 'rbs validate'
end
namespace :rbs do
desc 'rbs collection install'
task :install do
sh 'rbs collection install'
end
desc 'rbs collection update'
task :update do
sh 'rbs collection update'
end
end
Bundler::GemHelper.install_tasks(:name => "bitclust-core")
Bundler::GemHelper.install_tasks(:name => "bitclust-dev")
Bundler::GemHelper.install_tasks(:name => "refe2")