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

ruby-changes:21039

From: drbrain <ko1@a...>
Date: Sat, 27 Aug 2011 08:45:50 +0900 (JST)
Subject: [ruby-changes:21039] drbrain:r33088 (trunk): * lib/rdoc: Import RDoc 3.9.4. Typo and grammar fixes by Luke Gruber.

drbrain	2011-08-27 08:45:41 +0900 (Sat, 27 Aug 2011)

  New Revision: 33088

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

  Log:
    * lib/rdoc:  Import RDoc 3.9.4.  Typo and grammar fixes by Luke Gruber.
      [Ruby 1.9 - Bug #5203]

  Modified files:
    trunk/ChangeLog
    trunk/lib/rdoc/markup.rb
    trunk/lib/rdoc/parser.rb
    trunk/lib/rdoc.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33087)
+++ ChangeLog	(revision 33088)
@@ -1,3 +1,8 @@
+Sat Aug 27 08:44:58 2011  Eric Hodel  <drbrain@s...>
+
+	* lib/rdoc:  Import RDoc 3.9.4.  Typo and grammar fixes by Luke Gruber.
+	  [Ruby 1.9 - Bug #5203]
+
 Sat Aug 27 07:53:34 2011  Eric Hodel  <drbrain@s...>
 
 	* lib/open-uri.rb:  Fix indentation of OpenURI::OpenRead#open.  Use ++
Index: lib/rdoc.rb
===================================================================
--- lib/rdoc.rb	(revision 33087)
+++ lib/rdoc.rb	(revision 33088)
@@ -104,7 +104,7 @@
   ##
   # RDoc version you are using
 
-  VERSION = '3.9.3'
+  VERSION = '3.9.4'
 
   ##
   # Method visibilities
Index: lib/rdoc/parser.rb
===================================================================
--- lib/rdoc/parser.rb	(revision 33087)
+++ lib/rdoc/parser.rb	(revision 33088)
@@ -4,9 +4,9 @@
 require 'rdoc/stats'
 
 ##
-# A parser is simple a class that implements
+# A parser is a class that subclasses RDoc::Parser and implements
 #
-#   #initialize(file_name, body, options)
+#   #initialize top_level, file_name, body, options, stats
 #
 # and
 #
@@ -16,17 +16,16 @@
 # and an RDoc::Options object. The scan method is then called to return an
 # appropriately parsed TopLevel code object.
 #
-# The ParseFactory is used to redirect to the correct parser given a
-# filename extension. This magic works because individual parsers have to
-# register themselves with us as they are loaded in. The do this using the
-# following incantation
+# RDoc::Parser::for is a factory that creates the correct parser for a
+# given filename extension.  Parsers have to register themselves RDoc::Parser
+# using parse_files_matching as when they are loaded:
 #
 #   require "rdoc/parser"
 #
 #   class RDoc::Parser::Xyz < RDoc::Parser
 #     parse_files_matching /\.xyz$/ # <<<<
 #
-#     def initialize(file_name, body, options)
+#     def initialize top_level, file_name, body, options, stats
 #       ...
 #     end
 #
@@ -35,8 +34,8 @@
 #     end
 #   end
 #
-# Just to make life interesting, if we suspect a plain text file, we also
-# look for a shebang line just in case it's a potential shell script
+# If a plain text file is detected, RDoc also looks for a shebang line in case
+# the file is a shell script.
 
 class RDoc::Parser
 
@@ -45,8 +44,8 @@
   class << self
 
     ##
-    # A Hash that maps file extensions regular expressions to parsers that
-    # will consume them.
+    # An Array of arrays that maps file extension (or name) regular
+    # expressions to parser classes that will parse matching filenames.
     #
     # Use parse_files_matching to register a parser's file extensions.
 
Index: lib/rdoc/markup.rb
===================================================================
--- lib/rdoc/markup.rb	(revision 33087)
+++ lib/rdoc/markup.rb	(revision 33088)
@@ -36,7 +36,7 @@
 # sequences, and to add special processing for text that matches a
 # regular expression.  Here we make WikiWords significant to the parser,
 # and also make the sequences {word} and \<no>text...</no> signify
-# strike-through text.  When then subclass the HTML output class to deal
+# strike-through text.  We then subclass the HTML output class to deal
 # with these:
 #
 #   require 'rdoc/markup'
@@ -61,7 +61,7 @@
 #
 # == Encoding
 #
-# Where Encoding support is available RDoc will automatically convert all
+# Where Encoding support is available, RDoc will automatically convert all
 # documents to the same output encoding.  The output encoding can be set via
 # RDoc::Options#encoding and defaults to Encoding.default_external.
 #
@@ -127,7 +127,7 @@
 # === Simple Lists
 #
 # If a paragraph starts with a "*", "-", "<digit>." or "<letter>.",
-# then it is taken to be the start of a list.  The margin in increased to be
+# then it is taken to be the start of a list.  The margin is increased to be
 # the first non-space following the list start flag.  Subsequent lines
 # should be indented to this new margin until the list ends.  For example:
 #
@@ -444,10 +444,10 @@
 #
 # [+:nodoc:+ / <tt>:nodoc: all</tt>]
 #   This directive prevents documentation for the element from
-#   being generated.  For classes and modules, the methods, aliases,
+#   being generated.  For classes and modules, methods, aliases,
 #   constants, and attributes directly within the affected class or
 #   module also will be omitted.  By default, though, modules and
-#   classes within that class of module _will_ be documented.  This is
+#   classes within that class or module _will_ be documented.  This is
 #   turned off by adding the +all+ modifier.
 #
 #     module MyModule # :nodoc:
@@ -591,7 +591,7 @@
   attr_reader :attribute_manager
 
   ##
-  # Take a block of text and use various heuristics to determine it's
+  # Take a block of text and use various heuristics to determine its
   # structure (paragraphs, lists, and so on).  Invoke an event handler as we
   # identify significant chunks.
 

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

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