docstat 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/bin/docstat-test +12 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a81ecdb74a67ba1a5967c49a783931698d8ea7b9
|
4
|
+
data.tar.gz: a257d38855848d5be991c0c91036850d20876b8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a593a72575ab0702c2271eba71f51fa411336c0ec40dae756bca027af0a1658f802296b12e992a8055fa6cdc1800c12515648423c47eef6532444e7e49078d4
|
7
|
+
data.tar.gz: f88dc4505a35140a5836ae89af37e6d37e04cf355a98068cf6650a9079dd3ca8d725e6d2f9fd24a08bada8ff45e1d616391c0f3a5aaffc403de5cdc482fd7896
|
data/CHANGELOG.md
CHANGED
data/bin/docstat-test
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require File.expand_path(File.join(File.dirname(__FILE__), '../lib/docstat'))
|
4
|
+
|
5
|
+
if docset_path = ARGV[0] and passing_ratio = (ARGV[1] || '0.9')
|
6
|
+
state = DocStat.test_ratio(docset_path, passing_ratio.to_f) ? 'PASSED' : 'FAILED'
|
7
|
+
print "Documentation coverage must be greater than or equal to #{passing_ratio.to_f * 100}%: #{state}"
|
8
|
+
exit(state ? 0 : 1)
|
9
|
+
else
|
10
|
+
print "No Documentation Set (*.docset) directory specified\n"
|
11
|
+
exit(1)
|
12
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docstat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Delisa Mason
|
@@ -57,6 +57,7 @@ email:
|
|
57
57
|
- iskanamagus@gmail.com
|
58
58
|
executables:
|
59
59
|
- docstat
|
60
|
+
- docstat-test
|
60
61
|
extensions: []
|
61
62
|
extra_rdoc_files:
|
62
63
|
- README.md
|
@@ -67,6 +68,7 @@ files:
|
|
67
68
|
- CHANGELOG.md
|
68
69
|
- README.md
|
69
70
|
- bin/docstat
|
71
|
+
- bin/docstat-test
|
70
72
|
- lib/docstat.rb
|
71
73
|
- lib/docstat/container.rb
|
72
74
|
- lib/docstat/token.rb
|