ruby-changes:51931
From: hsbt <ko1@a...>
Date: Tue, 31 Jul 2018 21:56:21 +0900 (JST)
Subject: [ruby-changes:51931] hsbt:r64145 (trunk): Try to load version file of github repository at first.
hsbt 2018-07-31 21:56:17 +0900 (Tue, 31 Jul 2018) New Revision: 64145 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64145 Log: Try to load version file of github repository at first. Modified files: trunk/lib/e2mmap.gemspec trunk/lib/forwardable/forwardable.gemspec trunk/lib/irb/irb.gemspec trunk/lib/mutex_m.gemspec trunk/lib/shell/shell.gemspec trunk/lib/sync.gemspec trunk/lib/thwait/thwait.gemspec trunk/lib/tracer/tracer.gemspec Index: lib/irb/irb.gemspec =================================================================== --- lib/irb/irb.gemspec (revision 64144) +++ lib/irb/irb.gemspec (revision 64145) @@ -1,4 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/lib/irb/irb.gemspec#L1 -require_relative "version" +begin + require_relative "lib/irb/version" +rescue LoadError + # for Ruby core repository + require_relative "version" +end Gem::Specification.new do |spec| spec.name = "irb" Index: lib/tracer/tracer.gemspec =================================================================== --- lib/tracer/tracer.gemspec (revision 64144) +++ lib/tracer/tracer.gemspec (revision 64145) @@ -1,4 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/lib/tracer/tracer.gemspec#L1 -require_relative "version" +begin + require_relative "lib/tracer/version" +rescue LoadError + # for Ruby core repository + require_relative "version" +end Gem::Specification.new do |spec| spec.name = "tracer" Index: lib/sync.gemspec =================================================================== --- lib/sync.gemspec (revision 64144) +++ lib/sync.gemspec (revision 64145) @@ -1,4 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/lib/sync.gemspec#L1 -require_relative "sync" +begin + require_relative "lib/sync" +rescue LoadError + # for Ruby core repository + require_relative "sync" +end Gem::Specification.new do |spec| spec.name = "sync" Index: lib/shell/shell.gemspec =================================================================== --- lib/shell/shell.gemspec (revision 64144) +++ lib/shell/shell.gemspec (revision 64145) @@ -1,4 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/lib/shell/shell.gemspec#L1 -require_relative "version" +begin + require_relative "lib/shell/version" +rescue LoadError + # for Ruby core repository + require_relative "version" +end Gem::Specification.new do |spec| spec.name = "shell" Index: lib/forwardable/forwardable.gemspec =================================================================== --- lib/forwardable/forwardable.gemspec (revision 64144) +++ lib/forwardable/forwardable.gemspec (revision 64145) @@ -1,4 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/lib/forwardable/forwardable.gemspec#L1 -require_relative "../forwardable" +begin + require_relative "lib/forwardable" +rescue LoadError + # for Ruby core repository + require_relative "../forwardable" +end Gem::Specification.new do |spec| spec.name = "forwardable" Index: lib/thwait/thwait.gemspec =================================================================== --- lib/thwait/thwait.gemspec (revision 64144) +++ lib/thwait/thwait.gemspec (revision 64145) @@ -1,4 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/lib/thwait/thwait.gemspec#L1 -require_relative "version" +begin + require_relative "lib/thwait/version" +rescue LoadError + require_relative "version" +end Gem::Specification.new do |spec| spec.name = "thwait" Index: lib/mutex_m.gemspec =================================================================== --- lib/mutex_m.gemspec (revision 64144) +++ lib/mutex_m.gemspec (revision 64145) @@ -1,4 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/lib/mutex_m.gemspec#L1 -require_relative "mutex_m" +begin + require_relative "lib/mutex_m" +rescue LoadError + # for Ruby core repository + require_relative "mutex_m" +end Gem::Specification.new do |spec| spec.name = "mutex_m" Index: lib/e2mmap.gemspec =================================================================== --- lib/e2mmap.gemspec (revision 64144) +++ lib/e2mmap.gemspec (revision 64145) @@ -1,4 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/lib/e2mmap.gemspec#L1 -require_relative "e2mmap/version" +begin + require_relative "lib/e2mmap/version" +rescue LoadError + # for Ruby core repository + require_relative "e2mmap/version" +end + Gem::Specification.new do |spec| spec.name = "e2mmap" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/