blacklight_advanced_search 6.4.1 → 8.0.0.alpha2

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.
Files changed (58) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/ruby.yml +125 -0
  3. data/.gitignore +1 -0
  4. data/.rubocop.yml +4 -2
  5. data/.rubocop_todo.yml +6 -374
  6. data/Gemfile +3 -8
  7. data/README.md +46 -60
  8. data/Rakefile +2 -2
  9. data/VERSION +1 -1
  10. data/blacklight_advanced_search.gemspec +6 -7
  11. data/config/routes.rb +1 -1
  12. data/lib/blacklight_advanced_search/advanced_query_parser.rb +24 -38
  13. data/lib/blacklight_advanced_search/advanced_search_builder.rb +27 -24
  14. data/lib/blacklight_advanced_search/controller.rb +15 -16
  15. data/lib/blacklight_advanced_search/engine.rb +0 -1
  16. data/lib/blacklight_advanced_search/redirect_legacy_params_filter.rb +24 -7
  17. data/lib/blacklight_advanced_search.rb +0 -4
  18. data/lib/generators/blacklight_advanced_search/install_generator.rb +3 -37
  19. data/lib/parsing_nesting/grammar.rb +0 -12
  20. data/solr/conf/schema.xml +326 -573
  21. data/solr/conf/solrconfig.xml +80 -294
  22. data/spec/features/blacklight_advanced_search_form_spec.rb +13 -18
  23. data/spec/lib/advanced_search_builder_spec.rb +11 -9
  24. data/spec/spec_helper.rb +46 -14
  25. data/spec/test_app_templates/app/controllers/catalog_controller.rb +5 -7
  26. metadata +41 -62
  27. data/.travis.yml +0 -21
  28. data/app/assets/javascripts/blacklight_advanced_search.js +0 -5
  29. data/app/assets/stylesheets/blacklight_advanced_search/advanced_results.css +0 -21
  30. data/app/assets/stylesheets/blacklight_advanced_search/blacklight_advanced_search_styles.css.scss +0 -58
  31. data/app/assets/stylesheets/blacklight_advanced_search.css +0 -6
  32. data/app/controllers/advanced_controller.rb +0 -25
  33. data/app/controllers/blacklight_advanced_search/advanced_controller.rb +0 -25
  34. data/app/helpers/advanced_helper.rb +0 -4
  35. data/app/helpers/blacklight_advanced_search/advanced_helper_behavior.rb +0 -57
  36. data/app/views/advanced/_advanced_search_facets.html.erb +0 -16
  37. data/app/views/advanced/_advanced_search_facets_as_select.html.erb +0 -30
  38. data/app/views/advanced/_advanced_search_fields.html.erb +0 -8
  39. data/app/views/advanced/_advanced_search_form.html.erb +0 -43
  40. data/app/views/advanced/_advanced_search_help.html.erb +0 -24
  41. data/app/views/advanced/_advanced_search_submit_btns.html.erb +0 -12
  42. data/app/views/advanced/_facet_limit.html.erb +0 -15
  43. data/app/views/advanced/index.html.erb +0 -21
  44. data/app/views/blacklight_advanced_search/_facet_limit.html.erb +0 -16
  45. data/config/jetty.yml +0 -4
  46. data/config/locales/blacklight_advanced_search.en.yml +0 -12
  47. data/lib/blacklight_advanced_search/catalog_helper_override.rb +0 -30
  48. data/lib/blacklight_advanced_search/filter_parser.rb +0 -11
  49. data/lib/blacklight_advanced_search/parsing_nesting_parser.rb +0 -15
  50. data/lib/blacklight_advanced_search/render_constraints_override.rb +0 -136
  51. data/lib/generators/blacklight_advanced_search/assets_generator.rb +0 -53
  52. data/lib/generators/blacklight_advanced_search/templates/advanced_controller.rb +0 -56
  53. data/lib/generators/blacklight_advanced_search/templates/saved_searches_controller.rb +0 -6
  54. data/lib/generators/blacklight_advanced_search/templates/search_history_controller.rb +0 -6
  55. data/solr/sample_solr_documents.yml +0 -2692
  56. data/spec/helpers/advanced_helper_spec.rb +0 -13
  57. data/spec/lib/blacklight_advanced_search/render_constraints_override_spec.rb +0 -39
  58. data/spec/lib/filter_parser_spec.rb +0 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: fec276a97930ac04d511ec8865371d1a62029449
4
- data.tar.gz: d175ff3201850ee817481815fe3f79cfef5d755b
2
+ SHA256:
3
+ metadata.gz: 59198eb4fdf853ede08ae5f3511341a98c81c83080daf40e757e9232af860dea
4
+ data.tar.gz: 225901fe9571fe867a36c198e4cf0366b62ab13b81bcf57f8a0fb9e5e7734fd6
5
5
  SHA512:
6
- metadata.gz: cf8d26bbee8f01b46326873e16f971e78f0fb66f3cb91449f8ca450f195f0e194e089609948ddc669f43aac71fe1fd5ee7f9a3e001987ea3539053bcfc61747b
7
- data.tar.gz: b877cfbf9cf87a2812fe4a44ad6e401e0368f3d638b8ac2bcc145226101f7a41f9eb521a1c4927a6fc376d64eac40f6b20974814809ccb1fff3b47b47c9ffa65
6
+ metadata.gz: 1bbfbd5f818a220bddd0acc60fceee62ca50f6c538dff9274a7defe410e2adfe4215269df4ad4df1c04e496214d3effd7a7d9139d98206bfad6bb6e8832584fa
7
+ data.tar.gz: 180e2984ff0c3afcc2ec09b2ec799e5b279f28518ea4cc028a5eb63503ac95ac55bd4613996a7c7221c1a9b4d4f9e75d204f93741161acbdfb2ffe616da5e997
@@ -0,0 +1,125 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: CI
9
+
10
+ on:
11
+ push:
12
+ branches:
13
+ - main
14
+ - 'release-*'
15
+ pull_request:
16
+
17
+ jobs:
18
+ lint:
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - uses: actions/checkout@v2
22
+ - name: Set up Ruby
23
+ uses: ruby/setup-ruby@v1
24
+ with:
25
+ ruby-version: 2.7
26
+ - name: Install dependencies
27
+ run: bundle install
28
+ - name: Run linter
29
+ run: bundle exec rake rubocop
30
+ test:
31
+ runs-on: ubuntu-latest
32
+ strategy:
33
+ matrix:
34
+ ruby: [2.7, '3.0', 3.1]
35
+ steps:
36
+ - uses: actions/checkout@v2
37
+ - name: Set up Ruby
38
+ uses: ruby/setup-ruby@v1
39
+ with:
40
+ ruby-version: ${{ matrix.ruby }}
41
+ - name: Install dependencies
42
+ run: bundle install
43
+ - name: Run tests
44
+ run: bundle exec rake ci
45
+ env:
46
+ ENGINE_CART_RAILS_OPTIONS: '-a propshaft --skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
47
+ test_bootstrap5:
48
+ runs-on: ubuntu-latest
49
+ strategy:
50
+ matrix:
51
+ ruby: ['3.0']
52
+ steps:
53
+ - uses: actions/checkout@v2
54
+ - name: Set up Ruby
55
+ uses: ruby/setup-ruby@v1
56
+ with:
57
+ ruby-version: ${{ matrix.ruby }}
58
+ - name: Install dependencies
59
+ run: bundle install
60
+ - name: Run tests
61
+ run: bundle exec rake ci
62
+ env:
63
+ BOOTSTRAP_VERSION: '~> 5.0'
64
+ ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
65
+ test_rails6_0:
66
+ runs-on: ubuntu-latest
67
+ strategy:
68
+ matrix:
69
+ ruby: [2.6]
70
+ steps:
71
+ - uses: actions/checkout@v2
72
+ - name: Set up Ruby
73
+ uses: ruby/setup-ruby@v1
74
+ with:
75
+ ruby-version: ${{ matrix.ruby }}
76
+ - name: Install dependencies
77
+ run: bundle install
78
+ env:
79
+ RAILS_VERSION: 6.0.3.7
80
+ - name: Run tests
81
+ run: bundle exec rake ci
82
+ env:
83
+ RAILS_VERSION: 6.0.3.7
84
+ ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
85
+ test_rails5_2:
86
+ runs-on: ubuntu-latest
87
+ strategy:
88
+ matrix:
89
+ ruby: [2.7]
90
+ steps:
91
+ - uses: actions/checkout@v2
92
+ - name: Set up Ruby
93
+ uses: ruby/setup-ruby@v1
94
+ with:
95
+ ruby-version: ${{ matrix.ruby }}
96
+ - name: Install dependencies
97
+ run: bundle install
98
+ env:
99
+ RAILS_VERSION: 5.2.4.6
100
+ - name: Run tests
101
+ run: bundle exec rake ci
102
+ env:
103
+ RAILS_VERSION: 5.2.4.6
104
+ ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
105
+
106
+ test_rails6_1:
107
+ runs-on: ubuntu-latest
108
+ strategy:
109
+ matrix:
110
+ ruby: ['3.0']
111
+ steps:
112
+ - uses: actions/checkout@v2
113
+ - name: Set up Ruby
114
+ uses: ruby/setup-ruby@v1
115
+ with:
116
+ ruby-version: ${{ matrix.ruby }}
117
+ - name: Install dependencies
118
+ run: bundle install
119
+ env:
120
+ RAILS_VERSION: 6.1.5
121
+ - name: Run tests
122
+ run: bundle exec rake ci
123
+ env:
124
+ RAILS_VERSION: 6.1.5
125
+ ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-keeps --skip-action-cable --skip-test'
data/.gitignore CHANGED
@@ -9,3 +9,4 @@ log/*
9
9
  Gemfile.lock
10
10
  pkg/*
11
11
  tmp/*
12
+ /spec/examples.txt
data/.rubocop.yml CHANGED
@@ -1,5 +1,7 @@
1
1
  inherit_from: .rubocop_todo.yml
2
- require: rubocop-rspec
2
+ require:
3
+ - rubocop-rspec
4
+ - rubocop-rails
3
5
 
4
6
  AllCops:
5
7
  DisplayCopNames: true
@@ -11,7 +13,7 @@ AllCops:
11
13
  Rails:
12
14
  Enabled: true
13
15
 
14
- Metrics/LineLength:
16
+ Layout/LineLength:
15
17
  Max: 185
16
18
 
17
19
  Metrics/BlockLength:
data/.rubocop_todo.yml CHANGED
@@ -1,398 +1,30 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2017-06-13 08:15:08 -0700 using RuboCop version 0.49.1.
3
+ # on 2020-01-15 10:15:34 -0500 using RuboCop version 0.79.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 2
10
- # Configuration parameters: Include.
11
- # Include: **/Gemfile, **/gems.rb
12
- Bundler/DuplicatedGem:
13
- Exclude:
14
- - 'Gemfile'
15
-
16
- # Offense count: 1
17
- # Cop supports --auto-correct.
18
- # Configuration parameters: Include, TreatCommentsAsGroupSeparators.
19
- # Include: **/Gemfile, **/gems.rb
20
- Bundler/OrderedGems:
21
- Exclude:
22
- - 'Gemfile'
23
-
24
- # Offense count: 1
25
- # Cop supports --auto-correct.
26
- # Configuration parameters: EnforcedHashRocketStyle, SupportedHashRocketStyles, EnforcedColonStyle, SupportedColonStyles, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
27
- # SupportedHashRocketStyles: key, separator, table
28
- # SupportedColonStyles: key, separator, table
29
- # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
30
- Layout/AlignHash:
31
- Exclude:
32
- - 'lib/parsing_nesting/tree.rb'
33
-
34
- # Offense count: 4
35
- # Cop supports --auto-correct.
36
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
37
- # SupportedStyles: with_first_parameter, with_fixed_indentation
38
- Layout/AlignParameters:
39
- Exclude:
40
- - 'lib/blacklight_advanced_search/render_constraints_override.rb'
41
-
42
- # Offense count: 2
43
- # Cop supports --auto-correct.
44
- Layout/EmptyLineAfterMagicComment:
45
- Exclude:
46
- - 'lib/generators/blacklight_advanced_search/templates/saved_searches_controller.rb'
47
- - 'lib/generators/blacklight_advanced_search/templates/search_history_controller.rb'
48
-
49
- # Offense count: 1
50
- # Cop supports --auto-correct.
51
- # Configuration parameters: EnforcedStyle, SupportedStyles.
52
- # SupportedStyles: symmetrical, new_line, same_line
53
- Layout/MultilineArrayBraceLayout:
54
- Exclude:
55
- - 'spec/parsing_nesting/consuming_spec.rb'
56
-
57
- # Offense count: 2
58
- # Cop supports --auto-correct.
59
- # Configuration parameters: EnforcedStyle, SupportedStyles.
60
- # SupportedStyles: symmetrical, new_line, same_line
61
- Layout/MultilineMethodCallBraceLayout:
62
- Exclude:
63
- - 'lib/blacklight_advanced_search/render_constraints_override.rb'
64
-
65
- # Offense count: 10
66
- # Cop supports --auto-correct.
67
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
68
- # SupportedStyles: aligned, indented
69
- Layout/MultilineOperationIndentation:
70
- Exclude:
71
- - 'lib/blacklight_advanced_search/advanced_search_builder.rb'
72
- - 'lib/blacklight_advanced_search/controller.rb'
73
- - 'lib/parsing_nesting/grammar.rb'
74
- - 'lib/parsing_nesting/tree.rb'
75
-
76
- # Offense count: 1
77
- # Cop supports --auto-correct.
78
- # Configuration parameters: EnforcedStyle, SupportedStyles.
79
- # SupportedStyles: space, no_space
80
- Layout/SpaceBeforeBlockBraces:
81
- Exclude:
82
- - 'blacklight_advanced_search.gemspec'
83
-
84
- # Offense count: 1
85
- Lint/AmbiguousOperator:
86
- Exclude:
87
- - 'spec/parsing_nesting/to_solr_spec.rb'
88
-
89
9
  # Offense count: 3
90
- # Configuration parameters: AllowSafeAssignment.
91
- Lint/AssignmentInCondition:
92
- Exclude:
93
- - 'lib/parsing_nesting/tree.rb'
94
-
95
- # Offense count: 3
96
- # Cop supports --auto-correct.
97
- # Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith, AutoCorrect.
98
- # SupportedStylesAlignWith: keyword, variable, start_of_line
99
- Lint/EndAlignment:
100
- Exclude:
101
- - 'lib/blacklight_advanced_search/advanced_search_builder.rb'
102
- - 'lib/blacklight_advanced_search/redirect_legacy_params_filter.rb'
103
- - 'lib/parsing_nesting/tree.rb'
104
-
105
- # Offense count: 17
106
- Lint/ShadowingOuterLocalVariable:
107
- Exclude:
108
- - 'spec/parsing_nesting/build_tree_spec.rb'
109
- - 'spec/parsing_nesting/to_solr_spec.rb'
110
-
111
- # Offense count: 1
112
- Lint/UselessAssignment:
113
- Exclude:
114
- - 'lib/blacklight_advanced_search/advanced_search_builder.rb'
115
-
116
- # Offense count: 7
117
- Metrics/AbcSize:
118
- Max: 38
119
-
120
- # Offense count: 3
121
- Metrics/CyclomaticComplexity:
122
- Max: 11
123
-
124
- # Offense count: 13
125
- # Configuration parameters: CountComments.
126
- Metrics/MethodLength:
127
- Max: 22
128
-
129
- # Offense count: 2
130
- Metrics/PerceivedComplexity:
131
- Max: 13
132
-
133
- # Offense count: 1
134
- RSpec/BeforeAfterAll:
135
- Exclude:
136
- - 'spec/spec_helper.rb'
137
- - 'spec/rails_helper.rb'
138
- - 'spec/support/**/*.rb'
139
- - 'spec/features/blacklight_advanced_search_form_spec.rb'
140
-
141
- # Offense count: 7
142
- RSpec/DescribeClass:
143
- Exclude:
144
- - 'spec/features/blacklight_advanced_search_form_spec.rb'
145
- - 'spec/integration/blacklight_stub_spec.rb'
146
- - 'spec/lib/deep_merge_spec.rb'
147
- - 'spec/lib/filter_parser_spec.rb'
148
- - 'spec/parsing_nesting/build_tree_spec.rb'
149
- - 'spec/parsing_nesting/consuming_spec.rb'
150
- - 'spec/parsing_nesting/to_solr_spec.rb'
151
-
152
- # Offense count: 6
153
- RSpec/EmptyLineAfterFinalLet:
154
- Exclude:
155
- - 'spec/helpers/advanced_helper_spec.rb'
156
- - 'spec/lib/advanced_search_builder_spec.rb'
157
-
158
- # Offense count: 21
159
- # Configuration parameters: Max.
160
- RSpec/ExampleLength:
161
- Exclude:
162
- - 'spec/parsing_nesting/build_tree_spec.rb'
163
- - 'spec/parsing_nesting/to_solr_spec.rb'
164
-
165
- # Offense count: 40
166
- # Configuration parameters: CustomTransform, IgnoredWords.
167
- RSpec/ExampleWording:
168
- Exclude:
169
- - 'spec/features/blacklight_advanced_search_form_spec.rb'
170
- - 'spec/helpers/advanced_helper_spec.rb'
171
- - 'spec/integration/blacklight_stub_spec.rb'
172
- - 'spec/lib/filter_parser_spec.rb'
173
- - 'spec/parsing_nesting/build_tree_spec.rb'
174
- - 'spec/parsing_nesting/to_solr_spec.rb'
175
-
176
- # Offense count: 1
177
- # Configuration parameters: CustomTransform, IgnoreMethods.
178
- RSpec/FilePath:
179
- Exclude:
180
- - 'spec/lib/advanced_search_builder_spec.rb'
181
-
182
- # Offense count: 10
183
- # Configuration parameters: AssignmentOnly.
184
- RSpec/InstanceVariable:
185
- Exclude:
186
- - 'spec/parsing_nesting/consuming_spec.rb'
187
- - 'spec/parsing_nesting/to_solr_spec.rb'
188
-
189
- # Offense count: 2
190
- # Configuration parameters: SupportedStyles.
191
- # SupportedStyles: have_received, receive
192
- RSpec/MessageSpies:
193
- EnforcedStyle: receive
194
-
195
- # Offense count: 33
196
- RSpec/MultipleExpectations:
197
- Max: 6
198
-
199
- # Offense count: 10
200
- # Configuration parameters: Max.
201
- RSpec/NestedGroups:
202
- Exclude:
203
- - 'spec/lib/advanced_search_builder_spec.rb'
204
- - 'spec/parsing_nesting/to_solr_spec.rb'
205
-
206
- # Offense count: 2
207
- # Configuration parameters: IgnoreSymbolicNames.
208
- RSpec/VerifiedDoubles:
209
- Exclude:
210
- - 'spec/helpers/advanced_helper_spec.rb'
211
-
212
- # Offense count: 1
213
- Rails/OutputSafety:
214
- Exclude:
215
- - 'lib/blacklight_advanced_search/render_constraints_override.rb'
216
-
217
- # Offense count: 2
218
10
  # Cop supports --auto-correct.
219
- # Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
220
- Rails/Present:
221
- Exclude:
222
- - 'app/helpers/blacklight_advanced_search/advanced_helper_behavior.rb'
223
- - 'lib/blacklight_advanced_search/advanced_query_parser.rb'
224
-
225
- # Offense count: 1
226
- Style/AccessorMethodName:
227
- Exclude:
228
- - 'app/controllers/blacklight_advanced_search/advanced_controller.rb'
229
-
230
- # Offense count: 7
231
- # Configuration parameters: EnforcedStyle, SupportedStyles.
232
- # SupportedStyles: nested, compact
233
- Style/ClassAndModuleChildren:
234
- Exclude:
235
- - 'app/controllers/blacklight_advanced_search/advanced_controller.rb'
236
- - 'lib/blacklight_advanced_search/catalog_helper_override.rb'
237
- - 'lib/blacklight_advanced_search/controller.rb'
238
- - 'lib/blacklight_advanced_search/filter_parser.rb'
239
- - 'lib/blacklight_advanced_search/parsing_nesting_parser.rb'
240
- - 'lib/blacklight_advanced_search/render_constraints_override.rb'
241
- - 'lib/parsing_nesting/tree.rb'
242
-
243
- # Offense count: 26
244
- Style/Documentation:
245
- Enabled: false
246
-
247
- # Offense count: 1
248
- # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
249
- # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
250
- Style/FileName:
251
- Exclude:
252
- - 'Gemfile'
253
-
254
- # Offense count: 6
255
- # Configuration parameters: MinBodyLength.
256
- Style/GuardClause:
257
- Exclude:
258
- - 'app/helpers/blacklight_advanced_search/advanced_helper_behavior.rb'
259
- - 'lib/blacklight_advanced_search/advanced_search_builder.rb'
260
- - 'lib/blacklight_advanced_search/redirect_legacy_params_filter.rb'
261
- - 'lib/blacklight_advanced_search/render_constraints_override.rb'
262
- - 'lib/parsing_nesting/tree.rb'
263
-
264
- # Offense count: 76
265
- # Cop supports --auto-correct.
266
- # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
11
+ # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
267
12
  # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
268
13
  Style/HashSyntax:
269
14
  Exclude:
270
15
  - 'Rakefile'
271
- - 'lib/blacklight_advanced_search/advanced_query_parser.rb'
272
- - 'lib/blacklight_advanced_search/redirect_legacy_params_filter.rb'
273
- - 'lib/blacklight_advanced_search/render_constraints_override.rb'
274
- - 'lib/generators/blacklight_advanced_search/assets_generator.rb'
275
- - 'lib/generators/blacklight_advanced_search/templates/advanced_controller.rb'
276
- - 'lib/parsing_nesting/tree.rb'
277
- - 'spec/features/blacklight_advanced_search_form_spec.rb'
278
- - 'spec/lib/advanced_search_builder_spec.rb'
279
- - 'spec/lib/filter_parser_spec.rb'
280
- - 'spec/parsing_nesting/to_solr_spec.rb'
281
- - 'spec/test_app_templates/app/controllers/catalog_controller.rb'
282
- - 'spec/test_app_templates/lib/generators/test_app_generator.rb'
283
-
284
- # Offense count: 1
285
- # Configuration parameters: EnforcedStyle, SupportedStyles.
286
- # SupportedStyles: snake_case, camelCase
287
- Style/MethodName:
288
- Exclude:
289
- - 'spec/lib/filter_parser_spec.rb'
290
-
291
- # Offense count: 5
292
- # Cop supports --auto-correct.
293
- # Configuration parameters: AllowSafeAssignment.
294
- Style/ParenthesesAroundCondition:
295
- Exclude:
296
- - 'lib/blacklight_advanced_search/catalog_helper_override.rb'
297
- - 'lib/blacklight_advanced_search/render_constraints_override.rb'
298
-
299
- # Offense count: 2
300
- # Cop supports --auto-correct.
301
- # Configuration parameters: PreferredDelimiters.
302
- Style/PercentLiteralDelimiters:
303
- Exclude:
304
- - 'spec/lib/filter_parser_spec.rb'
305
-
306
- # Offense count: 4
307
- # Cop supports --auto-correct.
308
- Style/PerlBackrefs:
309
- Exclude:
310
- - 'spec/parsing_nesting/to_solr_spec.rb'
311
-
312
- # Offense count: 2
313
- # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
314
- # NamePrefix: is_, has_, have_
315
- # NamePrefixBlacklist: is_, has_, have_
316
- # NameWhitelist: is_a?
317
- Style/PredicateName:
318
- Exclude:
319
- - 'spec/**/*'
320
- - 'lib/blacklight_advanced_search/advanced_search_builder.rb'
321
- - 'lib/blacklight_advanced_search/controller.rb'
322
-
323
- # Offense count: 5
324
- # Cop supports --auto-correct.
325
- # Configuration parameters: EnforcedStyle, SupportedStyles.
326
- # SupportedStyles: short, verbose
327
- Style/PreferredHashMethods:
328
- Exclude:
329
- - 'lib/parsing_nesting/tree.rb'
330
-
331
- # Offense count: 4
332
- # Cop supports --auto-correct.
333
- # Configuration parameters: AllowMultipleReturnValues.
334
- Style/RedundantReturn:
335
- Exclude:
336
- - 'app/helpers/blacklight_advanced_search/advanced_helper_behavior.rb'
337
- - 'lib/blacklight_advanced_search/render_constraints_override.rb'
338
-
339
- # Offense count: 6
340
- # Cop supports --auto-correct.
341
- Style/RedundantSelf:
342
- Exclude:
343
- - 'lib/blacklight_advanced_search/advanced_search_builder.rb'
344
- - 'lib/blacklight_advanced_search/render_constraints_override.rb'
345
- - 'lib/blacklight_advanced_search/version.rb'
346
- - 'lib/parsing_nesting/tree.rb'
347
16
 
348
17
  # Offense count: 1
349
18
  # Cop supports --auto-correct.
350
- # Configuration parameters: SupportedStyles.
19
+ # Configuration parameters: .
351
20
  # SupportedStyles: use_perl_names, use_english_names
352
21
  Style/SpecialGlobalVars:
353
22
  EnforcedStyle: use_perl_names
354
23
 
355
- # Offense count: 398
24
+ # Offense count: 7
356
25
  # Cop supports --auto-correct.
357
- # Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
26
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
358
27
  # SupportedStyles: single_quotes, double_quotes
359
28
  Style/StringLiterals:
360
- Enabled: false
361
-
362
- # Offense count: 1
363
- # Cop supports --auto-correct.
364
- # Configuration parameters: EnforcedStyle, SupportedStyles.
365
- # SupportedStyles: single_quotes, double_quotes
366
- Style/StringLiteralsInInterpolation:
367
- Exclude:
368
- - 'lib/parsing_nesting/tree.rb'
369
-
370
- # Offense count: 1
371
- # Cop supports --auto-correct.
372
- # Configuration parameters: MinSize, SupportedStyles.
373
- # SupportedStyles: percent, brackets
374
- Style/SymbolArray:
375
- EnforcedStyle: brackets
376
-
377
- # Offense count: 9
378
- # Cop supports --auto-correct.
379
- # Configuration parameters: IgnoredMethods.
380
- # IgnoredMethods: respond_to, define_method
381
- Style/SymbolProc:
382
- Exclude:
383
- - 'lib/parsing_nesting/tree.rb'
384
- - 'spec/spec_helper.rb'
385
-
386
- # Offense count: 1
387
- # Cop supports --auto-correct.
388
- # Configuration parameters: AllowNamedUnderscoreVariables.
389
- Style/TrailingUnderscoreVariable:
390
- Exclude:
391
- - 'app/controllers/blacklight_advanced_search/advanced_controller.rb'
392
-
393
- # Offense count: 2
394
- # Configuration parameters: EnforcedStyle, SupportedStyles.
395
- # SupportedStyles: snake_case, camelCase
396
- Style/VariableName:
397
29
  Exclude:
398
- - 'lib/parsing_nesting/tree.rb'
30
+ - 'Rakefile'
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'http://rubygems.org'
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
@@ -27,13 +27,8 @@ else
27
27
  end
28
28
 
29
29
  case ENV['RAILS_VERSION']
30
- when /^4.2/
31
- gem 'responders', '~> 2.0'
32
- gem 'sass-rails', '>= 5.0'
33
- gem 'coffee-rails', '~> 4.1.0'
34
- gem 'json', '~> 1.8'
35
- when /^4.[01]/
36
- gem 'sass-rails', '< 5.0'
30
+ when /^5.2/, /^6.0/
31
+ gem 'sass-rails', '~> 5.0'
37
32
  end
38
33
  end
39
34
  # END ENGINE_CART BLOCK