aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-20 12:19:45 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-20 12:19:45 +0900
commite68999c82c4863d33a6f893661fba1b7538c5671 (patch)
tree97615ccb396e864cbabbfd539251c9e64c309d91
parente672494cd737b8fea3a186aeb5c2c17d1a18cb96 (diff)
downloadruby-e68999c82c4863d33a6f893661fba1b7538c5671.tar.gz
Fixed misspellings
Fixed misspellings reported at [Bug #16437], for default gems.
-rw-r--r--lib/irb.rb2
-rw-r--r--lib/irb/extend-command.rb2
-rw-r--r--lib/net/ftp.rb2
-rw-r--r--lib/racc/parser-text.rb2
-rw-r--r--lib/racc/parser.rb2
-rw-r--r--lib/rdoc/rd/block_parser.rb2
-rw-r--r--lib/rdoc/rd/inline_parser.rb2
-rw-r--r--lib/reline/line_editor.rb2
-rw-r--r--lib/tracer.rb2
-rw-r--r--lib/webrick/httpservlet/filehandler.rb2
-rwxr-xr-xlibexec/y2racc2
-rw-r--r--spec/mspec/lib/mspec/runner/formatters/specdoc.rb2
-rw-r--r--spec/mspec/lib/mspec/utils/options.rb4
-rw-r--r--spec/mspec/spec/expectations/should.rb2
-rw-r--r--spec/mspec/spec/expectations/should_spec.rb2
-rw-r--r--spec/mspec/spec/matchers/base_spec.rb4
-rw-r--r--spec/mspec/spec/matchers/complain_spec.rb2
-rw-r--r--spec/mspec/spec/runner/formatters/dotted_spec.rb2
-rw-r--r--spec/mspec/spec/utils/script_spec.rb2
-rw-r--r--test/date/test_date_parse.rb2
-rw-r--r--test/did_you_mean/spell_checking/test_class_name_check.rb2
-rw-r--r--test/logger/test_logdevice.rb2
-rw-r--r--test/openssl/test_config.rb16
-rw-r--r--test/racc/assets/nasl.y2
-rw-r--r--test/racc/regress/nasl2
-rw-r--r--test/rdoc/MarkdownTest_1.0.3/Markdown Documentation - Basics.text4
-rw-r--r--test/rdoc/test_rdoc_markdown_test.rb4
-rw-r--r--test/rdoc/test_rdoc_parser_ruby.rb2
28 files changed, 39 insertions, 39 deletions
diff --git a/lib/irb.rb b/lib/irb.rb
index f6fc9690f2..a907894fe2 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -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
diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb
index fe246606b3..de145e962d 100644
--- a/lib/irb/extend-command.rb
+++ b/lib/irb/extend-command.rb
@@ -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
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb
index 2b7d19a662..d1e545c0c8 100644
--- a/lib/net/ftp.rb
+++ b/lib/net/ftp.rb
@@ -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"
diff --git a/lib/racc/parser-text.rb b/lib/racc/parser-text.rb
index 028af61e4c..31b8e2c01f 100644
--- a/lib/racc/parser-text.rb
+++ b/lib/racc/parser-text.rb
@@ -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'
diff --git a/lib/racc/parser.rb b/lib/racc/parser.rb
index dd446d1aa1..56b4af9dea 100644
--- a/lib/racc/parser.rb
+++ b/lib/racc/parser.rb
@@ -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'
diff --git a/lib/rdoc/rd/block_parser.rb b/lib/rdoc/rd/block_parser.rb
index 37b35a5924..f735326862 100644
--- a/lib/rdoc/rd/block_parser.rb
+++ b/lib/rdoc/rd/block_parser.rb
@@ -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'
diff --git a/lib/rdoc/rd/inline_parser.rb b/lib/rdoc/rd/inline_parser.rb
index 85e4215964..f73b81ba9d 100644
--- a/lib/rdoc/rd/inline_parser.rb
+++ b/lib/rdoc/rd/inline_parser.rb
@@ -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'
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 42a2b5b519..0ddafb420b 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -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)
diff --git a/lib/tracer.rb b/lib/tracer.rb
index 8011ad2399..c1540b8d23 100644
--- a/lib/tracer.rb
+++ b/lib/tracer.rb
@@ -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:
diff --git a/lib/webrick/httpservlet/filehandler.rb b/lib/webrick/httpservlet/filehandler.rb
index 601882ef4c..7cac05d818 100644
--- a/lib/webrick/httpservlet/filehandler.rb
+++ b/lib/webrick/httpservlet/filehandler.rb
@@ -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
diff --git a/libexec/y2racc b/libexec/y2racc
index 38bd3669a2..7933f94153 100755
--- a/libexec/y2racc
+++ b/libexec/y2racc
@@ -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".
#
diff --git a/spec/mspec/lib/mspec/runner/formatters/specdoc.rb b/spec/mspec/lib/mspec/runner/formatters/specdoc.rb
index 35092018f6..d3a5c3d729 100644
--- a/spec/mspec/lib/mspec/runner/formatters/specdoc.rb
+++ b/spec/mspec/lib/mspec/runner/formatters/specdoc.rb
@@ -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?
diff --git a/spec/mspec/lib/mspec/utils/options.rb b/spec/mspec/lib/mspec/utils/options.rb
index af9a9b3f0e..3e3f708a2f 100644
--- a/spec/mspec/lib/mspec/utils/options.rb
+++ b/spec/mspec/lib/mspec/utils/options.rb
@@ -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
diff --git a/spec/mspec/spec/expectations/should.rb b/spec/mspec/spec/expectations/should.rb
index 24b1cf2bf8..48503b1631 100644
--- a/spec/mspec/spec/expectations/should.rb
+++ b/spec/mspec/spec/expectations/should.rb
@@ -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
diff --git a/spec/mspec/spec/expectations/should_spec.rb b/spec/mspec/spec/expectations/should_spec.rb
index 2c896f1c3b..b8bda8f86f 100644
--- a/spec/mspec/spec/expectations/should_spec.rb
+++ b/spec/mspec/spec/expectations/should_spec.rb
@@ -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
diff --git a/spec/mspec/spec/matchers/base_spec.rb b/spec/mspec/spec/matchers/base_spec.rb
index 4694d754f7..762822bf09 100644
--- a/spec/mspec/spec/matchers/base_spec.rb
+++ b/spec/mspec/spec/matchers/base_spec.rb
@@ -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
diff --git a/spec/mspec/spec/matchers/complain_spec.rb b/spec/mspec/spec/matchers/complain_spec.rb
index 83ecb70622..90f94c3684 100644
--- a/spec/mspec/spec/matchers/complain_spec.rb
+++ b/spec/mspec/spec/matchers/complain_spec.rb
@@ -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
diff --git a/spec/mspec/spec/runner/formatters/dotted_spec.rb b/spec/mspec/spec/runner/formatters/dotted_spec.rb
index 1e9b06f6e1..5af2ff55f8 100644
--- a/spec/mspec/spec/runner/formatters/dotted_spec.rb
+++ b/spec/mspec/spec/runner/formatters/dotted_spec.rb
@@ -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
diff --git a/spec/mspec/spec/utils/script_spec.rb b/spec/mspec/spec/utils/script_spec.rb
index e3188ab5ff..3cc85fa1e2 100644
--- a/spec/mspec/spec/utils/script_spec.rb
+++ b/spec/mspec/spec/utils/script_spec.rb
@@ -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
diff --git a/test/date/test_date_parse.rb b/test/date/test_date_parse.rb
index 660d083799..9f92635387 100644
--- a/test/date/test_date_parse.rb
+++ b/test/date/test_date_parse.rb
@@ -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__],
diff --git a/test/did_you_mean/spell_checking/test_class_name_check.rb b/test/did_you_mean/spell_checking/test_class_name_check.rb
index 388dbe89a7..ffe7a4c31b 100644
--- a/test/did_you_mean/spell_checking/test_class_name_check.rb
+++ b/test/did_you_mean/spell_checking/test_class_name_check.rb
@@ -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'
diff --git a/test/logger/test_logdevice.rb b/test/logger/test_logdevice.rb
index eaea4c8522..2a01dab17f 100644
--- a/test/logger/test_logdevice.rb
+++ b/test/logger/test_logdevice.rb
@@ -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)
diff --git a/test/openssl/test_config.rb b/test/openssl/test_config.rb
index 8096375c07..3606c67d65 100644
--- a/test/openssl/test_config.rb
+++ b/test/openssl/test_config.rb
@@ -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")
diff --git a/test/racc/assets/nasl.y b/test/racc/assets/nasl.y
index e68dd699f8..c7b8e46551 100644
--- a/test/racc/assets/nasl.y
+++ b/test/racc/assets/nasl.y
@@ -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
diff --git a/test/racc/regress/nasl b/test/racc/regress/nasl
index 2904866ee6..ea47343001 100644
--- a/test/racc/regress/nasl
+++ b/test/racc/regress/nasl
@@ -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
diff --git a/test/rdoc/MarkdownTest_1.0.3/Markdown Documentation - Basics.text b/test/rdoc/MarkdownTest_1.0.3/Markdown Documentation - Basics.text
index 6c5a6fdb4b..b499390f2d 100644
--- a/test/rdoc/MarkdownTest_1.0.3/Markdown Documentation - Basics.text
+++ b/test/rdoc/MarkdownTest_1.0.3/Markdown Documentation - Basics.text
@@ -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
diff --git a/test/rdoc/test_rdoc_markdown_test.rb b/test/rdoc/test_rdoc_markdown_test.rb
index fff68818b5..0ecd000136 100644
--- a/test/rdoc/test_rdoc_markdown_test.rb
+++ b/test/rdoc/test_rdoc_markdown_test.rb
@@ -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" +
diff --git a/test/rdoc/test_rdoc_parser_ruby.rb b/test/rdoc/test_rdoc_parser_ruby.rb
index d9de1e734e..99f4de2fcb 100644
--- a/test/rdoc/test_rdoc_parser_ruby.rb
+++ b/test/rdoc/test_rdoc_parser_ruby.rb
@@ -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.
#
##