Skip to content

Commit

Permalink
Fallback to load version file in ruby core repository
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Feb 20, 2020
1 parent a326b4b commit 3e12b65
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/net/imap/net-imap.gemspec
@@ -1,4 +1,8 @@
require_relative 'lib/net/imap/version'
begin
require_relative 'lib/net/imap/version'
rescue LoadError # Fallback to load version file in ruby core repository
require_relative "version"
end

Gem::Specification.new do |spec|
spec.name = "net-imap"
Expand Down

0 comments on commit 3e12b65

Please sign in to comment.