-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
30 lines (23 loc) · 833 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 'rubygems'
gem 'hoe', '>= 2.1.0'
require 'hoe'
require 'fileutils'
require './lib/inline_java_script'
Hoe.plugin :newgem
$hoe = Hoe.spec 'inline_javascript' do
self.developer 'Stephen Hardisty', 'moowahaha@hotmail.com'
self.post_install_message = 'PostInstall.txt'
self.rubyforge_name = self.name
self.extra_deps = [['json','>= 0']]
self.clean_globs = [
'ext/inline_java_script_v8_wrapper/Makefile',
'ext/inline_java_script_v8_wrapper/*.{o,so,bundle,a,log,dll}',
'ext/inline_java_script_v8_wrapper/conftest.dSYM'
]
self.spec_extras = { :extensions => ["ext/inline_java_script_v8_wrapper/extconf.rb"] }
end
task :default do
sh 'rake clean && rake extconf:compile && rake spec'
end
require 'newgem/tasks'
Dir['tasks/**/*.rake'].each { |t| load t }