tiny_filter 0.2.0 → 0.2.1

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: b25430ea35a61c7a2ce2bc81b38596990385179c11b4b2797c441df5e1813725
4
- data.tar.gz: ec073eef8a8faf00b171e9ba92fa356a76fa3947b76f314cab3e6997855a618c
3
+ metadata.gz: 5cf60cc543019e4d02a3c8ffda90cd0e27d224feefdd0517f1b359c9e598b7f2
4
+ data.tar.gz: fc7bceb2b9ec9265d4535fcacbf65c207e2df6b689b3d3117a839ccffdba6524
5
5
  SHA512:
6
- metadata.gz: '0905513bd90fe26f0bc2ead908f73688e3dbe69da16d4864f5e7d64a3be6b0aa1e3f159b270498bb7e8f3c1faced5ac9707a318034c433e3bdc2746e7d9742ba'
7
- data.tar.gz: 98498c4a965f6b7262418e7a952a6b164ef6baa08c869503b971a3461486cb0c6580cf62be73aaff98282d0c4ad3a087203751554fcd92b668ca2f63d2d64e11
6
+ metadata.gz: f1537075c3b79a1e3ab09080f7d9e68edb43e22dd97881782000d67d677cfdd543c118e445425f0bf729d2680ec8b8d35db8fb064d911f36b6727388ebcde957
7
+ data.tar.gz: 3b49cb06eca991359f8bf91500fb9f0ff20fcb36f503a25bd7011b239b9258411178844906e8ae424e4e7ab16720875c0c0f430161fb82f6640b35b4704c7146
data/.rubocop.yml CHANGED
@@ -3,6 +3,7 @@ require:
3
3
  - rubocop-rails
4
4
  - rubocop-rake
5
5
  - rubocop-rspec
6
+ - rubocop-factory_bot
6
7
 
7
8
  inherit_gem:
8
9
  rubocop-shopify: rubocop.yml
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.1] - 2023-10-20
4
+
5
+ - Do not fix max dependencies versions
6
+ - Improved generators
7
+
3
8
  ## [0.2.0] - 2022-12-17
4
9
 
5
10
  - Filters inheritance
data/CODE_OF_CONDUCT.md CHANGED
@@ -39,7 +39,7 @@ This Code of Conduct applies within all community spaces, and also applies when
39
39
 
40
40
  ## Enforcement
41
41
 
42
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at kirill.usanov.dev@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at kirill@lassoid.ru. All complaints will be reviewed and investigated promptly and fairly.
43
43
 
44
44
  All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
45
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # TinyFilter
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/tiny_filter.svg)](https://rubygems.org/gems/tiny_filter)
3
+ [![Gem Version](https://img.shields.io/gem/v/tiny_filter?color=blue&label=version)](https://rubygems.org/gems/tiny_filter)
4
4
  [![Gem downloads count](https://img.shields.io/gem/dt/tiny_filter)](https://rubygems.org/gems/tiny_filter)
5
5
  [![Github Actions CI](https://github.com/lassoid/tiny_filter/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/lassoid/tiny_filter/actions/workflows/ci.yml)
6
6
 
@@ -134,11 +134,12 @@ MyFilter.filter(collection, options)
134
134
 
135
135
  ## Development
136
136
 
137
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec`/`rspec` to run the tests.
138
- You can also run `bin/console` for an interactive prompt that will allow you to experiment.
137
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/rspec` to run the tests.
138
+ You can also run `bin/rubocop` to lint the source code
139
+ and `bin/console` for an interactive prompt that will allow you to experiment.
139
140
 
140
- To install this gem onto your local machine, run `bundle exec rake install`.
141
- To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`,
141
+ To install this gem onto your local machine, run `bin/rake install`.
142
+ To release a new version, update the version number in `version.rb`, and then run `bin/rake release`,
142
143
  which will create a git tag for the version, push git commits and the created tag,
143
144
  and push the `.gem` file to [rubygems.org](https://rubygems.org).
144
145
 
data/Rakefile CHANGED
@@ -1,12 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- require "rubocop/rake_task"
9
-
10
- RuboCop::RakeTask.new
11
-
12
- task default: %i[spec rubocop]
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "rails/generators"
4
+
3
5
  module TinyFilter
4
6
  module Generators
5
7
  class FilterGenerator < ::Rails::Generators::NamedBase
@@ -1,5 +1,5 @@
1
1
  Description:
2
- Generates application filter - base class for all your filters.
2
+ Generates an application filter - a base class for all your filters.
3
3
 
4
4
  Examples:
5
5
  `bin/rails generate tiny_filter:install`
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "rails/generators"
4
+
3
5
  module TinyFilter
4
6
  module Generators
5
7
  class InstallGenerator < ::Rails::Generators::Base
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TinyFilter
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
data/tiny_filter.gemspec CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
6
6
  spec.name = "tiny_filter"
7
7
  spec.version = TinyFilter::VERSION
8
8
  spec.authors = ["Kirill Usanov", "LassoID"]
9
- spec.email = ["kirill.usanov.dev@gmail.com"]
9
+ spec.email = "kirill@lassoid.ru"
10
10
 
11
11
  spec.summary = "Tiny filtering for Rails."
12
12
  spec.description = "Simple filtering for ActiveRecord and enumerables."
@@ -30,9 +30,9 @@ Gem::Specification.new do |spec|
30
30
  spec.require_paths = ["lib"]
31
31
 
32
32
  # Dependencies
33
- spec.add_dependency "activesupport", ">= 6.0", "< 7.1"
34
- spec.add_development_dependency "activerecord", ">= 6.0", "< 7.1"
35
- spec.add_development_dependency "railties", ">= 6.0", "< 7.1"
33
+ spec.add_dependency "activesupport", ">= 6.0"
34
+ spec.add_development_dependency "activerecord", ">= 6.0"
35
+ spec.add_development_dependency "railties", ">= 6.0"
36
36
  spec.add_development_dependency "rake"
37
37
  spec.add_development_dependency "rspec"
38
38
  spec.add_development_dependency "rubocop"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirill Usanov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-12-17 00:00:00.000000000 Z
12
+ date: 2023-10-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -18,9 +18,6 @@ dependencies:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '6.0'
21
- - - "<"
22
- - !ruby/object:Gem::Version
23
- version: '7.1'
24
21
  type: :runtime
25
22
  prerelease: false
26
23
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,9 +25,6 @@ dependencies:
28
25
  - - ">="
29
26
  - !ruby/object:Gem::Version
30
27
  version: '6.0'
31
- - - "<"
32
- - !ruby/object:Gem::Version
33
- version: '7.1'
34
28
  - !ruby/object:Gem::Dependency
35
29
  name: activerecord
36
30
  requirement: !ruby/object:Gem::Requirement
@@ -38,9 +32,6 @@ dependencies:
38
32
  - - ">="
39
33
  - !ruby/object:Gem::Version
40
34
  version: '6.0'
41
- - - "<"
42
- - !ruby/object:Gem::Version
43
- version: '7.1'
44
35
  type: :development
45
36
  prerelease: false
46
37
  version_requirements: !ruby/object:Gem::Requirement
@@ -48,9 +39,6 @@ dependencies:
48
39
  - - ">="
49
40
  - !ruby/object:Gem::Version
50
41
  version: '6.0'
51
- - - "<"
52
- - !ruby/object:Gem::Version
53
- version: '7.1'
54
42
  - !ruby/object:Gem::Dependency
55
43
  name: railties
56
44
  requirement: !ruby/object:Gem::Requirement
@@ -58,9 +46,6 @@ dependencies:
58
46
  - - ">="
59
47
  - !ruby/object:Gem::Version
60
48
  version: '6.0'
61
- - - "<"
62
- - !ruby/object:Gem::Version
63
- version: '7.1'
64
49
  type: :development
65
50
  prerelease: false
66
51
  version_requirements: !ruby/object:Gem::Requirement
@@ -68,9 +53,6 @@ dependencies:
68
53
  - - ">="
69
54
  - !ruby/object:Gem::Version
70
55
  version: '6.0'
71
- - - "<"
72
- - !ruby/object:Gem::Version
73
- version: '7.1'
74
56
  - !ruby/object:Gem::Dependency
75
57
  name: rake
76
58
  requirement: !ruby/object:Gem::Requirement
@@ -198,8 +180,7 @@ dependencies:
198
180
  - !ruby/object:Gem::Version
199
181
  version: '0'
200
182
  description: Simple filtering for ActiveRecord and enumerables.
201
- email:
202
- - kirill.usanov.dev@gmail.com
183
+ email: kirill@lassoid.ru
203
184
  executables: []
204
185
  extensions: []
205
186
  extra_rdoc_files: []
@@ -247,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
228
  - !ruby/object:Gem::Version
248
229
  version: '0'
249
230
  requirements: []
250
- rubygems_version: 3.3.26
231
+ rubygems_version: 3.4.17
251
232
  signing_key:
252
233
  specification_version: 4
253
234
  summary: Tiny filtering for Rails.