hcl-checker 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/hcl/checker.rb +1 -6
- data/lib/hcl/checker/version.rb +1 -1
- 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: f6143ed50969b04999c68a4157bc76793f2c9721
|
4
|
+
data.tar.gz: a32132fc2f5d07e8526ab3eb11668772c0ce6711
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fa818d1c4c3469b70a37fd70973b1f1187165757cedeae251a9ec022b80f4b7812c17f800bc1b56e75b9a4172e0028d0b1a4ab68a6a3632649004301cff5166
|
7
|
+
data.tar.gz: 6c0ba8ab56158e6cd9c1fb13a6931246cfa579b7b63e715a6433aa2b60b675987e039d8c851fc0b24262fada63bec244a0c52e2a33c13f1d97e1b3e44a1ef0c2
|
data/Gemfile.lock
CHANGED
data/lib/hcl/checker.rb
CHANGED
@@ -4,10 +4,6 @@ require_relative 'parser'
|
|
4
4
|
|
5
5
|
module HCL
|
6
6
|
module Checker
|
7
|
-
class << self
|
8
|
-
attr_accessor :last_error
|
9
|
-
end
|
10
|
-
|
11
7
|
def self.valid?(value)
|
12
8
|
ret = HCLParser.new.parse(value)
|
13
9
|
return true if ret.is_a? Hash
|
@@ -19,8 +15,7 @@ module HCL
|
|
19
15
|
def self.parse(value)
|
20
16
|
HCLParser.new.parse(value)
|
21
17
|
rescue Racc::ParseError => e
|
22
|
-
|
23
|
-
return false
|
18
|
+
return e.message
|
24
19
|
rescue
|
25
20
|
false
|
26
21
|
end
|
data/lib/hcl/checker/version.rb
CHANGED