forest_admin_datasource_toolkit 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: 69c8630af8e78a945743c40d5f2d7fd8c282260a6c6d7b1f45d7f4a12c83e5c4
4
- data.tar.gz: 65667ce90c4f42fa5343ec1dc55c6ffe69504f5d15ab40bc4ce57ceb54020a27
3
+ metadata.gz: 57efa45b4607118b3cadee81b3fb407cb499284fbc07607a8dd00ee62be9b87a
4
+ data.tar.gz: 112b2ced0c759f817346c7ba2c0c7fe61d030c7fb285b49436cdfc22d29f93ba
5
5
  SHA512:
6
- metadata.gz: 6ae419132b72126d4af13aee7ff6f76cb752532c022975dfaf6ff40701d967b71b1ec568b480649baa26b8965c754f7255e1bdca8434b01ad2b5d970a92a7765
7
- data.tar.gz: 72b26451aefa47f25c8626c59ec6a65579c6d96264a29c8627b722d3d9a25086dcbf4ab181d14ec5e3dc847d934ad766d277885c92a9ff5184548be67ba895f3
6
+ metadata.gz: ff2ba4ee5621e9da3bdbe1ecefd6a385117f67b16a6c2c8d94ae5f867e5d69406c20f51c44d0259aeae76465ecfdab09913e48e72d50c9ffbe00b9afc2c3c091
7
+ data.tar.gz: ed5060cb8ae91d7a59e9e9a31a427082702cbb9794f60ae9c8aa72896b1880803bf938dc1c9d0dbc184b63cc5916a13055cbf108572b62e8faae7d265bc4b7da
@@ -64,7 +64,7 @@ module ForestAdminDatasourceToolkit
64
64
  end
65
65
  end
66
66
 
67
- rows = rows[0..limit - 1] if limit && rows.size > limit
67
+ rows = rows[0..(limit - 1)] if limit && rows.size > limit
68
68
 
69
69
  rows
70
70
  end
@@ -56,7 +56,7 @@ module ForestAdminDatasourceToolkit
56
56
  raise ForestException, 'Cannot unnest condition tree.'
57
57
  end
58
58
 
59
- replace_leafs { |leaf| leaf.override(field: leaf.field[prefix.length + 1..]) }
59
+ replace_leafs { |leaf| leaf.override(field: leaf.field[(prefix.length + 1)..]) }
60
60
  end
61
61
 
62
62
  def replace_fields
@@ -46,7 +46,7 @@ module ForestAdminDatasourceToolkit
46
46
  def apply(records)
47
47
  records.sort do |a, b|
48
48
  comparison = 0
49
- (0..length - 1).each do |i|
49
+ (0..(length - 1)).each do |i|
50
50
  field = self[i][:field]
51
51
  ascending = self[i][:ascending]
52
52
  break unless comparison.zero?
@@ -1,3 +1,3 @@
1
1
  module ForestAdminDatasourceToolkit
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_datasource_toolkit
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