jsonapi_compliable 0.7.7 → 0.7.8

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: 3ca8f7bd490ad77437aa9e67049322e952bc176c
4
- data.tar.gz: 73490ef46cbfac2635b228144bfecd52da2dfcaf
3
+ metadata.gz: 2ef36666238087f5bac7fcf69338638ceb7a1185
4
+ data.tar.gz: 1f9a7f9c1f75072ee41d9f9b7319cf646e016842
5
5
  SHA512:
6
- metadata.gz: 568d7b05bcb5ae22f43971f506cb6c945208359a7889c1369f70540c6d34ac1163ca99e795c2fb8dbb537f6f63e868f055283c56520d8b887868235e3b6dbf4f
7
- data.tar.gz: 4f8331adf280a5263cc069a7dc2f54d015d40c68796ec19c513cbb4e60ecf2e83ec03f3d5377d3f4c42b94f6fdb3847d207dac88668df3b3a44c944b1084fc4f
6
+ metadata.gz: 9416ae9fe70d47fb2098a43b1f39b5f9dc627e1cfde1488e97eed88ec02bfec9cd1d60b8b6ee2d02b0501b1afcdb6ce332c8f4ca4b7f4c1513489c3811c49638
7
+ data.tar.gz: 5bf2138b1ff1a87581b842f553303e82431a6dbb121cc608aaede275bd13dddff3d773855f9bd396a788ac6460530ccf51100039c465af2d8309cd5d4336d997
@@ -49,6 +49,7 @@ class JsonapiCompliable::Deserializer
49
49
  # @param env [Hash] the Rack env (e.g. +request.env+).
50
50
  def initialize(payload, env)
51
51
  @payload = payload
52
+ @payload = @payload[:_jsonapi] if @payload.has_key?(:_jsonapi)
52
53
  @env = env
53
54
  end
54
55
 
@@ -1,3 +1,3 @@
1
1
  module JsonapiCompliable
2
- VERSION = "0.7.7"
2
+ VERSION = "0.7.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi_compliable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-08-16 00:00:00.000000000 Z
12
+ date: 2017-08-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jsonapi-serializable