graphiti 1.5.1 → 1.5.2

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
  SHA256:
3
- metadata.gz: a90dc53cb1aeb5da88880a45923039d4dac291548e88a2fc6e8bddacc0ede150
4
- data.tar.gz: 91e42b3e269f758d8978cfed630a45ca59ae5f96b5114170b965d23a6b67f542
3
+ metadata.gz: 1c25ef983bb86cc817c3356590667bcfe2065ea195b6004a0803f9ce771c4288
4
+ data.tar.gz: 9215c114b5d98645104bb56fb8b554ce7cb9def5ce4902deca3a3680cfec7c83
5
5
  SHA512:
6
- metadata.gz: f30ad5e6356b491ba4d0490160c66587a3698c14abf9953d5d0c5cb4b088990bcbed5186c338cc8c5ac833bafc12b69fb764bfd565be717597fe2e4e804ddfed
7
- data.tar.gz: 87c3b0944fd03d12674e2678b8f28967badeea8935ce962804470dd8b68258334ad19b102038bd5e2c87c2d533711597a705185f5073faa71fba95031465e36c
6
+ metadata.gz: b2cebcf9995f633281f34a511e86ea11eb0bf72423839fbe0f0796ab65ad3e3d67e29880c55987cb2f3e0d8027e19a0b0ea070cd518a29320b3031bca51a5c50
7
+ data.tar.gz: 579ed54aa1cc674244431c2e52f1f24e7e832923de473329c7f0286c9be2982185d60357743f248f8ac831414a7151138a0eb85106af05441788a88628ca6839
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  graphiti changelog
2
2
 
3
+ ## [1.5.2](https://github.com/graphiti-api/graphiti/compare/v1.5.1...v1.5.2) (2024-03-18)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Enum should allow the conventionally case-sensitive operators ([#434](https://github.com/graphiti-api/graphiti/issues/434)) ([56d34fd](https://github.com/graphiti-api/graphiti/commit/56d34fd4801bc32c13d64aca880b82b717b2ab81))
9
+
3
10
  ## [1.5.1](https://github.com/graphiti-api/graphiti/compare/v1.5.0...v1.5.1) (2024-03-18)
4
11
 
5
12
 
@@ -39,7 +39,7 @@ module Graphiti
39
39
  :not_match
40
40
  ],
41
41
  uuid: [:eq, :not_eq],
42
- enum: [:eq, :not_eq],
42
+ enum: [:eq, :not_eq, :eql, :not_eql],
43
43
  integer_id: numerical_operators,
44
44
  integer: numerical_operators,
45
45
  big_decimal: numerical_operators,
@@ -26,6 +26,7 @@ module Graphiti
26
26
  alias_method :filter_boolean_eq, :filter_eq
27
27
  alias_method :filter_uuid_eq, :filter_eq
28
28
  alias_method :filter_enum_eq, :filter_eq
29
+ alias_method :filter_enum_eql, :filter_eq
29
30
 
30
31
  def filter_not_eq(scope, attribute, value)
31
32
  scope.where.not(attribute => value)
@@ -37,6 +38,7 @@ module Graphiti
37
38
  alias_method :filter_boolean_not_eq, :filter_not_eq
38
39
  alias_method :filter_uuid_not_eq, :filter_not_eq
39
40
  alias_method :filter_enum_not_eq, :filter_not_eq
41
+ alias_method :filter_enum_not_eql, :filter_not_eq
40
42
 
41
43
  def filter_string_eq(scope, attribute, value, is_not: false)
42
44
  column = column_for(scope, attribute)
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.5.1"
2
+ VERSION = "1.5.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond