File tree Expand file tree Collapse file tree 3 files changed +24
-13
lines changed Expand file tree Collapse file tree 3 files changed +24
-13
lines changed Original file line number Diff line number Diff line change 1
1
=== 2.3.0 / 200?-??-??
2
2
3
3
* X Major Enhancements
4
- * RDoc now automatically loads rdoc/discover.rb files from installed gems.
5
- * RDoc now uses Michael Granger's Darkfish generator by default.
4
+ * rdoc/discover.rb files are loaded automatically from installed gems
5
+ * Michael Granger's Darkfish generator is now the default
6
6
* Various rdoc generation speedups by Hongli Lai. Patches #22555, #22556,
7
7
#22557, #22562, #22565.
8
8
9
9
* Y Minor Enhancements
10
10
* Added a space after the commas in ri class method lists. RubyForge
11
11
enhancement #22182.
12
12
* Improved ri --interactive
13
- * Generators can now override generated file locations.
14
- * Moved unmaintained CHM generator to it's own package.
15
- * Moved unmaintained extra HTML templates to their own package.
16
- * Removed experimental texinfo generator.
17
- * Converted to minitest.
13
+ * Generators can now override generated file locations
14
+ * Moved unmaintained CHM generator to it's own package
15
+ * Moved unmaintained extra HTML templates to their own package
16
+ * Removed experimental texinfo generator
17
+ * Converted to minitest
18
+ * Known classes and modules list outputs once per line now for grep
18
19
19
20
* Z Bug Fixes
20
21
* Fix missing superclass in ri output
30
31
* RDoc now only accepts adjacent comments for rb_define_module and
31
32
rb_define_class
32
33
* C file RDoc is no longer included in token stream
34
+ * Scan all gem paths to match gem name for ri output
33
35
34
36
=== 2.2.1 / 2008-09-24
35
37
This version provides some minor fixes and enhancements to 2.2.0 intended
Original file line number Diff line number Diff line change @@ -280,7 +280,9 @@ def list_known_classes(classes)
280
280
@formatter . draw_line "Known classes and modules"
281
281
@formatter . blankline
282
282
283
- @formatter . wrap classes . sort . join ( ', ' )
283
+ classes . sort . each do |klass |
284
+ @formatter . wrap klass
285
+ end
284
286
end
285
287
end
286
288
end
Original file line number Diff line number Diff line change @@ -595,6 +595,9 @@ def interactive
595
595
formatter . raw_print_line "#{ e . message } \n "
596
596
end
597
597
end
598
+
599
+ rescue Interrupt
600
+ exit
598
601
end
599
602
600
603
##
@@ -670,13 +673,17 @@ def create_cache_for(klassname, path)
670
673
if system_file then
671
674
method [ "source_path" ] = "Ruby #{ RDoc ::RI ::Paths ::VERSION } "
672
675
else
673
- if ( f =~ %r%gems/[ \d .]+/doc/([^/]+)% ) then
674
- ext_path = "gem #{ $1 } "
675
- else
676
- ext_path = f
676
+ gem = Gem . path . any? do | path |
677
+ pattern = File . join Regexp . escape ( path ) , 'doc' , '(.*?)' , ''
678
+
679
+ f =~ /^ #{ pattern } /
677
680
end
678
681
679
- method [ "source_path" ] = ext_path
682
+ method [ "source_path" ] = if gem then
683
+ "gem #{ $1} "
684
+ else
685
+ f
686
+ end
680
687
end
681
688
682
689
name = method [ "full_name" ]
You can’t perform that action at this time.
0 commit comments