зеркало из https://github.com/github/ruby.git
Fixed misspellings
Fixed misspellings reported at [Bug #16437], for default gems.
This commit is contained in:
Родитель
e672494cd7
Коммит
e68999c82c
|
@ -319,7 +319,7 @@ require "irb/version"
|
||||||
# # check if Foo#foo is available
|
# # check if Foo#foo is available
|
||||||
# irb(main):005:0> Foo.instance_methods #=> [:foo, ...]
|
# irb(main):005:0> Foo.instance_methods #=> [:foo, ...]
|
||||||
#
|
#
|
||||||
# # change the active sesssion
|
# # change the active session
|
||||||
# irb(main):006:0> fg 2
|
# irb(main):006:0> fg 2
|
||||||
# # define Foo#bar in the context of Foo
|
# # define Foo#bar in the context of Foo
|
||||||
# irb.2(Foo):005:0> def bar
|
# irb.2(Foo):005:0> def bar
|
||||||
|
|
|
@ -32,7 +32,7 @@ module IRB # :nodoc:
|
||||||
|
|
||||||
# Displays current configuration.
|
# 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
|
def irb_context
|
||||||
IRB.CurrentContext
|
IRB.CurrentContext
|
||||||
end
|
end
|
||||||
|
|
|
@ -1242,7 +1242,7 @@ module Net
|
||||||
# Returns the status (STAT command).
|
# Returns the status (STAT command).
|
||||||
#
|
#
|
||||||
# pathname:: when stat is invoked with pathname as a parameter it acts like
|
# 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)
|
def status(pathname = nil)
|
||||||
line = pathname ? "STAT #{pathname}" : "STAT"
|
line = pathname ? "STAT #{pathname}" : "STAT"
|
||||||
|
|
|
@ -199,7 +199,7 @@ module Racc
|
||||||
else
|
else
|
||||||
require 'racc/cparse'
|
require 'racc/cparse'
|
||||||
end
|
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]
|
Racc_Runtime_Core_Revision_C = Racc_Runtime_Core_Id_C.split[2]
|
||||||
unless new.respond_to?(:_racc_do_parse_c, true)
|
unless new.respond_to?(:_racc_do_parse_c, true)
|
||||||
raise LoadError, 'old cparse.so'
|
raise LoadError, 'old cparse.so'
|
||||||
|
|
|
@ -197,7 +197,7 @@ module Racc
|
||||||
else
|
else
|
||||||
require 'racc/cparse'
|
require 'racc/cparse'
|
||||||
end
|
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]
|
Racc_Runtime_Core_Revision_C = Racc_Runtime_Core_Id_C.split[2]
|
||||||
unless new.respond_to?(:_racc_do_parse_c, true)
|
unless new.respond_to?(:_racc_do_parse_c, true)
|
||||||
raise LoadError, 'old cparse.so'
|
raise LoadError, 'old cparse.so'
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#
|
#
|
||||||
# DO NOT MODIFY!!!!
|
# DO NOT MODIFY!!!!
|
||||||
# This file is automatically generated by Racc 1.4.14
|
# This file is automatically generated by Racc 1.4.14
|
||||||
# from Racc grammer file "".
|
# from Racc grammar file "".
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'racc/parser.rb'
|
require 'racc/parser.rb'
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#
|
#
|
||||||
# DO NOT MODIFY!!!!
|
# DO NOT MODIFY!!!!
|
||||||
# This file is automatically generated by Racc 1.4.14
|
# This file is automatically generated by Racc 1.4.14
|
||||||
# from Racc grammer file "".
|
# from Racc grammar file "".
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'racc/parser.rb'
|
require 'racc/parser.rb'
|
||||||
|
|
|
@ -553,7 +553,7 @@ class Reline::LineEditor
|
||||||
preposing, target, postposing = retrieve_completion_block
|
preposing, target, postposing = retrieve_completion_block
|
||||||
list = list.select { |i|
|
list = list.select { |i|
|
||||||
if i and not Encoding.compatible?(target.encoding, i.encoding)
|
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
|
end
|
||||||
if @config.completion_ignore_case
|
if @config.completion_ignore_case
|
||||||
i&.downcase&.start_with?(target.downcase)
|
i&.downcase&.start_with?(target.downcase)
|
||||||
|
|
|
@ -241,7 +241,7 @@ class Tracer
|
||||||
end
|
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.
|
# in +file_name+ is executed.
|
||||||
#
|
#
|
||||||
# Example:
|
# Example:
|
||||||
|
|
|
@ -214,7 +214,7 @@ module WEBrick
|
||||||
|
|
||||||
def service(req, res)
|
def service(req, res)
|
||||||
# if this class is mounted on "/" and /~username is requested.
|
# 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 defined?(Etc) && @options[:UserDir] && req.script_name.empty?
|
||||||
if %r|^(/~([^/]+))| =~ req.path_info
|
if %r|^(/~([^/]+))| =~ req.path_info
|
||||||
script_name, user = $1, $2
|
script_name, user = $1, $2
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#
|
#
|
||||||
# This program is free software.
|
# This program is free software.
|
||||||
# You can distribute/modify this program under the terms of
|
# 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".
|
# For details of the GNU LGPL, see the file "COPYING".
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ class SpecdocFormatter < BaseFormatter
|
||||||
# the sequential number of the exception raised. If
|
# the sequential number of the exception raised. If
|
||||||
# there has already been an exception raised while
|
# there has already been an exception raised while
|
||||||
# evaluating this example, it prints another +it+
|
# 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'
|
# string has an associated 'ERROR' or 'FAILED'
|
||||||
def exception(exception)
|
def exception(exception)
|
||||||
print "\n- #{exception.it}" if exception?
|
print "\n- #{exception.it}" if exception?
|
||||||
|
|
|
@ -94,7 +94,7 @@ class MSpecOptions
|
||||||
@options.find { |o| o.match? opt }
|
@options.find { |o| o.match? opt }
|
||||||
end
|
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
|
# unrecognized options. For registered options, possibly fetches an
|
||||||
# argument and invokes the option's block if it is not nil.
|
# argument and invokes the option's block if it is not nil.
|
||||||
def process(argv, entry, opt, arg)
|
def process(argv, entry, opt, arg)
|
||||||
|
@ -414,7 +414,7 @@ class MSpecOptions
|
||||||
end
|
end
|
||||||
|
|
||||||
def interrupt
|
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
|
config[:abort] = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -41,7 +41,7 @@ describe "MSpec expectation method #should" do
|
||||||
:sym.should be_kind_of(Symbol)
|
:sym.should be_kind_of(Symbol)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "causes a failue to be recorded" do
|
it "causes a failure to be recorded" do
|
||||||
1.should == 2
|
1.should == 2
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ describe "MSpec" do
|
||||||
it "records failures" do
|
it "records failures" do
|
||||||
@out.should include <<-EOS
|
@out.should include <<-EOS
|
||||||
1)
|
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
|
Expected 1 == 2
|
||||||
to be truthy but was false
|
to be truthy but was false
|
||||||
EOS
|
EOS
|
||||||
|
|
|
@ -52,7 +52,7 @@ describe SpecPositiveOperatorMatcher, ">= operator" do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe SpecPositiveOperatorMatcher, "< operater" do
|
describe SpecPositiveOperatorMatcher, "< operator" do
|
||||||
it "provides a failure message that 'Expected x to be less than y'" do
|
it "provides a failure message that 'Expected x to be less than y'" do
|
||||||
lambda {
|
lambda {
|
||||||
SpecPositiveOperatorMatcher.new(5) < 4
|
SpecPositiveOperatorMatcher.new(5) < 4
|
||||||
|
@ -64,7 +64,7 @@ describe SpecPositiveOperatorMatcher, "< operater" do
|
||||||
end
|
end
|
||||||
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
|
it "provides a failure message that 'Expected x to be less than or equal to y'" do
|
||||||
lambda {
|
lambda {
|
||||||
SpecPositiveOperatorMatcher.new(5) <= 4
|
SpecPositiveOperatorMatcher.new(5) <= 4
|
||||||
|
|
|
@ -8,7 +8,7 @@ describe ComplainMatcher do
|
||||||
ComplainMatcher.new(nil).matches?(proc).should == true
|
ComplainMatcher.new(nil).matches?(proc).should == true
|
||||||
end
|
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?" }
|
proc = lambda { warn "Que haces?" }
|
||||||
ComplainMatcher.new("Que haces?\n").matches?(proc).should == true
|
ComplainMatcher.new("Que haces?\n").matches?(proc).should == true
|
||||||
ComplainMatcher.new("Que pasa?\n").matches?(proc).should == false
|
ComplainMatcher.new("Que pasa?\n").matches?(proc).should == false
|
||||||
|
|
|
@ -91,7 +91,7 @@ describe DottedFormatter, "#exception" do
|
||||||
@formatter.exception?.should be_true
|
@formatter.exception?.should be_true
|
||||||
end
|
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.exceptions.should == []
|
||||||
@formatter.exception @error
|
@formatter.exception @error
|
||||||
@formatter.exception @failure
|
@formatter.exception @failure
|
||||||
|
|
|
@ -406,7 +406,7 @@ describe MSpecScript, "#files" do
|
||||||
@script = MSpecScript.new
|
@script = MSpecScript.new
|
||||||
end
|
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.should_receive(:entries).and_return(["file1"], ["file2"])
|
||||||
@script.files(["a", "b"]).should == ["file1", "file2"]
|
@script.files(["a", "b"]).should == ["file1", "file2"]
|
||||||
end
|
end
|
||||||
|
|
|
@ -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',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__],
|
[['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__],
|
[['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__],
|
||||||
[['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__],
|
||||||
|
|
|
@ -70,7 +70,7 @@ class ClassNameCheckTest < Test::Unit::TestCase
|
||||||
|
|
||||||
# This is a weird require, but in a multi-threaded condition, a constant may
|
# 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
|
# 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.
|
# a race condition a single test.
|
||||||
require_relative '../fixtures/book'
|
require_relative '../fixtures/book'
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ class TestLogDevice < Test::Unit::TestCase
|
||||||
ensure
|
ensure
|
||||||
logdev.close
|
logdev.close
|
||||||
end
|
end
|
||||||
# create logfile whitch is already exist.
|
# create logfile which is already exist.
|
||||||
logdev = d(@filename)
|
logdev = d(@filename)
|
||||||
begin
|
begin
|
||||||
assert_predicate(logdev.dev, :sync)
|
assert_predicate(logdev.dev, :sync)
|
||||||
|
|
|
@ -61,14 +61,14 @@ foo\\bar::foo\\bar = baz
|
||||||
[default1 default2]\t\t # space is allowed in section name
|
[default1 default2]\t\t # space is allowed in section name
|
||||||
fo =b ar # space allowed in value
|
fo =b ar # space allowed in value
|
||||||
[emptysection]
|
[emptysection]
|
||||||
[doller ]
|
[dollar ]
|
||||||
foo=bar
|
foo=bar
|
||||||
bar = $(foo)
|
bar = $(foo)
|
||||||
baz = 123$(default::bar)456${foo}798
|
baz = 123$(default::bar)456${foo}798
|
||||||
qux = ${baz}
|
qux = ${baz}
|
||||||
quxx = $qux.$qux
|
quxx = $qux.$qux
|
||||||
__EOC__
|
__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(['', 'a', 'bar', 'baz', 'd', 'dq', 'dq2', 'esc', 'foo\\bar', 'sq'], c['default'].keys.sort)
|
||||||
assert_equal('c', c['default'][''])
|
assert_equal('c', c['default'][''])
|
||||||
assert_equal('', c['default']['a'])
|
assert_equal('', c['default']['a'])
|
||||||
|
@ -84,12 +84,12 @@ __EOC__
|
||||||
assert_equal('baz', c['foo\\bar']['foo\\bar'])
|
assert_equal('baz', c['foo\\bar']['foo\\bar'])
|
||||||
assert_equal('b ar', c['default1 default2']['fo'])
|
assert_equal('b ar', c['default1 default2']['fo'])
|
||||||
|
|
||||||
# dolloer
|
# dollar
|
||||||
assert_equal('bar', c['doller']['foo'])
|
assert_equal('bar', c['dollar']['foo'])
|
||||||
assert_equal('bar', c['doller']['bar'])
|
assert_equal('bar', c['dollar']['bar'])
|
||||||
assert_equal('123baz456bar798', c['doller']['baz'])
|
assert_equal('123baz456bar798', c['dollar']['baz'])
|
||||||
assert_equal('123baz456bar798', c['doller']['qux'])
|
assert_equal('123baz456bar798', c['dollar']['qux'])
|
||||||
assert_equal('123baz456bar798.123baz456bar798', c['doller']['quxx'])
|
assert_equal('123baz456bar798.123baz456bar798', c['dollar']['quxx'])
|
||||||
|
|
||||||
excn = assert_raise(OpenSSL::ConfigError) do
|
excn = assert_raise(OpenSSL::ConfigError) do
|
||||||
OpenSSL::Config.parse("foo = $bar")
|
OpenSSL::Config.parse("foo = $bar")
|
||||||
|
|
|
@ -586,7 +586,7 @@ def n(cls, *args)
|
||||||
rescue
|
rescue
|
||||||
puts "An exception occurred during the creation of a #{cls} instance."
|
puts "An exception occurred during the creation of a #{cls} instance."
|
||||||
puts
|
puts
|
||||||
puts "The arguments passed to the constructer were:"
|
puts "The arguments passed to the constructor were:"
|
||||||
puts args
|
puts args
|
||||||
puts
|
puts
|
||||||
puts @tok.last.context
|
puts @tok.last.context
|
||||||
|
|
|
@ -56,7 +56,7 @@ def n(cls, *args)
|
||||||
rescue
|
rescue
|
||||||
puts "An exception occurred during the creation of a #{cls} instance."
|
puts "An exception occurred during the creation of a #{cls} instance."
|
||||||
puts
|
puts
|
||||||
puts "The arguments passed to the constructer were:"
|
puts "The arguments passed to the constructor were:"
|
||||||
puts args
|
puts args
|
||||||
puts
|
puts
|
||||||
puts @tok.last.context
|
puts @tok.last.context
|
||||||
|
|
|
@ -270,7 +270,7 @@ it easy to use Markdown to write about HTML example code:
|
||||||
I strongly recommend against using any `<blink>` tags.
|
I strongly recommend against using any `<blink>` tags.
|
||||||
|
|
||||||
I wish SmartyPants used named entities like `—`
|
I wish SmartyPants used named entities like `—`
|
||||||
instead of decimal-encoded entites like `—`.
|
instead of decimal-encoded entities like `—`.
|
||||||
|
|
||||||
Output:
|
Output:
|
||||||
|
|
||||||
|
@ -279,7 +279,7 @@ Output:
|
||||||
|
|
||||||
<p>I wish SmartyPants used named entities like
|
<p>I wish SmartyPants used named entities like
|
||||||
<code>&mdash;</code> instead of decimal-encoded
|
<code>&mdash;</code> instead of decimal-encoded
|
||||||
entites like <code>&#8212;</code>.</p>
|
entities like <code>&#8212;</code>.</p>
|
||||||
|
|
||||||
|
|
||||||
To specify an entire block of pre-formatted code, indent every line of
|
To specify an entire block of pre-formatted code, indent every line of
|
||||||
|
|
|
@ -744,7 +744,7 @@ foo
|
||||||
"I strongly recommend against using any `<blink>` tags.\n",
|
"I strongly recommend against using any `<blink>` tags.\n",
|
||||||
"\n",
|
"\n",
|
||||||
"I wish SmartyPants used named entities like `—`\n",
|
"I wish SmartyPants used named entities like `—`\n",
|
||||||
"instead of decimal-encoded entites like `—`.\n"),
|
"instead of decimal-encoded entities like `—`.\n"),
|
||||||
|
|
||||||
para("Output:"),
|
para("Output:"),
|
||||||
|
|
||||||
|
@ -753,7 +753,7 @@ foo
|
||||||
"\n",
|
"\n",
|
||||||
"<p>I wish SmartyPants used named entities like\n",
|
"<p>I wish SmartyPants used named entities like\n",
|
||||||
"<code>&mdash;</code> instead of decimal-encoded\n",
|
"<code>&mdash;</code> instead of decimal-encoded\n",
|
||||||
"entites like <code>&#8212;</code>.</p>\n"),
|
"entities like <code>&#8212;</code>.</p>\n"),
|
||||||
|
|
||||||
para("To specify an entire block of pre-formatted code, indent every line of\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" +
|
"the block by 4 spaces or 1 tab. Just like with code spans, <code>&</code>, <code><</code>,\n" +
|
||||||
|
|
|
@ -3504,7 +3504,7 @@ end
|
||||||
#
|
#
|
||||||
# The previous test assumes that between the =begin/=end blocks that there
|
# The previous test assumes that between the =begin/=end blocks that there
|
||||||
# is only one line, or minima formatting directives. This test tests for
|
# 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.
|
# within.
|
||||||
#
|
#
|
||||||
##
|
##
|
||||||
|
|
Загрузка…
Ссылка в новой задаче