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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b8fbab2f6bbd8c5008a6a6de78b05846e7e102ae913c222a7c89410155c8585
4
- data.tar.gz: ee07d9267e3d9ad7d84e0a72015e263465f1575fb8cb37942b4329e185ea54f8
3
+ metadata.gz: b24ce7436a54ffabd1a2e6fcd59f4e3446a431e979c523f3c6d35c9684d5139e
4
+ data.tar.gz: 3220855e4866ec42eadc5f8b90ff3477b173493d850dc3c4de9c6fe8171c14ed
5
5
  SHA512:
6
- metadata.gz: 31004fbf090c9766bbec2b47c92a475a41b26e72641d040cf03e01c82ca038d9ed22daba05b9db9ac9ab484cca786f3f6adc727ba7cfcb62a710460a0ef9980a
7
- data.tar.gz: ac3d6de5594d11b875c6c6befe2f01b2eea5a1dfa36e74e416697618a63f1c7b09ed6096e8981a4cfdbca6180aaa1b6d8ee75560bb3b7383272bd78bf1b99e8e
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
- require 'build/files/glob'
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
- require 'build/files/glob'
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
- require 'build/files/glob'
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)
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2020-2022, by Samuel Williams.
5
5
 
6
6
  module Decode
7
- VERSION = "0.21.1"
7
+ VERSION = "0.21.3"
8
8
  end
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.21.1
4
+ version: 0.21.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file