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

Add frozen_string_literal: false for all files

When you change this to true, you may need to add more tests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2015-12-16 05:07:31 +00:00
parent f6f7073e12
commit 3e92b635fb
1432 changed files with 1433 additions and 1 deletions

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# Include the English library file in a Ruby script, and you can
# reference the global variables such as \VAR{\$\_} using less
# cryptic names, listed in the following table.% \vref{tab:english}.

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#--
# Copyright (c) 2001,2003 Akinori MUSHA <knu@iDaemons.org>
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# = base64.rb: methods for base64-encoding and -decoding strings
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#--
# benchmark.rb - a performance benchmarking library
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# cgi.rb - cgi support library
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'cgi/util'
class CGI
# Class representing an HTTP cookie.

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#--
# Methods for generating HTML, parsing CGI-related parameters, and
# generating HTTP responses.

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
class CGI
# Base module for HTML-generation mixins.
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# cgi/session.rb - session support for cgi scripts
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# cgi/session/pstore.rb - persistent storage of marshalled session data
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
class CGI; module Util; end; extend Util; end
module CGI::Util
@@accept_charset="UTF-8" unless defined?(@@accept_charset)

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
##
# = Trigonometric and transcendental functions for complex numbers.
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
# Copyright (C) 2000 Information-technology Promotion Agency, Japan
# Copyright (C) 2000-2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# = delegate -- Support for the Delegation Pattern
#
# Documentation by James Edward Gray II and Gavin Sinclair

View file

@ -1,2 +1,3 @@
# frozen_string_literal: false
require 'drb/drb'

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# Copyright (c) 2000,2002,2003 Masatoshi SEKI
#
# acl.rb is copyrighted free software by Masatoshi SEKI.

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# = drb/drb.rb
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
module DRb
class DRbObject # :nodoc:
def ==(other)

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
=begin
external service
Copyright (c) 2000,2002 Masatoshi SEKI

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
=begin
external service manager
Copyright (c) 2000 Masatoshi SEKI

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'drb/drb'
require 'monitor'

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# for ruby-1.8.0
module DRb # :nodoc: all

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'observer'
module DRb

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'socket'
require 'openssl'
require 'drb/drb'

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'drb/drb'
require 'monitor'

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'socket'
require 'drb/drb'
require 'tmpdir'

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
#--
# e2mmap.rb - for Ruby 1.1

View file

@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
# frozen_string_literal: false
# = ERB -- Ruby Templating
#
# Author:: Masatoshi SEKI

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# = fileutils.rb
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# find.rb: the Find module for processing all files under a given directory.
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# forwardable.rb -
# $Release Version: 1.1$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# GetoptLong for Ruby
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# ipaddr.rb - A class to manipulate an IP address
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb.rb - irb main module
# $Release Version: 0.9.6 $

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# change-ws.rb -
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# fork.rb -
# $Release Version: 0.9.6 $

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# help.rb - helper using ri
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# load.rb -
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# nop.rb -
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# change-ws.rb -
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# multi.rb -
# $Release Version: 0.9.6$
# $Revision$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb/completor.rb -
# $Release Version: 0.9$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb/context.rb - irb context
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb/ext/cb.rb -
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# history.rb -
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# loader.rb -
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# math-mode.rb -
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb/multi-irb.rb - multiple irb module
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# save-history.rb -
# $Release Version: 0.9.6$
# $Revision$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb/lib/tracer.rb -
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# use-loader.rb -
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# push-ws.rb -
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb/extend-command.rb - irb extend command
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# frame.rb -
# $Release Version: 0.9$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb/help.rb - print usage module
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb/init.rb - irb initialize module
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb/input-method.rb - input methods used irb
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb/inspector.rb - inspect methods
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb/lc/error.rb -
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# :stopdoc:
module IRB
class Locale

View file

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
# frozen_string_literal: false
# irb/lc/ja/error.rb -
# $Release Version: 0.9.6$
# $Revision$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb/locale.rb - internationalization module
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
module IRB
class << (MagicFile = Object.new)
# see parser_magic_comment in parse.y

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# notifier.rb - output methods used by irb
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# output-method.rb - output methods used by irb
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb/ruby-lex.rb - ruby lexcal analyzer
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb/ruby-token.rb - ruby tokens
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb/slex.rb - simple lex analyzer
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# DO NOT WRITE ANY MAGIC COMMENT HERE.
def default_src_encoding
return __ENCODING__

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb/version.rb - irb version definition file
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb/workspace-binding.rb -
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# irb/ws-for-case-2.rb -
# $Release Version: 0.9.6$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# xmp.rb - irb version of gotoken xmp
# $Release Version: 0.9$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# logger.rb - simple logging utility
# Copyright (C) 2000-2003, 2005, 2008, 2011 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#--
# $Release Version: 0.5 $
# $Revision: 1.1.1.1.4.1 $

View file

@ -1,4 +1,5 @@
# encoding: utf-8
# frozen_string_literal: false
#
# = matrix.rb
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
class Matrix
# Adapted from JAMA: http://math.nist.gov/javanumerics/jama/

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
class Matrix
# Adapted from JAMA: http://math.nist.gov/javanumerics/jama/

View file

@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
# frozen_string_literal: false
# frozen-string-literal: false
# module to create Makefile for extension modules
# invoke like: ruby -r mkmf extconf.rb

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# = monitor.rb
#
# Copyright (C) 2001 Shugo Maeda <shugo@ruby-lang.org>

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# mutex_m.rb -
# $Release Version: 3.0$

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# = net/http.rb
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# for backward compatibility
# :enddoc:

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# Net::HTTP exception class.
# You cannot use Net::HTTPExceptions directly; instead, you must use
# its subclasses.

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# HTTPGenericRequest is the parent of the HTTPRequest class.
# Do not use this directly; use a subclass of HTTPRequest.
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# The HTTPHeader module defines methods for reading and writing
# HTTP headers.
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
module Net::HTTP::ProxyDelta #:nodoc: internal use only
private

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# HTTP request class.
# This class wraps together the request header and the request path.
# You cannot use this class directly. Instead, you should use one of its

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# HTTP/1.1 methods --- RFC2616
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# HTTP response class.
#
# This class wraps together the response header and the response body (the

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# :stopdoc:
class Net::HTTPUnknownResponse < Net::HTTPResponse
HAS_BODY = true

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
=begin
= net/https -- SSL/TLS enhancement for Net::HTTP.

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# = net/pop.rb
#
# Copyright (c) 1999-2007 Yukihiro Matsumoto.

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# = net/protocol.rb
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
# = net/smtp.rb
#
# Copyright (c) 1999-2007 Yukihiro Matsumoto.

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# Implementation of the _Observer_ object-oriented design pattern. The
# following documentation is copied, with modifications, from "Programming

View file

@ -1 +1,2 @@
# frozen_string_literal: false
require_relative 'optparse'

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
#
# optparse.rb - command-line option analysis with the OptionParser class.
#

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'optparse'
class OptionParser::AC < OptionParser

View file

@ -1,3 +1,4 @@
# frozen_string_literal: false
require 'optparse'
require 'date'

Some files were not shown because too many files have changed in this diff Show more