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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: be30065088c62a1fba72627eeb23604aca274d37
4
- data.tar.gz: f8bd9ef9e23cb47de5337858385ad245f335e6c3
2
+ SHA256:
3
+ metadata.gz: 6424447b79d6c65555a0ae4e899165250ab527b03b0910acd828bdbda32bfe77
4
+ data.tar.gz: f6c333982ad9449358a905c5c75a2ea73b01753af8f4f1b51f94bb5c37983fa3
5
5
  SHA512:
6
- metadata.gz: c34d925f45275670f3d504ae6ffac86c8027556cbb864aeff21780c5d341b7395337e0ba91fe8cb4a722b93d9f1589d92cc199d19cfcd7f4ca76da6d73536dc1
7
- data.tar.gz: ac9780fa2bab45e6c56d28730f5510dfe1ef7845e2dd5b7947354d070f9ce4f764656be25fb42a96b7c0f2c7fb1829898bce1bb6bf6c88284a681f2a05b2c075
6
+ metadata.gz: c46a9a7cc2b1fd2d47d6089f2b083da98a616c89bcc4b7bf82e82acfbcc6884db18adc0d3051bcb553665cca46e2640917146c18c34fb4aa55bdda287931e6a1
7
+ data.tar.gz: 01b8cccf9cf6648b98e1b73cd733ff847f52baf5f1d6ae7352a8cba1a720600d1329a5bb42a0f74c1d944cf01284f12d9e4ab34fbd99ece9399b36c36927b976
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  .bundle
3
3
  Gemfile.lock
4
4
  pkg/*
5
+ .idea
@@ -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.name) do
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:default_format
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
  [
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module YardXML
19
- VERSION = "0.1.3"
19
+ VERSION = "0.2.0"
20
20
  end
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.1.3
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: 2014-06-12 00:00:00.000000000 Z
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
- rubyforge_project:
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