ruby-changes:35702
From: zzak <ko1@a...>
Date: Sat, 4 Oct 2014 09:13:25 +0900 (JST)
Subject: [ruby-changes:35702] zzak:r47784 (trunk): * ext/win32ole/sample/example*.rb: Add wait input to quit for examples
zzak 2014-10-04 09:13:18 +0900 (Sat, 04 Oct 2014) New Revision: 47784 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47784 Log: * ext/win32ole/sample/example*.rb: Add wait input to quit for examples with patch provided by @windwiny [Fixes GH-705] https://github.com/ruby/ruby/pull/705 Modified files: trunk/ChangeLog trunk/ext/win32ole/sample/excel1.rb trunk/ext/win32ole/sample/excel2.rb trunk/ext/win32ole/sample/excel3.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 47783) +++ ChangeLog (revision 47784) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Oct 4 09:12:03 2014 Zachary Scott <e@z...> + + * ext/win32ole/sample/example*.rb: Add wait input to quit for examples + with patch provided by @windwiny [Fixes GH-705] + https://github.com/ruby/ruby/pull/705 + Sat Oct 4 09:08:18 2014 Zachary Scott <e@z...> * ext/win32ole/win32ole.c: [DOC] Fix typo in :nodoc: reported by Index: ext/win32ole/sample/excel1.rb =================================================================== --- ext/win32ole/sample/excel1.rb (revision 47783) +++ ext/win32ole/sample/excel1.rb (revision 47784) @@ -27,7 +27,10 @@ range.Select https://github.com/ruby/ruby/blob/trunk/ext/win32ole/sample/excel1.rb#L27 chart = workbook.Charts.Add; workbook.saved = TRUE; -sleep 0.5 + +print "Now quit Excel... Please enter." +gets + application.ActiveWorkbook.Close(0); application.Quit(); Index: ext/win32ole/sample/excel2.rb =================================================================== --- ext/win32ole/sample/excel2.rb (revision 47783) +++ ext/win32ole/sample/excel2.rb (revision 47784) @@ -23,5 +23,8 @@ i.step(180, 10) do |rot| https://github.com/ruby/ruby/blob/trunk/ext/win32ole/sample/excel2.rb#L23 end # Done, bye +print "Now quit Excel... Please enter." +gets + excel.ActiveWorkbook.Close(0); excel.Quit(); Index: ext/win32ole/sample/excel3.rb =================================================================== --- ext/win32ole/sample/excel3.rb (revision 47783) +++ ext/win32ole/sample/excel3.rb (revision 47784) @@ -11,3 +11,10 @@ puts "The number of sheets is #{sheetS.c https://github.com/ruby/ruby/blob/trunk/ext/win32ole/sample/excel3.rb#L11 puts "Now add 2 sheets after of `#{sheet.name}`" sheetS.add({'count'=>2, 'after'=>sheet}) puts "The number of sheets is #{sheetS.count}" + +print "Now quit Excel... Please enter." +gets + +application.ActiveWorkbook.Close(0); +application.Quit(); + -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/