зеркало из https://github.com/github/ruby.git
Expand paths used for dumper.rb
This seems to be needed on Samuel's environment
This commit is contained in:
Родитель
9434a7333c
Коммит
69130e1614
|
@ -28,8 +28,8 @@ class RubyVM::Dumper
|
|||
path = Pathname.new(__FILE__)
|
||||
path = (path.relative_path_from(Pathname.pwd) rescue path).dirname
|
||||
path += '../views'
|
||||
path += Pathname.pwd.join(spec).to_s.sub("#{@base}/", '')
|
||||
src = path.read mode: 'rt:utf-8:utf-8'
|
||||
path += Pathname.pwd.join(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}"
|
||||
else
|
||||
|
|
Загрузка…
Ссылка в новой задаче