ruby-changes:51999
From: hsbt <ko1@a...>
Date: Tue, 7 Aug 2018 21:32:34 +0900 (JST)
Subject: [ruby-changes:51999] hsbt:r64214 (trunk): Fallback to load version constant for ruby core repository.
hsbt 2018-08-07 21:32:29 +0900 (Tue, 07 Aug 2018) New Revision: 64214 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64214 Log: Fallback to load version constant for ruby core repository. Modified files: trunk/lib/logger.gemspec trunk/lib/prime.gemspec trunk/lib/rexml/rexml.gemspec trunk/lib/rss/rss.gemspec trunk/lib/webrick/webrick.gemspec Index: lib/logger.gemspec =================================================================== --- lib/logger.gemspec (revision 64213) +++ lib/logger.gemspec (revision 64214) @@ -1,4 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/lib/logger.gemspec#L1 -require_relative "logger" +begin + require_relative "lib/logger" +rescue LoadError + require_relative "logger" +end Gem::Specification.new do |spec| spec.name = "logger" Index: lib/webrick/webrick.gemspec =================================================================== --- lib/webrick/webrick.gemspec (revision 64213) +++ lib/webrick/webrick.gemspec (revision 64214) @@ -1,5 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/lib/webrick/webrick.gemspec#L1 # frozen_string_literal: true -require_relative 'version' +begin + require_relative 'lib/webrick/version' +rescue LoadError + require_relative 'version' +end Gem::Specification.new do |s| s.name = "webrick" Index: lib/rexml/rexml.gemspec =================================================================== --- lib/rexml/rexml.gemspec (revision 64213) +++ lib/rexml/rexml.gemspec (revision 64214) @@ -1,4 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/lib/rexml/rexml.gemspec#L1 -require_relative "rexml" +begin + require_relative "lib/rexml/rexml" +rescue LoadError + require_relative "rexml" +end Gem::Specification.new do |spec| spec.name = "rexml" Index: lib/prime.gemspec =================================================================== --- lib/prime.gemspec (revision 64213) +++ lib/prime.gemspec (revision 64214) @@ -1,4 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/lib/prime.gemspec#L1 -require_relative "prime" +begin + require_relative "lib/prime" +rescue LoadError + require_relative "prime" +end Gem::Specification.new do |spec| spec.name = "prime" Index: lib/rss/rss.gemspec =================================================================== --- lib/rss/rss.gemspec (revision 64213) +++ lib/rss/rss.gemspec (revision 64214) @@ -1,4 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/lib/rss/rss.gemspec#L1 -require_relative "rss" +begin + require_relative "lib/rss" +rescue LoadError + require_relative "rss" +end Gem::Specification.new do |spec| spec.name = "rss" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/