graphiti 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gemfiles/rails_6.gemfile +1 -1
- data/gemfiles/rails_6_graphiti_rails.gemfile +1 -1
- data/lib/graphiti/scoping/filter.rb +3 -1
- data/lib/graphiti/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfadd6965148814ef19cb5133db0569b8a270b77
|
4
|
+
data.tar.gz: a6a8be94b59ac1f28442e78d7c798e151790200a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 915c985439e531b0087f9b485f1366dba5cb47a440cacc3e5deb108a9045c6e7712c321cc55508916935dd71661ea260b46a687da180510161123fe2f7fa620f
|
7
|
+
data.tar.gz: 3e95609716d75495448d370d595400c917efe68e7b6ff9217b6a499fd714de024285a72911b77eb6cb298eaad5955f4ab5dbfa35b3f880ed67b045147b6737ce
|
data/gemfiles/rails_6.gemfile
CHANGED
@@ -128,7 +128,9 @@ module Graphiti
|
|
128
128
|
end
|
129
129
|
|
130
130
|
def parse_hash_value(filter, param_value, value, operator)
|
131
|
-
|
131
|
+
has_filter = resource.filters.dig(filter.keys.first, :operators, operator).present?
|
132
|
+
|
133
|
+
if operator != :eq && !has_filter
|
132
134
|
operator = :eq
|
133
135
|
value = param_value
|
134
136
|
end
|
data/lib/graphiti/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphiti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Richmond
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jsonapi-serializable
|
@@ -345,7 +345,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
345
345
|
version: '0'
|
346
346
|
requirements: []
|
347
347
|
rubyforge_project:
|
348
|
-
rubygems_version: 2.
|
348
|
+
rubygems_version: 2.5.2.3
|
349
349
|
signing_key:
|
350
350
|
specification_version: 4
|
351
351
|
summary: Easily build jsonapi.org-compatible APIs
|