jsonapi_parameters 0.4.4 → 0.4.5

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
  SHA256:
3
- metadata.gz: 84858e2d499d73db01b7438b76e694d0a9e00f0a09c7c60d39d5ab8f2b7cc93a
4
- data.tar.gz: c9dd1b24e02193aa7bd2fb820510d4deb35e7da1dca5dea6b83370fb0341c603
3
+ metadata.gz: 3ee3931b91f3d2888bec069517cf1c5bb14f88de124306b7ffc3800c202a3a80
4
+ data.tar.gz: 06d417d811e0224f7c01117a35d4ce5ffbe7a25e28e9fc129a73cf312f2e9c9c
5
5
  SHA512:
6
- metadata.gz: fcde1c307a79942c9dc2725ad77855255102cba66f7d18cd8dc6c87f439e3c8e279ab8817ad2f3bfd2a8cfe044224c6e7e0e9f61011b0f9fa4ad2a1e9350e6f8
7
- data.tar.gz: b4e8ffc48a859faa83c5224d0c384482ada8f3fddcc4ed07f298e3d9c9c6ce542df20db99f44b73bf8417320c06ba9391b721b14ab7085adaf3bc5c3ff371da3
6
+ metadata.gz: 751a7a370207289e62462d826d4306bb5189e313a4c747bd41111bc5d500e4342b4b553c4072208271f84368e21a17c901fcca63b570100117f087ee71d3c7c2
7
+ data.tar.gz: 7eed067e7e60f58ed60f067a1365a7d6045c08d6972dc595da88fd325863d6d6e109c0e73fcb7b4450986d6111f422ba98b1c738fbcb273d8bf233b0244bd436
data/README.md CHANGED
@@ -192,14 +192,14 @@ Request body:
192
192
  title: 'The Terminator',
193
193
  },
194
194
  relationships: {
195
- genres: [{
196
- data: {
195
+ genres: {
196
+ data: [{
197
197
  id: 1, type: 'genres'
198
198
  },
199
- data: {
199
+ {
200
200
  id: 2, type: 'genres'
201
- },
202
- }]
201
+ }]
202
+ }
203
203
  }
204
204
  }
205
205
  }
@@ -231,28 +231,28 @@ end
231
231
  Request body:
232
232
  ```
233
233
  {
234
- data: {
235
- type: 'movies',
236
- attributes: {
237
- title: 'The Terminator',
238
- },
239
- relationships: {
240
- genres: [{
241
- data: {
242
- id: 1, type: 'genres'
243
- }
244
- }]
245
- }
234
+ data: {
235
+ type: 'movies',
236
+ attributes: {
237
+ title: 'The Terminator',
246
238
  },
247
- included: [
248
- {
249
- type: 'genre',
250
- id: 1,
251
- attributes: {
252
- name: 'Genre one'
253
- }
254
- }
255
- ]
239
+ relationships: {
240
+ genres: {
241
+ data: [{
242
+ id: 1, type: 'genres'
243
+ }]
244
+ }
245
+ }
246
+ },
247
+ included: [
248
+ {
249
+ type: 'genres',
250
+ id: 1,
251
+ attributes: {
252
+ name: 'Genre one'
253
+ }
254
+ }
255
+ ]
256
256
  }
257
257
  ```
258
258
 
@@ -1,5 +1,5 @@
1
1
  module JsonApi
2
2
  module Parameters
3
- VERSION = '0.4.4'.freeze
3
+ VERSION = '0.4.5'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi_parameters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Visuality
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-11-08 00:00:00.000000000 Z
12
+ date: 2019-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 1.10.4
49
- type: :runtime
48
+ version: 1.10.5
49
+ type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: 1.10.4
55
+ version: 1.10.5
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: json
58
58
  requirement: !ruby/object:Gem::Requirement