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:
parent
ba6daf160a
commit
cb2661b4b8
1 changed files with 6 additions and 1 deletions
7
Rakefile
7
Rakefile
|
@ -71,7 +71,12 @@ task :binary => :compile do
|
|||
gemspec.files += Dir['vendor/v8/out/**/*.a']
|
||||
FileUtils.chmod 'a+r', gemspec.files
|
||||
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')
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue