[前][次][番号順一覧][スレッド一覧]

ruby-changes:59338

From: Nobuyoshi <ko1@a...>
Date: Fri, 20 Dec 2019 12:33:17 +0900 (JST)
Subject: [ruby-changes:59338] e68999c82c (master): Fixed misspellings

https://git.ruby-lang.org/ruby.git/commit/?id=e68999c82c

From e68999c82c4863d33a6f893661fba1b7538c5671 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 20 Dec 2019 12:19:45 +0900
Subject: Fixed misspellings

Fixed misspellings reported at [Bug #16437], for default gems.

diff --git a/lib/irb.rb b/lib/irb.rb
index f6fc969..a907894 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -319,7 +319,7 @@ require "irb/version" https://github.com/ruby/ruby/blob/trunk/lib/irb.rb#L319
 #   # 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 fe24660..de145e9 100644
--- a/lib/irb/extend-command.rb
+++ b/lib/irb/extend-command.rb
@@ -32,7 +32,7 @@ module IRB # :nodoc: https://github.com/ruby/ruby/blob/trunk/lib/irb/extend-command.rb#L32
 
     # 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 2b7d19a..d1e545c 100644
--- a/lib/net/ftp.rb
+++ b/lib/net/ftp.rb
@@ -1242,7 +1242,7 @@ module Net https://github.com/ruby/ruby/blob/trunk/lib/net/ftp.rb#L1242
     # 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 028af61..31b8e2c 100644
--- a/lib/racc/parser-text.rb
+++ b/lib/racc/parser-text.rb
@@ -199,7 +199,7 @@ module Racc https://github.com/ruby/ruby/blob/trunk/lib/racc/parser-text.rb#L199
       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 dd446d1..56b4af9 100644
--- a/lib/racc/parser.rb
+++ b/lib/racc/parser.rb
@@ -197,7 +197,7 @@ module Racc https://github.com/ruby/ruby/blob/trunk/lib/racc/parser.rb#L197
       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 37b35a5..f735326 100644
--- a/lib/rdoc/rd/block_parser.rb
+++ b/lib/rdoc/rd/block_parser.rb
@@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/rdoc/rd/block_parser.rb#L2
 #
 # 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 85e4215..f73b81b 100644
--- a/lib/rdoc/rd/inline_parser.rb
+++ b/lib/rdoc/rd/inline_parser.rb
@@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/rdoc/rd/inline_parser.rb#L2
 #
 # 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 42a2b5b..0ddafb4 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -553,7 +553,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L553
     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 8011ad2..c1540b8 100644
--- a/lib/tracer.rb
+++ b/lib/tracer.rb
@@ -241,7 +241,7 @@ class Tracer https://github.com/ruby/ruby/blob/trunk/lib/tracer.rb#L241
   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 601882e..7cac05d 100644
--- a/lib/webrick/httpservlet/filehandler.rb
+++ b/lib/webrick/httpservlet/filehandler.rb
@@ -214,7 +214,7 @@ module WEBrick https://github.com/ruby/ruby/blob/trunk/lib/webrick/httpservlet/filehandler.rb#L214
 
       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 38bd366..7933f94 100755
--- a/libexec/y2racc
+++ b/libexec/y2racc
@@ -6,7 +6,7 @@ https://github.com/ruby/ruby/blob/trunk/libexec/y2racc#L6
 #
 # 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 3509201..d3a5c3d 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 https://github.com/ruby/ruby/blob/trunk/spec/mspec/lib/mspec/runner/formatters/specdoc.rb#L24
   # 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 af9a9b3..3e3f708 100644
--- a/spec/mspec/lib/mspec/utils/options.rb
+++ b/spec/mspec/lib/mspec/utils/options.rb
@@ -94,7 +94,7 @@ class MSpecOptions https://github.com/ruby/ruby/blob/trunk/spec/mspec/lib/mspec/utils/options.rb#L94
     @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 https://github.com/ruby/ruby/blob/trunk/spec/mspec/lib/mspec/utils/options.rb#L414
   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 24b1cf2..48503b1 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 https://github.com/ruby/ruby/blob/trunk/spec/mspec/spec/expectations/should.rb#L41
     :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 2c896f1..b8bda8f 100644
--- a/spec/mspec/spec/expectations/should_spec.rb
+++ b/spec/mspec/spec/expectations/should_spec.rb
@@ -13,7 +13,7 @@ describe "MSpec" do https://github.com/ruby/ruby/blob/trunk/spec/mspec/spec/expectations/should_spec.rb#L13
     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 4694d75..762822b 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 https://github.com/ruby/ruby/blob/trunk/spec/mspec/spec/matchers/base_spec.rb#L52
   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 https://github.com/ruby/ruby/blob/trunk/spec/mspec/spec/matchers/ba (... truncated)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]