jsonapi_spec_helpers 0.2.0 → 0.2.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: 87e14751c4b6dcc5f51ea355dff331af2808a441
4
- data.tar.gz: bd553e0fbdb64709c17912793c5c6d79d06ae871
3
+ metadata.gz: 6c612599d47e809e0d0af99c60fb425d87a7f04c
4
+ data.tar.gz: 1482e1339767f47a9a10e8f3f12b7bd3a9bdad44
5
5
  SHA512:
6
- metadata.gz: 346d1d9f491b556fb25014d907e58431092758abc348d13cd134265abbc6962a039ed4ef14fce37f65c097733dfa641bc78c6453095daf6c02e87be027618908
7
- data.tar.gz: 3f69503875a7f47dd496c6f3f4e53a463760752b24b669244d378e44245f483a77a6fb94cc8a81140f1e64baf08f0a55641f75539f6a2927693c3ce2a8295364
6
+ metadata.gz: ca6adc718e8a9a28801b088f70499dd9885cd8f370559fd13ecf932e39ac69f373540c129eda6238f3e714bf30e294cb40e11c1ad9315446e584ba1cc5c891c8
7
+ data.tar.gz: 42311907667ca7fc828e9be586460a0a89c652014094816963957bb5a50b5c33371967a8cc9176384f2c1d0ecd2ceb71b4a3214c173a04dff8c41b4b907d0ea5
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # JsonapiSpecHelpers
2
2
 
3
+ [![Build Status](https://travis-ci.org/jsonapi-suite/jsonapi_spec_helpers.svg?branch=master)](https://travis-ci.org/jsonapi-suite/jsonapi_spec_helpers)
4
+
3
5
  A collection of spec helpers for asserting on jsonapi.org responses.
4
6
 
5
- [View official documentation](https://bbgithub.dev.bloomberg.com/pages/InfrastructureExperience/jsonapi_spec_helpers)
7
+ [View official documentation](http://jsonapi-suite.github.io/jsonapi_spec_helpers)
@@ -58,7 +58,7 @@ module JsonapiSpecHelpers
58
58
  {}.tap do |item|
59
59
  item['id'] = data['id']
60
60
  item['jsonapi_type'] = data['type']
61
- item.merge!(data['attributes'])
61
+ item.merge!(data['attributes']) if data.has_key?('attributes')
62
62
  end
63
63
  end
64
64
 
@@ -1,3 +1,3 @@
1
1
  module JsonapiSpecHelpers
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-22 00:00:00.000000000 Z
11
+ date: 2016-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry