searchable-by 0.7.3 → 0.7.4

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: 7c281721470fe15890260c41f17094fc836d049b10e1771b0ad1beda82b2408e
4
- data.tar.gz: 287a4c13fc98808660319e0415c852ff492f4467098731e3379b8a68e52bd2f4
3
+ metadata.gz: 4375ab9af1022472f0e5d8088a48c4289a4a3f4e2699c5731b365d8cca57f2f3
4
+ data.tar.gz: acf33c29fe2ab2450f507b6254b091e79002323d3ece1fc664b304083b4f2049
5
5
  SHA512:
6
- metadata.gz: fe6861ab7d50ddc1151f287ec3f9fbf3e052566f0b999f9179e699bc25bca5f50a5120fabc7a8ec9cb2be764e24be5eea09cd709145a90a167b8b5f0cd4ffefa
7
- data.tar.gz: 47e232a71e1669c7c70185ad405d8cd89fbddedffc6131b2dbed1c2e31fe040b0bd06d271522721ab418765f3b376a6765e41215cbe51a7459749349376a1978
6
+ metadata.gz: de7abe0c35a39273a9da079ed535f2aaa237b09277502a4d1747715fa7964f505812f83f3348007c33396ae6f370f12265a1e997003dcdcc717f878e6437ef82
7
+ data.tar.gz: dbe70706986bf6c5fe9b13ea5acdd1e347d5b3838595a7d104d9755adf6501908266fac21c8a3fd493ee3e865b60591cc969642c84ca46cbfdb817bb10a114d0
@@ -11,7 +11,7 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- ruby-version: ["2.7", "3.0", "3.1", "3.2"]
14
+ ruby-version: ["3.0", "3.1", "3.2"]
15
15
  gemfiles: ["Gemfile", "Gemfile.rails6"]
16
16
  env:
17
17
  BUNDLE_GEMFILE: ${{ matrix.gemfile }}
data/.rubocop.yml CHANGED
@@ -6,7 +6,7 @@ inherit_mode:
6
6
  - Exclude
7
7
 
8
8
  AllCops:
9
- TargetRubyVersion: "2.7"
9
+ TargetRubyVersion: "3.0"
10
10
 
11
11
  Naming/FileName:
12
12
  Exclude:
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'http://rubygems.org'
1
+ source 'https://rubygems.org'
2
2
  gemspec
3
3
 
4
4
  gem 'rake'
data/Gemfile.lock CHANGED
@@ -1,86 +1,93 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- searchable-by (0.7.3)
4
+ searchable-by (0.7.4)
5
5
  activerecord
6
6
 
7
7
  GEM
8
- remote: http://rubygems.org/
8
+ remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (7.0.4.3)
11
- activesupport (= 7.0.4.3)
12
- activerecord (7.0.4.3)
13
- activemodel (= 7.0.4.3)
14
- activesupport (= 7.0.4.3)
15
- activesupport (7.0.4.3)
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
+ base64 (0.1.1)
21
22
  concurrent-ruby (1.2.2)
22
23
  diff-lcs (1.5.0)
23
- i18n (1.12.0)
24
+ i18n (1.14.1)
24
25
  concurrent-ruby (~> 1.0)
25
26
  json (2.6.3)
26
- mini_portile2 (2.8.1)
27
- minitest (5.18.0)
28
- parallel (1.22.1)
29
- parser (3.2.1.1)
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.7.0)
34
- rexml (3.2.5)
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.1)
42
+ rspec-core (3.12.2)
40
43
  rspec-support (~> 3.12.0)
41
- rspec-expectations (3.12.2)
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.4)
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.0)
48
- rubocop (1.48.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.0.0)
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.26.0, < 2.0)
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.27.0)
63
+ rubocop-ast (1.29.0)
59
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.17.1)
70
+ rubocop-capybara (2.18.0)
66
71
  rubocop (~> 1.41)
67
- rubocop-performance (1.16.0)
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.19.0)
79
+ rubocop-rspec (2.24.0)
73
80
  rubocop (~> 1.33)
74
81
  rubocop-capybara (~> 2.17)
82
+ rubocop-factory_bot (~> 2.22)
75
83
  ruby-progressbar (1.13.0)
76
- sqlite3 (1.6.1)
77
- mini_portile2 (~> 2.8.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
- ruby
90
+ x86_64-linux
84
91
 
85
92
  DEPENDENCIES
86
93
  rake
@@ -91,4 +98,4 @@ DEPENDENCIES
91
98
  sqlite3
92
99
 
93
100
  BUNDLED WITH
94
- 2.3.9
101
+ 2.4.4
data/Gemfile.rails6.lock CHANGED
@@ -1,83 +1,92 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- searchable-by (0.7.3)
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.3)
11
- activesupport (= 6.1.7.3)
12
- activerecord (6.1.7.3)
13
- activemodel (= 6.1.7.3)
14
- activesupport (= 6.1.7.3)
15
- activesupport (6.1.7.3)
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
+ base64 (0.1.1)
22
23
  concurrent-ruby (1.2.2)
23
24
  diff-lcs (1.5.0)
24
- i18n (1.12.0)
25
+ i18n (1.14.1)
25
26
  concurrent-ruby (~> 1.0)
26
27
  json (2.6.3)
27
- minitest (5.18.0)
28
- parallel (1.22.1)
29
- parser (3.2.1.1)
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.7.0)
34
- rexml (3.2.5)
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.1)
43
+ rspec-core (3.12.2)
40
44
  rspec-support (~> 3.12.0)
41
- rspec-expectations (3.12.2)
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.4)
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.0)
48
- rubocop (1.48.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.0.0)
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.26.0, < 2.0)
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.27.0)
64
+ rubocop-ast (1.29.0)
59
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.17.1)
71
+ rubocop-capybara (2.18.0)
66
72
  rubocop (~> 1.41)
67
- rubocop-performance (1.16.0)
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.19.0)
80
+ rubocop-rspec (2.24.0)
73
81
  rubocop (~> 1.33)
74
82
  rubocop-capybara (~> 2.17)
83
+ rubocop-factory_bot (~> 2.22)
75
84
  ruby-progressbar (1.13.0)
76
- sqlite3 (1.6.1-x86_64-linux)
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.7)
89
+ zeitwerk (2.6.11)
81
90
 
82
91
  PLATFORMS
83
92
  x86_64-linux
@@ -92,4 +101,4 @@ DEPENDENCIES
92
101
  sqlite3
93
102
 
94
103
  BUNDLED WITH
95
- 2.3.9
104
+ 2.4.4
@@ -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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'searchable-by'
3
- s.version = '0.7.3'
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,7 +10,7 @@ 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 = '>= 2.7'
13
+ s.required_ruby_version = '>= 3.0'
14
14
 
15
15
  s.add_dependency 'activerecord'
16
16
  s.metadata = {
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.3
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-03-28 00:00:00.000000000 Z
11
+ date: 2023-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -62,7 +62,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.7'
65
+ version: '3.0'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="