From c4fdfabcc8ea3f6186d1560f7756211fce125be3 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 16 Dec 2015 05:31:54 +0000 Subject: handle ext/ as r53141 g -L frozen_string_literal ext/**/*.rb|xargs ruby -Ka -e'ARGV.each{|fn|puts fn;open(fn,"r+"){|f|s=f.read.sub(/\A(#!.*\n)?(#.*coding.*\n)?/,"\\&# frozen_string_literal: false\n");f.rewind;f.write s}}' git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/win32ole/sample/excel1.rb | 1 + ext/win32ole/sample/excel2.rb | 1 + ext/win32ole/sample/excel3.rb | 1 + ext/win32ole/sample/ie.rb | 1 + ext/win32ole/sample/ieconst.rb | 1 + ext/win32ole/sample/ienavi.rb | 1 + ext/win32ole/sample/ienavi2.rb | 1 + ext/win32ole/sample/oledirs.rb | 1 + ext/win32ole/sample/olegen.rb | 1 + ext/win32ole/sample/xml.rb | 1 + 10 files changed, 10 insertions(+) (limited to 'ext/win32ole/sample') diff --git a/ext/win32ole/sample/excel1.rb b/ext/win32ole/sample/excel1.rb index 7136c938a3..c16c753ccc 100644 --- a/ext/win32ole/sample/excel1.rb +++ b/ext/win32ole/sample/excel1.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'win32ole' application = WIN32OLE.new('Excel.Application') diff --git a/ext/win32ole/sample/excel2.rb b/ext/win32ole/sample/excel2.rb index 632882636a..8c4773daba 100644 --- a/ext/win32ole/sample/excel2.rb +++ b/ext/win32ole/sample/excel2.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'win32ole' # -4100 is the value for the Excel constant xl3DColumn. diff --git a/ext/win32ole/sample/excel3.rb b/ext/win32ole/sample/excel3.rb index 1ace478007..d66023c2b6 100644 --- a/ext/win32ole/sample/excel3.rb +++ b/ext/win32ole/sample/excel3.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'win32ole' #application = WIN32OLE.new('Excel.Application.5') diff --git a/ext/win32ole/sample/ie.rb b/ext/win32ole/sample/ie.rb index 11dc861e0b..dad29b08c8 100644 --- a/ext/win32ole/sample/ie.rb +++ b/ext/win32ole/sample/ie.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'win32ole' url = 'http://www.ruby-lang.org/' ie = WIN32OLE.new('InternetExplorer.Application') diff --git a/ext/win32ole/sample/ieconst.rb b/ext/win32ole/sample/ieconst.rb index 2c6a7a383c..363a4f8153 100644 --- a/ext/win32ole/sample/ieconst.rb +++ b/ext/win32ole/sample/ieconst.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'win32ole' ie = WIN32OLE.new('InternetExplorer.Application') diff --git a/ext/win32ole/sample/ienavi.rb b/ext/win32ole/sample/ienavi.rb index 8b279ddaae..526ef0a5a8 100644 --- a/ext/win32ole/sample/ienavi.rb +++ b/ext/win32ole/sample/ienavi.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'win32ole' $urls = [] diff --git a/ext/win32ole/sample/ienavi2.rb b/ext/win32ole/sample/ienavi2.rb index 67977e28ab..3248393077 100644 --- a/ext/win32ole/sample/ienavi2.rb +++ b/ext/win32ole/sample/ienavi2.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'win32ole' class IEHandler diff --git a/ext/win32ole/sample/oledirs.rb b/ext/win32ole/sample/oledirs.rb index dbacc2131d..e52a0fd7ac 100644 --- a/ext/win32ole/sample/oledirs.rb +++ b/ext/win32ole/sample/oledirs.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # # You need WSH(Windows Scripting Host) to run this script. # diff --git a/ext/win32ole/sample/olegen.rb b/ext/win32ole/sample/olegen.rb index aa0288ddbb..4b088a774f 100644 --- a/ext/win32ole/sample/olegen.rb +++ b/ext/win32ole/sample/olegen.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #----------------------------- # olegen.rb # $Revision$ diff --git a/ext/win32ole/sample/xml.rb b/ext/win32ole/sample/xml.rb index 4b1a54dc75..36c3db32ef 100644 --- a/ext/win32ole/sample/xml.rb +++ b/ext/win32ole/sample/xml.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # # This file created by olegen.rb as following. # ruby olegen.rb 'Microsoft XML, version 2.0' > xml.rb -- cgit v1.2.3