forest_liana 9.2.0 → 9.3.0

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: b721a5f9e7e41711b05b4e34c607d8e23e7030646eb8896629b1170e55466869
4
- data.tar.gz: 999494458850509c7698b2d00a77f2e8d41d767419b0e5b652ac8114b4fcbb9a
3
+ metadata.gz: 8c7950f2e96ebeda3d61bff3da6413a7a7a6491aae4cc2466dc64bf5ae418cf8
4
+ data.tar.gz: 1ef5d496127b6735d57e234ca1f29ba2f8fd8ff69202c075b3156538e288c847
5
5
  SHA512:
6
- metadata.gz: 4fdc7007c031c6377f6d1281dad2ca82e1966d4692995ab592d149d6afe5c8b1a78bbc202ff5b558b3ee770f864a4caacb84c67ffc4aa79f1416ccaeb38c214d
7
- data.tar.gz: e3dd0966176770f7b301a888480b72499025c2e0e1f727677a315f880397fa9903786eb2cb547cbdb6612b545c7a382d17c1ec5eeb95ab5496680bcde0bd8977
6
+ metadata.gz: aa5bef3334da8c10d574c899ae25d9bcdb2f693b775124c7cb6b9a03a0765e270f000815c7748420517dbd64286732602f82749f6c100351d3ac1d764c2b7209
7
+ data.tar.gz: 4a6b3c1c39c0d310b959268c755aed670b51f9208fdd49ea6792324efc80d1b7559c944f2510365cc6d1648ff58795b17c69673129bd11724895f0981ae40efb
@@ -160,12 +160,9 @@ module ForestLiana
160
160
  end
161
161
 
162
162
  def sort_query
163
- column = nil
164
- order = 'DESC'
165
-
166
163
  if @params[:sort]
167
164
  @params[:sort].split(',').each do |field|
168
- order_detected = detect_sort_order(@params[:sort])
165
+ order_detected = detect_sort_order(field)
169
166
  order = order_detected.upcase
170
167
  field.slice!(0) if order_detected == :desc
171
168
 
@@ -175,14 +172,12 @@ module ForestLiana
175
172
  else
176
173
  column = field
177
174
  end
175
+
176
+ @records = @records.order(Arel.sql("#{column} #{order}"))
178
177
  end
179
178
  end
180
179
 
181
- if column
182
- @records = @records.order(Arel.sql("#{column} #{order}"))
183
- else
184
- @records
185
- end
180
+ @records
186
181
  end
187
182
 
188
183
  def detect_reference(param)
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "9.2.0"
2
+ VERSION = "9.3.0"
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.2.0
4
+ version: 9.3.0
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-02-29 00:00:00.000000000 Z
11
+ date: 2024-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -168,16 +168,16 @@ dependencies:
168
168
  name: json-jwt
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - "~>"
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: 1.15.0
173
+ version: 1.16.0
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - "~>"
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
- version: 1.15.0
180
+ version: 1.16.0
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: openid_connect
183
183
  requirement: !ruby/object:Gem::Requirement