ruby-changes:53180
From: suke <ko1@a...>
Date: Sun, 28 Oct 2018 07:50:13 +0900 (JST)
Subject: [ruby-changes:53180] suke:r65395 (trunk): add WIN32OLESpecs::MSXML_AVAILABLE
suke 2018-10-28 07:50:08 +0900 (Sun, 28 Oct 2018) New Revision: 65395 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65395 Log: add WIN32OLESpecs::MSXML_AVAILABLE * spec/ruby/library/win32ole/fixtures/classes.rb: add WIN32OLESpecs::MSXML_AVAILABLE Modified files: trunk/spec/ruby/library/win32ole/fixtures/classes.rb Index: spec/ruby/library/win32ole/fixtures/classes.rb =================================================================== --- spec/ruby/library/win32ole/fixtures/classes.rb (revision 65394) +++ spec/ruby/library/win32ole/fixtures/classes.rb (revision 65395) @@ -1,4 +1,15 @@ https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/win32ole/fixtures/classes.rb#L1 +begin + require 'win32ole' +rescue LoadError +end + module WIN32OLESpecs + begin + MSXML_AVAILABLE = !!WIN32OLE_TYPELIB.typelibs.find { |t| t.name.start_with?('Microsoft XML') } + rescue + MSXML_AVAILABLE = false + end + def self.new_ole(name) tries = 0 begin -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/