forest_admin_agent 1.0.0.pre.beta.106 → 1.0.0.pre.beta.107

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31e3b7b0953138bfb51e168071e8b20a59cbf2da1e77dcb89ea009b9028b9ad6
4
- data.tar.gz: c5fc25a14898c06ed26fb085550e83e3424b9fd62a155a565effd97ed2fdbb82
3
+ metadata.gz: c19a616e8d8ef98c152243da645cb7261339d40e18772401c653bf2f1538c64e
4
+ data.tar.gz: 2062d62146bc05c121231506665a0ddc50863b70bc7385f8ce6225c048538549
5
5
  SHA512:
6
- metadata.gz: b51098ca422af0fe0fdd3e2a69dd45039f40df410af63daaac057d4e22f13e3fac37bbc559c03e85b2a106522f218fd41012bf86a4a121a3ea78d09c2339016b
7
- data.tar.gz: ab391575f505954f954c9f8ff5ad9851a3ae5d43197fbb59e4f2b902a1ee94691b82a3481d718936fbc67c1a28c21ec492c89b667ec6a268c40b0d1f48781f81
6
+ metadata.gz: d10a33aa1228aa5d455902eb22c5d736be301e59fefc252f9579d48dfc1928464c2d7c3b4aab1ac691e15bc1316e28abb8fa1297752f24b0b5f4a9f35f6e1977
7
+ data.tar.gz: 221eea68f7c6c21341ac5912db3a76de0a41eeffd8120bdf4ec16119755634ea1666cf255c45e9103cd1da9f70f5b6ae7c776c6430499aea709a61f5747e04cd
@@ -118,7 +118,7 @@ module ForestAdminAgent
118
118
  filter_only_with_values,
119
119
  Aggregation.new(
120
120
  operation: @args[:params][:aggregator],
121
- field: @args[:params][:aggregateField],
121
+ field: @args[:params][:aggregateFieldName],
122
122
  groups: [{ field: group_by_field_name, operation: time_range }]
123
123
  )
124
124
  )
@@ -103,7 +103,7 @@ module ForestAdminAgent
103
103
  def make_line(result)
104
104
  return unless result.count
105
105
 
106
- result = result.map! do |result_line|
106
+ result.map! do |result_line|
107
107
  raise_error(result_line, "'key', 'value'") if !result_line.key?(:value) || !result_line.key?(:key)
108
108
 
109
109
  { label: result_line[:key], values: { value: result_line[:value] } }
@@ -73,7 +73,7 @@ module ForestAdminAgent
73
73
  ip_range_maximum = (IPAddress max)
74
74
  ip_value = (IPAddress ip)
75
75
 
76
- ip_value >= ip_range_minimum && ip_value <= ip_range_maximum
76
+ ip_value.between?(ip_range_minimum, ip_range_maximum)
77
77
  end
78
78
 
79
79
  def ip_match_subnet?(ip, subnet)
@@ -123,7 +123,7 @@ module ForestAdminAgent
123
123
  is_allowed = smart_action_approval.can_execute?
124
124
  ForestAdminAgent::Facades::Container.logger.log(
125
125
  'Debug',
126
- "User #{user_data[:roleId]} is #{is_allowed ? "" : "not"} allowed to perform #{action["name"]}"
126
+ "User #{user_data[:roleId]} is #{"not" unless is_allowed} allowed to perform #{action["name"]}"
127
127
  )
128
128
  end
129
129
 
@@ -171,7 +171,7 @@ module ForestAdminAgent
171
171
  parameters: {
172
172
  placeholder: field.placeholder,
173
173
  allowDuplicate: field.allow_duplicates.nil? ? false : field.allow_duplicates,
174
- enableReorder: field.enable_reorder.nil? ? true : field.enable_reorder,
174
+ enableReorder: field.enable_reorder.nil? || field.enable_reorder,
175
175
  min: valid_number?(field.min) ? field.min : nil,
176
176
  max: valid_number?(field.max) ? field.max : nil,
177
177
  step: valid_number?(field.step) ? field.step : nil
@@ -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.106"
10
+ LIANA_VERSION = "1.0.0-beta.107"
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.106"
2
+ VERSION = "1.0.0-beta.107"
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.106
4
+ version: 1.0.0.pre.beta.107
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2025-06-12 00:00:00.000000000 Z
12
+ date: 2025-07-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport