filterrific 5.2.4 → 5.2.5
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +3 -3
- data/lib/filterrific/action_view_extension.rb +3 -1
- data/lib/filterrific/version.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: 7a53832d4bfd9c1cb30eed06e91d869a4f0b342463ec90114a7e7c3daa8f182e
|
4
|
+
data.tar.gz: f3de3b1fdf50a5c7f6edf6db0b344975e63c3f5f5d0360719b2d3985da42367f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9350f8e1758891f7bde26afb7eb71b85c84a91f6a74f7dfacd04e47daa2f599e0ea9fba93620c3ce7af5704bb52daf350860e413dffbb9a37e6e8a0381b1de24
|
7
|
+
data.tar.gz: 1ed64d381e113c63ada585acee2bdc4f17cda96aff0b2f408e1cb9e06fe2a05c7cb33d223ef857f3170573e0f2aa210fa065d0f7f45e231c20dccacc2c079237
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
7
7
|
|
8
8
|
Filterrific major versions match the Ruby on Rails major versions they work with.
|
9
9
|
|
10
|
+
## [5.2.5] - Feb 12, 2023
|
11
|
+
|
12
|
+
* Fixes an issue around presence of current_sorting
|
13
|
+
|
10
14
|
## [5.2.4] - Jan 30, 2023
|
11
15
|
|
12
16
|
* Remove JS dependency on jquery
|
data/README.md
CHANGED
@@ -66,8 +66,8 @@ If you think you've found a bug, or have a feature request, then create an issue
|
|
66
66
|
### Resources
|
67
67
|
|
68
68
|
* [Documentation](http://filterrific.clearcove.ca)
|
69
|
-
* [
|
70
|
-
* [
|
69
|
+
* [Demo App](https://github.com/jhund/filterrific_demo) using classic Rails views.
|
70
|
+
* [API Demo App](https://github.com/jhund/filterrific_json_api_demo) using React and Mobx.
|
71
71
|
* [Changelog](https://github.com/jhund/filterrific/blob/master/CHANGELOG.md)
|
72
72
|
* [Source code (github)](https://github.com/jhund/filterrific)
|
73
73
|
* [Issues](https://github.com/jhund/filterrific/issues)
|
@@ -86,4 +86,4 @@ If you think you've found a bug, or have a feature request, then create an issue
|
|
86
86
|
|
87
87
|
### Copyright
|
88
88
|
|
89
|
-
Copyright (c) 2010 -
|
89
|
+
Copyright (c) 2010 - 2023 Jo Hund. See [(MIT) LICENSE](https://github.com/jhund/filterrific/blob/master/MIT-LICENSE) for details.
|
@@ -81,7 +81,9 @@ module Filterrific
|
|
81
81
|
current_sort_direction: if current_sorting
|
82
82
|
current_sorting.end_with?("_desc") ? "desc" : "asc"
|
83
83
|
end,
|
84
|
-
current_sort_direction_indicator:
|
84
|
+
current_sort_direction_indicator: if current_sorting
|
85
|
+
(current_sorting.end_with?("_desc") ? opts[:descending_indicator] : opts[:ascending_indicator])
|
86
|
+
end
|
85
87
|
)
|
86
88
|
new_sort_key = sort_key.to_s
|
87
89
|
if new_sort_key == opts[:current_sort_key]
|
data/lib/filterrific/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filterrific
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.2.
|
4
|
+
version: 5.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jo Hund
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Filterrific is a Rails Engine plugin that makes it easy to filter, search,
|
14
14
|
and sort your ActiveRecord lists.
|