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:
parent
f6f7073e12
commit
3e92b635fb
1432 changed files with 1433 additions and 1 deletions
|
@ -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}.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#--
|
||||
# Copyright (c) 2001,2003 Akinori MUSHA <knu@iDaemons.org>
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# = base64.rb: methods for base64-encoding and -decoding strings
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#--
|
||||
# benchmark.rb - a performance benchmarking library
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# cgi.rb - cgi support library
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'cgi/util'
|
||||
class CGI
|
||||
# Class representing an HTTP cookie.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#--
|
||||
# Methods for generating HTML, parsing CGI-related parameters, and
|
||||
# generating HTTP responses.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
class CGI
|
||||
# Base module for HTML-generation mixins.
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# cgi/session.rb - session support for cgi scripts
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# cgi/session/pstore.rb - persistent storage of marshalled session data
|
||||
#
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
##
|
||||
# = Trigonometric and transcendental functions for complex numbers.
|
||||
#
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# = delegate -- Support for the Delegation Pattern
|
||||
#
|
||||
# Documentation by James Edward Gray II and Gavin Sinclair
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
# frozen_string_literal: false
|
||||
require 'drb/drb'
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# Copyright (c) 2000,2002,2003 Masatoshi SEKI
|
||||
#
|
||||
# acl.rb is copyrighted free software by Masatoshi SEKI.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# = drb/drb.rb
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
module DRb
|
||||
class DRbObject # :nodoc:
|
||||
def ==(other)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
=begin
|
||||
external service
|
||||
Copyright (c) 2000,2002 Masatoshi SEKI
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
=begin
|
||||
external service manager
|
||||
Copyright (c) 2000 Masatoshi SEKI
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'drb/drb'
|
||||
require 'monitor'
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# for ruby-1.8.0
|
||||
|
||||
module DRb # :nodoc: all
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'observer'
|
||||
|
||||
module DRb
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'socket'
|
||||
require 'openssl'
|
||||
require 'drb/drb'
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'drb/drb'
|
||||
require 'monitor'
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'socket'
|
||||
require 'drb/drb'
|
||||
require 'tmpdir'
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
#--
|
||||
# e2mmap.rb - for Ruby 1.1
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# -*- coding: us-ascii -*-
|
||||
# frozen_string_literal: false
|
||||
# = ERB -- Ruby Templating
|
||||
#
|
||||
# Author:: Masatoshi SEKI
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# = fileutils.rb
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# find.rb: the Find module for processing all files under a given directory.
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# forwardable.rb -
|
||||
# $Release Version: 1.1$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# GetoptLong for Ruby
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# ipaddr.rb - A class to manipulate an IP address
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb.rb - irb main module
|
||||
# $Release Version: 0.9.6 $
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# change-ws.rb -
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# fork.rb -
|
||||
# $Release Version: 0.9.6 $
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# help.rb - helper using ri
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# load.rb -
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# nop.rb -
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# change-ws.rb -
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# multi.rb -
|
||||
# $Release Version: 0.9.6$
|
||||
# $Revision$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb/completor.rb -
|
||||
# $Release Version: 0.9$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb/context.rb - irb context
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb/ext/cb.rb -
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# history.rb -
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# loader.rb -
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# math-mode.rb -
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb/multi-irb.rb - multiple irb module
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# save-history.rb -
|
||||
# $Release Version: 0.9.6$
|
||||
# $Revision$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb/lib/tracer.rb -
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# use-loader.rb -
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# push-ws.rb -
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb/extend-command.rb - irb extend command
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# frame.rb -
|
||||
# $Release Version: 0.9$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb/help.rb - print usage module
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb/init.rb - irb initialize module
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb/input-method.rb - input methods used irb
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb/inspector.rb - inspect methods
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb/lc/error.rb -
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# :stopdoc:
|
||||
module IRB
|
||||
class Locale
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# frozen_string_literal: false
|
||||
# irb/lc/ja/error.rb -
|
||||
# $Release Version: 0.9.6$
|
||||
# $Revision$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb/locale.rb - internationalization module
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
module IRB
|
||||
class << (MagicFile = Object.new)
|
||||
# see parser_magic_comment in parse.y
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# notifier.rb - output methods used by irb
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# output-method.rb - output methods used by irb
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb/ruby-lex.rb - ruby lexcal analyzer
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb/ruby-token.rb - ruby tokens
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb/slex.rb - simple lex analyzer
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# DO NOT WRITE ANY MAGIC COMMENT HERE.
|
||||
def default_src_encoding
|
||||
return __ENCODING__
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb/version.rb - irb version definition file
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb/workspace-binding.rb -
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# irb/ws-for-case-2.rb -
|
||||
# $Release Version: 0.9.6$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# xmp.rb - irb version of gotoken xmp
|
||||
# $Release Version: 0.9$
|
||||
|
|
|
@ -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>.
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#--
|
||||
# $Release Version: 0.5 $
|
||||
# $Revision: 1.1.1.1.4.1 $
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# encoding: utf-8
|
||||
# frozen_string_literal: false
|
||||
#
|
||||
# = matrix.rb
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
class Matrix
|
||||
# Adapted from JAMA: http://math.nist.gov/javanumerics/jama/
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
class Matrix
|
||||
# Adapted from JAMA: http://math.nist.gov/javanumerics/jama/
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# = monitor.rb
|
||||
#
|
||||
# Copyright (C) 2001 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# mutex_m.rb -
|
||||
# $Release Version: 3.0$
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# = net/http.rb
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# for backward compatibility
|
||||
|
||||
# :enddoc:
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# Net::HTTP exception class.
|
||||
# You cannot use Net::HTTPExceptions directly; instead, you must use
|
||||
# its subclasses.
|
||||
|
|
|
@ -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.
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# The HTTPHeader module defines methods for reading and writing
|
||||
# HTTP headers.
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
module Net::HTTP::ProxyDelta #:nodoc: internal use only
|
||||
private
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# HTTP/1.1 methods --- RFC2616
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# HTTP response class.
|
||||
#
|
||||
# This class wraps together the response header and the response body (the
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# :stopdoc:
|
||||
class Net::HTTPUnknownResponse < Net::HTTPResponse
|
||||
HAS_BODY = true
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
=begin
|
||||
|
||||
= net/https -- SSL/TLS enhancement for Net::HTTP.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# = net/pop.rb
|
||||
#
|
||||
# Copyright (c) 1999-2007 Yukihiro Matsumoto.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# = net/protocol.rb
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# = net/smtp.rb
|
||||
#
|
||||
# Copyright (c) 1999-2007 Yukihiro Matsumoto.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
require_relative 'optparse'
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
#
|
||||
# optparse.rb - command-line option analysis with the OptionParser class.
|
||||
#
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
require 'optparse'
|
||||
|
||||
class OptionParser::AC < OptionParser
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue