[ruby/yarp] Fix relative require for version in YARP gemspec

https://github.com/ruby/yarp/commit/ca8e8cfa0d
This commit is contained in:
Kevin Newton 2023-08-25 15:48:45 -04:00 committed by git
parent a7c7cd11bc
commit 934552618e

View File

@ -1,6 +1,12 @@
# frozen_string_literal: true
require_relative 'lib/yarp/version'
if File.exist?(File.expand_path("version.rb", __dir__))
# CRuby
require_relative "version"
else
# Within the gem/local repository
require_relative "lib/yarp/version"
end
Gem::Specification.new do |spec|
spec.name = "yarp"