diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-16 05:31:54 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-16 05:31:54 +0000 |
commit | c4fdfabcc8ea3f6186d1560f7756211fce125be3 (patch) | |
tree | 52953802cfeae93908e52c59596365a3e946118b /ext/win32ole | |
parent | 183c1a0fa1c9599f613ea8f4c54ed5229354714f (diff) | |
download | ruby-c4fdfabcc8ea3f6186d1560f7756211fce125be3.tar.gz |
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
Diffstat (limited to 'ext/win32ole')
-rw-r--r-- | ext/win32ole/extconf.rb | 1 | ||||
-rw-r--r-- | ext/win32ole/lib/win32ole/property.rb | 1 | ||||
-rw-r--r-- | ext/win32ole/sample/excel1.rb | 1 | ||||
-rw-r--r-- | ext/win32ole/sample/excel2.rb | 1 | ||||
-rw-r--r-- | ext/win32ole/sample/excel3.rb | 1 | ||||
-rw-r--r-- | ext/win32ole/sample/ie.rb | 1 | ||||
-rw-r--r-- | ext/win32ole/sample/ieconst.rb | 1 | ||||
-rw-r--r-- | ext/win32ole/sample/ienavi.rb | 1 | ||||
-rw-r--r-- | ext/win32ole/sample/ienavi2.rb | 1 | ||||
-rw-r--r-- | ext/win32ole/sample/oledirs.rb | 1 | ||||
-rw-r--r-- | ext/win32ole/sample/olegen.rb | 1 | ||||
-rw-r--r-- | ext/win32ole/sample/xml.rb | 1 |
12 files changed, 12 insertions, 0 deletions
diff --git a/ext/win32ole/extconf.rb b/ext/win32ole/extconf.rb index 52c3d6bdfb..d2044663a9 100644 --- a/ext/win32ole/extconf.rb +++ b/ext/win32ole/extconf.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #---------------------------------- # extconf.rb # $Revision$ diff --git a/ext/win32ole/lib/win32ole/property.rb b/ext/win32ole/lib/win32ole/property.rb index a68bad9af8..fea047cd19 100644 --- a/ext/win32ole/lib/win32ole/property.rb +++ b/ext/win32ole/lib/win32ole/property.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # OLEProperty # helper class of Property with arguments. class OLEProperty 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 |