jsonapi_spec_helpers 0.4.6 → 0.4.7

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: e00b4dccba7cdea4748d62a5a9badb4288ade864
4
- data.tar.gz: b5b97f7d65410b1466a4bc80e796f9b6fae6fbb1
3
+ metadata.gz: 450f850031706134902174b64cd695becc932b61
4
+ data.tar.gz: 82ad19e3168d9e3f3cf79f8784e9ef39d3725a41
5
5
  SHA512:
6
- metadata.gz: 808157161143b7296aebdf4632f4d6e8be14f09a55d46b4bab0f33e1100c09004688783da9f5270d74506b0ec283edcbdb2be97c54ab7194e1abc7677b330176
7
- data.tar.gz: 24323e0a411d7a18b9b90d23680533314e29ab34d3388e18e5e3a6e2a841d590545706b612858dee8d176d055ee61208f0d6dc9acdaae74ddf68de20e7f3bd8e
6
+ metadata.gz: 754a76c50defb5b40dfabf0febb43235726bd1988159c1cbeeb5fcbb63f09a855a9846c9039442593432ee1d2f86fd274f3800e9c631c86c39e3652e8265e69b
7
+ data.tar.gz: a2d0b4f1f9519fe7bef4996ae5bade8d5c4b5d97021f57ab13c0581c94610d79dd432fcebadd5d7dbea7c0d40371f991bc9e6774e0dfeea5c2b17c02193753e3
@@ -56,6 +56,7 @@ module JsonapiSpecHelpers
56
56
 
57
57
  def validation_errors
58
58
  @validation_errors ||= {}.tap do |errors|
59
+ return errors if json['errors'].nil?
59
60
  json['errors'].each do |e|
60
61
  attr = e['meta']['attribute'].to_sym
61
62
  message = e['meta']['message']
@@ -1,3 +1,3 @@
1
1
  module JsonapiSpecHelpers
2
- VERSION = "0.4.6"
2
+ VERSION = "0.4.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi_spec_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-18 00:00:00.000000000 Z
11
+ date: 2018-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  version: '0'
139
139
  requirements: []
140
140
  rubyforge_project:
141
- rubygems_version: 2.5.1
141
+ rubygems_version: 2.6.12
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: Spec helpers for jsonapi