ruby-changes:53298
From: stomar <ko1@a...>
Date: Sat, 3 Nov 2018 17:43:24 +0900 (JST)
Subject: [ruby-changes:53298] stomar:r65514 (trunk): lib/racc/parser.rb: use require for racc/cparse
stomar 2018-11-03 17:43:19 +0900 (Sat, 03 Nov 2018) New Revision: 65514 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65514 Log: lib/racc/parser.rb: use require for racc/cparse * lib/racc/parser.rb: reverted r65505. require_relative does not work for racc/cparse.so, as extension libraries are placed in other directories than Ruby libraries. Modified files: trunk/lib/racc/parser.rb Index: lib/racc/parser.rb =================================================================== --- lib/racc/parser.rb (revision 65513) +++ lib/racc/parser.rb (revision 65514) @@ -187,7 +187,7 @@ module Racc https://github.com/ruby/ruby/blob/trunk/lib/racc/parser.rb#L187 Racc_Runtime_Core_Version_R = '1.4.6' Racc_Runtime_Core_Revision_R = %w$originalRevision: 1.8 $[1] begin - require_relative 'cparse' + require 'racc/cparse' # Racc_Runtime_Core_Version_C = (defined in extension) Racc_Runtime_Core_Revision_C = Racc_Runtime_Core_Id_C.split[2] unless new.respond_to?(:_racc_do_parse_c, true) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/