decode 0.20.0 → 0.20.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/bake/decode/index.rb +23 -0
- data/lib/decode/comment/node.rb +2 -3
- data/lib/decode/comment/tags.rb +1 -1
- data/lib/decode/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 133b0261b7fc97e74472573ccfe28b7526409627b7ebf60ee9674ff62348b0bc
|
4
|
+
data.tar.gz: 79572a96b6c043d76093db8fac0835b6aeae69885f10d687e6ee18313a179e6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad5a07fac459587b2a7c2630e4a368797ab8d7c6290134640a561b4b6acd9d1cc15fc310e752fd5895718c0b4f46c04e37facc457519d9a16f3f40d5cdd122fc
|
7
|
+
data.tar.gz: a76d74f0eeb86f787dd6df5f859ce5235367a3e9ee2ab54aea1f22e2b5b980fac64f5620c239119406ee45492f5ed177959ccb49ade5ef58bf1ad0d676bb2bde
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/bake/decode/index.rb
CHANGED
@@ -52,3 +52,26 @@ def symbols(root)
|
|
52
52
|
descend.call
|
53
53
|
end
|
54
54
|
end
|
55
|
+
|
56
|
+
# Print documentation for all definitions.
|
57
|
+
# @parameter root [String] The root path to index.
|
58
|
+
def documentation(root)
|
59
|
+
require 'build/files/glob'
|
60
|
+
require 'decode/index'
|
61
|
+
|
62
|
+
paths = Build::Files::Path.expand(root).glob("**/*")
|
63
|
+
|
64
|
+
index = Decode::Index.new
|
65
|
+
index.update(paths)
|
66
|
+
|
67
|
+
index.definitions.each do |name, definition|
|
68
|
+
comments = definition.comments
|
69
|
+
|
70
|
+
if comments
|
71
|
+
puts "## `#{name}`"
|
72
|
+
puts
|
73
|
+
puts comments
|
74
|
+
puts
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
data/lib/decode/comment/node.rb
CHANGED
@@ -47,7 +47,7 @@ module Decode
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
-
# Any lines of text associated
|
50
|
+
# Any lines of text associated with this node.
|
51
51
|
# @returns [Array(String) | Nil] The lines of text.
|
52
52
|
def text
|
53
53
|
if text = self.extract_text
|
@@ -55,8 +55,7 @@ module Decode
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
-
# Traverse the tags from this node using {each}.
|
59
|
-
# Invoke `descend.call(child)` to recursively traverse the specified child.
|
58
|
+
# Traverse the tags from this node using {each}. Invoke `descend.call(child)` to recursively traverse the specified child.
|
60
59
|
#
|
61
60
|
# @yields {|node, descend| descend.call}
|
62
61
|
# @parameter node [Node] The current node which is being traversed.
|
data/lib/decode/comment/tags.rb
CHANGED
data/lib/decode/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.20.
|
4
|
+
version: 0.20.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -37,7 +37,7 @@ cert_chain:
|
|
37
37
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
38
38
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
39
39
|
-----END CERTIFICATE-----
|
40
|
-
date: 2023-
|
40
|
+
date: 2023-12-04 00:00:00.000000000 Z
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: parser
|
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
|
-
rubygems_version: 3.4.
|
128
|
+
rubygems_version: 3.4.22
|
129
129
|
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: Code analysis for documentation generation.
|
metadata.gz.sig
CHANGED
Binary file
|