ruby-changes:52644
From: suke <ko1@a...>
Date: Wed, 26 Sep 2018 18:33:51 +0900 (JST)
Subject: [ruby-changes:52644] suke:r64856 (trunk): * ext/win32ole/lib/win32ole.rb (methods): COM method elements should be
suke 2018-09-26 18:33:46 +0900 (Wed, 26 Sep 2018) New Revision: 64856 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64856 Log: * ext/win32ole/lib/win32ole.rb (methods): COM method elements should be symbol in return value of methods. * test/win32ole/test_win32ole.rb ditto. Modified files: trunk/ext/win32ole/lib/win32ole.rb trunk/test/win32ole/test_win32ole.rb Index: ext/win32ole/lib/win32ole.rb =================================================================== --- ext/win32ole/lib/win32ole.rb (revision 64855) +++ ext/win32ole/lib/win32ole.rb (revision 64856) @@ -19,7 +19,7 @@ if defined?(WIN32OLE) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/lib/win32ole.rb#L19 # #=> Did you mean? Add # def methods(*args) - super + ole_methods_safely.map(&:name) + super + ole_methods_safely.map(&:name).map(&:to_sym) end private Index: test/win32ole/test_win32ole.rb =================================================================== --- test/win32ole/test_win32ole.rb (revision 64855) +++ test/win32ole/test_win32ole.rb (revision 64856) @@ -74,7 +74,7 @@ if defined?(WIN32OLE) https://github.com/ruby/ruby/blob/trunk/test/win32ole/test_win32ole.rb#L74 def test_methods methods = @dict1.methods - assert_include(methods, 'Add') + assert_include(methods, :Add) end def test_ole_func_methods -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/