json-logic-rb 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d726f7f3bf1bd6cb21653d3764b60bb78d1d1e098f0f0f42cc821dbf3f5da9b1
4
- data.tar.gz: 3a3816024e8d4ae47bced0a6a04abd92bdab15bd8f134c616d2f8333759f8f27
3
+ metadata.gz: 975d191c041cd7afd3e3ab977d01944e00693ec7320e6418ae312d71afa67d7f
4
+ data.tar.gz: 9b871c8f3b53fbc5cf3e2dbd180a556e5815940c536da6e2c248bf8b66c9be8d
5
5
  SHA512:
6
- metadata.gz: 9a83a929d74d39baf96a5721206e1d4935c5b432876d734a3b6d83e912224b60a5e1e2051242522cdfa25014c11138f3b7dbff9c13c7c01e26d6be11127da679
7
- data.tar.gz: 4dd0db70c83bf78025d2c44c96f4e1cdbb1a3f9884b7f3e8f5031e1393d7cc3b2575979894393a37e15f804dfdec0e6dc5b3c1e7822d94681de61bbdedba88c2
6
+ metadata.gz: eef9bc4ce561c092cc5bd7885b9f69051e4aa0712dd15e93c92f4dd32c177570472a401e7bdce65565cee4ee8b80e3ebc3afaa46a0fab91cb1f730c83f0e1a83
7
+ data.tar.gz: fce35e13727e2d30e827c787c5543eb13005c38a59e44abcb8a340b486d1c814d4367d297dc20826b845dd7da98c193b2fa1bf0a521d6aa70bff2847da51eb6c
@@ -86,7 +86,7 @@ module JsonLogic
86
86
  end
87
87
  end
88
88
 
89
- [String, Integer, Float].each do |klass|
89
+ [String, Integer, Float, NilClass, Array, TrueClass, FalseClass].each do |klass|
90
90
  refine klass do
91
91
  def ==(other) = JsonLogic::Semantics.eq(self, other)
92
92
  def >(other) = (c = JsonLogic::Semantics.cmp(self, other)) && c == 1
@@ -95,11 +95,5 @@ module JsonLogic
95
95
  def <=(other) = (c = JsonLogic::Semantics.cmp(self, other)) && (c == -1 || c == 0)
96
96
  end
97
97
  end
98
-
99
- [Array, TrueClass, FalseClass, NilClass].each do |klass|
100
- refine klass do
101
- def ==(other) = JsonLogic::Semantics.eq(self, other)
102
- end
103
- end
104
98
  end
105
99
  end
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module JsonLogic; VERSION = '0.1.2'; end
3
+ module JsonLogic; VERSION = '0.1.3'; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json-logic-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tavrel Kate