forest_liana 9.3.6 → 9.3.7

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: 6a9c98cf78c51b1f25e5995e3cfeae5bdfaffe1d28a17593215e3a8f135b5409
4
- data.tar.gz: b9122b1381ce7201393108f24cd2e6d62918f040b943e1c6e8827f8ab0c35c70
3
+ metadata.gz: 0fa0601f889d02cbdc81c73031621ae62ed6517e6a606e1d5b177f4d0315e357
4
+ data.tar.gz: 8972e07871d08cf8a4254608d2ebfdd40a05612c031972e1b6b51f6f751a664a
5
5
  SHA512:
6
- metadata.gz: e9a78f9f0bb83fd0ae4beb63eb6a3924552059d9bbe24009cd7bf19e790c9e7fe5d398b8e5d0bddaca3aeee9402f4b9d60d788ab7d71ce81d432653a55087cc9
7
- data.tar.gz: 891227c7699986d4b10c57bddcbe0af3b7867aec6e5f06868958b6f0765d67402d568687443e519ad6aa674e4bc5fd4a35420b06263635cec3884a703f87fe71
6
+ metadata.gz: 94ae6c97585ecb0d68caee75c6196ef344455b4d88d26f2d1a9777439bd245a3bf17e1101b5d5879578cea6941da2c4113e50f72e2e302d59a464aae893d04b4
7
+ data.tar.gz: 2d3d66dea8726e2351ab0f79290990b4ae6bec5b18ea6cc9e00f1a98b247eed3a21c25cf94d2ac8d9dac9ee05e3a1bcaff9d1536b1505ada8bfcf8c1df8843ff
@@ -13,14 +13,14 @@ module ForestLiana
13
13
  end
14
14
 
15
15
  def perform
16
- raw_query = @params['query'].strip
16
+ context_variables = Utils::ContextVariables.new(nil, nil, @params['contextVariables'])
17
+ raw_query = Utils::ContextVariablesInjector.inject_context_in_value(@params['query'].strip, context_variables)
17
18
 
18
19
  LiveQueryChecker.new(raw_query, 'Live Query Chart').validate()
19
20
 
20
21
  if @params['record_id']
21
22
  raw_query.gsub!('?', @params['record_id'].to_s)
22
23
  end
23
-
24
24
  result = ActiveRecord::Base.connection.execute(raw_query)
25
25
 
26
26
  case @params['type']
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "9.3.6"
2
+ VERSION = "9.3.7"
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: 9.3.6
4
+ version: 9.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-06 00:00:00.000000000 Z
11
+ date: 2024-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails