searchable-by 0.7.2 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e4e441547e362a7212dd9d706a46b3f99501295ef996e1c053aac336bd3ad8e
4
- data.tar.gz: 34532895f83d269d8e8feefab72c7df489cd436cb2b7edb63d5a0f449407bfd4
3
+ metadata.gz: 4375ab9af1022472f0e5d8088a48c4289a4a3f4e2699c5731b365d8cca57f2f3
4
+ data.tar.gz: acf33c29fe2ab2450f507b6254b091e79002323d3ece1fc664b304083b4f2049
5
5
  SHA512:
6
- metadata.gz: aad7ba2ceb7972367e635d8f0c93e356421b1adb012d4803fc1b7aecf3b4a661fbf4381e9a71a6d0b96e972810dda5bf28efe1e6d00ef955a89569a46202f9e5
7
- data.tar.gz: ee7b3e43c8d8f89847bd9d61de69c85817ac99d250ad2d49f9850d8d10c1b2e9ba1315ce2dafab77c19652168371a1d3ecd8d95939383692a88eb8878ea13c0a
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,89 +1,95 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- searchable-by (0.7.2)
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.2)
11
- activesupport (= 7.0.4.2)
12
- activerecord (7.0.4.2)
13
- activemodel (= 7.0.4.2)
14
- activesupport (= 7.0.4.2)
15
- activesupport (7.0.4.2)
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
- concurrent-ruby (1.2.0)
21
+ base64 (0.1.1)
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.17.0)
28
- parallel (1.22.1)
29
- parser (3.2.0.0)
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.6.2)
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.0)
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.3)
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.44.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.24.1, < 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.24.1)
59
- parser (>= 3.1.1.0)
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.17.0)
70
+ rubocop-capybara (2.18.0)
66
71
  rubocop (~> 1.41)
67
- rubocop-performance (1.15.2)
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.18.1)
79
+ rubocop-rspec (2.24.0)
73
80
  rubocop (~> 1.33)
74
81
  rubocop-capybara (~> 2.17)
75
- ruby-progressbar (1.11.0)
76
- sqlite3 (1.6.0)
77
- mini_portile2 (~> 2.8.0)
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
- ruby
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.3.9
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.2)
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.2)
11
- activesupport (= 6.1.7.2)
12
- activerecord (6.1.7.2)
13
- activemodel (= 6.1.7.2)
14
- activesupport (= 6.1.7.2)
15
- activesupport (6.1.7.2)
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
- concurrent-ruby (1.2.0)
22
+ base64 (0.1.1)
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.17.0)
28
- parallel (1.22.1)
29
- parser (3.2.0.0)
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.6.2)
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.0)
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.3)
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.44.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.24.1, < 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.24.1)
59
- parser (>= 3.1.1.0)
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.17.0)
71
+ rubocop-capybara (2.18.0)
66
72
  rubocop (~> 1.41)
67
- rubocop-performance (1.15.2)
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.18.1)
80
+ rubocop-rspec (2.24.0)
73
81
  rubocop (~> 1.33)
74
82
  rubocop-capybara (~> 2.17)
75
- ruby-progressbar (1.11.0)
76
- sqlite3 (1.6.0-x86_64-linux)
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.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.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.2'
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 = '>= 2.7'
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.2
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-01-31 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
@@ -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: '2.7'
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.3.3
72
+ rubygems_version: 3.4.9
87
73
  signing_key:
88
74
  specification_version: 4
89
75
  summary: Generate search scopes