filta 2.0.2 → 3.0.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 +3 -2
  3. data/Rakefile +1 -0
  4. data/VERSION +1 -1
  5. data/lib/filta/methods.rb +1 -1
  6. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7dd66a489286b10de86e4f1731bf2989624aa0a6634a8ec232183c95bfaf00d1
4
- data.tar.gz: 3fc15087fd2ceb86c9eab1db18de8dbbccd33b13a12f390ebfb6962404351515
3
+ metadata.gz: 18ecc862f48dd8cae8ab8a2a7a341b5ce461f3fd7bea1c5208298b6a6ebc038f
4
+ data.tar.gz: 330776df0cc128e65c319ce1956178f931470d230d8d2b946387a3ffde0ffe21
5
5
  SHA512:
6
- metadata.gz: 432b721cfc5a21b10927436dbfa0b539e1ce65a22c3d513f0c6ae0e2217495918dac825b573aa5d421e6d344bb943817cfc313cb8b4450f2dfff85af2acb2ae6
7
- data.tar.gz: 4934f026cb28dbcc579d92f3212398ee3e3803c3a85c5e0f0de8e666856fab31fc8d70f494c397835368686c5a95a4b4ced0bbf55c045daaa9378889af90576b
6
+ metadata.gz: e1af438e059cbfe035b34dbe2d8d6935505138e1622a45582bc4732051e107d6d58b96accc47707367814e03e5a0484c17541e419815832d1da5d56f9b2cdc10
7
+ data.tar.gz: b61c179542bf3dfc2360ebe1d029121efbc5523cfb80bef4bc45dc0e8bdc1ad56d651b05778f31202cfbc183da9cc7312a038c39a85afa1c64a7327dd32e375f
data/README.md CHANGED
@@ -4,10 +4,11 @@ Super simple filtering for ActiveRecord, inspired by [Justin Weiss' Gist](https:
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/filta.svg)](https://badge.fury.io/rb/filta)
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
8
  ## Requirements
8
9
 
9
- * Ruby >= 2.7
10
- * Rails >= 6, < 8
10
+ - Ruby >= 3.0
11
+ - Rails >= 6, < 8
11
12
 
12
13
  ## Installation
13
14
 
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.2
1
+ 3.0.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.2
4
+ version: 3.0.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-04-14 00:00:00.000000000 Z
11
+ date: 2024-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -58,14 +58,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '2.7'
61
+ version: '3.0'
62
62
  required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - ">="
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  requirements: []
68
- rubygems_version: 3.3.10
68
+ rubygems_version: 3.5.3
69
69
  signing_key:
70
70
  specification_version: 4
71
71
  summary: Simple filtering for ActiveRecord