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

add WIN32OLESpecs::MSXML_AVAILABLE

* spec/ruby/library/win32ole/fixtures/classes.rb: add
WIN32OLESpecs::MSXML_AVAILABLE

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
suke 2018-10-27 22:50:08 +00:00
parent 1064376b86
commit 35ca97e981

View file

@ -1,4 +1,15 @@
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