Fixed misspellings

Fixed misspellings reported at [Bug #16437], for default gems.
This commit is contained in:
Nobuyoshi Nakada 2019-12-20 12:19:45 +09:00
parent e672494cd7
commit e68999c82c
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60
28 changed files with 39 additions and 39 deletions

View File

@ -319,7 +319,7 @@ require "irb/version"
# # check if Foo#foo is available
# irb(main):005:0> Foo.instance_methods #=> [:foo, ...]
#
# # change the active sesssion
# # change the active session
# irb(main):006:0> fg 2
# # define Foo#bar in the context of Foo
# irb.2(Foo):005:0> def bar

View File

@ -32,7 +32,7 @@ module IRB # :nodoc:
# Displays current configuration.
#
# Modifing the configuration is achieved by sending a message to IRB.conf.
# Modifying the configuration is achieved by sending a message to IRB.conf.
def irb_context
IRB.CurrentContext
end

View File

@ -1242,7 +1242,7 @@ module Net
# Returns the status (STAT command).
#
# pathname:: when stat is invoked with pathname as a parameter it acts like
# list but alot faster and over the same tcp session.
# list but a lot faster and over the same tcp session.
#
def status(pathname = nil)
line = pathname ? "STAT #{pathname}" : "STAT"

View File

@ -199,7 +199,7 @@ module Racc
else
require 'racc/cparse'
end
# Racc_Runtime_Core_Version_C = (defined in extention)
# Racc_Runtime_Core_Version_C = (defined in extension)
Racc_Runtime_Core_Revision_C = Racc_Runtime_Core_Id_C.split[2]
unless new.respond_to?(:_racc_do_parse_c, true)
raise LoadError, 'old cparse.so'

View File

@ -197,7 +197,7 @@ module Racc
else
require 'racc/cparse'
end
# Racc_Runtime_Core_Version_C = (defined in extention)
# Racc_Runtime_Core_Version_C = (defined in extension)
Racc_Runtime_Core_Revision_C = Racc_Runtime_Core_Id_C.split[2]
unless new.respond_to?(:_racc_do_parse_c, true)
raise LoadError, 'old cparse.so'

View File

@ -2,7 +2,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.4.14
# from Racc grammer file "".
# from Racc grammar file "".
#
require 'racc/parser.rb'

View File

@ -2,7 +2,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.4.14
# from Racc grammer file "".
# from Racc grammar file "".
#
require 'racc/parser.rb'

View File

@ -553,7 +553,7 @@ class Reline::LineEditor
preposing, target, postposing = retrieve_completion_block
list = list.select { |i|
if i and not Encoding.compatible?(target.encoding, i.encoding)
raise Encoding::CompatibilityError, "#{target.encoding.name} is not comaptible with #{i.encoding.name}"
raise Encoding::CompatibilityError, "#{target.encoding.name} is not compatible with #{i.encoding.name}"
end
if @config.completion_ignore_case
i&.downcase&.start_with?(target.downcase)

View File

@ -241,7 +241,7 @@ class Tracer
end
##
# Register an event handler <code>p</code> which is called everytime a line
# Register an event handler <code>p</code> which is called every time a line
# in +file_name+ is executed.
#
# Example:

View File

@ -214,7 +214,7 @@ module WEBrick
def service(req, res)
# if this class is mounted on "/" and /~username is requested.
# we're going to override path informations before invoking service.
# we're going to override path information before invoking service.
if defined?(Etc) && @options[:UserDir] && req.script_name.empty?
if %r|^(/~([^/]+))| =~ req.path_info
script_name, user = $1, $2

View File

@ -6,7 +6,7 @@
#
# This program is free software.
# You can distribute/modify this program under the terms of
# the GNU LGPL, Lesser General Public Lisence version 2.1.
# the GNU LGPL, Lesser General Public License version 2.1.
# For details of the GNU LGPL, see the file "COPYING".
#

View File

@ -24,7 +24,7 @@ class SpecdocFormatter < BaseFormatter
# the sequential number of the exception raised. If
# there has already been an exception raised while
# evaluating this example, it prints another +it+
# block description string so that each discription
# block description string so that each description
# string has an associated 'ERROR' or 'FAILED'
def exception(exception)
print "\n- #{exception.it}" if exception?

View File

@ -94,7 +94,7 @@ class MSpecOptions
@options.find { |o| o.match? opt }
end
# Processes an option. Calles the #on_extra block (or default) for
# Processes an option. Calls the #on_extra block (or default) for
# unrecognized options. For registered options, possibly fetches an
# argument and invokes the option's block if it is not nil.
def process(argv, entry, opt, arg)
@ -414,7 +414,7 @@ class MSpecOptions
end
def interrupt
on("--int-spec", "Control-C interupts the current spec only") do
on("--int-spec", "Control-C interrupts the current spec only") do
config[:abort] = false
end
end

View File

@ -41,7 +41,7 @@ describe "MSpec expectation method #should" do
:sym.should be_kind_of(Symbol)
end
it "causes a failue to be recorded" do
it "causes a failure to be recorded" do
1.should == 2
end

View File

@ -13,7 +13,7 @@ describe "MSpec" do
it "records failures" do
@out.should include <<-EOS
1)
MSpec expectation method #should causes a failue to be recorded FAILED
MSpec expectation method #should causes a failure to be recorded FAILED
Expected 1 == 2
to be truthy but was false
EOS

View File

@ -52,7 +52,7 @@ describe SpecPositiveOperatorMatcher, ">= operator" do
end
end
describe SpecPositiveOperatorMatcher, "< operater" do
describe SpecPositiveOperatorMatcher, "< operator" do
it "provides a failure message that 'Expected x to be less than y'" do
lambda {
SpecPositiveOperatorMatcher.new(5) < 4
@ -64,7 +64,7 @@ describe SpecPositiveOperatorMatcher, "< operater" do
end
end
describe SpecPositiveOperatorMatcher, "<= operater" do
describe SpecPositiveOperatorMatcher, "<= operator" do
it "provides a failure message that 'Expected x to be less than or equal to y'" do
lambda {
SpecPositiveOperatorMatcher.new(5) <= 4

View File

@ -8,7 +8,7 @@ describe ComplainMatcher do
ComplainMatcher.new(nil).matches?(proc).should == true
end
it "maches when executing the proc results in the expected output to $stderr" do
it "matches when executing the proc results in the expected output to $stderr" do
proc = lambda { warn "Que haces?" }
ComplainMatcher.new("Que haces?\n").matches?(proc).should == true
ComplainMatcher.new("Que pasa?\n").matches?(proc).should == false

View File

@ -91,7 +91,7 @@ describe DottedFormatter, "#exception" do
@formatter.exception?.should be_true
end
it "addes the exception to the list of exceptions" do
it "adds the exception to the list of exceptions" do
@formatter.exceptions.should == []
@formatter.exception @error
@formatter.exception @failure

View File

@ -406,7 +406,7 @@ describe MSpecScript, "#files" do
@script = MSpecScript.new
end
it "accumlates the values returned by #entries" do
it "accumulates the values returned by #entries" do
@script.should_receive(:entries).and_return(["file1"], ["file2"])
@script.files(["a", "b"]).should == ["file1", "file2"]
end

View File

@ -208,7 +208,7 @@ class TestDateParse < Test::Unit::TestCase
[['08-DEC-0088',false],[88,12,8,nil,nil,nil,nil,nil,nil], __LINE__],
[['08-DEC-0088',true],[88,12,8,nil,nil,nil,nil,nil,nil], __LINE__],
# swaped vms
# swapped vms
[['DEC-08-1988',false],[1988,12,8,nil,nil,nil,nil,nil,nil], __LINE__],
[['JAN-31-1999',false],[1999,1,31,nil,nil,nil,nil,nil,nil], __LINE__],
[['JAN-31--1999',false],[-1999,1,31,nil,nil,nil,nil,nil,nil], __LINE__],

View File

@ -70,7 +70,7 @@ class ClassNameCheckTest < Test::Unit::TestCase
# This is a weird require, but in a multi-threaded condition, a constant may
# be loaded between when a NameError occurred and when the spell checker
# attemps to find a possible suggestion. The manual require here simulates
# attempts to find a possible suggestion. The manual require here simulates
# a race condition a single test.
require_relative '../fixtures/book'

View File

@ -51,7 +51,7 @@ class TestLogDevice < Test::Unit::TestCase
ensure
logdev.close
end
# create logfile whitch is already exist.
# create logfile which is already exist.
logdev = d(@filename)
begin
assert_predicate(logdev.dev, :sync)

View File

@ -61,14 +61,14 @@ foo\\bar::foo\\bar = baz
[default1 default2]\t\t # space is allowed in section name
fo =b ar # space allowed in value
[emptysection]
[doller ]
[dollar ]
foo=bar
bar = $(foo)
baz = 123$(default::bar)456${foo}798
qux = ${baz}
quxx = $qux.$qux
__EOC__
assert_equal(['default', 'default1 default2', 'doller', 'emptysection', 'foo', 'foo\\bar'], c.sections.sort)
assert_equal(['default', 'default1 default2', 'dollar', 'emptysection', 'foo', 'foo\\bar'], c.sections.sort)
assert_equal(['', 'a', 'bar', 'baz', 'd', 'dq', 'dq2', 'esc', 'foo\\bar', 'sq'], c['default'].keys.sort)
assert_equal('c', c['default'][''])
assert_equal('', c['default']['a'])
@ -84,12 +84,12 @@ __EOC__
assert_equal('baz', c['foo\\bar']['foo\\bar'])
assert_equal('b ar', c['default1 default2']['fo'])
# dolloer
assert_equal('bar', c['doller']['foo'])
assert_equal('bar', c['doller']['bar'])
assert_equal('123baz456bar798', c['doller']['baz'])
assert_equal('123baz456bar798', c['doller']['qux'])
assert_equal('123baz456bar798.123baz456bar798', c['doller']['quxx'])
# dollar
assert_equal('bar', c['dollar']['foo'])
assert_equal('bar', c['dollar']['bar'])
assert_equal('123baz456bar798', c['dollar']['baz'])
assert_equal('123baz456bar798', c['dollar']['qux'])
assert_equal('123baz456bar798.123baz456bar798', c['dollar']['quxx'])
excn = assert_raise(OpenSSL::ConfigError) do
OpenSSL::Config.parse("foo = $bar")

View File

@ -586,7 +586,7 @@ def n(cls, *args)
rescue
puts "An exception occurred during the creation of a #{cls} instance."
puts
puts "The arguments passed to the constructer were:"
puts "The arguments passed to the constructor were:"
puts args
puts
puts @tok.last.context

View File

@ -56,7 +56,7 @@ def n(cls, *args)
rescue
puts "An exception occurred during the creation of a #{cls} instance."
puts
puts "The arguments passed to the constructer were:"
puts "The arguments passed to the constructor were:"
puts args
puts
puts @tok.last.context

View File

@ -270,7 +270,7 @@ it easy to use Markdown to write about HTML example code:
I strongly recommend against using any `<blink>` tags.
I wish SmartyPants used named entities like `&mdash;`
instead of decimal-encoded entites like `&#8212;`.
instead of decimal-encoded entities like `&#8212;`.
Output:
@ -279,7 +279,7 @@ Output:
<p>I wish SmartyPants used named entities like
<code>&amp;mdash;</code> instead of decimal-encoded
entites like <code>&amp;#8212;</code>.</p>
entities like <code>&amp;#8212;</code>.</p>
To specify an entire block of pre-formatted code, indent every line of

View File

@ -744,7 +744,7 @@ foo
"I strongly recommend against using any `<blink>` tags.\n",
"\n",
"I wish SmartyPants used named entities like `&mdash;`\n",
"instead of decimal-encoded entites like `&#8212;`.\n"),
"instead of decimal-encoded entities like `&#8212;`.\n"),
para("Output:"),
@ -753,7 +753,7 @@ foo
"\n",
"<p>I wish SmartyPants used named entities like\n",
"<code>&amp;mdash;</code> instead of decimal-encoded\n",
"entites like <code>&amp;#8212;</code>.</p>\n"),
"entities like <code>&amp;#8212;</code>.</p>\n"),
para("To specify an entire block of pre-formatted code, indent every line of\n" +
"the block by 4 spaces or 1 tab. Just like with code spans, <code>&</code>, <code><</code>,\n" +

View File

@ -3504,7 +3504,7 @@ end
#
# The previous test assumes that between the =begin/=end blocks that there
# is only one line, or minima formatting directives. This test tests for
# those who use the =begin bloc with longer / more advanced formatting
# those who use the =begin block with longer / more advanced formatting
# within.
#
##