inspec_helper 0.1.4 → 0.1.5
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/lib/inspec_helper/node_importer.rb +7 -1
- data/lib/inspec_helper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82108a457b005c1f5841b08aae16ef4968c5253c3bcd8f1f6b561812ef16988a
|
4
|
+
data.tar.gz: d963d604659fd0f9a688f895147ae2363a2d6e4220355f49f2982853c54560f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a877a14572b9726ee899f2fdea051dac733911a151715ca88c8c1a039008d9bdc23743aa848b72b09b5a674c87cab6eb1baa3d2cd74ffd406af9413b1f698d93
|
7
|
+
data.tar.gz: 76a3016d8c72fef8d447713fff50514a1bc46f2dfa50f8b9b84a74a52bf8b7ece3da62d5af13a028a9034082a212d1d3ca6feca65909c341a9bc4b78b239fe60
|
@@ -15,7 +15,13 @@ module InspecHelper
|
|
15
15
|
private
|
16
16
|
def read_json
|
17
17
|
file = File.read(@filename)
|
18
|
-
|
18
|
+
begin
|
19
|
+
JSON.parse(file)
|
20
|
+
rescue JSON::ParserError e
|
21
|
+
puts "\n--- JSON PARSING FAILED WITH:"
|
22
|
+
puts "\n #{e.message}"
|
23
|
+
puts "\n #{e.backtrace.inspect}"
|
24
|
+
end
|
19
25
|
end
|
20
26
|
end
|
21
27
|
end
|