decode 0.21.1 → 0.21.3
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 +13 -13
- data/lib/decode/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- 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: b24ce7436a54ffabd1a2e6fcd59f4e3446a431e979c523f3c6d35c9684d5139e
|
4
|
+
data.tar.gz: 3220855e4866ec42eadc5f8b90ff3477b173493d850dc3c4de9c6fe8171c14ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3f5a3e86a1a92f3c5e1f2fb7cb92fb5e2566ab656791acc5644daad90ceb19f1954199487aad6b7c9ea7375f78b422e2d9a10a958d940f4f80fe479463fe8f9
|
7
|
+
data.tar.gz: d6954d9e0a7eb6f4ec6c60daec050f91554e6b62851900bd2740d5fdbd30c287a8f922cf3d9601f3123c1e498b1da5307267f4970f55059d07d486ad4fa9282e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/bake/decode/index.rb
CHANGED
@@ -3,14 +3,17 @@
|
|
3
3
|
# Released under the MIT License.
|
4
4
|
# Copyright, 2020, by Samuel Williams.
|
5
5
|
|
6
|
+
def initialize(...)
|
7
|
+
super
|
8
|
+
|
9
|
+
require 'decode/index'
|
10
|
+
require 'set'
|
11
|
+
end
|
12
|
+
|
6
13
|
# Process the given source root and report on comment coverage.
|
7
14
|
# @parameter root [String] The root path to index.
|
8
15
|
def coverage(root)
|
9
|
-
|
10
|
-
require 'decode/index'
|
11
|
-
require 'set'
|
12
|
-
|
13
|
-
paths = Build::Files::Path.expand(root).glob("**/*")
|
16
|
+
paths = Dir.glob(File.join(root, "**/*"))
|
14
17
|
|
15
18
|
index = Decode::Index.new
|
16
19
|
index.update(paths)
|
@@ -41,6 +44,9 @@ def coverage(root)
|
|
41
44
|
end
|
42
45
|
end
|
43
46
|
|
47
|
+
# Since there can be multiple definitions for a given symbol, we can ignore any missing definitions that have been documented elsewhere:
|
48
|
+
missing = missing - documented
|
49
|
+
|
44
50
|
documented_count = documented.size
|
45
51
|
public_count = documented_count + missing.size
|
46
52
|
$stderr.puts "#{documented_count} definitions have documentation, out of #{public_count} public definitions."
|
@@ -58,10 +64,7 @@ end
|
|
58
64
|
# Process the given source root and report on symbols.
|
59
65
|
# @parameter root [String] The root path to index.
|
60
66
|
def symbols(root)
|
61
|
-
|
62
|
-
require 'decode/index'
|
63
|
-
|
64
|
-
paths = Build::Files::Path.expand(root).glob("**/*")
|
67
|
+
paths = Dir.glob(File.join(root, "**/*"))
|
65
68
|
|
66
69
|
index = Decode::Index.new
|
67
70
|
index.update(paths)
|
@@ -81,10 +84,7 @@ end
|
|
81
84
|
# Print documentation for all definitions.
|
82
85
|
# @parameter root [String] The root path to index.
|
83
86
|
def documentation(root)
|
84
|
-
|
85
|
-
require 'decode/index'
|
86
|
-
|
87
|
-
paths = Build::Files::Path.expand(root).glob("**/*")
|
87
|
+
paths = Dir.glob(File.join(root, "**/*"))
|
88
88
|
|
89
89
|
index = Decode::Index.new
|
90
90
|
index.update(paths)
|
data/lib/decode/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|