зеркало из https://github.com/github/ruby.git
[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:
Родитель
5a6baaba38
Коммит
73da1c5ea3
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче