ui_bibz 3.0.9 → 3.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/lib/ui_bibz/concerns/models/searchable.rb +2 -2
- data/lib/ui_bibz/infos.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b146db4d6722946556a0ac54bf0ebbb5d4e7b537e0802154f3c46d8c1b55324
|
4
|
+
data.tar.gz: 650e30abeca77084a2c54f86d52dd1fa3d3ba4e1b66513ad17a0469f05cf88de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24117c844b5581683e42c8df8df75bd4c9d3a21eda00785ace4bb969a9aa016e49b42b3dc8da579ca860ecb633a109def24f53559736cc53b747e3fb9e4d84ad
|
7
|
+
data.tar.gz: 1a214086bc20f51ece91bd425ebfc5870600dd062c2204b80cc872deee48c4c902b4149b76b65d0f85ed4dc8433d8fd2593aa91992b60f822df1203fae40fe21
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ui_bibz (3.0.
|
4
|
+
ui_bibz (3.0.10)
|
5
5
|
will-paginate-i18n
|
6
6
|
will_paginate (~> 3.3.0)
|
7
7
|
will_paginate-bootstrap4
|
@@ -161,7 +161,7 @@ GEM
|
|
161
161
|
rake (13.0.6)
|
162
162
|
regexp_parser (2.1.1)
|
163
163
|
rexml (3.2.5)
|
164
|
-
rubocop (1.22.
|
164
|
+
rubocop (1.22.3)
|
165
165
|
parallel (~> 1.10)
|
166
166
|
parser (>= 3.0.0.0)
|
167
167
|
rainbow (>= 2.2.2, < 4.0)
|
@@ -174,7 +174,7 @@ GEM
|
|
174
174
|
parser (>= 3.0.1.1)
|
175
175
|
rubocop-minitest (0.15.2)
|
176
176
|
rubocop (>= 0.90, < 2.0)
|
177
|
-
rubocop-performance (1.
|
177
|
+
rubocop-performance (1.12.0)
|
178
178
|
rubocop (>= 1.7.0, < 2.0)
|
179
179
|
rubocop-ast (>= 0.4.0)
|
180
180
|
rubocop-rails (2.12.4)
|
@@ -182,9 +182,9 @@ GEM
|
|
182
182
|
rack (>= 1.1)
|
183
183
|
rubocop (>= 1.7.0, < 2.0)
|
184
184
|
ruby-progressbar (1.11.0)
|
185
|
-
ruby_parser (3.
|
186
|
-
sexp_processor (~> 4.
|
187
|
-
sexp_processor (4.
|
185
|
+
ruby_parser (3.18.0)
|
186
|
+
sexp_processor (~> 4.16)
|
187
|
+
sexp_processor (4.16.0)
|
188
188
|
simple_form (5.1.0)
|
189
189
|
actionpack (>= 5.2)
|
190
190
|
activemodel (>= 5.2)
|
@@ -82,7 +82,7 @@ module UiBibz::Concerns::Models::Searchable
|
|
82
82
|
|
83
83
|
def self.generate_default_sql(sql)
|
84
84
|
if sorting?
|
85
|
-
sql.paginate(page: @tmp_params[:page], per_page: @tmp_params[:per_page])
|
85
|
+
sql.reorder('').paginate(page: @tmp_params[:page], per_page: @tmp_params[:per_page])
|
86
86
|
else
|
87
87
|
sql.reorder(order_sql).paginate(page: @tmp_params[:page], per_page: @tmp_params[:per_page])
|
88
88
|
end
|
@@ -152,7 +152,7 @@ module UiBibz::Concerns::Models::Searchable
|
|
152
152
|
end
|
153
153
|
|
154
154
|
def self.order_sql
|
155
|
-
sorting? ?
|
155
|
+
sorting? ? '' : "#{@tmp_params[:sort]} #{@tmp_params[:direction]}"
|
156
156
|
end
|
157
157
|
|
158
158
|
def self.search_sort_paginate
|
data/lib/ui_bibz/infos.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ui_bibz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thooams [Thomas HUMMEL]
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|