forest_liana 9.3.5 → 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: ec539495a4e3f7016cf536d54b726b3ba8d0c1132fc34368bf9b4dc633ba8260
4
- data.tar.gz: a88649fd0408a4ce884d068c1efa0a576a597765a4af4f0bba595c673a45e54c
3
+ metadata.gz: 0fa0601f889d02cbdc81c73031621ae62ed6517e6a606e1d5b177f4d0315e357
4
+ data.tar.gz: 8972e07871d08cf8a4254608d2ebfdd40a05612c031972e1b6b51f6f751a664a
5
5
  SHA512:
6
- metadata.gz: b6a6a6f8dac4443f1f3362d40fa5a26c5e879b1536c646c452e9327d76a2cd5ccb4ff008d00f71d0ae0d92788ed92a23e8a1ce10e56085e1b98aa3884ce636d0
7
- data.tar.gz: 0bc70e36b0093204a54f41f113314409aeea9c6c0f562893b41e3f940e513f4348a82228d0369f97e0ea43068fd61c0191fd0c4e6c7f725b6721303297bccb21
6
+ metadata.gz: 94ae6c97585ecb0d68caee75c6196ef344455b4d88d26f2d1a9777439bd245a3bf17e1101b5d5879578cea6941da2c4113e50f72e2e302d59a464aae893d04b4
7
+ data.tar.gz: 2d3d66dea8726e2351ab0f79290990b4ae6bec5b18ea6cc9e00f1a98b247eed3a21c25cf94d2ac8d9dac9ee05e3a1bcaff9d1536b1505ada8bfcf8c1df8843ff
@@ -6,6 +6,7 @@ module ForestLiana
6
6
  rescue_from ForestLiana::Ability::Exceptions::AccessDenied, with: :render_error
7
7
  rescue_from ForestLiana::Errors::HTTP403Error, with: :render_error
8
8
  rescue_from ForestLiana::Errors::HTTP422Error, with: :render_error
9
+ rescue_from ForestLiana::Errors::ExpectedError, with: :render_error
9
10
 
10
11
  def self.papertrail?
11
12
  Object.const_get('PaperTrail::Version').is_a?(Class) rescue false
@@ -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.5"
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.5
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-05-16 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