Commit graph

152 commits

Author SHA1 Message Date
matz
ebd9be1d47 * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#find_body): revert
[ruby-core:8574].  [ruby-dev:29346]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-22 10:38:58 +00:00
matz
31d3875eb6 * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::handle_method):
rdoc documents C module methods as instance methods. a patch in
  [ruby-core:08536].

* lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#find_body): Make RDoc
  ignore C function prototypes.  Patch by Tilman Sauerbeck
  <tilman at code-monkey.de>.  [ruby-core:8574]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-22 09:51:47 +00:00
drbrain
e03d60ddff Fix broken class level documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-16 02:10:13 +00:00
drbrain
91edcb053b Merge RDoc changes from HEAD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-04 22:00:31 +00:00
(no author)
4d2d744487 This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-04 22:00:31 +00:00
ryan
09ac765b2f Merged my changes from HEAD
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-10 01:57:22 +00:00
drbrain
208fd1911c Remove duplicated require
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-27 01:24:09 +00:00
drbrain
4e23c46ff4 Merge from HEAD.
Add --system, --site, --home, --gems to ri.
Allow --doc-dir to be specified multiple times.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-26 20:44:14 +00:00
drbrain
07b132f742 Don't print warnings when -q is set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-14 22:19:36 +00:00
drbrain
cbb83fbf67 Don't merge ri files if is nil/empty
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-14 20:42:36 +00:00
matz
98d593dc9e * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_symbol_arg):
typo fixed.  a patch from Florian Gross <florg at florg.net>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-15 08:45:02 +00:00
matz
dafff6db59 * lib/rdoc/ri/ri_formatter.rb (RI::TextFormatter::wrap): removed
space before argument parenthesis.  [ruby-talk:183630]

* ruby.1: a clarification patch from David Lutterkort
  <dlutter at redhat.com>.  [ruby-core:7508]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-03-11 08:27:43 +00:00
matz
6834f57ba0 * lib/rdoc/ri/ri_paths.rb (RI::Paths): adding paths from rubygems
directories.  a patch from Eric Hodel <drbrain at segment7.net>.
  [ruby-core:07423]

* eval.c (rb_thread_fd_writable): should not re-schedule output
  from KILLED thread (must be error printing).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-03-03 17:39:28 +00:00
ocean
0c344f2b59 * lib/rdoc/parsers/parse_rb.rb (read_escape): could not handle /\^/.
merged Mr. Ishizuka's lib/irb/ruby-lex.rb 's patch rev 1.29.
  [ruby-talk:181631] [ruby-dev:28404]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-28 15:27:24 +00:00
matz
729bafdf3a * lib/tracer.rb (Tracer::Tracer.add_filter): turn on tracer mode
only when caller() level size is one.  [ruby-core:07389]

* lib/rdoc/parsers/parse_rb.rb: need not to require "tracer".
  [ruby-core:07389]

* sample/rtags.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-18 15:38:56 +00:00
ocean
40f9da0873 * lib/rdoc/usage.rb: support "a:0:33" style caller[-1]. In this case
file name is "a:0". I don't know this really happens though...
  [ruby-Bugs:3344]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-27 22:58:07 +00:00
ocean
1383c1eb2d * lib/rdoc/diagram.rb:
- properly quote bare element attributes
    - terminates dangling elements (e.g. <img>, <br>, <link>, etc)
    - converts "CVS" to the more HTML-friendly acronym element
    - adds missing type attributes to style elements

  based on Paul Duncan's patch <pabs@pablotron.org> [ruby-core:7028]

* lib/rdoc/generators/html_generator.rb: ditto.
* lib/rdoc/generators/template/html/hefss.rb: ditto.
* lib/rdoc/generators/template/html/html.rb: ditto.
* lib/rdoc/generators/template/html/kilmer.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-13 10:27:52 +00:00
matz
90509da425 * eval.c (rb_call_super): should call method_missing if super is
called from Kernel method.

* eval.c (exec_under): frame during eval should preserve external
  information.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-01 13:45:00 +00:00
nobu
e8871610c9 * lib/rdoc/markup/simple_markup.rb (SM::SimpleMarkup::LABEL_LIST_RE):
reduce redundant backtrack.  [ruby-talk:161771]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-24 17:13:42 +00:00
ocean
932c3997e9 * lib/rdoc/usage.rb: supress warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-29 11:07:10 +00:00
ocean
ce350d61b4 * lib/rdoc/usage.rb: improper exceptions. [ruby-dev:26870]
* lib/rdoc/usage.rb: support the case when non-ruby code exists before
  shebang. (this is needed when ri.bat is executed on windows)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-29 10:56:05 +00:00
nobu
4a994c8454 * lib/rdoc/parsers/parse_c.rb (handle_class_module): handle a
module enclosed in a built-in module.  fixed: [ruby-talk:148239]

* lib/rdoc/parsers/parse_c.rb (find_body): allow macros as methods.

* lib/rdoc/parsers/parse_c.rb (find_call_seq): allow :nodoc: modifier
  in C.  [ruby-core:04572]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-15 15:00:11 +00:00
ocean
afdbd6fc52 restored @progress
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-14 02:23:45 +00:00
ocean
5bac006483 * lib/rdoc/parsers/parse_c.rb: more readability for mixing
progress "c..." and warning message.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-12 07:53:39 +00:00
ocean
bdbbf18c4a * lib/rdoc/parsers/parse_c.rb: show parsing progress for C files.
[ruby-core:4341] (based on Tilman Sauerbeck's patch)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-12 07:00:37 +00:00
nobu
f132f2705d * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#do_includes): replace
also locally defined modules.

* ext/iconv/iconv.c: backport Iconv::InvalidEncoding from CVS HEAD.

* ext/strscan/strscan.c: moved misplaced rdoc.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-04 10:39:46 +00:00
matz
8cdd45d15b * ext/etc/etc.c (Init_etc): sGroup needs HAVE_ST_GR_PASSWD check.
[ruby-dev:25675]

* misc/ruby-mode.el: [ruby-core:04415]

* lib/rdoc/generators/html_generator.rb: [ruby-core:04412]

* lib/rdoc/generators/ri_generator.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-12 10:57:22 +00:00
matz
2ef0c6a109 * document updates - [ruby-core:04296], [ruby-core:04301],
[ruby-core:04302], [ruby-core:04307]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-24 06:45:50 +00:00
dave
556a2682d1 Allow for colons in DOS file names
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-05 23:02:50 +00:00
dave
2814dbe601 Fix problem in ri formatting if heading contains markup
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-31 05:22:05 +00:00
dave
9aa36880e1 Update kilmer template to use sections
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-29 02:16:33 +00:00
dave
1a33c544b7 Don't show r/w accessor flags if none were specified for custom attributes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-12 01:37:24 +00:00
dave
975fc745b3 Never exclude files given on command line
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-12 01:16:19 +00:00
dave
2f6f96739b Fix CSS typo that meant h2 headings were invisible
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-08 14:56:55 +00:00
dave
a4a18e67e0 1.8 doesn't have String#clear
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-06 01:19:06 +00:00
dave
e28c8d2c52 Ignore leading and trailing lines in :section: blocks
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-04 05:38:17 +00:00
dave
8d68de2482 Fix problem with :section: and new 1.9
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-26 04:32:11 +00:00
dave
02942d87b9 Don't include 'require's with variable arguments
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-22 13:37:39 +00:00
dave
3635edac9d 1. Force --inline-source if --one-file given
2. Add new :section: directive which starts a new section in the output.
   The title following :section: is used as the section heading, and the
   remainder of the comment containing the section is used as
   introductory text. Subsequent methods, aliases, attributes,
   and classes will be documented in this section.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-20 15:02:57 +00:00
dave
443c67721f Change version numbering of RDoc and ri
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-08 15:55:23 +00:00
dave
a7b4316a3a Fix bug where parent class wasn't being detected if the
child class was defined using the A::B notation.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-08 13:25:26 +00:00
nobu
383723abc8 * CR stripped.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-29 08:43:10 +00:00
dave
8a0d7d99ae Restore correct :nodoc: behavior with nested classes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-26 14:33:17 +00:00
dave
3b832e90a2 RDoc can now deal with "attr" used as a variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-19 13:46:05 +00:00
dave
ff17f9ecbd Support "require" as variable name in RDoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-10 03:35:51 +00:00
dave
f2ff67952f Add simple formatter to ri
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-14 14:49:19 +00:00
dave
6a0f9a2c79 Fix up cross-file class merging
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-11 07:11:46 +00:00
dave
58b0e400aa James Buck's patch for call-seq
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-09 17:46:05 +00:00
dave
6022ebe824 Allow spaces around parameter to define_method_under
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-09 02:48:32 +00:00
dave
2ad8cb5428 ri now merges the documentation if it finds the same class in multiple places
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-30 14:22:26 +00:00