[ruby/pp] Use etc instead of .so for broader compatibility

The use of `etc.so` here requires that etc is always implemented
as a C extension on-disk. However at least one impl – JRuby –
currently implements it as an internal extension, loaded via a
Ruby script. This require should simply use the base name of the
library, `etc`, to allow Ruby-based implementations to load as
well.

https://github.com/ruby/pp/commit/2061f994e0
This commit is contained in:
Charles Oliver Nutter 2021-09-28 09:37:07 -05:00 коммит произвёл Hiroshi SHIBATA
Родитель 5a6baaba38
Коммит 73da1c5ea3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: F9CF13417264FAC2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -433,7 +433,7 @@ end
class File < IO # :nodoc:
class Stat # :nodoc:
def pretty_print(q) # :nodoc:
require 'etc.so'
require 'etc'
q.object_group(self) {
q.breakable
q.text sprintf("dev=0x%x", self.dev); q.comma_breakable