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

Check rubygems version when building package

This commit is contained in:
ignisf 2013-03-05 14:27:08 +02:00
parent b913921507
commit 94582f5e1d

View file

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