yard-xml 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/lib/templates/default/class/xml/setup.rb +10 -1
- data/lib/templates/default/constant/xml/setup.rb +1 -1
- data/lib/templates/default/method/xml/setup.rb +6 -5
- data/lib/templates/default/module/xml/setup.rb +10 -1
- data/lib/yard-xml/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6424447b79d6c65555a0ae4e899165250ab527b03b0910acd828bdbda32bfe77
|
4
|
+
data.tar.gz: f6c333982ad9449358a905c5c75a2ea73b01753af8f4f1b51f94bb5c37983fa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c46a9a7cc2b1fd2d47d6089f2b083da98a616c89bcc4b7bf82e82acfbcc6884db18adc0d3051bcb553665cca46e2640917146c18c34fb4aa55bdda287931e6a1
|
7
|
+
data.tar.gz: 01b8cccf9cf6648b98e1b73cd733ff847f52baf5f1d6ae7352a8cba1a720600d1329a5bb42a0f74c1d944cf01284f12d9e4ab34fbd99ece9399b36c36927b976
|
data/.gitignore
CHANGED
@@ -18,7 +18,16 @@
|
|
18
18
|
|
19
19
|
def init
|
20
20
|
xml = options[:xml_builder]
|
21
|
-
xml.class(:name => object.name, :superclass => object.superclass.
|
21
|
+
xml.class(:name => object.name.to_s, :superclass => object.superclass.path.to_s) do
|
22
|
+
|
23
|
+
object.instance_mixins.each do |mixin|
|
24
|
+
xml.instance_mixin mixin.path
|
25
|
+
end
|
26
|
+
|
27
|
+
object.class_mixins.each do |mixin|
|
28
|
+
xml.class_mixin mixin.path
|
29
|
+
end
|
30
|
+
|
22
31
|
xml.summary(docstring_summary(object))
|
23
32
|
xml.description do
|
24
33
|
xml.cdata!(html_markup_rdoc(object.docstring))
|
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
def init
|
20
20
|
xml = options[:xml_builder]
|
21
|
-
xml.constant(:name => object.name, :value => object.value) do
|
21
|
+
xml.constant(:name => object.name.to_s, :value => object.value.to_s) do
|
22
22
|
xml.description do
|
23
23
|
xml.cdata!(html_markup_rdoc(object.docstring))
|
24
24
|
end
|
@@ -18,9 +18,10 @@
|
|
18
18
|
|
19
19
|
def init
|
20
20
|
xml = options[:xml_builder]
|
21
|
-
info = {:name => object.name, :scope => object.scope}
|
21
|
+
info = {:name => object.name.to_s, :scope => object.scope.to_s}
|
22
22
|
if object.is_attribute?
|
23
|
-
if object.name
|
23
|
+
if object.name
|
24
|
+
:default_format
|
24
25
|
end
|
25
26
|
info[:attribute] = true
|
26
27
|
info[:name] = object.name.to_s.sub(/=$/, '')
|
@@ -62,7 +63,7 @@ def init
|
|
62
63
|
end if object.has_tag?(:see)
|
63
64
|
end
|
64
65
|
object.aliases.each do |aa|
|
65
|
-
xml.alias(:name => aa.name)
|
66
|
+
xml.alias(:name => aa.name.to_s)
|
66
67
|
end
|
67
68
|
xml.overloads do
|
68
69
|
if object.tags(:overload).size > 0
|
@@ -85,7 +86,7 @@ def describe_method(xml, object, method)
|
|
85
86
|
[:param, :yieldparam].each do |tag_name|
|
86
87
|
xml.tag!("#{tag_name}s") do
|
87
88
|
method.tags(tag_name).each do |param|
|
88
|
-
info = {:name => param.name}
|
89
|
+
info = {:name => param.name.to_s}
|
89
90
|
default = method.parameters.assoc(param.name)
|
90
91
|
if default && default[1]
|
91
92
|
info[:default] = default[1]
|
@@ -104,7 +105,7 @@ def describe_method(xml, object, method)
|
|
104
105
|
unless options.empty?
|
105
106
|
xml.options do
|
106
107
|
options.each do |option|
|
107
|
-
info = {:name => option.pair.name}
|
108
|
+
info = {:name => option.pair.name.to_s}
|
108
109
|
if option.pair.defaults
|
109
110
|
info[:default] = option.pair.defaults.first
|
110
111
|
end
|
@@ -18,7 +18,16 @@
|
|
18
18
|
|
19
19
|
def init
|
20
20
|
xml = options[:xml_builder]
|
21
|
-
xml.module(:name => object.name) do
|
21
|
+
xml.module(:name => object.name.to_s) do
|
22
|
+
|
23
|
+
object.instance_mixins.each do |mixin|
|
24
|
+
xml.instance_mixin mixin.path
|
25
|
+
end
|
26
|
+
|
27
|
+
object.class_mixins.each do |mixin|
|
28
|
+
xml.class_mixin mixin.path
|
29
|
+
end
|
30
|
+
|
22
31
|
if object.respond_to?(:children)
|
23
32
|
object.children.sort_by do |child|
|
24
33
|
[
|
data/lib/yard-xml/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yard-xml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Couchbase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yard
|
@@ -78,8 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: '0'
|
80
80
|
requirements: []
|
81
|
-
|
82
|
-
rubygems_version: 2.0.14
|
81
|
+
rubygems_version: 3.1.2
|
83
82
|
signing_key:
|
84
83
|
specification_version: 4
|
85
84
|
summary: XML plugin for YARD tool
|