Skip to content

Commit

Permalink
merge revision(s) 59867: [Backport #13894]
Browse files Browse the repository at this point in the history
	test/win32ole/test_word.rb: word quit without confirmation dialog to save 
	files. [Bug #13894] Thanks to h.shirosaki.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
unak committed Mar 18, 2018
1 parent d9a7903 commit 1521768
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
Sun Mar 18 23:29:14 2018 Masaki Suketa <masaki.suketa@nifty.ne.jp>

* 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@ruby-lang.org>

fix the case High Sierra's mincore(2) may return -128 [Bug #13895]
Expand Down
9 changes: 7 additions & 2 deletions test/win32ole/test_word.rb
Expand Up @@ -8,17 +8,22 @@
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
Expand Down Expand Up @@ -59,7 +64,7 @@ def test_s_connect

def teardown
if @obj
@obj.quit
@obj.quit(Word::WdDoNotSaveChanges)
@obj = nil
end
end
Expand Down
2 changes: 1 addition & 1 deletion version.h
@@ -1,6 +1,6 @@
#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
Expand Down

0 comments on commit 1521768

Please sign in to comment.