1
0
Fork 0
mirror of https://github.com/rubyjs/libv8 synced 2023-03-27 23:21:48 -04:00

Use Gem::Package in under Ruby 2

This commit fixes #86
This commit is contained in:
ignisf 2013-03-04 18:26:19 +02:00
parent 548160f3b8
commit ceee20a39c

View file

@ -70,7 +70,8 @@ task :binary => :compile do
gemspec.files += Dir['vendor/v8/out/**/*.a'] gemspec.files += Dir['vendor/v8/out/**/*.a']
FileUtils.chmod 'a+r', gemspec.files FileUtils.chmod 'a+r', gemspec.files
FileUtils.mkdir_p 'pkg' FileUtils.mkdir_p 'pkg'
FileUtils.mv(Gem::Builder.new(gemspec).build, 'pkg') package = RUBY_VERSION < '2.0.0' ? Gem::Builder.new(gemspec).build : Gem::Package.build(gemspec)
FileUtils.mv(package, 'pkg')
end end
desc "clean up artifacts of the build" desc "clean up artifacts of the build"