Skip to content

Commit

Permalink
Merge pull request #399 from nobu/version-path
Browse files Browse the repository at this point in the history
Load correct version.rb from gemspec
  • Loading branch information
aycabta authored Dec 19, 2021
2 parents 3288d11 + 54905d0 commit 14f1703
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions reline.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'reline/version'
begin
require_relative 'lib/reline/version'
rescue LoadError
require_relative 'version'
end

Gem::Specification.new do |spec|
spec.name = 'reline'
Expand Down

0 comments on commit 14f1703

Please sign in to comment.