rdoc 3.10 → 3.11

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rdoc might be problematic. Click here for more details.

data.tar.gz.sig CHANGED
Binary file
@@ -1,4 +1,10 @@
1
- === 3.10 / ??
1
+ === 3.11 / 2011/10-17
2
+
3
+ * Bug fixes
4
+ * Avoid parsing TAGS files included in gems. Issue #81 by Santiago
5
+ Pastorino.
6
+
7
+ === 3.10 / 2011-10-08
2
8
 
3
9
  * Major enhancements
4
10
  * RDoc HTML output has been improved:
data/TODO.rdoc CHANGED
@@ -30,3 +30,7 @@ API changes to RDoc
30
30
  * Rename Context to Container
31
31
  * Rename NormalClass to Class
32
32
 
33
+ === Crazy Ideas
34
+
35
+ * Auto-normalize heading levels to look OK. It's weird to see an <h1> in
36
+ the middle of a method section.
@@ -106,7 +106,7 @@ module RDoc
106
106
  ##
107
107
  # RDoc version you are using
108
108
 
109
- VERSION = '3.10'
109
+ VERSION = '3.11'
110
110
 
111
111
  ##
112
112
  # Method visibilities
@@ -402,11 +402,16 @@ The internal error was:
402
402
  end
403
403
 
404
404
  ##
405
- # Removes file extensions known to be unparseable from +files+
405
+ # Removes file extensions known to be unparseable from +files+ and TAGS
406
+ # files for emacs and vim.
406
407
 
407
408
  def remove_unparseable files
408
409
  files.reject do |file|
409
- file =~ /\.(?:class|eps|erb|scpt\.txt|ttf|yml)$/i
410
+ file =~ /\.(?:class|eps|erb|scpt\.txt|ttf|yml)$/i or
411
+ (file =~ /tags$/i and
412
+ open(file, 'rb') { |io|
413
+ io.read(100) =~ /\A(\f\n[^,]+,\d+$|!_TAG_)/
414
+ })
410
415
  end
411
416
  end
412
417
 
@@ -122,6 +122,34 @@ class TestRDocRDoc < RDoc::TestCase
122
122
  assert_empty @rdoc.remove_unparseable file_list
123
123
  end
124
124
 
125
+ def test_remove_unparseable_tags_emacs
126
+ temp_dir do
127
+ open 'TAGS', 'w' do |io| # emacs
128
+ io.write "\f\nlib/foo.rb,43\n"
129
+ end
130
+
131
+ file_list = %w[
132
+ TAGS
133
+ ]
134
+
135
+ assert_empty @rdoc.remove_unparseable file_list
136
+ end
137
+ end
138
+
139
+ def test_remove_unparseable_tags_vim
140
+ temp_dir do
141
+ open 'TAGS', 'w' do |io| # emacs
142
+ io.write "!_TAG_"
143
+ end
144
+
145
+ file_list = %w[
146
+ TAGS
147
+ ]
148
+
149
+ assert_empty @rdoc.remove_unparseable file_list
150
+ end
151
+ end
152
+
125
153
  def test_setup_output_dir
126
154
  Dir.mktmpdir {|d|
127
155
  path = File.join d, 'testdir'
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdoc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
- - 10
9
- version: "3.10"
8
+ - 11
9
+ version: "3.11"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Eric Hodel
@@ -38,7 +38,7 @@ cert_chain:
38
38
  x52qPcexcYZR7w==
39
39
  -----END CERTIFICATE-----
40
40
 
41
- date: 2011-10-08 00:00:00 Z
41
+ date: 2011-10-17 00:00:00 Z
42
42
  dependencies:
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: json
metadata.gz.sig CHANGED
Binary file