dato 0.4.1 → 0.4.2

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: ad37317dcdaba8a9398e5747d35f852e20e7e0b6
4
- data.tar.gz: 758e8cc26604bf753c3896cb378da7153b0dc3a4
3
+ metadata.gz: 68c1d98404d25941094050533e995e9f4b005568
4
+ data.tar.gz: c2f46ca95dc5dfeb3a8aed8f693af92acf819aa9
5
5
  SHA512:
6
- metadata.gz: 963afd472c8813e020559a3492ae6d66974298646775556d8a0ada627a1895a4d3bdaac43b8cb30ce8ee4c3736079b03929eb2c2dcccbfd74a56978c2bd6e09f
7
- data.tar.gz: a0cfac3d641e020dda971eb97b8c2d7aa094c7ebad354577376c90d2f10e2837d00d09cd28bcc07dd8095ce760768bf5460faf261a1ca882f84c7e2c9e068134
6
+ metadata.gz: 8facdd504343c870752fc9d64fac13538b532d9d33e9a87d80be4460bca95af100c8ec9ae15c4ab9ce4ff8da3f5dc6a1491b543d08e150e918d60534be02db04
7
+ data.tar.gz: edc6e6dc5373d96b6d9893a1c16f4fb4f13f0fe5ea2521e2332997eab04791c4de7c100ff6f3ea4b64c652eac9d248e657170dafc4573a148c199984a073000e
@@ -8,9 +8,9 @@ module Dato
8
8
  def create(resource_attributes)
9
9
  body = JsonApiSerializer.new(
10
10
  type: :item_type,
11
- attributes: %i(api_key modular_block name ordering_direction singleton sortable tree),
11
+ attributes: %i(api_key modular_block name ordering_direction singleton sortable tree draft_mode_active),
12
12
  relationships: { ordering_field: { collection: false, type: :field } },
13
- required_attributes: %i(api_key modular_block name ordering_direction singleton sortable tree),
13
+ required_attributes: %i(api_key modular_block name ordering_direction singleton sortable tree draft_mode_active),
14
14
  required_relationships: %i(ordering_field)
15
15
  ).serialize(resource_attributes)
16
16
 
@@ -20,9 +20,9 @@ module Dato
20
20
  def update(item_type_id, resource_attributes)
21
21
  body = JsonApiSerializer.new(
22
22
  type: :item_type,
23
- attributes: %i(api_key modular_block name ordering_direction singleton sortable tree),
23
+ attributes: %i(api_key modular_block name ordering_direction singleton sortable tree draft_mode_active),
24
24
  relationships: { ordering_field: { collection: false, type: :field } },
25
- required_attributes: %i(api_key modular_block name ordering_direction singleton sortable tree),
25
+ required_attributes: %i(api_key modular_block name ordering_direction singleton sortable tree draft_mode_active),
26
26
  required_relationships: %i(ordering_field)
27
27
  ).serialize(resource_attributes, item_type_id)
28
28
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Dato
3
- VERSION = '0.4.1'
3
+ VERSION = '0.4.2'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-17 00:00:00.000000000 Z
11
+ date: 2018-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler