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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a63c202db5dce43d16d986ad31a50abc21752cb7bd66771fce52c2ddc7a2614d
4
- data.tar.gz: '090e98ad1d561910bbefd0095be81e8b0c622e29cd8cba5b12471379b9023b65'
3
+ metadata.gz: 7a53832d4bfd9c1cb30eed06e91d869a4f0b342463ec90114a7e7c3daa8f182e
4
+ data.tar.gz: f3de3b1fdf50a5c7f6edf6db0b344975e63c3f5f5d0360719b2d3985da42367f
5
5
  SHA512:
6
- metadata.gz: 2d74dc358e308d4d84f04c6637bcd7c682b2ff671d9e11b36d9c9384434b4670d963e945ba80314e6e6e497fc54f7873b37e674bd5794d7f1b298c3912ac2190
7
- data.tar.gz: b8731da2f59b0d70838c412fdacc1cbf103c76c1eba8668df5253a4d35948e7b60dd9f9bfbb8a021c1c11efe5ab7b945dca3f6490c0b58b66847a3a09dde717c
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
- * [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.5"
3
3
  end
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.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-01-30 00:00:00.000000000 Z
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.