wice_grid 7.1.1 → 7.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +74 -74
- data/lib/generators/wice_grid/templates/wice_grid_config.rb +1 -1
- data/lib/wice/columns/column_integer.rb +1 -2
- data/lib/wice_grid.rb +7 -4
- data/wice_grid.gemspec +4 -3
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 765293f4188ee09add68b7b4b5137704da76f87e314891ccd84bd28a2baf4967
|
4
|
+
data.tar.gz: 5f921756352d750467cb5ccc9ef991ed5daa1da1ffff51548b6d32afa2ceb49a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9b9b368c3af364338814dcd8b944954731b6cfac6fced3bdde2d1ce33bd15925c6fe1e8d728c48f17077b3f7f553c1e9b58402525289b14a4442dea0cdf48dc
|
7
|
+
data.tar.gz: 591152e8eb8a4c049d371e6d9774f21b75783e4e9982be3d073df7f06680cfad72dd72184cb737fc35d57a136f0e0c7ce6786a9666595379abe53749acb25a72
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## 7.1.3
|
2
|
+
|
3
|
+
* Fixes [the bug](https://github.com/leikind/wice_grid/issues/395).
|
4
|
+
|
5
|
+
## 7.1.2
|
6
|
+
|
7
|
+
* This is the fix for the workaround of the [Facebook](https://www.facebook.com) problem.
|
8
|
+
|
1
9
|
## 7.1.1
|
2
10
|
|
3
11
|
* I have discovered that [Facebook](https://www.facebook.com) spoils the links
|
data/Gemfile.lock
CHANGED
@@ -16,7 +16,7 @@ GIT
|
|
16
16
|
PATH
|
17
17
|
remote: .
|
18
18
|
specs:
|
19
|
-
wice_grid (7.1.
|
19
|
+
wice_grid (7.1.3)
|
20
20
|
coffee-rails (>= 5.0.0)
|
21
21
|
jquery-rails
|
22
22
|
kaminari
|
@@ -25,35 +25,35 @@ PATH
|
|
25
25
|
GEM
|
26
26
|
remote: https://rubygems.org/
|
27
27
|
specs:
|
28
|
-
actioncable (7.1.
|
29
|
-
actionpack (= 7.1.
|
30
|
-
activesupport (= 7.1.
|
28
|
+
actioncable (7.1.4.1)
|
29
|
+
actionpack (= 7.1.4.1)
|
30
|
+
activesupport (= 7.1.4.1)
|
31
31
|
nio4r (~> 2.0)
|
32
32
|
websocket-driver (>= 0.6.1)
|
33
33
|
zeitwerk (~> 2.6)
|
34
|
-
actionmailbox (7.1.
|
35
|
-
actionpack (= 7.1.
|
36
|
-
activejob (= 7.1.
|
37
|
-
activerecord (= 7.1.
|
38
|
-
activestorage (= 7.1.
|
39
|
-
activesupport (= 7.1.
|
34
|
+
actionmailbox (7.1.4.1)
|
35
|
+
actionpack (= 7.1.4.1)
|
36
|
+
activejob (= 7.1.4.1)
|
37
|
+
activerecord (= 7.1.4.1)
|
38
|
+
activestorage (= 7.1.4.1)
|
39
|
+
activesupport (= 7.1.4.1)
|
40
40
|
mail (>= 2.7.1)
|
41
41
|
net-imap
|
42
42
|
net-pop
|
43
43
|
net-smtp
|
44
|
-
actionmailer (7.1.
|
45
|
-
actionpack (= 7.1.
|
46
|
-
actionview (= 7.1.
|
47
|
-
activejob (= 7.1.
|
48
|
-
activesupport (= 7.1.
|
44
|
+
actionmailer (7.1.4.1)
|
45
|
+
actionpack (= 7.1.4.1)
|
46
|
+
actionview (= 7.1.4.1)
|
47
|
+
activejob (= 7.1.4.1)
|
48
|
+
activesupport (= 7.1.4.1)
|
49
49
|
mail (~> 2.5, >= 2.5.4)
|
50
50
|
net-imap
|
51
51
|
net-pop
|
52
52
|
net-smtp
|
53
53
|
rails-dom-testing (~> 2.2)
|
54
|
-
actionpack (7.1.
|
55
|
-
actionview (= 7.1.
|
56
|
-
activesupport (= 7.1.
|
54
|
+
actionpack (7.1.4.1)
|
55
|
+
actionview (= 7.1.4.1)
|
56
|
+
activesupport (= 7.1.4.1)
|
57
57
|
nokogiri (>= 1.8.5)
|
58
58
|
racc
|
59
59
|
rack (>= 2.2.4)
|
@@ -61,35 +61,35 @@ GEM
|
|
61
61
|
rack-test (>= 0.6.3)
|
62
62
|
rails-dom-testing (~> 2.2)
|
63
63
|
rails-html-sanitizer (~> 1.6)
|
64
|
-
actiontext (7.1.
|
65
|
-
actionpack (= 7.1.
|
66
|
-
activerecord (= 7.1.
|
67
|
-
activestorage (= 7.1.
|
68
|
-
activesupport (= 7.1.
|
64
|
+
actiontext (7.1.4.1)
|
65
|
+
actionpack (= 7.1.4.1)
|
66
|
+
activerecord (= 7.1.4.1)
|
67
|
+
activestorage (= 7.1.4.1)
|
68
|
+
activesupport (= 7.1.4.1)
|
69
69
|
globalid (>= 0.6.0)
|
70
70
|
nokogiri (>= 1.8.5)
|
71
|
-
actionview (7.1.
|
72
|
-
activesupport (= 7.1.
|
71
|
+
actionview (7.1.4.1)
|
72
|
+
activesupport (= 7.1.4.1)
|
73
73
|
builder (~> 3.1)
|
74
74
|
erubi (~> 1.11)
|
75
75
|
rails-dom-testing (~> 2.2)
|
76
76
|
rails-html-sanitizer (~> 1.6)
|
77
|
-
activejob (7.1.
|
78
|
-
activesupport (= 7.1.
|
77
|
+
activejob (7.1.4.1)
|
78
|
+
activesupport (= 7.1.4.1)
|
79
79
|
globalid (>= 0.3.6)
|
80
|
-
activemodel (7.1.
|
81
|
-
activesupport (= 7.1.
|
82
|
-
activerecord (7.1.
|
83
|
-
activemodel (= 7.1.
|
84
|
-
activesupport (= 7.1.
|
80
|
+
activemodel (7.1.4.1)
|
81
|
+
activesupport (= 7.1.4.1)
|
82
|
+
activerecord (7.1.4.1)
|
83
|
+
activemodel (= 7.1.4.1)
|
84
|
+
activesupport (= 7.1.4.1)
|
85
85
|
timeout (>= 0.4.0)
|
86
|
-
activestorage (7.1.
|
87
|
-
actionpack (= 7.1.
|
88
|
-
activejob (= 7.1.
|
89
|
-
activerecord (= 7.1.
|
90
|
-
activesupport (= 7.1.
|
86
|
+
activestorage (7.1.4.1)
|
87
|
+
actionpack (= 7.1.4.1)
|
88
|
+
activejob (= 7.1.4.1)
|
89
|
+
activerecord (= 7.1.4.1)
|
90
|
+
activesupport (= 7.1.4.1)
|
91
91
|
marcel (~> 1.0)
|
92
|
-
activesupport (7.1.
|
92
|
+
activesupport (7.1.4.1)
|
93
93
|
base64
|
94
94
|
bigdecimal
|
95
95
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
@@ -136,7 +136,7 @@ GEM
|
|
136
136
|
coffee-script-source
|
137
137
|
execjs
|
138
138
|
coffee-script-source (1.12.2)
|
139
|
-
concurrent-ruby (1.3.
|
139
|
+
concurrent-ruby (1.3.4)
|
140
140
|
connection_pool (2.4.1)
|
141
141
|
crass (1.0.6)
|
142
142
|
csv (3.3.0)
|
@@ -164,22 +164,22 @@ GEM
|
|
164
164
|
formatador (1.1.0)
|
165
165
|
globalid (1.2.1)
|
166
166
|
activesupport (>= 6.1)
|
167
|
-
google-protobuf (4.27.
|
167
|
+
google-protobuf (4.27.5)
|
168
168
|
bigdecimal
|
169
169
|
rake (>= 13)
|
170
|
-
google-protobuf (4.27.
|
170
|
+
google-protobuf (4.27.5-aarch64-linux)
|
171
171
|
bigdecimal
|
172
172
|
rake (>= 13)
|
173
|
-
google-protobuf (4.27.
|
173
|
+
google-protobuf (4.27.5-arm64-darwin)
|
174
174
|
bigdecimal
|
175
175
|
rake (>= 13)
|
176
|
-
google-protobuf (4.27.
|
176
|
+
google-protobuf (4.27.5-x86-linux)
|
177
177
|
bigdecimal
|
178
178
|
rake (>= 13)
|
179
|
-
google-protobuf (4.27.
|
179
|
+
google-protobuf (4.27.5-x86_64-darwin)
|
180
180
|
bigdecimal
|
181
181
|
rake (>= 13)
|
182
|
-
google-protobuf (4.27.
|
182
|
+
google-protobuf (4.27.5-x86_64-linux)
|
183
183
|
bigdecimal
|
184
184
|
rake (>= 13)
|
185
185
|
guard (2.18.1)
|
@@ -204,7 +204,7 @@ GEM
|
|
204
204
|
csv
|
205
205
|
mini_mime (>= 1.0.0)
|
206
206
|
multi_xml (>= 0.5.2)
|
207
|
-
i18n (1.14.
|
207
|
+
i18n (1.14.6)
|
208
208
|
concurrent-ruby (~> 1.0)
|
209
209
|
importmap-rails (2.0.1)
|
210
210
|
actionpack (>= 6.0.0)
|
@@ -216,7 +216,7 @@ GEM
|
|
216
216
|
term-ansicolor
|
217
217
|
yard (~> 0.9.12)
|
218
218
|
io-console (0.7.2)
|
219
|
-
irb (1.14.
|
219
|
+
irb (1.14.1)
|
220
220
|
rdoc (>= 4.0.0)
|
221
221
|
reline (>= 0.4.2)
|
222
222
|
jquery-rails (4.6.0)
|
@@ -263,12 +263,12 @@ GEM
|
|
263
263
|
matrix (0.4.2)
|
264
264
|
method_source (1.1.0)
|
265
265
|
mini_mime (1.1.5)
|
266
|
-
minitest (5.
|
266
|
+
minitest (5.25.1)
|
267
267
|
multi_xml (0.7.1)
|
268
268
|
bigdecimal (~> 3.1)
|
269
269
|
mutex_m (0.2.0)
|
270
270
|
nenv (0.3.0)
|
271
|
-
net-imap (0.4.
|
271
|
+
net-imap (0.4.17)
|
272
272
|
date
|
273
273
|
net-protocol
|
274
274
|
net-pop (0.1.2)
|
@@ -306,7 +306,7 @@ GEM
|
|
306
306
|
stringio
|
307
307
|
public_suffix (5.0.5)
|
308
308
|
racc (1.8.1)
|
309
|
-
rack (3.1.
|
309
|
+
rack (3.1.8)
|
310
310
|
rack-session (2.0.0)
|
311
311
|
rack (>= 3.0.0)
|
312
312
|
rack-test (2.1.0)
|
@@ -314,20 +314,20 @@ GEM
|
|
314
314
|
rackup (2.1.0)
|
315
315
|
rack (>= 3)
|
316
316
|
webrick (~> 1.8)
|
317
|
-
rails (7.1.
|
318
|
-
actioncable (= 7.1.
|
319
|
-
actionmailbox (= 7.1.
|
320
|
-
actionmailer (= 7.1.
|
321
|
-
actionpack (= 7.1.
|
322
|
-
actiontext (= 7.1.
|
323
|
-
actionview (= 7.1.
|
324
|
-
activejob (= 7.1.
|
325
|
-
activemodel (= 7.1.
|
326
|
-
activerecord (= 7.1.
|
327
|
-
activestorage (= 7.1.
|
328
|
-
activesupport (= 7.1.
|
317
|
+
rails (7.1.4.1)
|
318
|
+
actioncable (= 7.1.4.1)
|
319
|
+
actionmailbox (= 7.1.4.1)
|
320
|
+
actionmailer (= 7.1.4.1)
|
321
|
+
actionpack (= 7.1.4.1)
|
322
|
+
actiontext (= 7.1.4.1)
|
323
|
+
actionview (= 7.1.4.1)
|
324
|
+
activejob (= 7.1.4.1)
|
325
|
+
activemodel (= 7.1.4.1)
|
326
|
+
activerecord (= 7.1.4.1)
|
327
|
+
activestorage (= 7.1.4.1)
|
328
|
+
activesupport (= 7.1.4.1)
|
329
329
|
bundler (>= 1.15.0)
|
330
|
-
railties (= 7.1.
|
330
|
+
railties (= 7.1.4.1)
|
331
331
|
rails-dom-testing (2.2.0)
|
332
332
|
activesupport (>= 5.0.0)
|
333
333
|
minitest
|
@@ -335,9 +335,9 @@ GEM
|
|
335
335
|
rails-html-sanitizer (1.6.0)
|
336
336
|
loofah (~> 2.21)
|
337
337
|
nokogiri (~> 1.14)
|
338
|
-
railties (7.1.
|
339
|
-
actionpack (= 7.1.
|
340
|
-
activesupport (= 7.1.
|
338
|
+
railties (7.1.4.1)
|
339
|
+
actionpack (= 7.1.4.1)
|
340
|
+
activesupport (= 7.1.4.1)
|
341
341
|
irb
|
342
342
|
rackup (>= 1.0.0)
|
343
343
|
rake (>= 12.2)
|
@@ -351,9 +351,9 @@ GEM
|
|
351
351
|
psych (>= 4.0.0)
|
352
352
|
ref (2.0.0)
|
353
353
|
regexp_parser (2.9.2)
|
354
|
-
reline (0.5.
|
354
|
+
reline (0.5.10)
|
355
355
|
io-console (~> 0.5)
|
356
|
-
rexml (3.3.
|
356
|
+
rexml (3.3.6)
|
357
357
|
strscan
|
358
358
|
rspec (3.13.0)
|
359
359
|
rspec-core (~> 3.13.0)
|
@@ -427,7 +427,7 @@ GEM
|
|
427
427
|
sqlite3 (1.7.3-x86-linux)
|
428
428
|
sqlite3 (1.7.3-x86_64-darwin)
|
429
429
|
sqlite3 (1.7.3-x86_64-linux)
|
430
|
-
stimulus-rails (1.3.
|
430
|
+
stimulus-rails (1.3.4)
|
431
431
|
railties (>= 6.0.0)
|
432
432
|
stringio (3.1.1)
|
433
433
|
strscan (3.1.0)
|
@@ -438,19 +438,18 @@ GEM
|
|
438
438
|
therubyracer (0.12.3)
|
439
439
|
libv8 (~> 3.16.14.15)
|
440
440
|
ref
|
441
|
-
thor (1.3.
|
441
|
+
thor (1.3.2)
|
442
442
|
tilt (2.3.0)
|
443
443
|
timeout (0.4.1)
|
444
444
|
tins (1.33.0)
|
445
445
|
bigdecimal
|
446
446
|
sync
|
447
|
-
turbo-rails (2.0.
|
447
|
+
turbo-rails (2.0.10)
|
448
448
|
actionpack (>= 6.0.0)
|
449
|
-
activejob (>= 6.0.0)
|
450
449
|
railties (>= 6.0.0)
|
451
450
|
tzinfo (2.0.6)
|
452
451
|
concurrent-ruby (~> 1.0)
|
453
|
-
webrick (1.8.
|
452
|
+
webrick (1.8.2)
|
454
453
|
websocket (1.2.10)
|
455
454
|
websocket-driver (0.7.6)
|
456
455
|
websocket-extensions (>= 0.1.0)
|
@@ -458,7 +457,7 @@ GEM
|
|
458
457
|
xpath (3.2.0)
|
459
458
|
nokogiri (~> 1.8)
|
460
459
|
yard (0.9.36)
|
461
|
-
zeitwerk (2.6.
|
460
|
+
zeitwerk (2.6.18)
|
462
461
|
|
463
462
|
PLATFORMS
|
464
463
|
aarch64-linux
|
@@ -485,6 +484,7 @@ DEPENDENCIES
|
|
485
484
|
capybara
|
486
485
|
capybara-screenshot
|
487
486
|
coderay
|
487
|
+
csv
|
488
488
|
dartsass-rails
|
489
489
|
faker
|
490
490
|
font-awesome-sass!
|
@@ -80,7 +80,7 @@ if defined?(Wice::Defaults)
|
|
80
80
|
# It is also possible to define you own processors:
|
81
81
|
#
|
82
82
|
# Wice::Defaults::ADDITIONAL_COLUMN_PROCESSORS = {
|
83
|
-
# some_key_identifying_new_column_type:
|
83
|
+
# some_key_identifying_new_column_type: ['AViewColumnProcessorClass', 'ConditionsGeneratorClass'],
|
84
84
|
# another_key_identifying_new_column_type: ['AnotherViewColumnProcessorClass', 'AnotherConditionsGeneratorClass']
|
85
85
|
# }
|
86
86
|
#
|
@@ -36,8 +36,7 @@ module Wice
|
|
36
36
|
separator = I18n.t!('number.format.separator') rescue nil
|
37
37
|
val = val.sub(separator, '.') if val.respond_to?(:sub) && separator
|
38
38
|
|
39
|
-
|
40
|
-
Float(val) rescue nil
|
39
|
+
Integer(val) rescue nil
|
41
40
|
end
|
42
41
|
|
43
42
|
def get_op_and_value(val) #:nodoc:
|
data/lib/wice_grid.rb
CHANGED
@@ -189,11 +189,10 @@ module Wice
|
|
189
189
|
end
|
190
190
|
|
191
191
|
def fix_facebook_bug
|
192
|
-
Rails.logger.debug {%%WiceGrid@#{__LINE__}#fix_facebook_bug: #{params[name].inspect}%}
|
193
192
|
if params[name] and filter = params[name][:f]
|
194
193
|
params[name][:f] = filter.to_unsafe_h
|
195
194
|
.each_with_object({}) do |(key, value), hash|
|
196
|
-
if value.is_a?
|
195
|
+
if value.is_a?(Hash) and value.keys.all? {|key| key.to_s.match? /^[0-9]+$/}
|
197
196
|
hash[key] = value.values
|
198
197
|
else
|
199
198
|
hash[key] = value
|
@@ -267,8 +266,12 @@ module Wice
|
|
267
266
|
end
|
268
267
|
|
269
268
|
if column
|
270
|
-
conditions_generator = ActiveRecordColumnWrapper.new(
|
271
|
-
|
269
|
+
conditions_generator = ActiveRecordColumnWrapper.new(
|
270
|
+
column, @status[:f], main_table,
|
271
|
+
table_alias, custom_filter_active, filter_type
|
272
|
+
)
|
273
|
+
conditions, current_parameter_name =
|
274
|
+
conditions_generator.wg_initialize_request_parameters
|
272
275
|
|
273
276
|
if @status[:f] && conditions.blank?
|
274
277
|
@status[:f].delete(current_parameter_name)
|
data/wice_grid.gemspec
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'wice_grid'
|
3
|
-
s.version = '7.1.
|
4
|
-
s.authors = ['Yuri Leikind and contributors']
|
5
|
-
s.email = ['
|
3
|
+
s.version = '7.1.3'
|
4
|
+
s.authors = ['Yuri Leikind, Dimitri Kulk, and contributors']
|
5
|
+
s.email = ['dim.kulk@gmail.com']
|
6
6
|
s.homepage = 'https://github.com/leikind/wice_grid'
|
7
7
|
s.summary = 'A Rails grid plugin to quickly create grids with sorting, pagination, and filters.'
|
8
8
|
s.description = 'A Rails grid plugin to create grids with sorting, pagination, and filters generated automatically based on column types. ' \
|
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.add_development_dependency 'byebug'
|
25
25
|
s.add_development_dependency 'capybara'
|
26
26
|
s.add_development_dependency 'capybara-screenshot'
|
27
|
+
s.add_development_dependency 'csv'
|
27
28
|
s.add_development_dependency 'faker'
|
28
29
|
s.add_development_dependency 'phantomjs', '>= 2.1.1'
|
29
30
|
s.add_development_dependency 'poltergeist'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wice_grid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.1.
|
4
|
+
version: 7.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Yuri Leikind and contributors
|
7
|
+
- Yuri Leikind, Dimitri Kulk, and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: csv
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: faker
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -506,7 +520,7 @@ description: A Rails grid plugin to create grids with sorting, pagination, and f
|
|
506
520
|
WiceGrid automates implementation of filters, ordering, paginations, CSV export,
|
507
521
|
and so on. Ruby blocks provide an elegant means for this.
|
508
522
|
email:
|
509
|
-
-
|
523
|
+
- dim.kulk@gmail.com
|
510
524
|
executables: []
|
511
525
|
extensions: []
|
512
526
|
extra_rdoc_files: []
|