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

Gem::Package is not loaded along with rubygems

This commit is contained in:
Charles Lowell 2013-03-22 10:53:42 -05:00
parent ba6daf160a
commit cb2661b4b8

View file

@ -71,7 +71,12 @@ 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'
package = Gem::VERSION < '2.0.0' ? Gem::Builder.new(gemspec).build : Gem::Package.build(gemspec) package = if Gem::VERSION < '2.0.0'
Gem::Builder.new(gempsec).build
else
require 'rubygems/package'
Gem::Package.build(gemspec)
end
FileUtils.mv(package, 'pkg') FileUtils.mv(package, 'pkg')
end end