jsonapi.rb 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jsonapi/filtering.rb +3 -1
- data/lib/jsonapi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ada833bf92141ef124841656c8ed8ab81e3e2182
|
4
|
+
data.tar.gz: adcfac804515d2f80555da0fe40c3053ae3385b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 300c9fc6b96a53788fdeecc9dbdec7681cddd3b0cbcc7073b2c746c42399e0d482599c9f48aff3cdd9222f6a950b3b3e4bba2f70c25023cfe0a15732b3448d73
|
7
|
+
data.tar.gz: 8e64ded16322af2fd49e471f641f84f735532fa39282b0859cb263367d52f3f7d4fcf961fa2a2e1e233ddff4acc29f7138add8eb78daab8ebaeeff5aef135ef4
|
data/lib/jsonapi/filtering.rb
CHANGED
@@ -57,7 +57,9 @@ module JSONAPI
|
|
57
57
|
field_names, predicates = JSONAPI::Filtering
|
58
58
|
.extract_attributes_and_predicates(requested_field)
|
59
59
|
|
60
|
-
|
60
|
+
wants_array = predicates.any? && predicates.map(&:wants_array).any?
|
61
|
+
|
62
|
+
if to_filter.is_a?(String) && wants_array
|
61
63
|
to_filter = to_filter.split(',')
|
62
64
|
end
|
63
65
|
|
data/lib/jsonapi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonapi.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stas Suscov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fast_jsonapi
|