ruby/psych

macOS - will psych.bundle load?

MSP-Greg opened this issue · 1 comments

Confused by this line in psych.rb

require 'psych.so'

Will that load the extension on macOS? Can't test locally. Maybe the below, which should be equivalent to the correct filename (psych.bundle for macOS) :

require "psych.#{RbConfig::CONFIG['DLEXT']}"

I see there is no error handling, so require parses the filename extension?

hsbt commented

Ruby will fallback .so extension to .bundle in macOS.