decode 0.21.0 → 0.21.1
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 +6 -5
- data/lib/decode/language/ruby/parser.rb +1 -1
- 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: 6b8fbab2f6bbd8c5008a6a6de78b05846e7e102ae913c222a7c89410155c8585
|
4
|
+
data.tar.gz: ee07d9267e3d9ad7d84e0a72015e263465f1575fb8cb37942b4329e185ea54f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31004fbf090c9766bbec2b47c92a475a41b26e72641d040cf03e01c82ca038d9ed22daba05b9db9ac9ab484cca786f3f6adc727ba7cfcb62a710460a0ef9980a
|
7
|
+
data.tar.gz: ac3d6de5594d11b875c6c6befe2f01b2eea5a1dfa36e74e416697618a63f1c7b09ed6096e8981a4cfdbca6180aaa1b6d8ee75560bb3b7383272bd78bf1b99e8e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/bake/decode/index.rb
CHANGED
@@ -8,28 +8,27 @@
|
|
8
8
|
def coverage(root)
|
9
9
|
require 'build/files/glob'
|
10
10
|
require 'decode/index'
|
11
|
+
require 'set'
|
11
12
|
|
12
13
|
paths = Build::Files::Path.expand(root).glob("**/*")
|
13
14
|
|
14
15
|
index = Decode::Index.new
|
15
16
|
index.update(paths)
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
documented_count = 0
|
18
|
+
documented = Set.new
|
19
|
+
missing = Set.new
|
20
20
|
|
21
21
|
index.trie.traverse do |path, node, descend|
|
22
22
|
public_definition = node.values.nil?
|
23
23
|
|
24
24
|
node.values&.each do |definition|
|
25
25
|
if definition.public?
|
26
|
-
public_count += 1
|
27
26
|
level = path.size
|
28
27
|
|
29
28
|
if definition.comments.nil?
|
30
29
|
missing << definition.qualified_name
|
31
30
|
else
|
32
|
-
|
31
|
+
documented << definition.qualified_name
|
33
32
|
end
|
34
33
|
|
35
34
|
public_definition = true
|
@@ -42,6 +41,8 @@ def coverage(root)
|
|
42
41
|
end
|
43
42
|
end
|
44
43
|
|
44
|
+
documented_count = documented.size
|
45
|
+
public_count = documented_count + missing.size
|
45
46
|
$stderr.puts "#{documented_count} definitions have documentation, out of #{public_count} public definitions."
|
46
47
|
|
47
48
|
if documented_count < public_count
|
data/lib/decode/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|