forest_liana 2.3.4 → 2.3.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
  SHA1:
3
- metadata.gz: adb9c6a85c9df210dcce393a9efce7d90a1fb2b8
4
- data.tar.gz: 1f2206132bf0f9ee43cdd53803a93d61fafab72c
3
+ metadata.gz: cc640c5bfe27dd6d0e57ea6c18a6d9e0e5337bd0
4
+ data.tar.gz: cdd89646c500cf265e714f7cfc0033008eb435fb
5
5
  SHA512:
6
- metadata.gz: fd0ee0f8ecfc15d04439dc4ebc49ab1e2ef18b8d36d52644f421442407c4cecfbda3c5ddc652695b67275592fc62b78553001dadac8528b8d09fd2620ec74090
7
- data.tar.gz: fc639376f419a4ead4edbef9c63488bf83d446fd67b1f9a0115cecabf6afeb0a87debbe063e665ea23914ac9525108ec7160b4c3d19c1887cd067b9f8870f838
6
+ metadata.gz: 833146d9d93f81ff70a22c65c0fd8e92d1eaeee4add90b8e3222d88159bcbc7e51b20a5682ae2ea49c879bbca5dc9effa08fc64f267b2cfc49657e53668fe099
7
+ data.tar.gz: 49c4bea2e809c289575cf5c744f7adda2f74ff57315f640f660c3962891c8da1ffbe8970c74f01c4b5d129a089993e06b9e0774a37c6e0978657069ece2b76cb
@@ -26,6 +26,8 @@ module ForestLiana
26
26
  if ForestLiana.env_secret
27
27
  create_apimap
28
28
  require_lib_forest_liana
29
+ set_smart_actions_fields_position
30
+
29
31
  send_apimap
30
32
  end
31
33
  end
@@ -156,6 +158,18 @@ module ForestLiana
156
158
  end
157
159
  end
158
160
 
161
+ def set_smart_actions_fields_position
162
+ ForestLiana.apimap.each do |collection|
163
+ collection.actions.each do |action|
164
+ if action.fields
165
+ action.fields.each_with_index do |field, index|
166
+ field[:position] = index
167
+ end
168
+ end
169
+ end
170
+ end
171
+ end
172
+
159
173
  def send_apimap
160
174
  if ForestLiana.env_secret && ForestLiana.env_secret.length != 64
161
175
  FOREST_LOGGER.error "Your env_secret does not seem to be correct. " \
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "2.3.4"
2
+ VERSION = "2.3.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_liana
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.4
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-27 00:00:00.000000000 Z
11
+ date: 2018-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails