[前][次][番号順一覧][スレッド一覧]

ruby-changes:73973

From: Nobuyoshi <ko1@a...>
Date: Thu, 13 Oct 2022 12:10:31 +0900 (JST)
Subject: [ruby-changes:73973] 751ffb276f (master): FreeBSD make uses the target under srcdir [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=751ffb276f

From 751ffb276f658518c6fe06461a9d3d1c136c7d5d Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 13 Oct 2022 12:10:10 +0900
Subject: FreeBSD make uses the target under srcdir [ci skip]

---
 tool/ruby_vm/helpers/dumper.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 mode change 100644 => 100755 tool/ruby_vm/helpers/dumper.rb

diff --git a/tool/ruby_vm/helpers/dumper.rb b/tool/ruby_vm/helpers/dumper.rb
old mode 100644
new mode 100755
index c083dffa7a..150a81f04b
--- a/tool/ruby_vm/helpers/dumper.rb
+++ b/tool/ruby_vm/helpers/dumper.rb
@@ -28,7 +28,7 @@ class RubyVM::Dumper https://github.com/ruby/ruby/blob/trunk/tool/ruby_vm/helpers/dumper.rb#L28
     path  = Pathname.new(__FILE__)
     path  = (path.relative_path_from(Pathname.pwd) rescue path).dirname
     path += '../views'
-    path += Pathname.pwd.join(spec).expand_path.to_s.sub("#{@base}/", '')
+    path += Pathname.pwd.join(File.basename(spec)).expand_path.to_s.sub("#{@base}/", '')
     src   = path.expand_path.read mode: 'rt:utf-8:utf-8'
   rescue Errno::ENOENT
     raise "don't know how to generate #{path}"
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]