ruby-changes:54057
From: nobu <ko1@a...>
Date: Fri, 7 Dec 2018 23:37:33 +0900 (JST)
Subject: [ruby-changes:54057] nobu:r66276 (trunk): Array#any? just returns true/false
nobu 2018-12-07 23:37:28 +0900 (Fri, 07 Dec 2018) New Revision: 66276 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66276 Log: Array#any? just returns true/false 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 66275) +++ spec/ruby/library/win32ole/fixtures/classes.rb (revision 66276) @@ -1,8 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/win32ole/fixtures/classes.rb#L1 require 'win32ole' module WIN32OLESpecs - MSXML_AVAILABLE = !!WIN32OLE_TYPELIB.typelibs.find { |t| t.name.start_with?('Microsoft XML') } - SYSTEM_MONITOR_CONTROL_AVAILABLE = !!WIN32OLE_TYPELIB.typelibs.find{ |t| t.name.start_with?('System Monitor Control') } + MSXML_AVAILABLE = WIN32OLE_TYPELIB.typelibs.any? { |t| t.name.start_with?('Microsoft XML') } + SYSTEM_MONITOR_CONTROL_AVAILABLE = WIN32OLE_TYPELIB.typelibs.any? { |t| t.name.start_with?('System Monitor Control') } def self.new_ole(name) tries = 0 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/