Skip to content

Commit

Permalink
Specify frozen_string_literal: true
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jun 20, 2017
1 parent 8f6206b commit 68ef914
Show file tree
Hide file tree
Showing 94 changed files with 94 additions and 94 deletions.
2 changes: 1 addition & 1 deletion doc/jamis.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module RDoc
module Page

Expand Down
2 changes: 1 addition & 1 deletion lib/rake.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
#--
# Copyright 2003-2010 by Jim Weirich ([email protected])
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/application.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require "optparse"

require "rake/task_manager"
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/backtrace.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake
module Backtrace # :nodoc: all
SYS_KEYS = RbConfig::CONFIG.keys.grep(/(?:[a-z]prefix|libdir)\z/)
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/clean.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# The 'rake/clean' file defines two file lists (CLEAN and CLOBBER) and
# two rake tasks (:clean and :clobber).
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/cloneable.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake
##
# Mixin for creating easily cloned objects.
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/cpu_counter.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake

# Based on a script at:
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/default_loader.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake

# Default Rakefile loader used by +import+.
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/dsl_definition.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# Rake DSL functions.
require "rake/file_utils_ext"

Expand Down
2 changes: 1 addition & 1 deletion lib/rake/early_time.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake

# EarlyTime is a fake timestamp that occurs _before_ any other time value.
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/ext/core.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
class Module
# Check for an existing method in the current class before extending. If
# the method already exists, then a warning is printed and the extension is
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/ext/string.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require "rake/ext/core"

class String
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/file_creation_task.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require "rake/file_task"
require "rake/early_time"

Expand Down
2 changes: 1 addition & 1 deletion lib/rake/file_list.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require "rake/cloneable"
require "rake/file_utils_ext"
require "rake/ext/string"
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/file_task.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require "rake/task.rb"
require "rake/early_time"

Expand Down
2 changes: 1 addition & 1 deletion lib/rake/file_utils.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require "rbconfig"
require "fileutils"

Expand Down
2 changes: 1 addition & 1 deletion lib/rake/file_utils_ext.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require "rake/file_utils"

module Rake
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/invocation_chain.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake

# InvocationChain tracks the chain of task invocations to detect
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/invocation_exception_mixin.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake
module InvocationExceptionMixin
# Return the invocation chain (list of Rake tasks) that were in
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/late_time.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake
# LateTime is a fake timestamp that occurs _after_ any other time value.
class LateTime
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/linked_list.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake

# Polylithic linked list structure used to implement several data
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/loaders/makefile.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake

# Makefile loader to be used with the import file loader. Use this to
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/multi_task.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake

# Same as a regular task, but the immediate prerequisites are done in
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/name_space.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# The NameSpace class will lookup task names in the scope defined by a
# +namespace+ command.
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/packagetask.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# Define a package task library to aid in the definition of
# redistributable package files.

Expand Down
2 changes: 1 addition & 1 deletion lib/rake/phony.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# Defines a :phony task that you can use as a dependency. This allows
# file-based tasks to use non-file-based tasks as prerequisites
# without forcing them to rebuild.
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/private_reader.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake

# Include PrivateReader to use +private_reader+.
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/promise.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake

# A Promise object represents a promise to do work (a chore) in the
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/pseudo_status.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake

##
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/rake_module.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require "rake/application"

module Rake
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/rake_test_loader.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require "rake"

# Load the test files from the command line.
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/rule_recursion_overflow_error.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake

# Error indicating a recursion overflow error in task selection.
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/scope.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake
class Scope < LinkedList # :nodoc: all

Expand Down
2 changes: 1 addition & 1 deletion lib/rake/task.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require "rake/invocation_exception_mixin"

module Rake
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/task_argument_error.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake

# Error indicating an ill-formed task declaration.
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/task_arguments.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake

##
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/task_manager.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake

# The TaskManager module is a mixin for managing tasks.
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/tasklib.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require "rake"

module Rake
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/testtask.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require "rake"
require "rake/tasklib"

Expand Down
2 changes: 1 addition & 1 deletion lib/rake/thread_history_display.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require "rake/private_reader"

module Rake
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/thread_pool.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require "set"

require "rake/promise"
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/trace_output.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake
module TraceOutput # :nodoc: all

Expand Down
2 changes: 1 addition & 1 deletion lib/rake/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module Rake
VERSION = "12.0.0"

Expand Down
2 changes: 1 addition & 1 deletion lib/rake/win32.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require "rbconfig"

module Rake
Expand Down
2 changes: 1 addition & 1 deletion test/helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
$:.unshift File.expand_path("../../lib", __FILE__)

require 'coveralls'
Expand Down
2 changes: 1 addition & 1 deletion test/support/file_creation.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module FileCreation
OLDFILE = "old"
NEWFILE = "new"
Expand Down
2 changes: 1 addition & 1 deletion test/support/rakefile_definitions.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module RakefileDefinitions
include FileUtils

Expand Down
2 changes: 1 addition & 1 deletion test/support/ruby_runner.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module RubyRunner
include FileUtils

Expand Down
2 changes: 1 addition & 1 deletion test/test_private_reader.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path("../helper", __FILE__)
require "rake/private_reader"

Expand Down
2 changes: 1 addition & 1 deletion test/test_rake.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path("../helper", __FILE__)

class TestRake < Rake::TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/test_rake_application.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path("../helper", __FILE__)

class TestRakeApplication < Rake::TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/test_rake_application_options.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path("../helper", __FILE__)

TESTING_REQUIRE = []
Expand Down
2 changes: 1 addition & 1 deletion test/test_rake_backtrace.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path("../helper", __FILE__)
require "open3"

Expand Down
2 changes: 1 addition & 1 deletion test/test_rake_clean.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path("../helper", __FILE__)
require "rake/clean"

Expand Down
2 changes: 1 addition & 1 deletion test/test_rake_cpu_counter.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path("../helper", __FILE__)

class TestRakeCpuCounter < Rake::TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/test_rake_definitions.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path("../helper", __FILE__)
require "fileutils"

Expand Down
2 changes: 1 addition & 1 deletion test/test_rake_directory_task.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path("../helper", __FILE__)
require "fileutils"
require "pathname"
Expand Down
2 changes: 1 addition & 1 deletion test/test_rake_dsl.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path("../helper", __FILE__)

class TestRakeDsl < Rake::TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/test_rake_early_time.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path("../helper", __FILE__)

class TestRakeEarlyTime < Rake::TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/test_rake_extension.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path("../helper", __FILE__)
require "stringio"

Expand Down
2 changes: 1 addition & 1 deletion test/test_rake_file_creation_task.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path("../helper", __FILE__)
require "fileutils"

Expand Down
2 changes: 1 addition & 1 deletion test/test_rake_file_list.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path("../helper", __FILE__)
require "pathname"

Expand Down
2 changes: 1 addition & 1 deletion test/test_rake_file_list_path_map.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path("../helper", __FILE__)

class TestRakeFileListPathMap < Rake::TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/test_rake_file_task.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path("../helper", __FILE__)
require "fileutils"
require "pathname"
Expand Down
2 changes: 1 addition & 1 deletion test/test_rake_file_utils.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path("../helper", __FILE__)
require "fileutils"
require "stringio"
Expand Down
2 changes: 1 addition & 1 deletion test/test_rake_functional.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require File.expand_path("../helper", __FILE__)
require "fileutils"
require "open3"
Expand Down
Loading

0 comments on commit 68ef914

Please sign in to comment.