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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4ed141ddf2adac710bf79e87e808742dd66faf8
4
- data.tar.gz: 8dd73ca01704a2611391fbb2d66fbe0792460ea3
3
+ metadata.gz: ada833bf92141ef124841656c8ed8ab81e3e2182
4
+ data.tar.gz: adcfac804515d2f80555da0fe40c3053ae3385b1
5
5
  SHA512:
6
- metadata.gz: 81ba45f8d56a8fc11a40b0a90564a6a16e5f2847de61f0cf37f5f48ba3409b6baccad4b2ac5111640961f7e4a057ab6711b9acf9c92a2dafea416c157a3c572f
7
- data.tar.gz: c736adcbd1b3ba90353e579d7abef489c00f8f720f013a6e8c53591884a8d56b8880c727052e4e22933a360d10ded30cad706cb062d9af9e3d01d9c8aadaa2fd
6
+ metadata.gz: 300c9fc6b96a53788fdeecc9dbdec7681cddd3b0cbcc7073b2c746c42399e0d482599c9f48aff3cdd9222f6a950b3b3e4bba2f70c25023cfe0a15732b3448d73
7
+ data.tar.gz: 8e64ded16322af2fd49e471f641f84f735532fa39282b0859cb263367d52f3f7d4fcf961fa2a2e1e233ddff4acc29f7138add8eb78daab8ebaeeff5aef135ef4
@@ -57,7 +57,9 @@ module JSONAPI
57
57
  field_names, predicates = JSONAPI::Filtering
58
58
  .extract_attributes_and_predicates(requested_field)
59
59
 
60
- if to_filter.is_a?(String) && to_filter.include?(',')
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
 
@@ -1,3 +1,3 @@
1
1
  module JSONAPI
2
- VERSION = '1.5.2'
2
+ VERSION = '1.5.3'
3
3
  end
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.2
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-05-16 00:00:00.000000000 Z
11
+ date: 2019-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fast_jsonapi