predicator 1.0.0 → 1.1.0

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: ac9999a26155d5318cda41ac8d119352e63aa0b5
4
- data.tar.gz: 3c1411fe73bae5d3ca3ee30604856b975d9027c3
3
+ metadata.gz: 5fb315c811b1933aee5a9e373019e46be91ea240
4
+ data.tar.gz: f89434cbd64dcfb65ec62452839386175f530147
5
5
  SHA512:
6
- metadata.gz: 2d5156cbdd62b081816d8d4035a5de20f410bddc9bc57540054de0e433ce61510d80ce694c452e1b4a3f219c7fc9ce8edea38e73db3d763a7f37587fb1b5d7eb
7
- data.tar.gz: 25e56d9f070f10da1e956922072fe6f3ab086b4f16a99a77c281dd6e1c53028f5230a3247f2d473df54b844d916e0758f9be46ba1e2f3761ceb8f7e9b8646aca
6
+ metadata.gz: 3e6698af9ad44e8a5c98bfdd7ee6d8d8b504129e37c9357c9845865334cfcedc5abfb577d198ca04de6ffc92d1dd5795f1950703c86e19ad625209f6cffe03a2
7
+ data.tar.gz: fcbf8a75dc46c7040898fd598155b905907fc10ff3249e42c5e571ea47616d082458b6df02a4a2aa8046e2dda414a0bada7ed344b70894ee41c2f43c1cd47fcc
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.1.0 / 2017-12-06
2
+
3
+ * Rescues errors when comparing invalid types
4
+
1
5
  ### 1.0.0 / 2017-09-22
2
6
 
3
7
  * Adds new lexer
@@ -71,6 +71,8 @@ module Predicator
71
71
  else
72
72
  stack.push send("compare_#{comparison}", left, right)
73
73
  end
74
+ rescue
75
+ stack.push false
74
76
  end
75
77
 
76
78
  def compare_EQ left, right
@@ -103,6 +105,8 @@ module Predicator
103
105
  result = val.between? min, max
104
106
  stack.push result
105
107
  end
108
+ rescue
109
+ stack.push false
106
110
  end
107
111
  end
108
112
  end
@@ -1,3 +1,3 @@
1
1
  module Predicator
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: predicator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - JohnnyT
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-22 00:00:00.000000000 Z
11
+ date: 2017-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler