filterrific 5.2.4 → 5.2.6
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 +8 -0
- data/README.md +8 -8
- data/lib/filterrific/action_view_extension.rb +3 -1
- data/lib/filterrific/version.rb +1 -1
- data/lib/filterrific.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: de062337e109a172d47a79fefb3d9af3e2317713f06475f8cbc1c1027e3e946d
|
|
4
|
+
data.tar.gz: 1a90a22ac7dab9b6fd74c8dffd54f5fa3c465ee0fc8825f64c36e7a552613f7e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 29a300d98a22445e6cba990d665e14a3d160b608d515719edeb0e4b12fdaecd644315f0490da360b8259ce140d0bbaeea591ee9d23c3c09758548ce29be8fb14
|
|
7
|
+
data.tar.gz: 969d8b7821aa64ea740ef9d41c23ddd450ad08a8276fb3591bc999e2d70ec4e542cff07d0bfb6dbf0299de254d9e46b321a8946677445734377962f11da6f806
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ 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.6] - Jan 24, 2025
|
|
11
|
+
|
|
12
|
+
* Supports Rails 8
|
|
13
|
+
|
|
14
|
+
## [5.2.5] - Feb 12, 2023
|
|
15
|
+
|
|
16
|
+
* Fixes an issue around presence of current_sorting
|
|
17
|
+
|
|
10
18
|
## [5.2.4] - Jan 30, 2023
|
|
11
19
|
|
|
12
20
|
* Remove JS dependency on jquery
|
data/README.md
CHANGED
|
@@ -41,11 +41,11 @@ Every commit to Filterrific is automatically tested against the following scenar
|
|
|
41
41
|
|
|
42
42
|
|Filterrific version | Rails version | Ruby environments | Database adapters | Build status |
|
|
43
43
|
|--------------------|---------------------|--------------------------------|------------------------------------|--------------|
|
|
44
|
-
| 5.x | Rails 5.x, 6.x, 7.x | MRI 2.0.0, 2.1.7, 2.2.3, 2.3.1 | mysql2, postgresql |[](https://travis-ci.org/jhund/filterrific_demo)|
|
|
45
|
-
| 4.x | Rails 4.x
|
|
46
|
-
| 3.x | Rails 3.2
|
|
47
|
-
| 2.x | Rails 3.2
|
|
48
|
-
| 1.x | < 3.2
|
|
44
|
+
| 5.x | Rails 5.x, 6.x, 7.x, 8.x | MRI 2.0.0, 2.1.7, 2.2.3, 2.3.1 | mysql2, postgresql |[](https://travis-ci.org/jhund/filterrific_demo)|
|
|
45
|
+
| 4.x | Rails 4.x | MRI 2.0.0, 2.1.7, 2.2.3, 2.3.1 | mysql, mysql2, postgresql, sqlite3 |[](https://travis-ci.org/jhund/filterrific_demo)|
|
|
46
|
+
| 3.x | Rails 3.2 | MRI 2.0.0, 2.1.7 | mysql, mysql2, postgresql, sqlite3 | Not tested|
|
|
47
|
+
| 2.x | Rails 3.2 | MRI 1.9.3 | mysql, mysql2, postgresql, sqlite3 | Not tested|
|
|
48
|
+
| 1.x | < 3.2 | MRI <= 1.9.3 | mysql, mysql2, postgresql, sqlite3 | Not tested|
|
|
49
49
|
|
|
50
50
|
### Guidelines for submitting issues
|
|
51
51
|
|
|
@@ -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
data/lib/filterrific.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
if ![5,6,7].include?(Rails::VERSION::MAJOR)
|
|
1
|
+
if ![5,6,7,8].include?(Rails::VERSION::MAJOR)
|
|
2
2
|
raise "\n\nThis version of Filterrific only works with Rails 5, 6 and 7.\nPlease see the Filterrific README for the correct version of Filterrific to use with your version of Rails!\n\n"
|
|
3
3
|
end
|
|
4
4
|
|
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.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jo Hund
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-01-24 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.
|