searchable-by 0.7.2 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +1 -1
- data/.rubocop.yml +1 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +40 -34
- data/Gemfile.rails6.lock +39 -31
- data/lib/searchable_by/column.rb +2 -2
- data/searchable-by.gemspec +2 -3
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4375ab9af1022472f0e5d8088a48c4289a4a3f4e2699c5731b365d8cca57f2f3
|
4
|
+
data.tar.gz: acf33c29fe2ab2450f507b6254b091e79002323d3ece1fc664b304083b4f2049
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de7abe0c35a39273a9da079ed535f2aaa237b09277502a4d1747715fa7964f505812f83f3348007c33396ae6f370f12265a1e997003dcdcc717f878e6437ef82
|
7
|
+
data.tar.gz: dbe70706986bf6c5fe9b13ea5acdd1e347d5b3838595a7d104d9755adf6501908266fac21c8a3fd493ee3e865b60591cc969642c84ca46cbfdb817bb10a114d0
|
data/.github/workflows/test.yml
CHANGED
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,89 +1,95 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
searchable-by (0.7.
|
4
|
+
searchable-by (0.7.4)
|
5
5
|
activerecord
|
6
6
|
|
7
7
|
GEM
|
8
|
-
remote:
|
8
|
+
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (7.0.
|
11
|
-
activesupport (= 7.0.
|
12
|
-
activerecord (7.0.
|
13
|
-
activemodel (= 7.0.
|
14
|
-
activesupport (= 7.0.
|
15
|
-
activesupport (7.0.
|
10
|
+
activemodel (7.0.8)
|
11
|
+
activesupport (= 7.0.8)
|
12
|
+
activerecord (7.0.8)
|
13
|
+
activemodel (= 7.0.8)
|
14
|
+
activesupport (= 7.0.8)
|
15
|
+
activesupport (7.0.8)
|
16
16
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
17
|
i18n (>= 1.6, < 2)
|
18
18
|
minitest (>= 5.1)
|
19
19
|
tzinfo (~> 2.0)
|
20
20
|
ast (2.4.2)
|
21
|
-
|
21
|
+
base64 (0.1.1)
|
22
|
+
concurrent-ruby (1.2.2)
|
22
23
|
diff-lcs (1.5.0)
|
23
|
-
i18n (1.
|
24
|
+
i18n (1.14.1)
|
24
25
|
concurrent-ruby (~> 1.0)
|
25
26
|
json (2.6.3)
|
26
|
-
|
27
|
-
minitest (5.
|
28
|
-
parallel (1.
|
29
|
-
parser (3.2.
|
27
|
+
language_server-protocol (3.17.0.3)
|
28
|
+
minitest (5.20.0)
|
29
|
+
parallel (1.23.0)
|
30
|
+
parser (3.2.2.3)
|
30
31
|
ast (~> 2.4.1)
|
32
|
+
racc
|
33
|
+
racc (1.7.1)
|
31
34
|
rainbow (3.1.1)
|
32
35
|
rake (13.0.6)
|
33
|
-
regexp_parser (2.
|
34
|
-
rexml (3.2.
|
36
|
+
regexp_parser (2.8.1)
|
37
|
+
rexml (3.2.6)
|
35
38
|
rspec (3.12.0)
|
36
39
|
rspec-core (~> 3.12.0)
|
37
40
|
rspec-expectations (~> 3.12.0)
|
38
41
|
rspec-mocks (~> 3.12.0)
|
39
|
-
rspec-core (3.12.
|
42
|
+
rspec-core (3.12.2)
|
40
43
|
rspec-support (~> 3.12.0)
|
41
|
-
rspec-expectations (3.12.
|
44
|
+
rspec-expectations (3.12.3)
|
42
45
|
diff-lcs (>= 1.2.0, < 2.0)
|
43
46
|
rspec-support (~> 3.12.0)
|
44
|
-
rspec-mocks (3.12.
|
47
|
+
rspec-mocks (3.12.6)
|
45
48
|
diff-lcs (>= 1.2.0, < 2.0)
|
46
49
|
rspec-support (~> 3.12.0)
|
47
|
-
rspec-support (3.12.
|
48
|
-
rubocop (1.
|
50
|
+
rspec-support (3.12.1)
|
51
|
+
rubocop (1.56.3)
|
52
|
+
base64 (~> 0.1.1)
|
49
53
|
json (~> 2.3)
|
54
|
+
language_server-protocol (>= 3.17.0)
|
50
55
|
parallel (~> 1.10)
|
51
|
-
parser (>= 3.2.
|
56
|
+
parser (>= 3.2.2.3)
|
52
57
|
rainbow (>= 2.2.2, < 4.0)
|
53
58
|
regexp_parser (>= 1.8, < 3.0)
|
54
59
|
rexml (>= 3.2.5, < 4.0)
|
55
|
-
rubocop-ast (>= 1.
|
60
|
+
rubocop-ast (>= 1.28.1, < 2.0)
|
56
61
|
ruby-progressbar (~> 1.7)
|
57
62
|
unicode-display_width (>= 2.4.0, < 3.0)
|
58
|
-
rubocop-ast (1.
|
59
|
-
parser (>= 3.
|
63
|
+
rubocop-ast (1.29.0)
|
64
|
+
parser (>= 3.2.1.0)
|
60
65
|
rubocop-bsm (0.6.1)
|
61
66
|
rubocop (~> 1.0)
|
62
67
|
rubocop-performance
|
63
68
|
rubocop-rake
|
64
69
|
rubocop-rspec
|
65
|
-
rubocop-capybara (2.
|
70
|
+
rubocop-capybara (2.18.0)
|
66
71
|
rubocop (~> 1.41)
|
67
|
-
rubocop-
|
72
|
+
rubocop-factory_bot (2.24.0)
|
73
|
+
rubocop (~> 1.33)
|
74
|
+
rubocop-performance (1.19.1)
|
68
75
|
rubocop (>= 1.7.0, < 2.0)
|
69
76
|
rubocop-ast (>= 0.4.0)
|
70
77
|
rubocop-rake (0.6.0)
|
71
78
|
rubocop (~> 1.0)
|
72
|
-
rubocop-rspec (2.
|
79
|
+
rubocop-rspec (2.24.0)
|
73
80
|
rubocop (~> 1.33)
|
74
81
|
rubocop-capybara (~> 2.17)
|
75
|
-
|
76
|
-
|
77
|
-
|
82
|
+
rubocop-factory_bot (~> 2.22)
|
83
|
+
ruby-progressbar (1.13.0)
|
84
|
+
sqlite3 (1.6.6-x86_64-linux)
|
78
85
|
tzinfo (2.0.6)
|
79
86
|
concurrent-ruby (~> 1.0)
|
80
87
|
unicode-display_width (2.4.2)
|
81
88
|
|
82
89
|
PLATFORMS
|
83
|
-
|
90
|
+
x86_64-linux
|
84
91
|
|
85
92
|
DEPENDENCIES
|
86
|
-
bundler
|
87
93
|
rake
|
88
94
|
rspec
|
89
95
|
rubocop
|
@@ -92,4 +98,4 @@ DEPENDENCIES
|
|
92
98
|
sqlite3
|
93
99
|
|
94
100
|
BUNDLED WITH
|
95
|
-
2.
|
101
|
+
2.4.4
|
data/Gemfile.rails6.lock
CHANGED
@@ -1,90 +1,98 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
searchable-by (0.7.
|
4
|
+
searchable-by (0.7.4)
|
5
5
|
activerecord
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (6.1.7.
|
11
|
-
activesupport (= 6.1.7.
|
12
|
-
activerecord (6.1.7.
|
13
|
-
activemodel (= 6.1.7.
|
14
|
-
activesupport (= 6.1.7.
|
15
|
-
activesupport (6.1.7.
|
10
|
+
activemodel (6.1.7.6)
|
11
|
+
activesupport (= 6.1.7.6)
|
12
|
+
activerecord (6.1.7.6)
|
13
|
+
activemodel (= 6.1.7.6)
|
14
|
+
activesupport (= 6.1.7.6)
|
15
|
+
activesupport (6.1.7.6)
|
16
16
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
17
|
i18n (>= 1.6, < 2)
|
18
18
|
minitest (>= 5.1)
|
19
19
|
tzinfo (~> 2.0)
|
20
20
|
zeitwerk (~> 2.3)
|
21
21
|
ast (2.4.2)
|
22
|
-
|
22
|
+
base64 (0.1.1)
|
23
|
+
concurrent-ruby (1.2.2)
|
23
24
|
diff-lcs (1.5.0)
|
24
|
-
i18n (1.
|
25
|
+
i18n (1.14.1)
|
25
26
|
concurrent-ruby (~> 1.0)
|
26
27
|
json (2.6.3)
|
27
|
-
|
28
|
-
|
29
|
-
|
28
|
+
language_server-protocol (3.17.0.3)
|
29
|
+
minitest (5.20.0)
|
30
|
+
parallel (1.23.0)
|
31
|
+
parser (3.2.2.3)
|
30
32
|
ast (~> 2.4.1)
|
33
|
+
racc
|
34
|
+
racc (1.7.1)
|
31
35
|
rainbow (3.1.1)
|
32
36
|
rake (13.0.6)
|
33
|
-
regexp_parser (2.
|
34
|
-
rexml (3.2.
|
37
|
+
regexp_parser (2.8.1)
|
38
|
+
rexml (3.2.6)
|
35
39
|
rspec (3.12.0)
|
36
40
|
rspec-core (~> 3.12.0)
|
37
41
|
rspec-expectations (~> 3.12.0)
|
38
42
|
rspec-mocks (~> 3.12.0)
|
39
|
-
rspec-core (3.12.
|
43
|
+
rspec-core (3.12.2)
|
40
44
|
rspec-support (~> 3.12.0)
|
41
|
-
rspec-expectations (3.12.
|
45
|
+
rspec-expectations (3.12.3)
|
42
46
|
diff-lcs (>= 1.2.0, < 2.0)
|
43
47
|
rspec-support (~> 3.12.0)
|
44
|
-
rspec-mocks (3.12.
|
48
|
+
rspec-mocks (3.12.6)
|
45
49
|
diff-lcs (>= 1.2.0, < 2.0)
|
46
50
|
rspec-support (~> 3.12.0)
|
47
|
-
rspec-support (3.12.
|
48
|
-
rubocop (1.
|
51
|
+
rspec-support (3.12.1)
|
52
|
+
rubocop (1.56.3)
|
53
|
+
base64 (~> 0.1.1)
|
49
54
|
json (~> 2.3)
|
55
|
+
language_server-protocol (>= 3.17.0)
|
50
56
|
parallel (~> 1.10)
|
51
|
-
parser (>= 3.2.
|
57
|
+
parser (>= 3.2.2.3)
|
52
58
|
rainbow (>= 2.2.2, < 4.0)
|
53
59
|
regexp_parser (>= 1.8, < 3.0)
|
54
60
|
rexml (>= 3.2.5, < 4.0)
|
55
|
-
rubocop-ast (>= 1.
|
61
|
+
rubocop-ast (>= 1.28.1, < 2.0)
|
56
62
|
ruby-progressbar (~> 1.7)
|
57
63
|
unicode-display_width (>= 2.4.0, < 3.0)
|
58
|
-
rubocop-ast (1.
|
59
|
-
parser (>= 3.
|
64
|
+
rubocop-ast (1.29.0)
|
65
|
+
parser (>= 3.2.1.0)
|
60
66
|
rubocop-bsm (0.6.1)
|
61
67
|
rubocop (~> 1.0)
|
62
68
|
rubocop-performance
|
63
69
|
rubocop-rake
|
64
70
|
rubocop-rspec
|
65
|
-
rubocop-capybara (2.
|
71
|
+
rubocop-capybara (2.18.0)
|
66
72
|
rubocop (~> 1.41)
|
67
|
-
rubocop-
|
73
|
+
rubocop-factory_bot (2.24.0)
|
74
|
+
rubocop (~> 1.33)
|
75
|
+
rubocop-performance (1.19.1)
|
68
76
|
rubocop (>= 1.7.0, < 2.0)
|
69
77
|
rubocop-ast (>= 0.4.0)
|
70
78
|
rubocop-rake (0.6.0)
|
71
79
|
rubocop (~> 1.0)
|
72
|
-
rubocop-rspec (2.
|
80
|
+
rubocop-rspec (2.24.0)
|
73
81
|
rubocop (~> 1.33)
|
74
82
|
rubocop-capybara (~> 2.17)
|
75
|
-
|
76
|
-
|
83
|
+
rubocop-factory_bot (~> 2.22)
|
84
|
+
ruby-progressbar (1.13.0)
|
85
|
+
sqlite3 (1.6.6-x86_64-linux)
|
77
86
|
tzinfo (2.0.6)
|
78
87
|
concurrent-ruby (~> 1.0)
|
79
88
|
unicode-display_width (2.4.2)
|
80
|
-
zeitwerk (2.6.
|
89
|
+
zeitwerk (2.6.11)
|
81
90
|
|
82
91
|
PLATFORMS
|
83
92
|
x86_64-linux
|
84
93
|
|
85
94
|
DEPENDENCIES
|
86
95
|
activerecord (~> 6.1)
|
87
|
-
bundler
|
88
96
|
rake
|
89
97
|
rspec
|
90
98
|
rubocop
|
@@ -93,4 +101,4 @@ DEPENDENCIES
|
|
93
101
|
sqlite3
|
94
102
|
|
95
103
|
BUNDLED WITH
|
96
|
-
2.
|
104
|
+
2.4.4
|
data/lib/searchable_by/column.rb
CHANGED
@@ -58,8 +58,8 @@ module SearchableBy
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def escape_term!(term)
|
61
|
-
term.gsub!('%', '\%')
|
62
|
-
term.gsub!('_', '\_')
|
61
|
+
term.gsub!('%', '\%') # explicitly escaping any % chars, ignore CodeQL
|
62
|
+
term.gsub!('_', '\_') # explicitly escaping any _ chars, ignore CodeQL
|
63
63
|
term.gsub!(wildcard, '%') if wildcard
|
64
64
|
end
|
65
65
|
end
|
data/searchable-by.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'searchable-by'
|
3
|
-
s.version = '0.7.
|
3
|
+
s.version = '0.7.4'
|
4
4
|
s.authors = ['Dimitrij Denissenko']
|
5
5
|
s.email = ['dimitrij@blacksquaremedia.com']
|
6
6
|
s.summary = 'Generate search scopes'
|
@@ -10,10 +10,9 @@ Gem::Specification.new do |s|
|
|
10
10
|
|
11
11
|
s.files = `git ls-files -z`.split("\x0").reject {|f| f.start_with?('spec/') }
|
12
12
|
s.require_paths = ['lib']
|
13
|
-
s.required_ruby_version = '>=
|
13
|
+
s.required_ruby_version = '>= 3.0'
|
14
14
|
|
15
15
|
s.add_dependency 'activerecord'
|
16
|
-
s.add_development_dependency 'bundler'
|
17
16
|
s.metadata = {
|
18
17
|
'rubygems_mfa_required' => 'true',
|
19
18
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: searchable-by
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimitrij Denissenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
27
|
description: ActiveRecord plugin
|
42
28
|
email:
|
43
29
|
- dimitrij@blacksquaremedia.com
|
@@ -76,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
62
|
requirements:
|
77
63
|
- - ">="
|
78
64
|
- !ruby/object:Gem::Version
|
79
|
-
version: '
|
65
|
+
version: '3.0'
|
80
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
67
|
requirements:
|
82
68
|
- - ">="
|
83
69
|
- !ruby/object:Gem::Version
|
84
70
|
version: '0'
|
85
71
|
requirements: []
|
86
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.4.9
|
87
73
|
signing_key:
|
88
74
|
specification_version: 4
|
89
75
|
summary: Generate search scopes
|