forest_admin_agent 1.0.0.pre.beta.73 → 1.0.0.pre.beta.74

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: 8385a8e1d1bd3e8e36406f075651eb27c569f5cc36bb77a45de4997e1906d50e
4
- data.tar.gz: e9d4e298573a65ee07b77d2990b32735d0794d396155c914ac5e137a88b39e00
3
+ metadata.gz: 9aee10c337bad1d302c476f26b2eed886e9cf9cb4986b76a1c294aa512fda2d6
4
+ data.tar.gz: 276927c1894138999b709b329ca9fc0c00c05bec0312aae0d9f375734f84ce49
5
5
  SHA512:
6
- metadata.gz: f09f2f0e4fa273f40c4bd34490df9da149c8b78c38df4048182737ad8aafab60bc6da401aa69c4825b6b6be7729d46878f4c97bce1328f52b4b60bd0705cbe6e
7
- data.tar.gz: 15890288c8b93068bcb20680dbc8eccd3bdc25b09a073a1b492cdf008a3633c7a8e1e5d6d5514d44a422cac302487d8de940929c70a6093220fceb20ced205ae
6
+ metadata.gz: 7de6d0f067b52944852326a2ffd25f457dbcdb89a7096fa95e7b03b5a3ceba689a3b87a58dcf9480824082c98b409b8b06c085d87132db002d9ec23db8e570e0
7
+ data.tar.gz: 16f955505689adbaebc0c92762b287cc559ee099e1db6a325f553bbfed89faaee0b8b2f526b769fa96e892fb78e624172cb6928658197bac8b8e8fb1209cbd75
@@ -65,23 +65,26 @@ module ForestAdminAgent
65
65
  end
66
66
 
67
67
  def self.build_layout_schema(field)
68
- if field.component == 'Row'
68
+ field = field.to_h
69
+ field.delete(:type)
70
+
71
+ if field[:component] == 'Row'
69
72
  return {
70
- **field.to_h,
71
- component: field.component.camelize(:lower),
72
- fields: field.fields.map { |f| build_layout_schema(f) }
73
+ **field,
74
+ component: field[:component].camelize(:lower),
75
+ fields: field[:fields].map { |f| build_layout_schema(f) }
73
76
  }
74
- elsif field.component == 'Page'
77
+ elsif field[:component] == 'Page'
75
78
  return {
76
- **field.to_h,
77
- component: field.component.camelize(:lower),
78
- elements: field.elements.map do |f|
79
+ **field,
80
+ component: field[:component].camelize(:lower),
81
+ elements: field[:elements].map do |f|
79
82
  build_layout_schema(f)
80
83
  end
81
84
  }
82
85
  end
83
86
 
84
- { **field.to_h, component: field.component.camelize(:lower) }
87
+ { **field, component: field[:component].camelize(:lower) }
85
88
  end
86
89
 
87
90
  def self.build_field_schema(datasource, field)
@@ -7,7 +7,7 @@ module ForestAdminAgent
7
7
  class SchemaEmitter
8
8
  LIANA_NAME = "agent-ruby"
9
9
 
10
- LIANA_VERSION = "1.0.0-beta.73"
10
+ LIANA_VERSION = "1.0.0-beta.74"
11
11
 
12
12
  def self.get_serialized_schema(datasource)
13
13
  schema_path = Facades::Container.cache(:schema_path)
@@ -1,3 +1,3 @@
1
1
  module ForestAdminAgent
2
- VERSION = "1.0.0-beta.73"
2
+ VERSION = "1.0.0-beta.74"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta.73
4
+ version: 1.0.0.pre.beta.74
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu