Skip to content

Commit 80fc541

Browse files
committed
Fallback to load version file in ruby core repository
1 parent f57d2d1 commit 80fc541

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

net-http.gemspec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
require_relative 'lib/net/http/version'
1+
begin
2+
require_relative "lib/net/http/version"
3+
rescue LoadError # Fallback to load version file in ruby core repository
4+
require_relative "version"
5+
end
26

37
Gem::Specification.new do |spec|
48
spec.name = "net-http"

0 commit comments

Comments
 (0)