prospectus 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a4d851bb14d8090f16dc6f84c3ee32482cae511
4
- data.tar.gz: 97fc113c3a059a288e7ff59d4312512e0e25bb46
3
+ metadata.gz: f5a2d568d829a61845ea9c4038acd06a44cb15da
4
+ data.tar.gz: ff78b3fed127721df892be76a6db17e3bd1a8c43
5
5
  SHA512:
6
- metadata.gz: e7c0ff713f400c9ac790a03771225d8429af96866e5deadda82a25d2d01ef239fe22e310ff0f5dc4c8f435475514414c4d9284b02353882cff0cdd9f1edf3ee4
7
- data.tar.gz: e5687c1ef515fd0b35bc9c5267795b2593f097e68638f3097dcbe96763722b8d7a0ff58fe7da10e8ae19fc575bd0fb13403fb7b89a32dbeae40a0549626df51e
6
+ metadata.gz: a05fee0381de9029a3a334eefada7e1be17a2110085712e5d188818dddb1e8d26ebb2b6778dc94f0f76ae43f21bf220eb1d526e3a565982580b3543062db564b
7
+ data.tar.gz: 788221e6d21eaa8974266834a2f5640ddb7c816a5bf8455ebcfe83db6aebe95dabfa658c39061540d8064c77831c87967132010bad856bff4b5cf58b739585cf
data/bin/prospectus CHANGED
@@ -27,6 +27,7 @@ Mercenary.program(:prospectus) do |p|
27
27
  p.option :directory, '-d DIR', '--directory DIR', 'Change to directory before loading'
28
28
  p.option :good_only, '-g', '--good', 'Show only items with good state'
29
29
  p.option :all, '-a', '--all', 'Show all items'
30
+ p.option :quiet, '-q', '--quiet', 'Hide all non-error output'
30
31
  p.option :json, '-j', '--json', 'Output results as json'
31
32
  # rubocop:enable Metrics/LineLength
32
33
 
@@ -34,11 +35,14 @@ Mercenary.program(:prospectus) do |p|
34
35
  options[:directory] ||= '.'
35
36
  Dir.chdir(options[:directory]) do
36
37
  results = load_list(options)
37
- if options[:json]
38
- puts results.to_json
39
- else
40
- results.each { |x| puts "#{x.name}: #{x.actual} / #{x.expected}" }
38
+ unless options[:quiet]
39
+ if options[:json]
40
+ puts results.to_json
41
+ else
42
+ results.each { |x| puts "#{x.name}: #{x.actual} / #{x.expected}" }
43
+ end
41
44
  end
45
+ exit 1 unless results.empty? || options[:all] || options[:good_only]
42
46
  end
43
47
  end
44
48
  end
@@ -2,5 +2,5 @@
2
2
  ##
3
3
  # Declare package version
4
4
  module Prospectus
5
- VERSION = '0.0.9'.freeze
5
+ VERSION = '0.0.10'.freeze
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prospectus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-18 00:00:00.000000000 Z
11
+ date: 2016-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mercenary