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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d05460b6a49369c5102162e0cbacdd96d6bf53df
4
- data.tar.gz: c44ad2f829d173b13cedbde8ee85b65b8b81658d
3
+ metadata.gz: dfadd6965148814ef19cb5133db0569b8a270b77
4
+ data.tar.gz: a6a8be94b59ac1f28442e78d7c798e151790200a
5
5
  SHA512:
6
- metadata.gz: 7f6bc99a0a2706ff959bb7ea2753767e3f4973a0ca5ca9c78eed7a1f40fc62a73ca0acdf159634ba0c186fcc98463e3fa5237bef19d61757036746783e6c92a3
7
- data.tar.gz: f5dbcf2d737ffc8f98d45cf2da48ec5be3b252356efd1a654fe150e8197996b08e69413aafd3219d0673f3f92dcbf1dfc0ac448499a0ce67a54d772a0de671b5
6
+ metadata.gz: 915c985439e531b0087f9b485f1366dba5cb47a440cacc3e5deb108a9045c6e7712c321cc55508916935dd71661ea260b46a687da180510161123fe2f7fa620f
7
+ data.tar.gz: 3e95609716d75495448d370d595400c917efe68e7b6ff9217b6a499fd714de024285a72911b77eb6cb298eaad5955f4ab5dbfa35b3f880ed67b045147b6737ce
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 6.0.0.rc1"
5
+ gem "rails", "~> 6.0.0"
6
6
  gem "rspec-rails"
7
7
  gem "sqlite3", "~> 1.4.0"
8
8
  gem "database_cleaner"
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 6.0.0.rc1"
5
+ gem "rails", "~> 6.0.0"
6
6
  gem "rspec-rails"
7
7
  gem "sqlite3", "~> 1.4.0"
8
8
  gem "database_cleaner"
@@ -128,7 +128,9 @@ module Graphiti
128
128
  end
129
129
 
130
130
  def parse_hash_value(filter, param_value, value, operator)
131
- if operator != :eq
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
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.2.4"
2
+ VERSION = "1.2.5"
3
3
  end
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
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-09-26 00:00:00.000000000 Z
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.6.13
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