filterrific 5.2.4 → 5.2.6

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: a63c202db5dce43d16d986ad31a50abc21752cb7bd66771fce52c2ddc7a2614d
4
- data.tar.gz: '090e98ad1d561910bbefd0095be81e8b0c622e29cd8cba5b12471379b9023b65'
3
+ metadata.gz: de062337e109a172d47a79fefb3d9af3e2317713f06475f8cbc1c1027e3e946d
4
+ data.tar.gz: 1a90a22ac7dab9b6fd74c8dffd54f5fa3c465ee0fc8825f64c36e7a552613f7e
5
5
  SHA512:
6
- metadata.gz: 2d74dc358e308d4d84f04c6637bcd7c682b2ff671d9e11b36d9c9384434b4670d963e945ba80314e6e6e497fc54f7873b37e674bd5794d7f1b298c3912ac2190
7
- data.tar.gz: b8731da2f59b0d70838c412fdacc1cbf103c76c1eba8668df5253a4d35948e7b60dd9f9bfbb8a021c1c11efe5ab7b945dca3f6490c0b58b66847a3a09dde717c
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 |[![Build Status](https://travis-ci.org/jhund/filterrific_demo.svg?branch=rails-5.x)](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 |[![Build Status](https://travis-ci.org/jhund/filterrific_demo.svg?branch=rails-4.x)](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|
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 |[![Build Status](https://travis-ci.org/jhund/filterrific_demo.svg?branch=rails-5.x)](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 |[![Build Status](https://travis-ci.org/jhund/filterrific_demo.svg?branch=rails-4.x)](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
- * [Live demo](https://filterrific-demo.herokuapp.com) using classic Rails views.
70
- * [Live JSON API demo](https://filterrific-json-api-demo.herokuapp.com/) using React and Mobx.
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 - 2019 Jo Hund. See [(MIT) LICENSE](https://github.com/jhund/filterrific/blob/master/MIT-LICENSE) for details.
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: (current_sorting.end_with?("_desc") ? opts[:descending_indicator] : opts[:ascending_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]
@@ -1,3 +1,3 @@
1
1
  module Filterrific
2
- VERSION = "5.2.4"
2
+ VERSION = "5.2.6"
3
3
  end
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
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: 2023-01-30 00:00:00.000000000 Z
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.