summaryrefslogtreecommitdiff
path: root/ext/tk/sample/tcltklib
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-16 05:31:54 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-16 05:31:54 +0000
commitc4fdfabcc8ea3f6186d1560f7756211fce125be3 (patch)
tree52953802cfeae93908e52c59596365a3e946118b /ext/tk/sample/tcltklib
parent183c1a0fa1c9599f613ea8f4c54ed5229354714f (diff)
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/tk/sample/tcltklib')
-rw-r--r--ext/tk/sample/tcltklib/lines1.rb1
-rw-r--r--ext/tk/sample/tcltklib/lines2.rb1
-rw-r--r--ext/tk/sample/tcltklib/lines3.rb1
-rw-r--r--ext/tk/sample/tcltklib/lines4.rb1
-rw-r--r--ext/tk/sample/tcltklib/safeTk.rb1
-rw-r--r--ext/tk/sample/tcltklib/sample0.rb1
-rw-r--r--ext/tk/sample/tcltklib/sample1.rb1
-rw-r--r--ext/tk/sample/tcltklib/sample2.rb1
8 files changed, 8 insertions, 0 deletions
diff --git a/ext/tk/sample/tcltklib/lines1.rb b/ext/tk/sample/tcltklib/lines1.rb
index 9f21ae6..57e3d33 100644
--- a/ext/tk/sample/tcltklib/lines1.rb
+++ b/ext/tk/sample/tcltklib/lines1.rb
@@ -1,4 +1,5 @@
#! /usr/local/bin/ruby
+# frozen_string_literal: false
require "tcltk"
diff --git a/ext/tk/sample/tcltklib/lines2.rb b/ext/tk/sample/tcltklib/lines2.rb
index e459589..7ae54d9 100644
--- a/ext/tk/sample/tcltklib/lines2.rb
+++ b/ext/tk/sample/tcltklib/lines2.rb
@@ -1,4 +1,5 @@
#! /usr/local/bin/ruby
+# frozen_string_literal: false
require "tk"
diff --git a/ext/tk/sample/tcltklib/lines3.rb b/ext/tk/sample/tcltklib/lines3.rb
index caa50f9..d79bb12 100644
--- a/ext/tk/sample/tcltklib/lines3.rb
+++ b/ext/tk/sample/tcltklib/lines3.rb
@@ -1,4 +1,5 @@
#! /usr/local/bin/ruby
+# frozen_string_literal: false
require "tk"
diff --git a/ext/tk/sample/tcltklib/lines4.rb b/ext/tk/sample/tcltklib/lines4.rb
index 7a1175b..37ffc0e 100644
--- a/ext/tk/sample/tcltklib/lines4.rb
+++ b/ext/tk/sample/tcltklib/lines4.rb
@@ -1,4 +1,5 @@
#! /usr/local/bin/ruby
+# frozen_string_literal: false
require "tk"
diff --git a/ext/tk/sample/tcltklib/safeTk.rb b/ext/tk/sample/tcltklib/safeTk.rb
index 5d2c60e..5fac9e2 100644
--- a/ext/tk/sample/tcltklib/safeTk.rb
+++ b/ext/tk/sample/tcltklib/safeTk.rb
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# frozen_string_literal: false
require 'tcltklib'
master = TclTkIp.new
diff --git a/ext/tk/sample/tcltklib/sample0.rb b/ext/tk/sample/tcltklib/sample0.rb
index 0ac303a..0cc2de4 100644
--- a/ext/tk/sample/tcltklib/sample0.rb
+++ b/ext/tk/sample/tcltklib/sample0.rb
@@ -1,4 +1,5 @@
#! /usr/local/bin/ruby -vd
+# frozen_string_literal: false
# tcltklib ライブラリのテスト
diff --git a/ext/tk/sample/tcltklib/sample1.rb b/ext/tk/sample/tcltklib/sample1.rb
index 3235edf..b4ad643 100644
--- a/ext/tk/sample/tcltklib/sample1.rb
+++ b/ext/tk/sample/tcltklib/sample1.rb
@@ -1,5 +1,6 @@
#! /usr/local/bin/ruby -d
# -*- encoding: utf-8 -*-
+# frozen_string_literal: false
# -d オプションを付けると, デバッグ情報を表示する.
# tcltk ライブラリのサンプル
diff --git a/ext/tk/sample/tcltklib/sample2.rb b/ext/tk/sample/tcltklib/sample2.rb
index 1acc180..378c2d3 100644
--- a/ext/tk/sample/tcltklib/sample2.rb
+++ b/ext/tk/sample/tcltklib/sample2.rb
@@ -1,4 +1,5 @@
#!/usr/local/bin/ruby
+# frozen_string_literal: false
#----------------------> pretty simple othello game <-----------------------
# othello.rb
#