json_api_resource 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e08b47087e75a6dcbf21993cca2a1cca415b13e
4
- data.tar.gz: f8eb103c7b7259c308eb31cca0bfac82b26654e0
3
+ metadata.gz: 6474e009ab7b6bad356230cf516dc88eb3ca4f2b
4
+ data.tar.gz: 5e31230c9ba8397ced81de769da1b8ee1e45ef9e
5
5
  SHA512:
6
- metadata.gz: 157cab83d13c35c97dceab05d4008a608a029096506812ab20e46506dc52ab13e4b04813f2bc747473589eac70df8ecd6c9472ce5fff9211ecb2820b83f08c2e
7
- data.tar.gz: 94127db2d17bfb3874cc3c15110e83007d691ae6323026714282f4de9a6598ebe76a22be1f23a78906a502f2ff1b94d014cb3e43fba00f1d5f190924c41b0792
6
+ metadata.gz: a13aec76a75d63b930058fb3061fb67452763ae7f05cbff83eed962b1a5af13d7b3d91e39e8c05e245295d70aa0e276177fac04259829876993e0c18fa7de13c
7
+ data.tar.gz: ae877078891db1fdd77b4a8d9f9c0632672b99e4b4ff81e7a0da15fa9018aa4c8488175fdc8df842cea99e13f5553712747126e3e3dc57b2cea69e46ab42f8c1
@@ -21,11 +21,10 @@ module JsonApiResource
21
21
 
22
22
  result = result.all if result.is_a? JsonApiClient::Scope
23
23
 
24
- JsonApiClient::ResultSet.new(
25
- result.map do |result|
26
- new(client: result)
27
- end
28
- )
24
+ result.map! do |result|
25
+ new(client: result)
26
+ end
27
+
29
28
  rescue JsonApiClient::Errors::ServerError => e
30
29
  empty_set_with_errors e
31
30
  end
@@ -1,3 +1,3 @@
1
1
  module JsonApiResource
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_api_resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Sislow