filta 2.0.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/Rakefile +1 -0
  4. data/VERSION +1 -1
  5. data/lib/filta/methods.rb +1 -1
  6. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1a6772016c764a05327275e6ccd107cd24b98174f3085067924be26c5e40e86
4
- data.tar.gz: e180b371052936d4e4109f24c07e3f28aacc4c6dfcb61065624cbd8f0b118db1
3
+ metadata.gz: c271be9229fac52b5613f867750f80fbfff04150477ec1e8a7970f09709aeebd
4
+ data.tar.gz: 8c3304c3ab9f79871fe992a6b3a9a12bbe4437999c62d37177f60df26eaafd81
5
5
  SHA512:
6
- metadata.gz: 20aeaa3976e28924deeec88fc5f3ac692f2fb0369c84d4d42b2006bf4dd0ea62b75462a2193905cac0bd657513dc31336609bd9a06fa2168674f6ce7c3f03ee5
7
- data.tar.gz: a19652f91dc4858ba35486b894a639485d3bf0df941125c8572a80e3ced84242e75fe3299275f7c7da156daed73d0729586415ded6675e9fb1f5f104cca6b5f3
6
+ metadata.gz: 4db9453ae2ce6709b52e6de138920b669cad9de595c628331584397307da84c829a6c108a0b1b1689265a739a7d9eb50b99a1e62b32d16d2485d0189259a3418
7
+ data.tar.gz: 5e7a2102cabf934b6594dfb039b6641618671aaaa3632ead36c4295c6e81ae9711b7f356410f7a5491394bc799f34f9d8c38a4e5ada1aea87c35ff8f1886c860
data/README.md CHANGED
@@ -6,7 +6,7 @@ Super simple filtering for ActiveRecord, inspired by [Justin Weiss' Gist](https:
6
6
  [![CI](https://github.com/boxt/filta/actions/workflows/ci.yml/badge.svg)](https://github.com/boxt/filta/actions/workflows/ci.yml)
7
7
  ## Requirements
8
8
 
9
- * Ruby 2.7.3 or above
9
+ * Ruby >= 2.7
10
10
  * Rails >= 6, < 8
11
11
 
12
12
  ## Installation
data/Rakefile CHANGED
@@ -8,4 +8,5 @@ RSpec::Core::RakeTask.new(:spec) do |t|
8
8
  t.pattern = Dir.glob("spec/**/*_spec.rb")
9
9
  end
10
10
 
11
+ desc "Map rake test to rake spec"
11
12
  task test: :spec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.1
1
+ 2.1.0
data/lib/filta/methods.rb CHANGED
@@ -11,7 +11,7 @@ module Filta
11
11
  results = where(nil)
12
12
 
13
13
  by.each do |key, value|
14
- next if value.blank?
14
+ next if value.to_s.blank?
15
15
 
16
16
  results = results.where(key.to_s.to_sym => value)
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filta
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boxt Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-07 00:00:00.000000000 Z
11
+ date: 2023-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  requirements: []
68
- rubygems_version: 3.2.22
68
+ rubygems_version: 3.4.6
69
69
  signing_key:
70
70
  specification_version: 4
71
71
  summary: Simple filtering for ActiveRecord