1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

lib/fileutils.rb: Specify frozen_string_literal: true.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2017-01-07 02:14:07 +00:00
parent 7802f01d4f
commit 9144d57b94
8 changed files with 12 additions and 12 deletions

View file

@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
#
# = fileutils.rb
#
@ -735,8 +735,8 @@ module FileUtils
#
def compare_stream(a, b)
bsize = fu_stream_blksize(a, b)
sa = ""
sb = ""
sa = String.new(capacity: bsize)
sb = String.new(capacity: bsize)
begin
a.read(bsize, sa)
b.read(bsize, sb)
@ -1432,9 +1432,9 @@ module FileUtils
end
if File::ALT_SEPARATOR
DIRECTORY_TERM = "(?=[/#{Regexp.quote(File::ALT_SEPARATOR)}]|\\z)".freeze
DIRECTORY_TERM = "(?=[/#{Regexp.quote(File::ALT_SEPARATOR)}]|\\z)"
else
DIRECTORY_TERM = "(?=/|\\z)".freeze
DIRECTORY_TERM = "(?=/|\\z)"
end
SYSCASE = File::FNM_SYSCASE.nonzero? ? "-i" : ""

View file

@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require 'fileutils'
require 'test/unit'
require 'tmpdir'

View file

@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# $Id$
module Test

View file

@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# $Id$
require 'fileutils'

View file

@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# $Id$
require 'fileutils'

View file

@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# $Id$
require 'fileutils'

View file

@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# $Id$
require 'test/unit'

View file

@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require 'test/unit'
require 'fileutils'