1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fallback to load version constant for ruby core repository.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2018-08-07 12:32:29 +00:00
parent 7d9109f800
commit d59fc41fba
5 changed files with 25 additions and 5 deletions

View file

@ -1,4 +1,8 @@
require_relative "logger" begin
require_relative "lib/logger"
rescue LoadError
require_relative "logger"
end
Gem::Specification.new do |spec| Gem::Specification.new do |spec|
spec.name = "logger" spec.name = "logger"

View file

@ -1,4 +1,8 @@
require_relative "prime" begin
require_relative "lib/prime"
rescue LoadError
require_relative "prime"
end
Gem::Specification.new do |spec| Gem::Specification.new do |spec|
spec.name = "prime" spec.name = "prime"

View file

@ -1,4 +1,8 @@
require_relative "rexml" begin
require_relative "lib/rexml/rexml"
rescue LoadError
require_relative "rexml"
end
Gem::Specification.new do |spec| Gem::Specification.new do |spec|
spec.name = "rexml" spec.name = "rexml"

View file

@ -1,4 +1,8 @@
require_relative "rss" begin
require_relative "lib/rss"
rescue LoadError
require_relative "rss"
end
Gem::Specification.new do |spec| Gem::Specification.new do |spec|
spec.name = "rss" spec.name = "rss"

View file

@ -1,5 +1,9 @@
# frozen_string_literal: true # frozen_string_literal: true
require_relative 'version' begin
require_relative 'lib/webrick/version'
rescue LoadError
require_relative 'version'
end
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = "webrick" s.name = "webrick"