зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] remove unused files in cargo builder test fixtures
https://github.com/rubygems/rubygems/commit/233847513b
This commit is contained in:
Родитель
eccfc978fd
Коммит
0c2b43462f
|
@ -1,21 +0,0 @@
|
|||
if ENV["RUBYOPT"] || 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
|
|
@ -1,21 +0,0 @@
|
|||
if ENV["RUBYOPT"] || 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
|
Загрузка…
Ссылка в новой задаче