We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c530c7 commit ca8e8cfCopy full SHA for ca8e8cf
yarp.gemspec
@@ -1,6 +1,12 @@
1
# frozen_string_literal: true
2
3
-require_relative 'lib/yarp/version'
+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
10
11
Gem::Specification.new do |spec|
12
spec.name = "yarp"
0 commit comments