Skip to content

Commit ca8e8cf

Browse files
committed
Fix relative require for version in YARP gemspec
1 parent 7c530c7 commit ca8e8cf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

yarp.gemspec

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# frozen_string_literal: true
22

3-
require_relative 'lib/yarp/version'
3+
if File.exist?(File.expand_path("version.rb", __dir__))
4+
# CRuby
5+
require_relative "version"
6+
else
7+
# Within the gem/local repository
8+
require_relative "lib/yarp/version"
9+
end
410

511
Gem::Specification.new do |spec|
612
spec.name = "yarp"

0 commit comments

Comments
 (0)