[前][次][番号順一覧][スレッド一覧]

ruby-changes:43761

From: suke <ko1@a...>
Date: Mon, 8 Aug 2016 21:04:52 +0900 (JST)
Subject: [ruby-changes:43761] suke:r55834 (trunk): * ext/win32ole/sample/excel1.rb, ext/win32ole/sample/excel2.rb,

suke	2016-08-08 21:04:45 +0900 (Mon, 08 Aug 2016)

  New Revision: 55834

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55834

  Log:
    * ext/win32ole/sample/excel1.rb, ext/win32ole/sample/excel2.rb,
      ext/win32ole/sample/excel3.rb, ext/win32ole/sample/ie.rb,
      ext/win32ole/sample/ienavi.rb, ext/win32ole/sample/ienavi2.rb: use
      true instead of deprecated TRUE. [ci skip]

  Modified files:
    trunk/ChangeLog
    trunk/ext/win32ole/sample/excel1.rb
    trunk/ext/win32ole/sample/excel2.rb
    trunk/ext/win32ole/sample/excel3.rb
    trunk/ext/win32ole/sample/ie.rb
    trunk/ext/win32ole/sample/ienavi.rb
Index: ext/win32ole/sample/ienavi.rb
===================================================================
--- ext/win32ole/sample/ienavi.rb	(revision 55833)
+++ ext/win32ole/sample/ienavi.rb	(revision 55834)
@@ -20,7 +20,7 @@ def default_handler(event, *args) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/sample/ienavi.rb#L20
 end
 
 ie = WIN32OLE.new('InternetExplorer.Application')
-ie.visible = TRUE
+ie.visible = true
 ie.gohome
 
 ev = WIN32OLE_EVENT.new(ie, 'DWebBrowserEvents')
@@ -29,7 +29,7 @@ ev.on_event {|*args| default_handler(*ar https://github.com/ruby/ruby/blob/trunk/ext/win32ole/sample/ienavi.rb#L29
 ev.on_event("NavigateComplete") {|url| navigate(url)}
 ev.on_event("Quit") {|*args| stop_msg_loop}
 
-$LOOP = TRUE
+$LOOP = true
 while ($LOOP)
   WIN32OLE_EVENT.message_loop
 end
Index: ext/win32ole/sample/ie.rb
===================================================================
--- ext/win32ole/sample/ie.rb	(revision 55833)
+++ ext/win32ole/sample/ie.rb	(revision 55834)
@@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/win32ole/sample/ie.rb#L2
 require 'win32ole'
 url = 'http://www.ruby-lang.org/'
 ie = WIN32OLE.new('InternetExplorer.Application')
-ie.visible = TRUE
+ie.visible = true
 ie.gohome
 print "Now navigate Ruby home page... Please enter."
 gets
Index: ext/win32ole/sample/excel1.rb
===================================================================
--- ext/win32ole/sample/excel1.rb	(revision 55833)
+++ ext/win32ole/sample/excel1.rb	(revision 55834)
@@ -3,7 +3,7 @@ require 'win32ole' https://github.com/ruby/ruby/blob/trunk/ext/win32ole/sample/excel1.rb#L3
 
 application = WIN32OLE.new('Excel.Application')
 
-application.visible = TRUE
+application.visible = true
 workbook = application.Workbooks.Add();
 worksheet = workbook.Worksheets(1);
 
@@ -27,7 +27,7 @@ range = worksheet.Range("A1:D2"); https://github.com/ruby/ruby/blob/trunk/ext/win32ole/sample/excel1.rb#L27
 range.Select
 chart = workbook.Charts.Add;
 
-workbook.saved = TRUE;
+workbook.saved = true;
 
 print "Now quit Excel... Please enter."
 gets
Index: ext/win32ole/sample/excel2.rb
===================================================================
--- ext/win32ole/sample/excel2.rb	(revision 55833)
+++ ext/win32ole/sample/excel2.rb	(revision 55834)
@@ -8,7 +8,7 @@ ChartTypeVal = -4100; https://github.com/ruby/ruby/blob/trunk/ext/win32ole/sample/excel2.rb#L8
 excel = WIN32OLE.new("excel.application")
 
 # Create and rotate the chart
-excel.visible = TRUE;
+excel.visible = true;
 excel.Workbooks.Add();
 excel.Range("a1").value = 3;
 excel.Range("a2").value = 2;
Index: ext/win32ole/sample/excel3.rb
===================================================================
--- ext/win32ole/sample/excel3.rb	(revision 55833)
+++ ext/win32ole/sample/excel3.rb	(revision 55834)
@@ -4,7 +4,7 @@ require 'win32ole' https://github.com/ruby/ruby/blob/trunk/ext/win32ole/sample/excel3.rb#L4
 #application = WIN32OLE.new('Excel.Application.5')
 application = WIN32OLE.new('Excel.Application')
 
-application.visible = TRUE
+application.visible = true
 workbook = application.Workbooks.Add();
 sheet = workbook.Worksheets(1);
 sheetS = workbook.Worksheets
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55833)
+++ ChangeLog	(revision 55834)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Aug  8 20:56:46 2016  Masaki Suketa <masaki.suketa@n...>
+
+	* ext/win32ole/sample/excel1.rb, ext/win32ole/sample/excel2.rb,
+	  ext/win32ole/sample/excel3.rb, ext/win32ole/sample/ie.rb,
+	  ext/win32ole/sample/ienavi.rb, ext/win32ole/sample/ienavi2.rb: use
+	  true instead of deprecated TRUE. [ci skip]
+
 Mon Aug  8 12:51:12 2016  Zarko Todorovski <zarko@c...>
 
 	* internal.h (RBASIC_CLEAR_CLASS): Reroute ANSI C's strict

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]