summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_ext_cargo_builder
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-04-01 20:36:59 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-04-28 19:08:49 +0900
commit678d58c8508ec46aa270e3c5d81fc09cd0fee175 (patch)
tree34cbc8bb12e609d7a73e35c513090264360ffb49 /test/rubygems/test_gem_ext_cargo_builder
parent479ba9a44b6beda1dce32842bcbc66b6f46a85a0 (diff)
Merge rubygems master 1e4eda741d732ca1bd7031aef0a16c7348adf7a5
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5669
Diffstat (limited to 'test/rubygems/test_gem_ext_cargo_builder')
-rw-r--r--test/rubygems/test_gem_ext_cargo_builder/custom_name/build.rb6
-rw-r--r--test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/build.rb6
2 files changed, 6 insertions, 6 deletions
diff --git a/test/rubygems/test_gem_ext_cargo_builder/custom_name/build.rb b/test/rubygems/test_gem_ext_cargo_builder/custom_name/build.rb
index a521dceb4a..4d2f8488a4 100644
--- a/test/rubygems/test_gem_ext_cargo_builder/custom_name/build.rb
+++ b/test/rubygems/test_gem_ext_cargo_builder/custom_name/build.rb
@@ -9,9 +9,9 @@ end
require 'tmpdir'
-lp = File.expand_path("./../../../../../lib", __FILE__)
-gem = ["ruby", "-I#{lp}", File.expand_path("./../../../../../bin/gem", __FILE__)]
-gemspec = File.expand_path("./../custom_name.gemspec", __FILE__)
+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"))
diff --git a/test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/build.rb b/test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/build.rb
index 468274c9a7..da9e82315e 100644
--- a/test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/build.rb
+++ b/test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/build.rb
@@ -9,9 +9,9 @@ end
require 'tmpdir'
-lp = File.expand_path("./../../../../../lib", __FILE__)
-gem = ["ruby", "-I#{lp}", File.expand_path("./../../../../../bin/gem", __FILE__)]
-gemspec = File.expand_path("./../rust_ruby_example.gemspec", __FILE__)
+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"))