Sha256: 06bb4bb1981c0538914d9cafd327bfc4b83696303f7726e8c86a14dd99fc8fe0
Contents?: true
Size: 712 Bytes
Versions: 1
Compression:
Stored size: 712 Bytes
Contents
if ENV["RUBYOPT"] or defined? Gem ENV.delete "RUBYOPT" require "rbconfig" cmd = [RbConfig.ruby, "--disable-gems", "build.rb", *ARGV] exec(*cmd) end require "tmpdir" lp = File.expand_path("../../../../lib", __dir__) gem = ["ruby", "-I#{lp}", File.expand_path("../../../../bin/gem", __dir__)] gemspec = File.expand_path("rust_ruby_example.gemspec", __dir__) Dir.mktmpdir("rust_ruby_example") do |dir| built_gem = File.expand_path(File.join(dir, "rust_ruby_example.gem")) system(*gem, "build", gemspec, "--output", built_gem) system(*gem, "install", "--verbose", "--local", built_gem, *ARGV) system %q(ruby -rrust_ruby_example -e "puts 'Result: ' + RustRubyExample.reverse('hello world')") end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubygems-update-3.3.19 | test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/build.rb |