forest_admin_datasource_toolkit 1.40.1 → 1.41.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c33993a66508f7b9f68405da7b79d78a56c5c128b3533ffcbace85c7e6e913c
|
|
4
|
+
data.tar.gz: 78af493051757183a3f5f3dfe49e63e22f9b3dcc39a3c9ea8faee4854dea3984
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e2af00eb575ec1cd0acb7ab0529e2fe94da28becb96197d2727d246106a6b2d409d89e26e8e9dac418452a66e744bcfb28331b30fcbaf8f4a13a05db45043df
|
|
7
|
+
data.tar.gz: 86fe59f8a4444f3cc018e574fa258410bd179442ca453c0dfee0cc095261479fc7704f82f43854302676f81d1104cd99c5338557f1e2b304ea9472662f8d65ba
|
|
@@ -187,7 +187,7 @@ module ForestAdminDatasourceToolkit
|
|
|
187
187
|
|
|
188
188
|
summary['Count'] += 1
|
|
189
189
|
summary['Min'] = value if min.nil? || value < min
|
|
190
|
-
summary['Max'] = value if max.nil? || value
|
|
190
|
+
summary['Max'] = value if max.nil? || value > max
|
|
191
191
|
end
|
|
192
192
|
|
|
193
193
|
summary['Sum'] += value if value.is_a?(Numeric)
|
|
@@ -34,11 +34,15 @@ module ForestAdminDatasourceToolkit
|
|
|
34
34
|
)
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
+
# Recurses through `match`, not through `every_leaf` / `some_leaf`:
|
|
38
|
+
# those walk down to the leaves and would apply this branch's
|
|
39
|
+
# aggregator to a nested one's, reading `And(a, Or(b, c))` as
|
|
40
|
+
# `And(a, b, c)`.
|
|
37
41
|
def match(record, collection, timezone)
|
|
38
42
|
if @aggregator == 'And'
|
|
39
|
-
|
|
43
|
+
@conditions.all? { |condition| condition.match(record, collection, timezone) }
|
|
40
44
|
else
|
|
41
|
-
|
|
45
|
+
@conditions.any? { |condition| condition.match(record, collection, timezone) }
|
|
42
46
|
end
|
|
43
47
|
end
|
|
44
48
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: forest_admin_datasource_toolkit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.41.0
|
|
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: 2026-
|
|
12
|
+
date: 2026-09-01 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|