forked from faye/websocket-driver-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
27 lines (23 loc) · 621 Bytes
/
Copy pathRakefile
File metadata and controls
27 lines (23 loc) · 621 Bytes
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
require 'rubygems/package_task'
spec = Gem::Specification.load('websocket-driver.gemspec')
Gem::PackageTask.new(spec) do |pkg|
end
if RUBY_PLATFORM =~ /java/
require 'rake/javaextensiontask'
Rake::JavaExtensionTask.new('websocket-driver', spec) do |ext|
ext.name = 'websocket_mask'
end
else
require 'rake/extensiontask'
Rake::ExtensionTask.new('websocket-driver', spec) do |ext|
ext.name = 'websocket_mask'
end
end
task :clean do
Dir['./**/*.{bundle,jar,o,so}'].each do |path|
puts "Deleting #{path} ..."
File.delete(path)
end
FileUtils.rm_rf('./pkg')
FileUtils.rm_rf('./tmp')
end