yard-xml 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/templates/default/method/xml/setup.rb +12 -2
- data/lib/yard-xml/version.rb +1 -1
- metadata +4 -3
@@ -55,6 +55,11 @@ def init
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
end if object.has_tag?(:note)
|
58
|
+
xml.links do
|
59
|
+
object.tags(:see).each do |link|
|
60
|
+
xml.link(link.name)
|
61
|
+
end
|
62
|
+
end if object.has_tag?(:see)
|
58
63
|
end
|
59
64
|
object.aliases.each do |aa|
|
60
65
|
xml.alias(:name => aa.name)
|
@@ -164,12 +169,17 @@ def describe_method(xml, object, method)
|
|
164
169
|
end if method.has_tag?(:raise)
|
165
170
|
|
166
171
|
xml.notes do
|
167
|
-
|
172
|
+
object.tags(:note).each do |note|
|
168
173
|
xml.note do
|
169
174
|
xml.cdata!(html_markup_rdoc(note.text || ""))
|
170
175
|
end
|
171
176
|
end
|
172
|
-
end if
|
177
|
+
end if object.has_tag?(:note)
|
178
|
+
xml.links do
|
179
|
+
object.tags(:see).each do |link|
|
180
|
+
xml.link(link.name)
|
181
|
+
end
|
182
|
+
end if object.has_tag?(:see)
|
173
183
|
|
174
184
|
xml.examples do
|
175
185
|
method.tags(:example).each do |example|
|
data/lib/yard-xml/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yard-xml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-06-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: yard
|
@@ -69,8 +69,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
71
|
rubyforge_project:
|
72
|
-
rubygems_version: 1.8.
|
72
|
+
rubygems_version: 1.8.24
|
73
73
|
signing_key:
|
74
74
|
specification_version: 3
|
75
75
|
summary: XML plugin for YARD tool
|
76
76
|
test_files: []
|
77
|
+
has_rdoc:
|