blacklight_advanced_search 6.4.0 → 8.0.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/ruby.yml +126 -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 +43 -57
  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 +29 -25
  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 +23 -6
  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: 8365d9d4f076bf6a58ec18ea43463eebdb731548
4
- data.tar.gz: e5d13463ee038b937f495392c03495e9e74a0fc5
2
+ SHA256:
3
+ metadata.gz: 4e9396af949fde0ccc4ecb6c3aed38179618b43fb94981cf703b45f7f4e0e9d9
4
+ data.tar.gz: '08420957e733036ac9bf41eebc1d85a0c0bf1904758239f3135f59c2395a7148'
5
5
  SHA512:
6
- metadata.gz: 7498bba1f4df86db9bde461fa099e3af88a00e55bc20fb5818d40285f292c96e41aa13348f38ce98777be784e458f1f84ed8032c845fabcdfc54b526594ca8fe
7
- data.tar.gz: 1172e9a02a4442f23711f4be3bff51489329e95a5e782361e7eb79b887e7721fa30cb5453bf61f5cd96878b1260ca5a91a8f3eaf4bb3f3316adb2fea30c349a9
6
+ metadata.gz: aa70a1c801b2a471341b5521259f6b30614a8fb1df8d2006531170632dcbbd5e82dca2d3e6d4f496dab47b0d43bd6766224206a0e0766f5ab438f72765b39bb4
7
+ data.tar.gz: e636fc6d32911b8254eac38fe35842ec5f310f50fcacee0fdf59679b52dec3d0f38fee2954e425ead63f82f4c43b96c9cd9f24818ba19b786c0943b134aa08d4
@@ -0,0 +1,126 @@
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
+ - master
15
+ - 'release-*'
16
+ pull_request:
17
+
18
+ jobs:
19
+ lint:
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - uses: actions/checkout@v2
23
+ - name: Set up Ruby
24
+ uses: ruby/setup-ruby@v1
25
+ with:
26
+ ruby-version: 2.7
27
+ - name: Install dependencies
28
+ run: bundle install
29
+ - name: Run linter
30
+ run: bundle exec rake rubocop
31
+ test:
32
+ runs-on: ubuntu-latest
33
+ strategy:
34
+ matrix:
35
+ ruby: [2.7, '3.0', 3.1]
36
+ steps:
37
+ - uses: actions/checkout@v2
38
+ - name: Set up Ruby
39
+ uses: ruby/setup-ruby@v1
40
+ with:
41
+ ruby-version: ${{ matrix.ruby }}
42
+ - name: Install dependencies
43
+ run: bundle install
44
+ - name: Run tests
45
+ run: bundle exec rake ci
46
+ env:
47
+ ENGINE_CART_RAILS_OPTIONS: '-a propshaft --skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
48
+ test_bootstrap5:
49
+ runs-on: ubuntu-latest
50
+ strategy:
51
+ matrix:
52
+ ruby: ['3.0']
53
+ steps:
54
+ - uses: actions/checkout@v2
55
+ - name: Set up Ruby
56
+ uses: ruby/setup-ruby@v1
57
+ with:
58
+ ruby-version: ${{ matrix.ruby }}
59
+ - name: Install dependencies
60
+ run: bundle install
61
+ - name: Run tests
62
+ run: bundle exec rake ci
63
+ env:
64
+ BOOTSTRAP_VERSION: '~> 5.0'
65
+ ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
66
+ test_rails6_0:
67
+ runs-on: ubuntu-latest
68
+ strategy:
69
+ matrix:
70
+ ruby: [2.6]
71
+ steps:
72
+ - uses: actions/checkout@v2
73
+ - name: Set up Ruby
74
+ uses: ruby/setup-ruby@v1
75
+ with:
76
+ ruby-version: ${{ matrix.ruby }}
77
+ - name: Install dependencies
78
+ run: bundle install
79
+ env:
80
+ RAILS_VERSION: 6.0.3.7
81
+ - name: Run tests
82
+ run: bundle exec rake ci
83
+ env:
84
+ RAILS_VERSION: 6.0.3.7
85
+ ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
86
+ test_rails5_2:
87
+ runs-on: ubuntu-latest
88
+ strategy:
89
+ matrix:
90
+ ruby: [2.7]
91
+ steps:
92
+ - uses: actions/checkout@v2
93
+ - name: Set up Ruby
94
+ uses: ruby/setup-ruby@v1
95
+ with:
96
+ ruby-version: ${{ matrix.ruby }}
97
+ - name: Install dependencies
98
+ run: bundle install
99
+ env:
100
+ RAILS_VERSION: 5.2.4.6
101
+ - name: Run tests
102
+ run: bundle exec rake ci
103
+ env:
104
+ RAILS_VERSION: 5.2.4.6
105
+ ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
106
+
107
+ test_rails6_1:
108
+ runs-on: ubuntu-latest
109
+ strategy:
110
+ matrix:
111
+ ruby: ['3.0']
112
+ steps:
113
+ - uses: actions/checkout@v2
114
+ - name: Set up Ruby
115
+ uses: ruby/setup-ruby@v1
116
+ with:
117
+ ruby-version: ${{ matrix.ruby }}
118
+ - name: Install dependencies
119
+ run: bundle install
120
+ env:
121
+ RAILS_VERSION: 6.1.5
122
+ - name: Run tests
123
+ run: bundle exec rake ci
124
+ env:
125
+ RAILS_VERSION: 6.1.5
126
+ 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