mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix warning: already initialized constant DidYouMean::VERSION
``` .../gems/did_you_mean-1.3.1/lib/did_you_mean/version.rb:2: warning: already initialized constant DidYouMean::VERSION .../lib/did_you_mean/version.rb:2: warning: previous definition of VERSION was here ```
This commit is contained in:
parent
75b644350a
commit
4c88107c54
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,11 @@
|
|||
# coding: utf-8
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
require 'did_you_mean/version'
|
||||
begin
|
||||
require_relative "lib/did_you_mean/version"
|
||||
rescue LoadError # Fallback to load version file in ruby core repository
|
||||
require_relative "version"
|
||||
end
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "did_you_mean"
|
||||
|
|
Loading…
Reference in a new issue