Sha256: 6d2899d47dda3ef0dd1890188c1820c4ceae6d1a7545a510e531be941a352feb
Contents?: true
Size: 670 Bytes
Versions: 1
Compression:
Stored size: 670 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("custom_name.gemspec", __dir__) Dir.mktmpdir("custom_name") do |dir| built_gem = File.expand_path(File.join(dir, "custom_name.gem")) system(*gem, "build", gemspec, "--output", built_gem) system(*gem, "install", "--verbose", "--local", built_gem, *ARGV) system %q(ruby -rcustom_name -e "puts 'Result: ' + CustomName.say_hello") 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/custom_name/build.rb |