rdoc-tags 1.2 → 1.3.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.gemtest +0 -0
- data/History.txt +10 -1
- data/README.txt +10 -5
- data/Rakefile +4 -5
- data/lib/hoe/rdoc_tags.rb +3 -4
- data/lib/rdoc/discover.rb +2 -2
- data/lib/rdoc/generator/tags.rb +122 -21
- data/test/test_rdoc_generator_tags.rb +31 -39
- metadata +113 -135
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: d302f42dceca0175405ab44866d7aac30a3368b8
|
4
|
+
data.tar.gz: 498704da8d37c899b33dcc62c3430e3f8bfac109
|
5
|
+
!binary "U0hBNTEy":
|
6
|
+
metadata.gz: bc80283b168ad70d0dc1a72a8853aac859e97c8a0c825ec272360f6cb5266b25a40b93d161dc5e60b4f243618b1ff51c3a67f83c71a80600ed7989477314939d
|
7
|
+
data.tar.gz: 2dde955c834186b5e570a7f5ecea7bf845da62588b6e48225dbbb72db582bdca289df59e94508a30bc7ba0b0f5c4ef10a6b1fd0f065923f1acc8d0ae19452532
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.gemtest
ADDED
File without changes
|
data/History.txt
CHANGED
@@ -1,4 +1,13 @@
|
|
1
|
-
=== 1.
|
1
|
+
=== 1.3
|
2
|
+
|
3
|
+
* Minor enhancements
|
4
|
+
* rdoc-tags now supports outputting emacs-style tags. <tt>rdoc -f tags
|
5
|
+
--tag-style=emacs .</tt> will write an emacs-style tags file.
|
6
|
+
* Bug fixes
|
7
|
+
* Set ctags_merge option correctly in option parser
|
8
|
+
* Hoe task no longer removes TAGS on clean
|
9
|
+
|
10
|
+
=== 1.2 / 2011-01-06
|
2
11
|
|
3
12
|
* Minor enhancements
|
4
13
|
* rdoc-tags can now merge with Exuberant Ctags for projects with extensions
|
data/README.txt
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
= rdoc-tags
|
2
2
|
|
3
3
|
* https://github.com/rdoc/rdoc-tags
|
4
|
+
* http://rdoc.rubyforge.org/rdoc-tags
|
4
5
|
|
5
6
|
== DESCRIPTION:
|
6
7
|
|
7
|
-
A TAGS file generator
|
8
|
-
|
9
|
-
|
8
|
+
A TAGS file generator that builds both vim and emacs style tags files. Vim
|
9
|
+
tags are based on http://ctags.sourceforge.net/FORMAT). rdoc-tags is
|
10
|
+
compatible with Exuberant Ctags for merging tag definitions.
|
10
11
|
|
11
12
|
rdoc-tags includes a Hoe plugin +:rdoc_tags+ making it easy to add tag support
|
12
13
|
to your ruby project. If you don't use Hoe you can instead use RDoc::TagsTask
|
@@ -15,13 +16,17 @@ to add rake tasks for building TAGS to your ruby project.
|
|
15
16
|
== FEATURES/PROBLEMS:
|
16
17
|
|
17
18
|
* Much slower that Exuberant Ctags
|
18
|
-
* Only outputs vim-format tags
|
19
|
-
* Only works for ruby files, not Ruby/C files
|
20
19
|
|
21
20
|
== SYNOPSIS:
|
22
21
|
|
22
|
+
Vim-style tags:
|
23
|
+
|
23
24
|
rdoc -f tags lib
|
24
25
|
|
26
|
+
Emacs-style tags:
|
27
|
+
|
28
|
+
rdoc -f tags --tag-style=emacs lib
|
29
|
+
|
25
30
|
== REQUIREMENTS:
|
26
31
|
|
27
32
|
* RDoc 3+
|
data/Rakefile
CHANGED
@@ -6,7 +6,6 @@ require 'hoe'
|
|
6
6
|
$:.unshift 'lib' # allow rdoc-tags to tag itself
|
7
7
|
|
8
8
|
Hoe.plugin :git
|
9
|
-
Hoe.plugin :isolate
|
10
9
|
Hoe.plugin :minitest
|
11
10
|
Hoe.plugin :rdoc_tags
|
12
11
|
Hoe.plugins.delete :rubyforge
|
@@ -14,13 +13,13 @@ Hoe.plugins.delete :rubyforge
|
|
14
13
|
Hoe.spec 'rdoc-tags' do
|
15
14
|
developer 'Eric Hodel', 'drbrain@segment7.net'
|
16
15
|
|
17
|
-
extra_deps << ['rdoc', '
|
18
|
-
extra_dev_deps << ['isolate', '~> 3']
|
16
|
+
extra_deps << ['rdoc', '>= 4.0.0.preview2', '< 5']
|
19
17
|
extra_dev_deps << ['ZenTest']
|
20
18
|
|
21
|
-
|
22
|
-
self.rdoc_locations =
|
19
|
+
rdoc_locations <<
|
23
20
|
'drbrain@rubyforge.org:/var/www/gforge-projects/rdoc/rdoc-tags'
|
21
|
+
rdoc_locations <<
|
22
|
+
'docs.seattlerb.org:/data/www/docs.seattlerb.org/rdoc-tags'
|
24
23
|
end
|
25
24
|
|
26
25
|
# vim: syntax=Ruby
|
data/lib/hoe/rdoc_tags.rb
CHANGED
@@ -3,15 +3,15 @@ require 'rdoc/tags_task'
|
|
3
3
|
##
|
4
4
|
# The RDoc tags plugin for Hoe uses the standard names +tags+, +retag+ and
|
5
5
|
# +clobber_tags+ from RDoc::TagsTask. The plugin also integrates with the
|
6
|
-
# +
|
6
|
+
# +clobber+ and +newb+ tasks Hoe provides to add automatic cleanup.
|
7
7
|
#
|
8
8
|
# The +tags+ task automatically builds tags using all files in your
|
9
9
|
# specification's require paths (defaults to the lib directory).
|
10
10
|
#
|
11
11
|
# When the +newb+ task is run the plugin will automatically build a TAGS file.
|
12
12
|
#
|
13
|
-
# When the +
|
14
|
-
#
|
13
|
+
# When the +clobber+ task is run the plugin will automatically remove the TAGS
|
14
|
+
# file.
|
15
15
|
#
|
16
16
|
# The plugin defaults to generating vim-style tags. You can override this by
|
17
17
|
# setting a value for <tt>'tags_style'</tt> in ~/.hoerc. Be sure to check
|
@@ -43,7 +43,6 @@ module Hoe::RDoc_tags
|
|
43
43
|
rd.ctags_path = ctags_path
|
44
44
|
end
|
45
45
|
|
46
|
-
task :clean => :clobber_tags
|
47
46
|
task :clobber => :clobber_tags
|
48
47
|
task :newb => :tags
|
49
48
|
end
|
data/lib/rdoc/discover.rb
CHANGED
data/lib/rdoc/generator/tags.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
##
|
2
|
-
# A TAGS file generator based on
|
2
|
+
# A TAGS file generator for vim-style tags (based on
|
3
|
+
# http://ctags.sourceforge.net/FORMAT) and emacs-style tags. Tags is
|
4
|
+
# compatible with Exuberant Ctags for merging tag definitions.
|
3
5
|
#
|
4
6
|
# This file will be automatically loaded via rdoc/discover.rb. If you wish to
|
5
7
|
# load this standalone, require 'rdoc/rdoc' first.
|
@@ -9,7 +11,7 @@ class RDoc::Generator::Tags
|
|
9
11
|
##
|
10
12
|
# The version of the tags generator you are using
|
11
13
|
|
12
|
-
VERSION = '1.
|
14
|
+
VERSION = '1.3.pre'
|
13
15
|
|
14
16
|
RDoc::RDoc.add_generator self
|
15
17
|
|
@@ -21,7 +23,10 @@ class RDoc::Generator::Tags
|
|
21
23
|
##
|
22
24
|
# Valid tag styles
|
23
25
|
|
24
|
-
TAG_STYLES = [
|
26
|
+
TAG_STYLES = [
|
27
|
+
:emacs,
|
28
|
+
:vim
|
29
|
+
]
|
25
30
|
|
26
31
|
##
|
27
32
|
# Merge ctags-generated tags onto our own?
|
@@ -50,6 +55,11 @@ class RDoc::Generator::Tags
|
|
50
55
|
|
51
56
|
attr_accessor :ctags_path
|
52
57
|
|
58
|
+
##
|
59
|
+
# Output tag style. See Options::TAG_STYLES for allowed values
|
60
|
+
|
61
|
+
attr_accessor :tag_style
|
62
|
+
|
53
63
|
##
|
54
64
|
# Adds tags-generator options to the RDoc::Options instance +options+
|
55
65
|
|
@@ -71,7 +81,7 @@ class RDoc::Generator::Tags
|
|
71
81
|
op.on('--[no-]ctags-merge',
|
72
82
|
'Merge exuberant ctags with our own?',
|
73
83
|
'Use this for projects with C extensions') do |value|
|
74
|
-
options.
|
84
|
+
options.ctags_merge = value
|
75
85
|
end
|
76
86
|
|
77
87
|
op.separator nil
|
@@ -95,14 +105,14 @@ class RDoc::Generator::Tags
|
|
95
105
|
##
|
96
106
|
# Creates a new tags generator
|
97
107
|
|
98
|
-
def initialize options
|
108
|
+
def initialize store, options
|
109
|
+
@store = store
|
99
110
|
@options = options
|
100
111
|
|
112
|
+
@tag_style = options.tag_style
|
101
113
|
@ctags_merge = options.ctags_merge
|
102
114
|
@ctags_path = options.ctags_path
|
103
115
|
@dry_run = options.dry_run
|
104
|
-
|
105
|
-
@tags = Hash.new { |h, name| h[name] = [] }
|
106
116
|
end
|
107
117
|
|
108
118
|
##
|
@@ -129,11 +139,68 @@ class RDoc::Generator::Tags
|
|
129
139
|
# Generates a TAGS file from +top_levels+
|
130
140
|
|
131
141
|
def generate top_levels
|
142
|
+
case @tag_style
|
143
|
+
when :vim then generate_vim top_levels
|
144
|
+
when :emacs then generate_emacs top_levels
|
145
|
+
else
|
146
|
+
raise RDoc::Error, "Unkown tag format #{@tag_style.inspect}"
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
##
|
151
|
+
# Generates a TAGS file from +top_levels+ for emacs
|
152
|
+
|
153
|
+
def generate_emacs top_levels
|
154
|
+
# file_name => [definition, tag_name, line_number, byte_offset]
|
155
|
+
tags = Hash.new { |h, file| h[file] = [] }
|
156
|
+
|
157
|
+
top_levels.each do |top_level|
|
158
|
+
tags[top_level.relative_name] << ['', top_level.relative_name, 0, 0]
|
159
|
+
end
|
160
|
+
|
161
|
+
@store.all_classes_and_modules.each do |klass|
|
162
|
+
klass.in_files.each do |file|
|
163
|
+
tags[file.relative_name] << [klass.definition, klass.full_name, 0, 0]
|
164
|
+
end
|
165
|
+
|
166
|
+
klass.each_attribute do |attr|
|
167
|
+
tags[attr.file.relative_name] <<
|
168
|
+
["#{attr.definition} :#{attr.name}", attr.name, 0, 0]
|
169
|
+
end
|
170
|
+
|
171
|
+
klass.each_constant do |constant|
|
172
|
+
tags[constant.file.relative_name] <<
|
173
|
+
[constant.name, constant.name, 0, 0]
|
174
|
+
end
|
175
|
+
|
176
|
+
klass.each_method do |method|
|
177
|
+
definition = if method.singleton then
|
178
|
+
"def self.#{method.name}"
|
179
|
+
else
|
180
|
+
"def #{method.name}"
|
181
|
+
end
|
182
|
+
|
183
|
+
tags[method.file.relative_name] << [definition, method.name, 0, 0]
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
unless @dry_run then
|
188
|
+
write_tags_emacs tags
|
189
|
+
merge_ctags
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
##
|
194
|
+
# Generates a TAGS file from +top_levels+ for vim
|
195
|
+
|
196
|
+
def generate_vim top_levels
|
197
|
+
tags = Hash.new { |h, name| h[name] = [] }
|
198
|
+
|
132
199
|
top_levels.each do |top_level|
|
133
|
-
|
200
|
+
tags[top_level.relative_name] << [top_level.relative_name, 0, 'F']
|
134
201
|
end
|
135
202
|
|
136
|
-
|
203
|
+
@store.all_classes_and_modules.each do |klass|
|
137
204
|
kind = "class:#{klass.full_name}"
|
138
205
|
|
139
206
|
address =
|
@@ -144,8 +211,8 @@ class RDoc::Generator::Tags
|
|
144
211
|
end
|
145
212
|
|
146
213
|
klass.in_files.each do |file|
|
147
|
-
|
148
|
-
|
214
|
+
tags[klass.full_name] << [file.relative_name, address, 'c']
|
215
|
+
tags[klass.name] << [file.relative_name, address, 'c']
|
149
216
|
end
|
150
217
|
|
151
218
|
klass.each_attribute do |attr|
|
@@ -156,12 +223,12 @@ class RDoc::Generator::Tags
|
|
156
223
|
kind
|
157
224
|
]
|
158
225
|
|
159
|
-
|
160
|
-
|
226
|
+
tags[attr.name] << where
|
227
|
+
tags["#{attr.name}="] << where
|
161
228
|
end
|
162
229
|
|
163
230
|
klass.each_constant do |constant|
|
164
|
-
|
231
|
+
tags[constant.name] << [
|
165
232
|
constant.file.relative_name, "/#{constant.name}\\s\\*=/", 'd', kind]
|
166
233
|
end
|
167
234
|
|
@@ -173,13 +240,13 @@ class RDoc::Generator::Tags
|
|
173
240
|
"/def #{method.name}/"
|
174
241
|
end
|
175
242
|
|
176
|
-
|
243
|
+
tags[method.name] << [
|
177
244
|
method.file.relative_name, address, 'f', kind]
|
178
245
|
end
|
179
246
|
end
|
180
247
|
|
181
248
|
unless @dry_run then
|
182
|
-
|
249
|
+
write_tags_vim tags
|
183
250
|
merge_ctags
|
184
251
|
end
|
185
252
|
end
|
@@ -192,14 +259,48 @@ class RDoc::Generator::Tags
|
|
192
259
|
|
193
260
|
ctags_path = @ctags_path || find_ctags
|
194
261
|
|
195
|
-
|
196
|
-
|
262
|
+
ctags_args = [
|
263
|
+
'--append=yes',
|
264
|
+
'--format=2',
|
265
|
+
'--languages=-Ruby',
|
266
|
+
'--recurse=yes',
|
267
|
+
*@options.files
|
268
|
+
]
|
269
|
+
|
270
|
+
ctags_args.unshift '-e' if @tag_style == :emacs
|
271
|
+
|
272
|
+
unless @options.quiet then
|
273
|
+
puts
|
274
|
+
puts 'Merging with Exuberant Ctags'
|
275
|
+
puts "#{ctags_path} #{ctags_args.join ' '}"
|
276
|
+
end
|
277
|
+
|
278
|
+
system ctags_path, *ctags_args
|
279
|
+
end
|
280
|
+
|
281
|
+
##
|
282
|
+
# Writes the TAGS file in emacs style using the data in +tags+
|
283
|
+
|
284
|
+
def write_tags_emacs tags
|
285
|
+
open 'TAGS', 'wb' do |io|
|
286
|
+
tags.sort.each do |file, definitions|
|
287
|
+
section = []
|
288
|
+
|
289
|
+
definitions.sort.each do |(definition, tag_name, line, offset)|
|
290
|
+
section << "#{definition}\x7F#{tag_name}\x01#{line},#{offset}"
|
291
|
+
end
|
292
|
+
|
293
|
+
section = section.join "\n"
|
294
|
+
|
295
|
+
io << "\x0C\n#{file},#{section.length}\n#{section}\n"
|
296
|
+
end
|
297
|
+
end
|
197
298
|
end
|
198
299
|
|
199
300
|
##
|
200
|
-
# Writes the TAGS file
|
301
|
+
# Writes the TAGS file in vim style using the data in +tags+
|
201
302
|
|
202
|
-
def
|
303
|
+
def write_tags_vim tags
|
203
304
|
open 'TAGS', 'w' do |io|
|
204
305
|
io.write <<-INFO
|
205
306
|
!_TAG_FILE_FORMAT\t2\t/extended format/
|
@@ -210,7 +311,7 @@ class RDoc::Generator::Tags
|
|
210
311
|
!_TAG_PROGRAM_VERSION\t#{VERSION}\t//
|
211
312
|
INFO
|
212
313
|
|
213
|
-
|
314
|
+
tags.sort.each do |name, definitions|
|
214
315
|
definitions.uniq.each do |(file, address, *field)|
|
215
316
|
io.write "#{name}\t#{file}\t#{address};\"\t#{field.join "\t"}\n"
|
216
317
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
gem 'rdoc', '
|
2
|
+
gem 'rdoc', '>= 4.0.0.preview2', '< 5'
|
3
3
|
|
4
4
|
require 'minitest/autorun'
|
5
5
|
require 'rdoc/rdoc'
|
@@ -14,15 +14,15 @@ class TestRDocGeneratorTags < MiniTest::Unit::TestCase
|
|
14
14
|
@options.extend RDoc::Generator::Tags::Options
|
15
15
|
|
16
16
|
@pwd = Dir.pwd
|
17
|
-
RDoc::TopLevel.reset
|
18
17
|
|
19
18
|
@tmpdir = File.join Dir.tmpdir, "test_rdoc_generator_tags_#{$$}"
|
20
19
|
FileUtils.mkdir_p @tmpdir
|
21
20
|
Dir.chdir @tmpdir
|
22
21
|
|
23
|
-
@
|
22
|
+
@store = RDoc::Store.new
|
23
|
+
@g = RDoc::Generator::Tags.new @store, @options
|
24
24
|
|
25
|
-
@top_level =
|
25
|
+
@top_level = @store.add_file 'file.rb'
|
26
26
|
|
27
27
|
@klass = @top_level.add_class RDoc::NormalClass, 'Object'
|
28
28
|
@klass.record_location @top_level
|
@@ -87,9 +87,7 @@ class TestRDocGeneratorTags < MiniTest::Unit::TestCase
|
|
87
87
|
end
|
88
88
|
|
89
89
|
def test_generate_emacs
|
90
|
-
|
91
|
-
|
92
|
-
@options.tag_style = :emacs
|
90
|
+
@g.tag_style = :emacs
|
93
91
|
|
94
92
|
@g.generate [@top_level]
|
95
93
|
|
@@ -97,46 +95,35 @@ class TestRDocGeneratorTags < MiniTest::Unit::TestCase
|
|
97
95
|
|
98
96
|
assert File.file? tags_file
|
99
97
|
|
100
|
-
tags =
|
98
|
+
tags = open tags_file, 'rb' do |io| io.read end.each_line
|
101
99
|
|
102
|
-
assert_equal "
|
103
|
-
assert_equal "
|
104
|
-
assert_equal "!_TAG_PROGRAM_AUTHOR\tEric Hodel\t/drbrain@segment7.net/\n",
|
105
|
-
tags.next
|
106
|
-
assert_equal "!_TAG_PROGRAM_NAME\trdoc-tags\n", tags.next
|
107
|
-
assert_equal "!_TAG_PROGRAM_URL\thttp://rdoc.rubyforge.org/rdoc-tags\n",
|
108
|
-
tags.next
|
109
|
-
assert_equal "!_TAG_PROGRAM_VERSION\t#{RDoc::Generator::Tags::VERSION}\n",
|
110
|
-
tags.next
|
100
|
+
assert_equal "\f\n", tags.next
|
101
|
+
assert_equal "file.rb,192\n", tags.next
|
111
102
|
|
112
|
-
assert_equal "
|
113
|
-
assert_equal "A::B\tfile.rb\t/class \\(A::\\)\\?B/;\"\tc\n", tags.next
|
114
|
-
assert_equal "B\tfile.rb\t/class \\(A::\\)\\?B/;\"\tc\n", tags.next
|
103
|
+
assert_equal "\x7Ffile.rb\x010,0\n", tags.next
|
115
104
|
|
116
|
-
assert_equal "CONST\
|
105
|
+
assert_equal "CONST\x7FCONST\x010,0\n", tags.next
|
117
106
|
|
118
|
-
assert_equal "
|
107
|
+
assert_equal "attr_accessor :attr\x7Fattr\x010,0\n", tags.next
|
119
108
|
|
120
|
-
assert_equal "
|
121
|
-
|
122
|
-
assert_equal "
|
123
|
-
tags.next
|
109
|
+
assert_equal "class A\x7FA\x010,0\n", tags.next
|
110
|
+
assert_equal "class A::B\x7FA::B\x010,0\n", tags.next
|
111
|
+
assert_equal "class Object\x7FObject\x010,0\n", tags.next
|
124
112
|
|
125
|
-
assert_equal "
|
113
|
+
assert_equal "def method\x7Fmethod\x010,0\n", tags.next
|
114
|
+
assert_equal "def method!\x7Fmethod!\x010,0\n", tags.next
|
115
|
+
assert_equal "def self.s_method\x7Fs_method\x010,0\n", tags.next
|
126
116
|
|
127
|
-
assert_equal "
|
128
|
-
|
129
|
-
assert_equal "method!\tfile.rb\t/def method!/;\"\tf\tclass:Object\n",
|
130
|
-
tags.next
|
117
|
+
assert_equal "\f\n", tags.next
|
118
|
+
assert_equal "file_2.rb,25\n", tags.next
|
131
119
|
|
132
|
-
assert_equal "
|
133
|
-
tags.next
|
120
|
+
assert_equal "class A::B::A\x7FA::B::A\x010,0\n", tags.next
|
134
121
|
|
135
122
|
assert_raises StopIteration do line = tags.next; flunk line end
|
136
123
|
end
|
137
124
|
|
138
125
|
def test_generate_vim
|
139
|
-
@
|
126
|
+
@g.tag_style = :vim
|
140
127
|
|
141
128
|
@g.generate [@top_level]
|
142
129
|
|
@@ -144,7 +131,7 @@ class TestRDocGeneratorTags < MiniTest::Unit::TestCase
|
|
144
131
|
|
145
132
|
assert File.file? tags_file
|
146
133
|
|
147
|
-
tags = File.read(tags_file).
|
134
|
+
tags = File.read(tags_file).each_line
|
148
135
|
|
149
136
|
assert_equal "!_TAG_FILE_FORMAT\t2\t/extended format/\n", tags.next
|
150
137
|
assert_equal "!_TAG_FILE_SORTED\t1\t/sorted/\n", tags.next
|
@@ -186,9 +173,10 @@ class TestRDocGeneratorTags < MiniTest::Unit::TestCase
|
|
186
173
|
assert_raises StopIteration do line = tags.next; flunk line end
|
187
174
|
end
|
188
175
|
|
189
|
-
def
|
176
|
+
def test_generate_dry_run_vim
|
177
|
+
@options.tag_style = :vim
|
190
178
|
@options.dry_run = true
|
191
|
-
@g = RDoc::Generator::Tags.new @options
|
179
|
+
@g = RDoc::Generator::Tags.new @store, @options
|
192
180
|
|
193
181
|
@g.generate [@top_level]
|
194
182
|
|
@@ -202,7 +190,9 @@ class TestRDocGeneratorTags < MiniTest::Unit::TestCase
|
|
202
190
|
|
203
191
|
@g.instance_variable_set :@system, nil
|
204
192
|
|
205
|
-
|
193
|
+
assert_silent do
|
194
|
+
@g.merge_ctags
|
195
|
+
end
|
206
196
|
|
207
197
|
assert_nil @g.instance_variable_get :@system
|
208
198
|
|
@@ -210,7 +200,9 @@ class TestRDocGeneratorTags < MiniTest::Unit::TestCase
|
|
210
200
|
@g.ctags_path = 'ctags'
|
211
201
|
@options.files = '.'
|
212
202
|
|
213
|
-
|
203
|
+
capture_io do
|
204
|
+
@g.merge_ctags
|
205
|
+
end
|
214
206
|
|
215
207
|
args = @g.instance_variable_get :@system
|
216
208
|
|
metadata
CHANGED
@@ -1,138 +1,125 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdoc-tags
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 2
|
9
|
-
version: "1.2"
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.3.pre
|
10
5
|
platform: ruby
|
11
|
-
authors:
|
6
|
+
authors:
|
12
7
|
- Eric Hodel
|
13
8
|
autorequire:
|
14
9
|
bindir: bin
|
15
|
-
cert_chain:
|
16
|
-
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
10
|
+
cert_chain:
|
11
|
+
- !binary |-
|
12
|
+
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURlRENDQW1DZ0F3SUJB
|
13
|
+
Z0lCQVRBTkJna3Foa2lHOXcwQkFRVUZBREJCTVJBd0RnWURWUVFEREFka2Nt
|
14
|
+
SnkKWVdsdU1SZ3dGZ1lLQ1pJbWlaUHlMR1FCR1JZSWMyVm5iV1Z1ZERjeEV6
|
15
|
+
QVJCZ29Ka2lhSmsvSXNaQUVaRmdOdQpaWFF3SGhjTk1USXdNakk0TVRjMU5E
|
16
|
+
STFXaGNOTVRNd01qSTNNVGMxTkRJMVdqQkJNUkF3RGdZRFZRUUREQWRrCmNt
|
17
|
+
SnlZV2x1TVJnd0ZnWUtDWkltaVpQeUxHUUJHUllJYzJWbmJXVnVkRGN4RXpB
|
18
|
+
UkJnb0praWFKay9Jc1pBRVoKRmdOdVpYUXdnZ0VpTUEwR0NTcUdTSWIzRFFF
|
19
|
+
QkFRVUFBNElCRHdBd2dnRUtBb0lCQVFDYmJnTHJHTEdJREU3NgpMVi9jdnhk
|
20
|
+
RXpDdVl1UzNvRzlQclNabnVEd2V5U1VmZHAvc28wY0RxK2o4YnF5Nk96WlN3
|
21
|
+
MDdnZGp3Rk1TZDZKClU1ZGRaQ1Z5d241bm5BUStVaTdqTVc1NENZdDUvSDZm
|
22
|
+
MlVTNlUwaFFPakpSNmNwZml5bWd4R2RmeVRpVmN2VG0KR2ovb2tXclFsME5q
|
23
|
+
WU9ZQnBEaSs5UFBtYUgyUm1MSnUwZEIvTnlsc0RuVzVqNnlOMUJFSThNZkpS
|
24
|
+
UitIUktaWQptVXRnekJ3RjFWNEtJWlE4RXVMNkkvbkhWdTA3aTZJa3JwQWd4
|
25
|
+
cFhVZmRKUUppMG9aQXFYdXJBVjN5VHhrRndkCmc2MllyclcyNm1EZStwWkJ6
|
26
|
+
UjZicExFK1BtWEN6ejdVeFVxM0FFMGdQSGJpTVhpZTNFRkUwb3huc1UzbElk
|
27
|
+
dWgKc0NBTmlROEJBZ01CQUFHamV6QjVNQWtHQTFVZEV3UUNNQUF3Q3dZRFZS
|
28
|
+
MFBCQVFEQWdTd01CMEdBMVVkRGdRVwpCQlM1azRaNzVWU3BkTTBBY2xHMlV2
|
29
|
+
ekZBL1ZXNURBZkJnTlZIUkVFR0RBV2dSUmtjbUp5WVdsdVFITmxaMjFsCmJu
|
30
|
+
UTNMbTVsZERBZkJnTlZIUklFR0RBV2dSUmtjbUp5WVdsdVFITmxaMjFsYm5R
|
31
|
+
M0xtNWxkREFOQmdrcWhraUcKOXcwQkFRVUZBQU9DQVFFQVBlV3pGbnJjdkM2
|
32
|
+
ZVZ6ZGxobWpVdWIyczZxaWVCa29uZ0tSREhRejVNRWVRdjRMUwpTQVJub0hZ
|
33
|
+
K3VDQVZMLzF4R0FobXB6cVEzZkpHV0s5ZUJhY1cvZThFNUdGOXhRY1YzbUUx
|
34
|
+
YkEwV05haURsWDVqClUyYUkrWkdTYmxxdkhVQ3hLQkhSMXM3VU1Ic2J6MXNh
|
35
|
+
T21nZFJUeVB4MGp1SnM2OG9jYlVUZVlCTFd1OVY0S1AKemRHQUcySlhPMmdP
|
36
|
+
TmczYjR0WUR2cEJMYnJ5K0tPWDI3aUFKdWxVYUg5VGlUT1VMTDRJVEpWRnNL
|
37
|
+
MG1ZVnFtUgpROFRubzlTM2U0WEdHUDFaV2ZMclRXRUpiYXZGZmhHSHV0MmlN
|
38
|
+
UndmQzdzL1lJTEFITkFUb3BhSmRIOUROcGQxClU4MXpHSE1VQk92ei9WR1Q2
|
39
|
+
d0p3WUozZW1TMm5mQTJOT0hGZmdBPT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUt
|
40
|
+
LS0tLQo=
|
41
|
+
date: 2012-12-22 00:00:00.000000000 Z
|
42
|
+
dependencies:
|
43
|
+
- !ruby/object:Gem::Dependency
|
42
44
|
name: rdoc
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
- 3
|
52
|
-
- 4
|
53
|
-
version: "3.4"
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 4.0.0.preview2
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '5'
|
54
53
|
type: :runtime
|
55
|
-
version_requirements: *id001
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: minitest
|
58
54
|
prerelease: false
|
59
|
-
|
60
|
-
|
61
|
-
requirements:
|
55
|
+
version_requirements: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
62
57
|
- - ">="
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 4.0.0.preview2
|
60
|
+
- - "<"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '5'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: minitest
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '4.3'
|
70
70
|
type: :development
|
71
|
-
version_requirements: *id002
|
72
|
-
- !ruby/object:Gem::Dependency
|
73
|
-
name: isolate
|
74
71
|
prerelease: false
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
segments:
|
82
|
-
- 3
|
83
|
-
version: "3"
|
84
|
-
type: :development
|
85
|
-
version_requirements: *id003
|
86
|
-
- !ruby/object:Gem::Dependency
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '4.3'
|
77
|
+
- !ruby/object:Gem::Dependency
|
87
78
|
name: ZenTest
|
88
|
-
|
89
|
-
|
90
|
-
none: false
|
91
|
-
requirements:
|
79
|
+
requirement: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
92
81
|
- - ">="
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
|
95
|
-
segments:
|
96
|
-
- 0
|
97
|
-
version: "0"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
98
84
|
type: :development
|
99
|
-
version_requirements: *id004
|
100
|
-
- !ruby/object:Gem::Dependency
|
101
|
-
name: hoe
|
102
85
|
prerelease: false
|
103
|
-
|
104
|
-
|
105
|
-
requirements:
|
86
|
+
version_requirements: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
106
88
|
- - ">="
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: hoe
|
93
|
+
requirement: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '3.3'
|
114
98
|
type: :development
|
115
|
-
|
99
|
+
prerelease: false
|
100
|
+
version_requirements: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - "~>"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '3.3'
|
116
105
|
description: |-
|
117
|
-
A TAGS file generator
|
118
|
-
|
119
|
-
|
120
|
-
|
106
|
+
A TAGS file generator that builds both vim and emacs style tags files. Vim
|
107
|
+
tags are based on http://ctags.sourceforge.net/FORMAT). rdoc-tags is
|
108
|
+
compatible with Exuberant Ctags for merging tag definitions.
|
109
|
+
|
121
110
|
rdoc-tags includes a Hoe plugin +:rdoc_tags+ making it easy to add tag support
|
122
111
|
to your ruby project. If you don't use Hoe you can instead use RDoc::TagsTask
|
123
112
|
to add rake tasks for building TAGS to your ruby project.
|
124
|
-
email:
|
113
|
+
email:
|
125
114
|
- drbrain@segment7.net
|
126
115
|
executables: []
|
127
|
-
|
128
116
|
extensions: []
|
129
|
-
|
130
|
-
extra_rdoc_files:
|
117
|
+
extra_rdoc_files:
|
131
118
|
- History.txt
|
132
119
|
- Manifest.txt
|
133
120
|
- README.txt
|
134
|
-
files:
|
135
|
-
- .autotest
|
121
|
+
files:
|
122
|
+
- ".autotest"
|
136
123
|
- History.txt
|
137
124
|
- Manifest.txt
|
138
125
|
- README.txt
|
@@ -142,40 +129,31 @@ files:
|
|
142
129
|
- lib/rdoc/generator/tags.rb
|
143
130
|
- lib/rdoc/tags_task.rb
|
144
131
|
- test/test_rdoc_generator_tags.rb
|
145
|
-
|
132
|
+
- ".gemtest"
|
146
133
|
homepage: https://github.com/rdoc/rdoc-tags
|
147
134
|
licenses: []
|
148
|
-
|
135
|
+
metadata: {}
|
149
136
|
post_install_message:
|
150
|
-
rdoc_options:
|
151
|
-
- --main
|
137
|
+
rdoc_options:
|
138
|
+
- "--main"
|
152
139
|
- README.txt
|
153
|
-
require_paths:
|
140
|
+
require_paths:
|
154
141
|
- lib
|
155
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
156
|
-
|
157
|
-
requirements:
|
142
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
158
144
|
- - ">="
|
159
|
-
- !ruby/object:Gem::Version
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
requirements:
|
167
|
-
- - ">="
|
168
|
-
- !ruby/object:Gem::Version
|
169
|
-
hash: 3
|
170
|
-
segments:
|
171
|
-
- 0
|
172
|
-
version: "0"
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '0'
|
147
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">"
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: 1.3.1
|
173
152
|
requirements: []
|
174
|
-
|
175
153
|
rubyforge_project: rdoc-tags
|
176
|
-
rubygems_version:
|
154
|
+
rubygems_version: 2.0.0.preview2.2
|
177
155
|
signing_key:
|
178
|
-
specification_version:
|
179
|
-
summary: A TAGS file generator
|
180
|
-
test_files:
|
156
|
+
specification_version: 4
|
157
|
+
summary: A TAGS file generator that builds both vim and emacs style tags files
|
158
|
+
test_files:
|
181
159
|
- test/test_rdoc_generator_tags.rb
|
metadata.gz.sig
CHANGED
Binary file
|