graphiti 1.2.14 → 1.2.15

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: 8720882ebcf46bc06f81fff25ce09e54257e91d494828db22f086ccab19abaad
4
- data.tar.gz: 6c8c215956bb835a6e183e96f482f4569a075e76efc9d9a487f593caabf51100
3
+ metadata.gz: c4833a7e5fef23d277fce48973eafa25e53ba2a1f54c7b74abd0bc85a919813e
4
+ data.tar.gz: f68f0a86c9ef82a986af03d2e3705ed87e3e1b1f8d9cb2fd924693927bf4531f
5
5
  SHA512:
6
- metadata.gz: e401952ac49088d393e4a838e664bc1f8e155eec6560a10c7440fc2d70a5c5249d2bea6bee90e0c660b26a3a7755e70dc130eeccb6e74ddd2d19409488cfbeb1
7
- data.tar.gz: ac33a2a3a1b699dc454d5bf8778cf4ba080fe41c3924833bd5823a173d2e16d1cb9f3002ec5f356412191134c6b6591a39c8e4351414ccacab3d15f8571885bc
6
+ metadata.gz: 77490b2ffcd561f1e5e3c97293505abf6f5eee9f798ff96c8948ce14ea981e0d4c8dcbddb76b2d1847d20c437dde2cfa16c9b4dff42ba4a9378dc211a47b1582
7
+ data.tar.gz: a3a55ae88004095897db6779275c887d85037f941e3de8432655005ca3740bb86ecfe796d491171ca522f896970de6ac75361a86d66e4b1ddb98ffaa21bb3dcb
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 6.0.0"
5
+ gem "rails", "~> 6.0.0.rc1"
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"
5
+ gem "rails", "~> 6.0.0.rc1"
6
6
  gem "rspec-rails"
7
7
  gem "sqlite3", "~> 1.4.0"
8
8
  gem "database_cleaner"
@@ -126,10 +126,13 @@ module Graphiti
126
126
  name = name.to_sym
127
127
 
128
128
  if legacy_nested?(name)
129
- filter_name = value.keys.first.to_sym
130
- filter_value = value.values.first
131
- if @resource.get_attr!(filter_name, :filterable, request: true)
132
- hash[filter_name] = filter_value
129
+ value.keys.each do |key|
130
+ filter_name = key.to_sym
131
+ filter_value = value[key]
132
+
133
+ if @resource.get_attr!(filter_name, :filterable, request: true)
134
+ hash[filter_name] = filter_value
135
+ end
133
136
  end
134
137
  elsif nested?(name)
135
138
  name = name.to_s.split(".").last.to_sym
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.2.14"
2
+ VERSION = "1.2.15"
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.14
4
+ version: 1.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-13 00:00:00.000000000 Z
11
+ date: 2020-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jsonapi-serializable