dato 0.3.25 → 0.3.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dato/local/items_repo.rb +3 -1
- data/lib/dato/site/repo/field.rb +1 -1
- 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: 65fe8023f11c1495b22541ec74741d7e8049603e
|
4
|
+
data.tar.gz: c286e1fe8f3a10cf52ae5db5ebef259fd882ac7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f54d9be946cd418d5761755faf464245f00e4acf63a19a70c89bcfbade6d8de28a175589c262988d7113235a1e8c6ee7302b4cacc899ae3b885e721c54f20938
|
7
|
+
data.tar.gz: cbe0b62dab152f78e70dabc942ac18de8a6cec8bc9f7acae5e592298ba7da484af449cd75b2d573ecd33e568dbed0d46e3f9bb4b1b62d1221f02e7996777bdc5
|
data/lib/dato/site/repo/field.rb
CHANGED
@@ -18,7 +18,7 @@ module Dato
|
|
18
18
|
def update(field_id, resource_attributes)
|
19
19
|
body = JsonApiSerializer.new(
|
20
20
|
type: :field,
|
21
|
-
attributes: %i(api_key appeareance hint label localized position validators)
|
21
|
+
attributes: %i(api_key appeareance field_type hint label localized position validators)
|
22
22
|
).serialize(resource_attributes, field_id)
|
23
23
|
|
24
24
|
put_request "/fields/#{field_id}", body
|
@@ -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 name ordering_direction singleton sortable tree),
|
11
|
+
attributes: %i(api_key modular_block name ordering_direction singleton sortable tree),
|
12
12
|
relationships: { ordering_field: { collection: false, type: :field } },
|
13
|
-
required_attributes: %i(api_key name ordering_direction singleton sortable tree),
|
13
|
+
required_attributes: %i(api_key modular_block name ordering_direction singleton sortable tree),
|
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 name ordering_direction singleton sortable tree),
|
23
|
+
attributes: %i(api_key modular_block name ordering_direction singleton sortable tree),
|
24
24
|
relationships: { ordering_field: { collection: false, type: :field } },
|
25
|
-
required_attributes: %i(api_key name ordering_direction singleton sortable tree),
|
25
|
+
required_attributes: %i(api_key modular_block name ordering_direction singleton sortable tree),
|
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.3.
|
4
|
+
version: 0.3.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefano Verna
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|