pursuit 0.4.2 → 0.4.5

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: 33d8d69593b2a4d0958be760e1fb12b1bcfe6f6fef61cb76ab81f29c57849fe9
4
- data.tar.gz: 04a6f91a0a5d0ed66390fdb389c64344ab15c32547755fa8b1b54c33449479d8
3
+ metadata.gz: 3de94df3d5b52d4c91443ae748a3abb79e64a46aee742af05d81f38dc3c050b6
4
+ data.tar.gz: c41d2d0a0498b08fa938046973bd459856253e78159e7f71256f0d33ce6b0c61
5
5
  SHA512:
6
- metadata.gz: 205bf48c72a98dcf57a95483d25722bee933a23e570c00e7dfa1aabeb4cb6e8cf78e59e87526052357fd42590955c7b9a18f867abf0e6bb8f95d009faf0f1820
7
- data.tar.gz: fa909dbe9e34a411c6131e74c22bdf005dd664fef89d6fb3b63b3a8853b5c92080a8f358b081c1ff589235ffd358a9b31fd50b4f7a027750b8bf3ce4709461b6
6
+ metadata.gz: 488e5ac1cf2b9d4368608d179134f16945450de39560c07671909c3dbdf2c736afe528ec0b319d9b673ff4f990272b3d9678c22a1748f64f8f526b35a7ff554c
7
+ data.tar.gz: 78178098bb90e01510d2bb741a7bc5994ea307d5e79fb47e45cf1e476a91a2cd1dc6df2b70423530a4a7aca93e29f1c3e16b6c80a03c3538158043b5330ff32d
data/.rubocop.yml CHANGED
@@ -1,21 +1,36 @@
1
+ require:
2
+ - rubocop-rake
3
+ - rubocop-rspec
4
+
1
5
  AllCops:
2
6
  Exclude:
3
7
  - 'bin/**/*'
8
+ NewCops: enable
9
+ TargetRubyVersion: 2.6.0
10
+
11
+ Layout/LineLength:
12
+ Max: 120
4
13
 
5
14
  Metrics/AbcSize:
6
15
  Max: 30
7
16
 
8
- Metrics/LineLength:
9
- Max: 120
10
-
11
17
  Metrics/BlockLength:
12
- Enabled: false
18
+ Max: 50
13
19
 
14
20
  Metrics/ClassLength:
15
- Enabled: false
21
+ Max: 500
16
22
 
17
23
  Metrics/MethodLength:
18
- Enabled: false
24
+ Max: 50
25
+
26
+ RSpec/ExampleLength:
27
+ Max: 20
28
+
29
+ RSpec/MultipleMemoizedHelpers:
30
+ Max: 20
31
+
32
+ RSpec/NestedGroups:
33
+ Max: 5
19
34
 
20
35
  Style/Documentation:
21
36
  Enabled: false
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.0
1
+ 3.2.2
data/.travis.yml CHANGED
@@ -1,10 +1,12 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 3.0.2
3
+ - 3.2.2
4
4
  gemfile:
5
5
  - travis/gemfiles/5.2.gemfile
6
6
  - travis/gemfiles/6.0.gemfile
7
7
  - travis/gemfiles/6.1.gemfile
8
+ - travis/gemfiles/7.0.gemfile
9
+ - travis/gemfiles/7.1.gemfile
8
10
  services:
9
11
  - postgresql
10
12
  before_install:
@@ -13,11 +15,11 @@ before_install:
13
15
  before_script:
14
16
  - psql -c 'CREATE DATABASE pursuit_test;' -U postgres
15
17
  addons:
16
- postgresql: 14
18
+ postgresql: 16
17
19
  apt:
18
20
  packages:
19
- - postgresql-14
20
- - postgresql-client-14
21
+ - postgresql-16
22
+ - postgresql-client-16
21
23
  env:
22
24
  global:
23
25
  - DATABASE_URL="postgresql://127.0.0.1:5432/pursuit_test"
data/Gemfile CHANGED
@@ -3,3 +3,17 @@
3
3
  source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
+
7
+ gem 'bundler', '~> 2.4'
8
+ gem 'combustion', '~> 1.3'
9
+ gem 'guard', '~> 2.18'
10
+ gem 'guard-rspec', '~> 4.7'
11
+ gem 'pry', '~> 0.14'
12
+ gem 'rake', '~> 13.0'
13
+ gem 'rspec', '~> 3.12'
14
+ gem 'rspec-rails', '~> 6.0'
15
+ gem 'rubocop', '~> 1.57'
16
+ gem 'rubocop-rake', '~> 0.6'
17
+ gem 'rubocop-rspec', '~> 2.25'
18
+ gem 'sqlite3', '~> 1.6'
19
+ gem 'yard', '~> 0.9'
data/Gemfile.lock CHANGED
@@ -1,50 +1,63 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pursuit (0.4.2)
5
- activerecord (>= 5.2.0, < 7.1.0)
6
- activesupport (>= 5.2.0, < 7.1.0)
4
+ pursuit (0.4.5)
5
+ activerecord (>= 5.2.0, < 7.2.0)
6
+ activesupport (>= 5.2.0, < 7.2.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionpack (7.0.1)
12
- actionview (= 7.0.1)
13
- activesupport (= 7.0.1)
14
- rack (~> 2.0, >= 2.2.0)
11
+ actionpack (7.1.1)
12
+ actionview (= 7.1.1)
13
+ activesupport (= 7.1.1)
14
+ nokogiri (>= 1.8.5)
15
+ rack (>= 2.2.4)
16
+ rack-session (>= 1.0.1)
15
17
  rack-test (>= 0.6.3)
16
- rails-dom-testing (~> 2.0)
17
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
18
- actionview (7.0.1)
19
- activesupport (= 7.0.1)
18
+ rails-dom-testing (~> 2.2)
19
+ rails-html-sanitizer (~> 1.6)
20
+ actionview (7.1.1)
21
+ activesupport (= 7.1.1)
20
22
  builder (~> 3.1)
21
- erubi (~> 1.4)
22
- rails-dom-testing (~> 2.0)
23
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
24
- activemodel (7.0.1)
25
- activesupport (= 7.0.1)
26
- activerecord (7.0.1)
27
- activemodel (= 7.0.1)
28
- activesupport (= 7.0.1)
29
- activesupport (7.0.1)
23
+ erubi (~> 1.11)
24
+ rails-dom-testing (~> 2.2)
25
+ rails-html-sanitizer (~> 1.6)
26
+ activemodel (7.1.1)
27
+ activesupport (= 7.1.1)
28
+ activerecord (7.1.1)
29
+ activemodel (= 7.1.1)
30
+ activesupport (= 7.1.1)
31
+ timeout (>= 0.4.0)
32
+ activesupport (7.1.1)
33
+ base64
34
+ bigdecimal
30
35
  concurrent-ruby (~> 1.0, >= 1.0.2)
36
+ connection_pool (>= 2.2.5)
37
+ drb
31
38
  i18n (>= 1.6, < 2)
32
39
  minitest (>= 5.1)
40
+ mutex_m
33
41
  tzinfo (~> 2.0)
34
42
  ast (2.4.2)
43
+ base64 (0.1.1)
44
+ bigdecimal (3.1.4)
35
45
  builder (3.2.4)
36
46
  coderay (1.1.3)
37
- combustion (1.3.5)
47
+ combustion (1.3.7)
38
48
  activesupport (>= 3.0.0)
39
49
  railties (>= 3.0.0)
40
50
  thor (>= 0.14.6)
41
- concurrent-ruby (1.1.9)
51
+ concurrent-ruby (1.2.2)
52
+ connection_pool (2.4.1)
42
53
  crass (1.0.6)
43
54
  diff-lcs (1.5.0)
44
- erubi (1.10.0)
45
- ffi (1.15.5)
55
+ drb (2.1.1)
56
+ ruby2_keywords
57
+ erubi (1.12.0)
58
+ ffi (1.16.3)
46
59
  formatador (1.1.0)
47
- guard (2.18.0)
60
+ guard (2.18.1)
48
61
  formatador (>= 0.2.4)
49
62
  listen (>= 2.7, < 4.0)
50
63
  lumberjack (>= 1.0.12, < 2.0)
@@ -58,110 +71,162 @@ GEM
58
71
  guard (~> 2.1)
59
72
  guard-compat (~> 1.1)
60
73
  rspec (>= 2.99.0, < 4.0)
61
- i18n (1.9.1)
74
+ i18n (1.14.1)
62
75
  concurrent-ruby (~> 1.0)
63
- listen (3.7.1)
76
+ io-console (0.6.0)
77
+ irb (1.8.3)
78
+ rdoc
79
+ reline (>= 0.3.8)
80
+ json (2.6.3)
81
+ language_server-protocol (3.17.0.3)
82
+ listen (3.8.0)
64
83
  rb-fsevent (~> 0.10, >= 0.10.3)
65
84
  rb-inotify (~> 0.9, >= 0.9.10)
66
- loofah (2.13.0)
85
+ loofah (2.21.4)
67
86
  crass (~> 1.0.2)
68
- nokogiri (>= 1.5.9)
69
- lumberjack (1.2.8)
87
+ nokogiri (>= 1.12.0)
88
+ lumberjack (1.2.9)
70
89
  method_source (1.0.0)
71
- minitest (5.15.0)
90
+ minitest (5.20.0)
91
+ mutex_m (0.1.2)
72
92
  nenv (0.3.0)
73
- nokogiri (1.13.1-x86_64-darwin)
93
+ nokogiri (1.15.4-aarch64-linux)
94
+ racc (~> 1.4)
95
+ nokogiri (1.15.4-arm64-darwin)
96
+ racc (~> 1.4)
97
+ nokogiri (1.15.4-x86_64-darwin)
98
+ racc (~> 1.4)
99
+ nokogiri (1.15.4-x86_64-linux)
74
100
  racc (~> 1.4)
75
101
  notiffany (0.1.3)
76
102
  nenv (~> 0.1)
77
103
  shellany (~> 0.0)
78
- parallel (1.21.0)
79
- parser (3.1.0.0)
104
+ parallel (1.23.0)
105
+ parser (3.2.2.4)
80
106
  ast (~> 2.4.1)
81
- pry (0.14.1)
107
+ racc
108
+ pry (0.14.2)
82
109
  coderay (~> 1.1)
83
110
  method_source (~> 1.0)
84
- racc (1.6.0)
85
- rack (2.2.3)
86
- rack-test (1.1.0)
87
- rack (>= 1.0, < 3)
88
- rails-dom-testing (2.0.3)
89
- activesupport (>= 4.2.0)
111
+ psych (5.1.1.1)
112
+ stringio
113
+ racc (1.7.1)
114
+ rack (3.0.8)
115
+ rack-session (2.0.0)
116
+ rack (>= 3.0.0)
117
+ rack-test (2.1.0)
118
+ rack (>= 1.3)
119
+ rackup (2.1.0)
120
+ rack (>= 3)
121
+ webrick (~> 1.8)
122
+ rails-dom-testing (2.2.0)
123
+ activesupport (>= 5.0.0)
124
+ minitest
90
125
  nokogiri (>= 1.6)
91
- rails-html-sanitizer (1.4.2)
92
- loofah (~> 2.3)
93
- railties (7.0.1)
94
- actionpack (= 7.0.1)
95
- activesupport (= 7.0.1)
96
- method_source
126
+ rails-html-sanitizer (1.6.0)
127
+ loofah (~> 2.21)
128
+ nokogiri (~> 1.14)
129
+ railties (7.1.1)
130
+ actionpack (= 7.1.1)
131
+ activesupport (= 7.1.1)
132
+ irb
133
+ rackup (>= 1.0.0)
97
134
  rake (>= 12.2)
98
- thor (~> 1.0)
99
- zeitwerk (~> 2.5)
135
+ thor (~> 1.0, >= 1.2.2)
136
+ zeitwerk (~> 2.6)
100
137
  rainbow (3.1.1)
101
138
  rake (13.0.6)
102
- rb-fsevent (0.11.0)
139
+ rb-fsevent (0.11.2)
103
140
  rb-inotify (0.10.1)
104
141
  ffi (~> 1.0)
105
- regexp_parser (2.2.0)
106
- rexml (3.2.5)
107
- rspec (3.10.0)
108
- rspec-core (~> 3.10.0)
109
- rspec-expectations (~> 3.10.0)
110
- rspec-mocks (~> 3.10.0)
111
- rspec-core (3.10.2)
112
- rspec-support (~> 3.10.0)
113
- rspec-expectations (3.10.2)
142
+ rdoc (6.5.0)
143
+ psych (>= 4.0.0)
144
+ regexp_parser (2.8.2)
145
+ reline (0.3.9)
146
+ io-console (~> 0.5)
147
+ rexml (3.2.6)
148
+ rspec (3.12.0)
149
+ rspec-core (~> 3.12.0)
150
+ rspec-expectations (~> 3.12.0)
151
+ rspec-mocks (~> 3.12.0)
152
+ rspec-core (3.12.2)
153
+ rspec-support (~> 3.12.0)
154
+ rspec-expectations (3.12.3)
114
155
  diff-lcs (>= 1.2.0, < 2.0)
115
- rspec-support (~> 3.10.0)
116
- rspec-mocks (3.10.3)
156
+ rspec-support (~> 3.12.0)
157
+ rspec-mocks (3.12.6)
117
158
  diff-lcs (>= 1.2.0, < 2.0)
118
- rspec-support (~> 3.10.0)
119
- rspec-rails (5.1.0)
120
- actionpack (>= 5.2)
121
- activesupport (>= 5.2)
122
- railties (>= 5.2)
123
- rspec-core (~> 3.10)
124
- rspec-expectations (~> 3.10)
125
- rspec-mocks (~> 3.10)
126
- rspec-support (~> 3.10)
127
- rspec-support (3.10.3)
128
- rubocop (1.25.0)
159
+ rspec-support (~> 3.12.0)
160
+ rspec-rails (6.0.3)
161
+ actionpack (>= 6.1)
162
+ activesupport (>= 6.1)
163
+ railties (>= 6.1)
164
+ rspec-core (~> 3.12)
165
+ rspec-expectations (~> 3.12)
166
+ rspec-mocks (~> 3.12)
167
+ rspec-support (~> 3.12)
168
+ rspec-support (3.12.1)
169
+ rubocop (1.57.2)
170
+ json (~> 2.3)
171
+ language_server-protocol (>= 3.17.0)
129
172
  parallel (~> 1.10)
130
- parser (>= 3.1.0.0)
173
+ parser (>= 3.2.2.4)
131
174
  rainbow (>= 2.2.2, < 4.0)
132
175
  regexp_parser (>= 1.8, < 3.0)
133
- rexml
134
- rubocop-ast (>= 1.15.1, < 2.0)
176
+ rexml (>= 3.2.5, < 4.0)
177
+ rubocop-ast (>= 1.28.1, < 2.0)
135
178
  ruby-progressbar (~> 1.7)
136
- unicode-display_width (>= 1.4.0, < 3.0)
137
- rubocop-ast (1.15.1)
138
- parser (>= 3.0.1.1)
139
- ruby-progressbar (1.11.0)
179
+ unicode-display_width (>= 2.4.0, < 3.0)
180
+ rubocop-ast (1.30.0)
181
+ parser (>= 3.2.1.0)
182
+ rubocop-capybara (2.19.0)
183
+ rubocop (~> 1.41)
184
+ rubocop-factory_bot (2.24.0)
185
+ rubocop (~> 1.33)
186
+ rubocop-rake (0.6.0)
187
+ rubocop (~> 1.0)
188
+ rubocop-rspec (2.25.0)
189
+ rubocop (~> 1.40)
190
+ rubocop-capybara (~> 2.17)
191
+ rubocop-factory_bot (~> 2.22)
192
+ ruby-progressbar (1.13.0)
193
+ ruby2_keywords (0.0.5)
140
194
  shellany (0.0.1)
141
- sqlite3 (1.4.2)
142
- thor (1.2.1)
143
- tzinfo (2.0.4)
195
+ sqlite3 (1.6.7-aarch64-linux)
196
+ sqlite3 (1.6.7-arm64-darwin)
197
+ sqlite3 (1.6.7-x86_64-darwin)
198
+ sqlite3 (1.6.7-x86_64-linux)
199
+ stringio (3.0.8)
200
+ thor (1.3.0)
201
+ timeout (0.4.0)
202
+ tzinfo (2.0.6)
144
203
  concurrent-ruby (~> 1.0)
145
- unicode-display_width (2.1.0)
146
- webrick (1.7.0)
147
- yard (0.9.27)
148
- webrick (~> 1.7.0)
149
- zeitwerk (2.5.4)
204
+ unicode-display_width (2.5.0)
205
+ webrick (1.8.1)
206
+ yard (0.9.34)
207
+ zeitwerk (2.6.12)
150
208
 
151
209
  PLATFORMS
210
+ aarch64-linux
211
+ arm64-darwin-22
152
212
  x86_64-darwin-21
213
+ x86_64-linux
153
214
 
154
215
  DEPENDENCIES
155
- bundler (~> 2.0)
216
+ bundler (~> 2.4)
156
217
  combustion (~> 1.3)
218
+ guard (~> 2.18)
157
219
  guard-rspec (~> 4.7)
220
+ pry (~> 0.14)
158
221
  pursuit!
159
222
  rake (~> 13.0)
160
- rspec (~> 3.10)
161
- rspec-rails (~> 5.0)
162
- rubocop (~> 1.25)
163
- sqlite3 (~> 1.4)
223
+ rspec (~> 3.12)
224
+ rspec-rails (~> 6.0)
225
+ rubocop (~> 1.57)
226
+ rubocop-rake (~> 0.6)
227
+ rubocop-rspec (~> 2.25)
228
+ sqlite3 (~> 1.6)
164
229
  yard (~> 0.9)
165
230
 
166
231
  BUNDLED WITH
167
- 2.3.3
232
+ 2.4.12
data/LICENSE CHANGED
@@ -1,21 +1,174 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 Nialto Services
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
data/config.ru CHANGED
@@ -3,7 +3,6 @@
3
3
  require 'rubygems'
4
4
  require 'bundler'
5
5
 
6
- Bundler.require :default, :development
7
-
8
- Combustion.initialize! :all
6
+ Bundler.require(:default, :development)
7
+ Combustion.initialize!(:all)
9
8
  run Combustion::Application
@@ -3,5 +3,5 @@
3
3
  module Pursuit
4
4
  # @return [String] The gem's semantic version number.
5
5
  #
6
- VERSION = '0.4.2'
6
+ VERSION = '0.4.5'
7
7
  end
@@ -41,7 +41,7 @@ module Pursuit
41
41
  return nil if value.blank?
42
42
 
43
43
  sanitized_value = "%#{ActiveRecord::Base.sanitize_sql_like(value)}%"
44
- options.unkeyed_attributes.reduce(nil) do |chain, (attribute_name, node_builder)|
44
+ options.unkeyed_attributes.reduce(nil) do |chain, (_attribute_name, node_builder)|
45
45
  node = node_builder.call.matches(sanitized_value)
46
46
  chain ? chain.or(node) : node
47
47
  end
@@ -65,7 +65,7 @@ module Pursuit
65
65
  end
66
66
  end
67
67
 
68
- def build_arel_for_node(node, operator, value)
68
+ def build_arel_for_node(node, operator, value) # rubocop:disable Metrics/CyclomaticComplexity
69
69
  sanitized_value = ActiveRecord::Base.sanitize_sql_like(value)
70
70
  sanitized_value = sanitized_value.to_i if sanitized_value =~ /^[0-9]+$/
71
71
 
@@ -120,6 +120,7 @@ module Pursuit
120
120
  )
121
121
  end
122
122
 
123
+ # rubocop:disable Metrics/AbcSize
123
124
  def build_arel_for_has_reflection_join(reflection)
124
125
  reflection_table = reflection.klass.arel_table
125
126
  reflection_through = reflection.through_reflection
@@ -143,8 +144,9 @@ module Pursuit
143
144
  )
144
145
  end
145
146
  end
147
+ # rubocop:enable Metrics/AbcSize
146
148
 
147
- def build_arel_for_relation_count(nodes, operator, value)
149
+ def build_arel_for_relation_count(nodes, operator, value) # rubocop:disable Metrics/CyclomaticComplexity
148
150
  node_builder = proc do |klass|
149
151
  count = ActiveRecord::Base.sanitize_sql_like(value).to_i
150
152
  klass.new(nodes.project(Arel.star.count), count)
@@ -28,7 +28,7 @@ module Pursuit
28
28
  @relations = {}
29
29
  @attributes = {}
30
30
 
31
- block.call(self) if block
31
+ block&.call(self)
32
32
  end
33
33
 
34
34
  # @return [Hash<Symbol, Proc>] The attributes which can be queried using a keyed term.
data/lib/pursuit.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'pursuit/constants'
4
- require 'pursuit/search_options'
5
- require 'pursuit/search_term_parser'
6
- require 'pursuit/search'
7
- require 'pursuit/railtie' if defined?(Rails::Railtie)
3
+ require_relative 'pursuit/constants'
4
+ require_relative 'pursuit/search_options'
5
+ require_relative 'pursuit/search_term_parser'
6
+ require_relative 'pursuit/search'
7
+ require_relative 'pursuit/railtie' if defined?(Rails::Railtie)
data/pursuit.gemspec CHANGED
@@ -13,24 +13,16 @@ Gem::Specification.new do |spec|
13
13
 
14
14
  spec.summary = 'Advanced key-based searching for ActiveRecord objects.'
15
15
  spec.homepage = 'https://github.com/nialtoservices/pursuit'
16
- spec.license = 'MIT'
16
+ spec.license = 'Apache-2.0'
17
17
 
18
18
  spec.files = `git ls-files -z`.split("\x0")
19
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
19
  spec.require_paths = ['lib']
21
20
 
21
+ spec.required_ruby_version = '>= 2.6.0'
22
+
23
+ spec.metadata['rubygems_mfa_required'] = 'true'
22
24
  spec.metadata['yard.run'] = 'yri'
23
25
 
24
- spec.add_runtime_dependency 'activerecord', '>= 5.2.0', '< 7.1.0'
25
- spec.add_runtime_dependency 'activesupport', '>= 5.2.0', '< 7.1.0'
26
-
27
- spec.add_development_dependency 'bundler', '~> 2.0'
28
- spec.add_development_dependency 'combustion', '~> 1.3'
29
- spec.add_development_dependency 'guard-rspec', '~> 4.7'
30
- spec.add_development_dependency 'rake', '~> 13.0'
31
- spec.add_development_dependency 'rspec', '~> 3.10'
32
- spec.add_development_dependency 'rspec-rails', '~> 5.0'
33
- spec.add_development_dependency 'rubocop', '~> 1.25'
34
- spec.add_development_dependency 'yard', '~> 0.9'
35
- spec.add_development_dependency 'sqlite3', '~> 1.4'
26
+ spec.add_runtime_dependency 'activerecord', '>= 5.2.0', '< 7.2.0'
27
+ spec.add_runtime_dependency 'activesupport', '>= 5.2.0', '< 7.2.0'
36
28
  end
@@ -14,9 +14,7 @@ class Product < ActiveRecord::Base
14
14
  o.attribute :description
15
15
  o.attribute :rating, unkeyed: false
16
16
  o.attribute :title_length, unkeyed: false do
17
- Arel::Nodes::NamedFunction.new('LENGTH', [
18
- arel_table[:title]
19
- ])
17
+ Arel::Nodes::NamedFunction.new('LENGTH', [arel_table[:title]])
20
18
  end
21
19
 
22
20
  o.attribute :category, :category_id
@@ -5,9 +5,7 @@ RSpec.describe Pursuit::SearchOptions do
5
5
 
6
6
  let(:title_length_node_builder) do
7
7
  proc do
8
- Arel::Nodes::NamedFunction.new('LENGTH', [
9
- Product.arel_table[:title]
10
- ])
8
+ Arel::Nodes::NamedFunction.new('LENGTH', [Product.arel_table[:title]])
11
9
  end
12
10
  end
13
11
 
@@ -88,7 +86,7 @@ RSpec.describe Pursuit::SearchOptions do
88
86
  describe '#attribute' do
89
87
  subject(:attribute) { search_options.attribute(:description) }
90
88
 
91
- it { is_expected.to eq(nil) }
89
+ it { is_expected.to be_nil }
92
90
 
93
91
  it 'is expected to add the attribute to #attributes' do
94
92
  expect { attribute }.to change(search_options.attributes, :keys).from([]).to(%i[description])
@@ -96,12 +94,12 @@ RSpec.describe Pursuit::SearchOptions do
96
94
 
97
95
  it 'is expected to allow keyed searching by default' do
98
96
  attribute
99
- expect(search_options.attributes[:description].keyed).to eq(true)
97
+ expect(search_options.attributes[:description].keyed).to be(true)
100
98
  end
101
99
 
102
100
  it 'is expected to allow unkeyed searching by default' do
103
101
  attribute
104
- expect(search_options.attributes[:description].unkeyed).to eq(true)
102
+ expect(search_options.attributes[:description].unkeyed).to be(true)
105
103
  end
106
104
 
107
105
  it 'is expected to query the #term_name attribute' do
@@ -123,7 +121,7 @@ RSpec.describe Pursuit::SearchOptions do
123
121
 
124
122
  it 'is expected to disallow keyed searching' do
125
123
  attribute
126
- expect(search_options.attributes[:description].keyed).to eq(false)
124
+ expect(search_options.attributes[:description].keyed).to be(false)
127
125
  end
128
126
  end
129
127
 
@@ -132,7 +130,7 @@ RSpec.describe Pursuit::SearchOptions do
132
130
 
133
131
  it 'is expected to disallow unkeyed searching' do
134
132
  attribute
135
- expect(search_options.attributes[:description].unkeyed).to eq(false)
133
+ expect(search_options.attributes[:description].unkeyed).to be(false)
136
134
  end
137
135
  end
138
136
 
@@ -12,9 +12,7 @@ RSpec.describe Pursuit::Search do
12
12
  o.attribute :description
13
13
  o.attribute :rating, unkeyed: false
14
14
  o.attribute :title_length, unkeyed: false do
15
- Arel::Nodes::NamedFunction.new('LENGTH', [
16
- Product.arel_table[:title]
17
- ])
15
+ Arel::Nodes::NamedFunction.new('LENGTH', [Product.arel_table[:title]])
18
16
  end
19
17
 
20
18
  o.attribute :cat, :category_id
@@ -130,7 +128,7 @@ RSpec.describe Pursuit::Search do
130
128
  end
131
129
  end
132
130
 
133
- context 'when passed a `not equal to` keyed attribute query' do
131
+ context 'when passed a numeric `not equal to` keyed attribute query' do
134
132
  let(:query) { 'rating!=2' }
135
133
 
136
134
  let(:product_a) { Product.create!(title: 'Plain Shirt', rating: 2) }
@@ -20,13 +20,15 @@ RSpec.describe Pursuit::SearchTermParser do
20
20
  subject(:keyed_terms) { parser.keyed_terms }
21
21
 
22
22
  it 'is expected to eq the correct keyed terms' do
23
- expect(keyed_terms).to eq([
24
- Pursuit::SearchTermParser::KeyedTerm.new('title', '!=', 'Socks'),
25
- Pursuit::SearchTermParser::KeyedTerm.new('description', '*=', 'green'),
26
- Pursuit::SearchTermParser::KeyedTerm.new('stock_status', '==', 'in_stock'),
27
- Pursuit::SearchTermParser::KeyedTerm.new('rating', '>=', '2'),
28
- Pursuit::SearchTermParser::KeyedTerm.new('rating', '<', '5')
29
- ])
23
+ expect(keyed_terms).to eq(
24
+ [
25
+ Pursuit::SearchTermParser::KeyedTerm.new('title', '!=', 'Socks'),
26
+ Pursuit::SearchTermParser::KeyedTerm.new('description', '*=', 'green'),
27
+ Pursuit::SearchTermParser::KeyedTerm.new('stock_status', '==', 'in_stock'),
28
+ Pursuit::SearchTermParser::KeyedTerm.new('rating', '>=', '2'),
29
+ Pursuit::SearchTermParser::KeyedTerm.new('rating', '<', '5')
30
+ ]
31
+ )
30
32
  end
31
33
  end
32
34
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.describe Pursuit do
4
+ describe '::VERSION' do
5
+ subject(:version) { described_class::VERSION }
6
+
7
+ it 'is expected to be a semantic version' do
8
+ expect(version).to match(/[0-9]+\.[0-9]+\.[0-9]+/)
9
+ end
10
+ end
11
+ end
data/spec/spec_helper.rb CHANGED
@@ -13,13 +13,12 @@
13
13
  # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
14
14
 
15
15
  require 'combustion'
16
- Combustion.initialize! :active_record
16
+ Combustion.initialize!(:active_record)
17
17
 
18
18
  require 'bundler'
19
- Bundler.require :default, :development
19
+ Bundler.require(:default, :development)
20
20
 
21
21
  require 'rspec/rails'
22
-
23
22
  RSpec.configure do |config|
24
23
  # rspec-expectations config goes here. You can use an alternate assertion/expectation library such as wrong or the
25
24
  # stdlib/minitest assertions if you prefer.
@@ -65,7 +64,7 @@ RSpec.configure do |config|
65
64
  config.disable_monkey_patching!
66
65
 
67
66
  # Retrieve the default formatter from the current environment.
68
- default_formatter = ENV['RSPEC_DEFAULT_FORMATTER']
67
+ default_formatter = ENV.fetch('RSPEC_DEFAULT_FORMATTER', nil)
69
68
 
70
69
  if default_formatter.is_a?(String) && !default_formatter.empty?
71
70
  config.default_formatter = default_formatter
@@ -92,4 +91,4 @@ RSpec.configure do |config|
92
91
  Kernel.srand config.seed
93
92
  end
94
93
 
95
- Dir[File.expand_path('support/**/*.rb', __dir__)].each { |path| require(path) }
94
+ Dir[File.expand_path('support/**/*.rb', __dir__)].sort.each { |path| require(path) }
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec path: '../../'
6
+
7
+ gem 'activerecord', '~> 7.0.0'
8
+ gem 'activesupport', '~> 7.0.0'
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec path: '../../'
6
+
7
+ gem 'activerecord', '~> 7.1.0'
8
+ gem 'activesupport', '~> 7.1.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pursuit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nialto Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-31 00:00:00.000000000 Z
11
+ date: 2023-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 5.2.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 7.1.0
22
+ version: 7.2.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 5.2.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 7.1.0
32
+ version: 7.2.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: activesupport
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: 5.2.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: 7.1.0
42
+ version: 7.2.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,133 +49,7 @@ dependencies:
49
49
  version: 5.2.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: 7.1.0
53
- - !ruby/object:Gem::Dependency
54
- name: bundler
55
- requirement: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '2.0'
60
- type: :development
61
- prerelease: false
62
- version_requirements: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - "~>"
65
- - !ruby/object:Gem::Version
66
- version: '2.0'
67
- - !ruby/object:Gem::Dependency
68
- name: combustion
69
- requirement: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - "~>"
72
- - !ruby/object:Gem::Version
73
- version: '1.3'
74
- type: :development
75
- prerelease: false
76
- version_requirements: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - "~>"
79
- - !ruby/object:Gem::Version
80
- version: '1.3'
81
- - !ruby/object:Gem::Dependency
82
- name: guard-rspec
83
- requirement: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - "~>"
86
- - !ruby/object:Gem::Version
87
- version: '4.7'
88
- type: :development
89
- prerelease: false
90
- version_requirements: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - "~>"
93
- - !ruby/object:Gem::Version
94
- version: '4.7'
95
- - !ruby/object:Gem::Dependency
96
- name: rake
97
- requirement: !ruby/object:Gem::Requirement
98
- requirements:
99
- - - "~>"
100
- - !ruby/object:Gem::Version
101
- version: '13.0'
102
- type: :development
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- requirements:
106
- - - "~>"
107
- - !ruby/object:Gem::Version
108
- version: '13.0'
109
- - !ruby/object:Gem::Dependency
110
- name: rspec
111
- requirement: !ruby/object:Gem::Requirement
112
- requirements:
113
- - - "~>"
114
- - !ruby/object:Gem::Version
115
- version: '3.10'
116
- type: :development
117
- prerelease: false
118
- version_requirements: !ruby/object:Gem::Requirement
119
- requirements:
120
- - - "~>"
121
- - !ruby/object:Gem::Version
122
- version: '3.10'
123
- - !ruby/object:Gem::Dependency
124
- name: rspec-rails
125
- requirement: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - "~>"
128
- - !ruby/object:Gem::Version
129
- version: '5.0'
130
- type: :development
131
- prerelease: false
132
- version_requirements: !ruby/object:Gem::Requirement
133
- requirements:
134
- - - "~>"
135
- - !ruby/object:Gem::Version
136
- version: '5.0'
137
- - !ruby/object:Gem::Dependency
138
- name: rubocop
139
- requirement: !ruby/object:Gem::Requirement
140
- requirements:
141
- - - "~>"
142
- - !ruby/object:Gem::Version
143
- version: '1.25'
144
- type: :development
145
- prerelease: false
146
- version_requirements: !ruby/object:Gem::Requirement
147
- requirements:
148
- - - "~>"
149
- - !ruby/object:Gem::Version
150
- version: '1.25'
151
- - !ruby/object:Gem::Dependency
152
- name: yard
153
- requirement: !ruby/object:Gem::Requirement
154
- requirements:
155
- - - "~>"
156
- - !ruby/object:Gem::Version
157
- version: '0.9'
158
- type: :development
159
- prerelease: false
160
- version_requirements: !ruby/object:Gem::Requirement
161
- requirements:
162
- - - "~>"
163
- - !ruby/object:Gem::Version
164
- version: '0.9'
165
- - !ruby/object:Gem::Dependency
166
- name: sqlite3
167
- requirement: !ruby/object:Gem::Requirement
168
- requirements:
169
- - - "~>"
170
- - !ruby/object:Gem::Version
171
- version: '1.4'
172
- type: :development
173
- prerelease: false
174
- version_requirements: !ruby/object:Gem::Requirement
175
- requirements:
176
- - - "~>"
177
- - !ruby/object:Gem::Version
178
- version: '1.4'
52
+ version: 7.2.0
179
53
  description:
180
54
  email:
181
55
  - support@nialtoservices.co.uk
@@ -212,19 +86,22 @@ files:
212
86
  - spec/internal/config/database.yml
213
87
  - spec/internal/db/schema.rb
214
88
  - spec/internal/log/.keep
215
- - spec/pursuit/constants_spec.rb
216
- - spec/pursuit/dsl_spec.rb
217
- - spec/pursuit/search_options_spec.rb
218
- - spec/pursuit/search_spec.rb
219
- - spec/pursuit/search_term_parser_spec.rb
89
+ - spec/lib/pursuit/dsl_spec.rb
90
+ - spec/lib/pursuit/search_options_spec.rb
91
+ - spec/lib/pursuit/search_spec.rb
92
+ - spec/lib/pursuit/search_term_parser_spec.rb
93
+ - spec/lib/pursuit_spec.rb
220
94
  - spec/spec_helper.rb
221
95
  - travis/gemfiles/5.2.gemfile
222
96
  - travis/gemfiles/6.0.gemfile
223
97
  - travis/gemfiles/6.1.gemfile
98
+ - travis/gemfiles/7.0.gemfile
99
+ - travis/gemfiles/7.1.gemfile
224
100
  homepage: https://github.com/nialtoservices/pursuit
225
101
  licenses:
226
- - MIT
102
+ - Apache-2.0
227
103
  metadata:
104
+ rubygems_mfa_required: 'true'
228
105
  yard.run: yri
229
106
  post_install_message:
230
107
  rdoc_options: []
@@ -234,27 +111,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
234
111
  requirements:
235
112
  - - ">="
236
113
  - !ruby/object:Gem::Version
237
- version: '0'
114
+ version: 2.6.0
238
115
  required_rubygems_version: !ruby/object:Gem::Requirement
239
116
  requirements:
240
117
  - - ">="
241
118
  - !ruby/object:Gem::Version
242
119
  version: '0'
243
120
  requirements: []
244
- rubygems_version: 3.3.3
121
+ rubygems_version: 3.4.10
245
122
  signing_key:
246
123
  specification_version: 4
247
124
  summary: Advanced key-based searching for ActiveRecord objects.
248
- test_files:
249
- - spec/internal/app/models/product.rb
250
- - spec/internal/app/models/product_category.rb
251
- - spec/internal/app/models/product_variation.rb
252
- - spec/internal/config/database.yml
253
- - spec/internal/db/schema.rb
254
- - spec/internal/log/.keep
255
- - spec/pursuit/constants_spec.rb
256
- - spec/pursuit/dsl_spec.rb
257
- - spec/pursuit/search_options_spec.rb
258
- - spec/pursuit/search_spec.rb
259
- - spec/pursuit/search_term_parser_spec.rb
260
- - spec/spec_helper.rb
125
+ test_files: []
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- RSpec.describe Pursuit do
4
- describe '::VERSION' do
5
- subject { described_class::VERSION }
6
-
7
- it 'is semantic' do
8
- expect(subject).to match(/[0-9]+\.[0-9]+\.[0-9]+/)
9
- end
10
- end
11
- end
File without changes