[ruby/yarp] Use .rb suffix to find version file

https://github.com/ruby/yarp/commit/7c530c79c2
This commit is contained in:
Kevin Newton 2023-08-25 15:43:43 -04:00 committed by git
parent d2392e1ce2
commit 2e29bd6ce0

View File

@ -4,7 +4,7 @@ require "erb"
require "fileutils"
require "yaml"
if File.exist?(File.expand_path("../lib/yarp/version", __dir__))
if File.exist?(File.expand_path("../lib/yarp/version.rb", __dir__))
# Within the gem/local repository
require_relative "../lib/yarp/version"
else