dato 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dato/site/repo/item_type.rb +4 -4
- data/lib/dato/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68c1d98404d25941094050533e995e9f4b005568
|
|
4
|
+
data.tar.gz: c2f46ca95dc5dfeb3a8aed8f693af92acf819aa9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
data/lib/dato/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2018-03-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|