octool 0.0.1 → 0.0.2
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/octool +1 -1
- data/lib/octool.rb +0 -1
- data/lib/octool/parser.rb +3 -3
- data/lib/octool/ssp.rb +9 -0
- data/lib/octool/version.rb +1 -1
- data/octool.rdoc +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: f7ba13a2d5661f8cb124c8f76390bd475535b816d33a613ed5d3b77b807b1c30
|
|
4
|
+
data.tar.gz: fd7758b697928e0807727360f669e6bef91fa85935a1c040b8bbf63e35a111fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f18379a0d61d2326066d788279f2f2466112441b84f2c120bc7e062bc98991913afcc84273b0cc868fa302eba5a43518a8a9889f1a424df4710975b3e33727f0
|
|
7
|
+
data.tar.gz: dcf36feada04da9dd6368dca3c5a80f5bd9a77c750afbef93bc7d70d55049333636fec95f552bbeb1fca5303b158933507a464eaabadc3c14307d415d6d29fc9
|
data/bin/octool
CHANGED
data/lib/octool.rb
CHANGED
data/lib/octool/parser.rb
CHANGED
|
@@ -63,9 +63,9 @@ module OCTool
|
|
|
63
63
|
|
|
64
64
|
def schema_version
|
|
65
65
|
@schema_version ||= Kwalify::Yaml.load_file(@config_file)['schema_version']
|
|
66
|
-
rescue
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
rescue StandarError
|
|
67
|
+
STDERR.puts '[FAIL] Unable to read schema_version'
|
|
68
|
+
exit(1)
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
# Check that all data files are valid.
|
data/lib/octool/ssp.rb
CHANGED
|
@@ -6,6 +6,15 @@ module OCTool
|
|
|
6
6
|
def initialize(system, output_dir)
|
|
7
7
|
@system = system
|
|
8
8
|
@output_dir = output_dir
|
|
9
|
+
# Load paru/pandoc late enough that help functions work
|
|
10
|
+
# and early enough to be confident that we catch the correct error.
|
|
11
|
+
require 'paru/pandoc'
|
|
12
|
+
rescue UncaughtThrowError => e
|
|
13
|
+
STDERR.puts '[FAIL] octool requires pandoc to generate the SSP. Is pandoc installed?'
|
|
14
|
+
exit(1)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def generate
|
|
9
18
|
render_template
|
|
10
19
|
write
|
|
11
20
|
end
|
data/lib/octool/version.rb
CHANGED
data/octool.rdoc
CHANGED