docstat 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/bin/docstat-test +12 -0
  4. metadata +3 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df01644c316c2876021d45299e9dcf1dca78b826
4
- data.tar.gz: 996f490dd4e4bed15e86d4aea9d40cf2c0d14fca
3
+ metadata.gz: a81ecdb74a67ba1a5967c49a783931698d8ea7b9
4
+ data.tar.gz: a257d38855848d5be991c0c91036850d20876b8b
5
5
  SHA512:
6
- metadata.gz: fd02e766736729bad497005e67b6671815d8d52832f5091b491f0dd2dde9b0cc896db49cff4e95b3c30ae81cb9a639ec7644de044b1f0574ec52ada58896defc
7
- data.tar.gz: f97ebd1de84def67a09c7581b3fc9a78ce61c91dac94da897f674c3741e139be81d6d5fe183e2e6704060141a28b9439b797ab4ffb29e5231f7b59f450da3bbc
6
+ metadata.gz: 6a593a72575ab0702c2271eba71f51fa411336c0ec40dae756bca027af0a1658f802296b12e992a8055fa6cdc1800c12515648423c47eef6532444e7e49078d4
7
+ data.tar.gz: f88dc4505a35140a5836ae89af37e6d37e04cf355a98068cf6650a9079dd3ca8d725e6d2f9fd24a08bada8ff45e1d616391c0f3a5aaffc403de5cdc482fd7896
@@ -1,3 +1,7 @@
1
+ # 1.0.1
2
+
3
+ * Fix missing test binary
4
+
1
5
  # 1.0.0
2
6
 
3
7
  * Initial version
@@ -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.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