ruby-changes:50650
From: usa <ko1@a...>
Date: Sun, 18 Mar 2018 23:30:54 +0900 (JST)
Subject: [ruby-changes:50650] usa:r62812 (ruby_2_3): merge revision(s) 59867: [Backport #13894]
usa 2018-03-18 23:30:49 +0900 (Sun, 18 Mar 2018) New Revision: 62812 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62812 Log: merge revision(s) 59867: [Backport #13894] test/win32ole/test_word.rb: word quit without confirmation dialog to save files. [Bug #13894] Thanks to h.shirosaki. Modified directories: branches/ruby_2_3/ Modified files: branches/ruby_2_3/ChangeLog branches/ruby_2_3/test/win32ole/test_word.rb branches/ruby_2_3/version.h Index: ruby_2_3/ChangeLog =================================================================== --- ruby_2_3/ChangeLog (revision 62811) +++ ruby_2_3/ChangeLog (revision 62812) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/ChangeLog#L1 +Sun Mar 18 23:29:14 2018 Masaki Suketa <masaki.suketa@n...> + + * test/win32ole/test_word.rb: word quit without confirmation dialog to + save files. [Bug #13894] Thanks to h.shirosaki. + Sun Mar 18 23:26:20 2018 NARUSE, Yui <naruse@r...> fix the case High Sierra's mincore(2) may return -128 [Bug #13895] Index: ruby_2_3/version.h =================================================================== --- ruby_2_3/version.h (revision 62811) +++ ruby_2_3/version.h (revision 62812) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/version.h#L1 #define RUBY_VERSION "2.3.7" #define RUBY_RELEASE_DATE "2018-03-18" -#define RUBY_PATCHLEVEL 413 +#define RUBY_PATCHLEVEL 414 #define RUBY_RELEASE_YEAR 2018 #define RUBY_RELEASE_MONTH 3 Index: ruby_2_3/test/win32ole/test_word.rb =================================================================== --- ruby_2_3/test/win32ole/test_word.rb (revision 62811) +++ ruby_2_3/test/win32ole/test_word.rb (revision 62812) @@ -8,17 +8,22 @@ rescue LoadError https://github.com/ruby/ruby/blob/trunk/ruby_2_3/test/win32ole/test_word.rb#L8 end require "test/unit" +if defined?(WIN32OLE) + module Word; end +end + def word_installed? installed = false w = nil if defined?(WIN32OLE) begin w = WIN32OLE.new('Word.Application') + WIN32OLE.const_load(w, Word) installed = true rescue ensure if w - w.quit + w.quit(Word::WdDoNotSaveChanges) w = nil end end @@ -59,7 +64,7 @@ if defined?(WIN32OLE) https://github.com/ruby/ruby/blob/trunk/ruby_2_3/test/win32ole/test_word.rb#L64 def teardown if @obj - @obj.quit + @obj.quit(Word::WdDoNotSaveChanges) @obj = nil end end Index: ruby_2_3 =================================================================== --- ruby_2_3 (revision 62811) +++ ruby_2_3 (revision 62812) Property changes on: ruby_2_3 ___________________________________________________________________ Modified: svn:mergeinfo ## -0,0 +0,1 ## Merged /trunk:r59867 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/