json_api_responders 2.0.0 → 2.0.1

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: d295db51178de757fcea815f4aaaee0f9795e7db
4
- data.tar.gz: 3ffff94e8e37604aa91957e8ec69564011249934
3
+ metadata.gz: 53d22b0913ad77898aa01949c61d3c2ca5e6008b
4
+ data.tar.gz: c524a460484a653ae19fcafd31bc1fb589b76833
5
5
  SHA512:
6
- metadata.gz: 7ab31c713feecb1bcfc8d162c70c9ca6350deac4990b62f67ad57bcf4d4277995b30ac28c6c5080bd32862a8d427d0d38e4d59b78e57cdba9e933826d11b1312
7
- data.tar.gz: b990d502637aaca0947e63c20ae0231d967e5d1c6d0827d4e9f9dc83f28519bcf475333fa9553d6a89db42a23d7b1a62cc62aec194a032afc7e5652abf75ee57
6
+ metadata.gz: e72bb51b86b57aaec685ebef045ba27cfd58b0fcb8fb0a2d28c9edf5e56bbc0397652393464f4f61774def68a968fda86493097cfd37311c45feb7ef0da447e8
7
+ data.tar.gz: 19a6aab5a8331cdd168f836d4b86028e0bb701045861fd6c42206342373f033ac571f9e536264529d5fa8fc65188ab04d7fc02cbca72c88b3f069604c41eb59d
@@ -67,7 +67,7 @@ module JsonApiResponders
67
67
 
68
68
  resource.errors.each do |attribute, message|
69
69
  errors[:errors] << error_response(attribute, message)
70
- end
70
+ end if resource.respond_to?(:errors)
71
71
 
72
72
  errors
73
73
  end
@@ -1,6 +1,6 @@
1
1
  module JsonApiResponders
2
2
  MAJOR = 2
3
3
  MINOR = 0
4
- PATCH = 0
4
+ PATCH = 1
5
5
  VERSION = [MAJOR, MINOR, PATCH].join('.').freeze
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_api_responders
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanko Krtalić Rusendić