junoser 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/junoser +1 -1
- data/lib/junoser/cli.rb +1 -1
- data/lib/junoser/display/set.rb +10 -5
- data/lib/junoser/version.rb +1 -1
- data/lib/junoser.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db6b2a917c2763fad5155635ea974d5a0c361f1b
|
4
|
+
data.tar.gz: 08de52d21a5f010b650b6675c509250009e5b356
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf53ced06ef52a8882b510109e3bca652b729c3c5dd53a113a8699ad32e6174cf5e359890d82053773216a2e185b4e63cedbb0c1d341f348379171c746d394cf
|
7
|
+
data.tar.gz: 26de1af70c0c1c113ec6fd55b0aaba04734de319d64155db08cc756f07895263db4ae184f86ac68c54c2e4d8b7282c89a51462711a84753bd1f07ee494509296
|
data/exe/junoser
CHANGED
data/lib/junoser/cli.rb
CHANGED
data/lib/junoser/display/set.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'parslet'
|
1
2
|
require 'junoser/display/base'
|
2
3
|
|
3
4
|
module Junoser
|
@@ -13,7 +14,7 @@ module Junoser
|
|
13
14
|
|
14
15
|
def commit_check(&block)
|
15
16
|
parser = Junoser::Parser.new
|
16
|
-
|
17
|
+
passed = true
|
17
18
|
|
18
19
|
process do |current_stack, str|
|
19
20
|
config = transform_line(current_stack, str)
|
@@ -21,12 +22,16 @@ module Junoser
|
|
21
22
|
begin
|
22
23
|
parser.parse config
|
23
24
|
rescue Parslet::ParseFailed
|
24
|
-
$stderr.puts "Invalid syntax
|
25
|
-
|
25
|
+
$stderr.puts "Invalid syntax: #{config}"
|
26
|
+
passed = false
|
26
27
|
end
|
27
28
|
end
|
28
29
|
|
29
|
-
|
30
|
+
rescue
|
31
|
+
$stderr.puts $!
|
32
|
+
passed = false
|
33
|
+
ensure
|
34
|
+
passed
|
30
35
|
end
|
31
36
|
|
32
37
|
|
@@ -48,7 +53,7 @@ module Junoser
|
|
48
53
|
when /(.*);/
|
49
54
|
yield stack, $1
|
50
55
|
else
|
51
|
-
raise "ERROR
|
56
|
+
raise "ERROR: unknown statement: #{line}"
|
52
57
|
end
|
53
58
|
end
|
54
59
|
end
|
data/lib/junoser/version.rb
CHANGED
data/lib/junoser.rb
CHANGED