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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e120cd46c80de3764fa4e5842c9fec7472931b9
4
- data.tar.gz: e0a590bf486fd5e9800a43f4c92bb854002fa88e
3
+ metadata.gz: f6143ed50969b04999c68a4157bc76793f2c9721
4
+ data.tar.gz: a32132fc2f5d07e8526ab3eb11668772c0ce6711
5
5
  SHA512:
6
- metadata.gz: d28e21092462fae8c51f89e59c6c71144932b95703c00e769713a144e762bcaa618b0af7c4d190598c285906582c3bd3f3ef7f0447c20681368048d69f50a334
7
- data.tar.gz: 010365b5ccfafbeaed12fbfdb52fac26dbc381201ef868b17baff5f68c4f07780c4b917bf9bec5c61b6f7c23b9e4fa6b5cd11b143785517c81dcd0e1a78b3e24
6
+ metadata.gz: 1fa818d1c4c3469b70a37fd70973b1f1187165757cedeae251a9ec022b80f4b7812c17f800bc1b56e75b9a4172e0028d0b1a4ab68a6a3632649004301cff5166
7
+ data.tar.gz: 6c0ba8ab56158e6cd9c1fb13a6931246cfa579b7b63e715a6433aa2b60b675987e039d8c851fc0b24262fada63bec244a0c52e2a33c13f1d97e1b3e44a1ef0c2
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hcl-checker (1.0.2)
4
+ hcl-checker (1.0.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
- self.last_error = e.message
23
- return false
18
+ return e.message
24
19
  rescue
25
20
  false
26
21
  end
@@ -1,5 +1,5 @@
1
1
  module HCL
2
2
  module Checker
3
- VERSION = '1.0.2'
3
+ VERSION = '1.0.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hcl-checker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Castellani