graphiti 1.5.0 → 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: 4ac18e95dbeb97600ec5027bf94e58724e652f5c77dd0d83f122651a04b9676f
4
- data.tar.gz: 4691d5f4f4e037e6d2d5100e84789ea53b6084d884e22bdf1f55b6a3a0e7981d
3
+ metadata.gz: 1c25ef983bb86cc817c3356590667bcfe2065ea195b6004a0803f9ce771c4288
4
+ data.tar.gz: 9215c114b5d98645104bb56fb8b554ce7cb9def5ce4902deca3a3680cfec7c83
5
5
  SHA512:
6
- metadata.gz: 36401cebf8a89402bdbafccf234a98d988df2f642ff00d4ee51030857ce98b008f91d3ca80b7f05e64a2a3ab79f872c225c1d79cf3d1c531e9ff61e74b4f7280
7
- data.tar.gz: 73601e0ee6d54235a54c4db54baab90313e735ae81806520354a8f75890de6ec7fb3025952ed972f15fe493230a97a50a2e41e82b7f957739b21177355743479
6
+ metadata.gz: b2cebcf9995f633281f34a511e86ea11eb0bf72423839fbe0f0796ab65ad3e3d67e29880c55987cb2f3e0d8027e19a0b0ea070cd518a29320b3031bca51a5c50
7
+ data.tar.gz: 579ed54aa1cc674244431c2e52f1f24e7e832923de473329c7f0286c9be2982185d60357743f248f8ac831414a7151138a0eb85106af05441788a88628ca6839
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
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
+
10
+ ## [1.5.1](https://github.com/graphiti-api/graphiti/compare/v1.5.0...v1.5.1) (2024-03-18)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * polymorphic `on` expects a symbol ([#433](https://github.com/graphiti-api/graphiti/issues/433)) ([4e58702](https://github.com/graphiti-api/graphiti/commit/4e587021265323bd0b170b57e9c7aecaa7f826d7))
16
+
3
17
  # [1.5.0](https://github.com/graphiti-api/graphiti/compare/v1.4.0...v1.5.0) (2024-03-18)
4
18
 
5
19
 
@@ -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)
@@ -41,7 +41,7 @@ class Graphiti::Sideload::PolymorphicBelongsTo < Graphiti::Sideload::BelongsTo
41
41
  end
42
42
 
43
43
  def on(name, &blk)
44
- group = Group.new(name)
44
+ group = Group.new(name.to_sym)
45
45
  @groups << group
46
46
  group
47
47
  end
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.2"
3
3
  end
data/package.json CHANGED
@@ -93,6 +93,7 @@
93
93
  "changelogFile": "CHANGELOG.md"
94
94
  }
95
95
  ],
96
+ "semantic-release-rubygem",
96
97
  "@semantic-release/github",
97
98
  [
98
99
  "@semantic-release/git",
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2024-03-18 00:00:00.000000000 Z
@@ -204,7 +204,7 @@ dependencies:
204
204
  - - '='
205
205
  - !ruby/object:Gem::Version
206
206
  version: 1.0.beta.4
207
- description:
207
+ description:
208
208
  email:
209
209
  - richmolj@gmail.com
210
210
  executables:
@@ -345,7 +345,7 @@ homepage: https://github.com/graphiti-api/graphiti
345
345
  licenses:
346
346
  - MIT
347
347
  metadata: {}
348
- post_install_message:
348
+ post_install_message:
349
349
  rdoc_options: []
350
350
  require_paths:
351
351
  - lib
@@ -360,8 +360,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
360
360
  - !ruby/object:Gem::Version
361
361
  version: '0'
362
362
  requirements: []
363
- rubygems_version: 3.3.7
364
- signing_key:
363
+ rubygems_version: 3.3.26
364
+ signing_key:
365
365
  specification_version: 4
366
366
  summary: Easily build jsonapi.org-compatible APIs
367
367
  test_files: []