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

ruby-changes:32571

From: hsbt <ko1@a...>
Date: Sun, 19 Jan 2014 14:43:37 +0900 (JST)
Subject: [ruby-changes:32571] hsbt:r44650 (trunk): * lib/cgi/html.rb: fix typo by @windwiny [fix GH-506]

hsbt	2014-01-19 14:43:26 +0900 (Sun, 19 Jan 2014)

  New Revision: 44650

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44650

  Log:
    *  lib/cgi/html.rb: fix typo by @windwiny [fix GH-506]
    *  lib/net/http.rb: ditto
    *  lib/rexml/attribute.rb: ditto
    *  lib/rexml/element.rb: ditto
    *  lib/rexml/source.rb: ditto
    *  lib/rexml/streamlistener.rb: ditto
    *  lib/rss/xmlparser.rb: ditto
    *  lib/rubygems/commands/generate_index_command.rb: ditto
    *  lib/shell.rb: ditto
    *  lib/uri/common.rb:ditto

  Modified files:
    trunk/lib/cgi/html.rb
    trunk/lib/net/http.rb
    trunk/lib/rexml/attribute.rb
    trunk/lib/rexml/element.rb
    trunk/lib/rexml/source.rb
    trunk/lib/rexml/streamlistener.rb
    trunk/lib/rss/xmlparser.rb
    trunk/lib/rubygems/commands/generate_index_command.rb
    trunk/lib/shell.rb
    trunk/lib/uri/common.rb
Index: lib/shell.rb
===================================================================
--- lib/shell.rb	(revision 44649)
+++ lib/shell.rb	(revision 44650)
@@ -37,7 +37,7 @@ require "shell/process-controller" https://github.com/ruby/ruby/blob/trunk/lib/shell.rb#L37
 #   sh.cd("shell-test-1") # Change to the /tmp/shell-test-1 directory
 #   for dir in ["dir1", "dir3", "dir5"]
 #     if !sh.exists?(dir)
-#       sh.mkdir dir # make dir if it doesnt' already exist
+#       sh.mkdir dir # make dir if it doesn't already exist
 #       sh.cd(dir) do
 #         # change to the `dir` directory
 # 	  f = sh.open("tmpFile", "w") # open a new file in write mode
Index: lib/rexml/element.rb
===================================================================
--- lib/rexml/element.rb	(revision 44649)
+++ lib/rexml/element.rb	(revision 44650)
@@ -206,7 +206,7 @@ module REXML https://github.com/ruby/ruby/blob/trunk/lib/rexml/element.rb#L206
       return namespaces
     end
 
-    # Evalutas to the URI for a prefix, or the empty string if no such
+    # Evaluates to the URI for a prefix, or the empty string if no such
     # namespace is declared for this element. Evaluates recursively for
     # ancestors.  Returns the default namespace, if there is one.
     # prefix::
Index: lib/rexml/source.rb
===================================================================
--- lib/rexml/source.rb	(revision 44649)
+++ lib/rexml/source.rb	(revision 44650)
@@ -62,7 +62,7 @@ module REXML https://github.com/ruby/ruby/blob/trunk/lib/rexml/source.rb#L62
     # requirements; for another, the source can be consumed.  You can easily
     # confuse this method.  Originally, the patterns were easier
     # to construct and this method more robust, because this method
-    # generated search regexes on the fly; however, this was
+    # generated search regexps on the fly; however, this was
     # computationally expensive and slowed down the entire REXML package
     # considerably, since this is by far the most commonly called method.
     # @param pattern must be a Regexp, and must be in the form of
Index: lib/rexml/streamlistener.rb
===================================================================
--- lib/rexml/streamlistener.rb	(revision 44649)
+++ lib/rexml/streamlistener.rb	(revision 44650)
@@ -13,7 +13,7 @@ module REXML https://github.com/ruby/ruby/blob/trunk/lib/rexml/streamlistener.rb#L13
     def tag_start name, attrs
     end
     # Called when the end tag is reached.  In the case of <tag/>, tag_end
-    # will be called immidiately after tag_start
+    # will be called immediately after tag_start
     # @p the name of the tag
     def tag_end name
     end
Index: lib/rexml/attribute.rb
===================================================================
--- lib/rexml/attribute.rb	(revision 44649)
+++ lib/rexml/attribute.rb	(revision 44650)
@@ -159,7 +159,7 @@ module REXML https://github.com/ruby/ruby/blob/trunk/lib/rexml/attribute.rb#L159
       self
     end
 
-    # Removes this Attribute from the tree, and returns true if successfull
+    # Removes this Attribute from the tree, and returns true if successful
     #
     # This method is usually not called directly.
     def remove
Index: lib/rubygems/commands/generate_index_command.rb
===================================================================
--- lib/rubygems/commands/generate_index_command.rb	(revision 44649)
+++ lib/rubygems/commands/generate_index_command.rb	(revision 44650)
@@ -62,7 +62,7 @@ Marshal::MINOR_VERSION constants.  It is https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/generate_index_command.rb#L62
   end
 
   def execute
-    # This is always true becasue it's the only way now.
+    # This is always true because it's the only way now.
     options[:build_modern] = true
 
     if not File.exist?(options[:directory]) or
Index: lib/rss/xmlparser.rb
===================================================================
--- lib/rss/xmlparser.rb	(revision 44649)
+++ lib/rss/xmlparser.rb	(revision 44650)
@@ -20,7 +20,7 @@ end https://github.com/ruby/ruby/blob/trunk/lib/rss/xmlparser.rb#L20
 module XML
   class Parser
     unless defined?(Error)
-      # This erorr is legacy, so we just set it to the new one
+      # This error is legacy, so we just set it to the new one
       Error = ::XMLParserError # :nodoc:
     end
   end
Index: lib/uri/common.rb
===================================================================
--- lib/uri/common.rb	(revision 44649)
+++ lib/uri/common.rb	(revision 44650)
@@ -90,7 +90,7 @@ module URI https://github.com/ruby/ruby/blob/trunk/lib/uri/common.rb#L90
     #   u = p.parse("http://example.jp/%uABCD") #=> #<URI::HTTP:0xb78cf4f8 URL:http://example.jp/%uABCD>
     #   URI.parse(u.to_s) #=> raises URI::InvalidURIError
     #
-    #   s = "http://examle.com/ABCD"
+    #   s = "http://example.com/ABCD"
     #   u1 = p.parse(s) #=> #<URI::HTTP:0xb78c3220 URL:http://example.com/ABCD>
     #   u2 = URI.parse(s) #=> #<URI::HTTP:0xb78b6d54 URL:http://example.com/ABCD>
     #   u1 == u2 #=> true
Index: lib/cgi/html.rb
===================================================================
--- lib/cgi/html.rb	(revision 44649)
+++ lib/cgi/html.rb	(revision 44650)
@@ -865,7 +865,7 @@ class CGI https://github.com/ruby/ruby/blob/trunk/lib/cgi/html.rb#L865
       %|<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">|
     end
 
-    # Initialise the HTML generation methods for this version.
+    # Initialize the HTML generation methods for this version.
     # - -
     instance_method(:nn_element_def).tap do |m|
       for element in %w[ TT I B BIG SMALL EM STRONG DFN CODE SAMP KBD
Index: lib/net/http.rb
===================================================================
--- lib/net/http.rb	(revision 44649)
+++ lib/net/http.rb	(revision 44650)
@@ -687,10 +687,10 @@ module Net   #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L687
     # The port number to connect to.
     attr_reader :port
 
-    # The local host used to estabilish the connection.
+    # The local host used to establish the connection.
     attr_accessor :local_host
 
-    # The local port used to estabilish the connection.
+    # The local port used to establish the connection.
     attr_accessor :local_port
 
     attr_writer :proxy_from_env

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

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