Skip to content

Commit 6e9081b

Browse files
committed
Fallback to load version file in ruby core repository
1 parent dabe82c commit 6e9081b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

webrick.gemspec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# frozen_string_literal: true
2-
require_relative 'lib/webrick/version'
2+
begin
3+
require_relative 'lib/webrick/version'
4+
rescue LoadError
5+
require_relative 'version'
6+
end
37

48
Gem::Specification.new do |s|
59
s.name = "webrick"

0 commit comments

Comments
 (0)