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 +4 -4
- data/bin/prospectus +8 -4
- data/lib/prospectus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f5a2d568d829a61845ea9c4038acd06a44cb15da
|
|
4
|
+
data.tar.gz: ff78b3fed127721df892be76a6db17e3bd1a8c43
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
data/lib/prospectus/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2016-01-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mercenary
|