blacklight_advanced_search 8.0.0.alpha1 → 8.0.0
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 +4 -4
- data/.github/workflows/ruby.yml +27 -96
- data/.solr_wrapper.yml +2 -0
- data/Gemfile +2 -0
- data/README.md +3 -3
- data/VERSION +1 -1
- data/blacklight_advanced_search.gemspec +2 -2
- data/lib/blacklight_advanced_search/redirect_legacy_params_filter.rb +2 -2
- data/spec/test_app_templates/Gemfile.extra +5 -0
- metadata +11 -13
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 863f87d073f3a7e0d89385ab55f1cb18ad064cd13ce8c1971b9ee57e3669aa74
|
|
4
|
+
data.tar.gz: 6f1d559935ed0467adb44f37f568265eb6571e81db3ba9319e8b0dee8c259910
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59d72605083343d869eeeab7eb4c275185bd2f70c28793e0ec55fc413266577588ae062ced95d68ed73eda219e7b763b9a796255602dd8925fac7a4535d6e0dd
|
|
7
|
+
data.tar.gz: '09d0649bf731822a18067bb6199cea04625efb7bad7c6c0fe4f0f10c7c8c2359af9d59a57ea1fc8adac6ca1e2fd3d95b3c8d093de740c35e74bee0b7b17e8e22'
|
data/.github/workflows/ruby.yml
CHANGED
|
@@ -1,126 +1,57 @@
|
|
|
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
1
|
name: CI
|
|
9
2
|
|
|
10
3
|
on:
|
|
11
4
|
push:
|
|
12
5
|
branches:
|
|
13
6
|
- main
|
|
14
|
-
- master
|
|
15
7
|
- 'release-*'
|
|
16
8
|
pull_request:
|
|
9
|
+
branches:
|
|
10
|
+
- main
|
|
11
|
+
- 'release-*'
|
|
17
12
|
|
|
18
13
|
jobs:
|
|
19
14
|
lint:
|
|
20
15
|
runs-on: ubuntu-latest
|
|
21
16
|
steps:
|
|
22
|
-
- uses: actions/checkout@
|
|
17
|
+
- uses: actions/checkout@v6
|
|
23
18
|
- name: Set up Ruby
|
|
24
19
|
uses: ruby/setup-ruby@v1
|
|
25
20
|
with:
|
|
26
|
-
ruby-version:
|
|
21
|
+
ruby-version: 3.1
|
|
27
22
|
- name: Install dependencies
|
|
28
23
|
run: bundle install
|
|
29
24
|
- name: Run linter
|
|
30
25
|
run: bundle exec rake rubocop
|
|
31
26
|
test:
|
|
32
27
|
runs-on: ubuntu-latest
|
|
28
|
+
continue-on-error: ${{ matrix.experimental }}
|
|
33
29
|
strategy:
|
|
34
30
|
matrix:
|
|
35
|
-
ruby: [2
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
ruby: ['3.0']
|
|
31
|
+
ruby: ['3.2', '3.3', '3.4']
|
|
32
|
+
rails_version: ['~> 7.2', '~> 8.1']
|
|
33
|
+
blacklight_version: ['~> 8.0']
|
|
34
|
+
experimental: [false]
|
|
35
|
+
include:
|
|
36
|
+
- ruby: '3.4'
|
|
37
|
+
rails_version: '~> 8.1'
|
|
38
|
+
blacklight_version: '~> 9.0'
|
|
39
|
+
experimental: false
|
|
40
|
+
- ruby: '3.4'
|
|
41
|
+
rails_version: '~> 8.1'
|
|
42
|
+
blacklight_version: 'github'
|
|
43
|
+
experimental: true
|
|
44
|
+
env:
|
|
45
|
+
RAILS_VERSION: ${{ matrix.rails_version }}
|
|
46
|
+
BLACKLIGHT_VERSION: ${{ matrix.blacklight_version }}
|
|
47
|
+
ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test --skip-kamal --css=bootstrap --js=esbuild'
|
|
53
48
|
steps:
|
|
54
|
-
- uses: actions/checkout@
|
|
55
|
-
- name: Set up Ruby
|
|
49
|
+
- uses: actions/checkout@v6
|
|
50
|
+
- name: Set up Ruby ${{ matrix.ruby }}
|
|
56
51
|
uses: ruby/setup-ruby@v1
|
|
57
52
|
with:
|
|
58
53
|
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
|
|
54
|
+
- name: Install dependencies with Rails ${{ matrix.rails_version }}
|
|
119
55
|
run: bundle install
|
|
120
|
-
env:
|
|
121
|
-
RAILS_VERSION: 6.1.5
|
|
122
56
|
- name: Run tests
|
|
123
|
-
run: bundle exec rake
|
|
124
|
-
env:
|
|
125
|
-
RAILS_VERSION: 6.1.5
|
|
126
|
-
ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-keeps --skip-action-cable --skip-test'
|
|
57
|
+
run: bundle exec rake
|
data/.solr_wrapper.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -192,12 +192,12 @@ in likely ways. For one example, see the wiki page on [Adding a range limit to
|
|
|
192
192
|
|
|
193
193
|
The code for mapping a user-entered query to a Solr query is called "nesting_parsing", and maps to a 'lucene' query parser query, with nested 'dismax' query parser queries.
|
|
194
194
|
|
|
195
|
-
Some technical details can be found in the nesting_parsing README: [https://github.com/projectblacklight/blacklight_advanced_search/tree/
|
|
195
|
+
Some technical details can be found in the nesting_parsing README: [https://github.com/projectblacklight/blacklight_advanced_search/tree/main/lib/parsing_nesting]
|
|
196
196
|
|
|
197
197
|
You may also find the rspecs for parsing a user-entered query and converting it to Solr illumnating:
|
|
198
198
|
|
|
199
|
-
1. Converting user-entered query to Solr: [https://github.com/projectblacklight/blacklight_advanced_search/blob/
|
|
200
|
-
2. Parsing user-entered query to internal syntax tree: [https://github.com/projectblacklight/blacklight_advanced_search/blob/
|
|
199
|
+
1. Converting user-entered query to Solr: [https://github.com/projectblacklight/blacklight_advanced_search/blob/main/spec/parsing_nesting/to_solr_spec.rb]
|
|
200
|
+
2. Parsing user-entered query to internal syntax tree: [https://github.com/projectblacklight/blacklight_advanced_search/blob/main/spec/parsing_nesting/build_tree_spec.rb]
|
|
201
201
|
|
|
202
202
|
## Running tests
|
|
203
203
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
8.0.0
|
|
1
|
+
8.0.0
|
|
@@ -16,11 +16,11 @@ Gem::Specification.new do |s|
|
|
|
16
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
17
17
|
s.require_paths = ["lib"]
|
|
18
18
|
|
|
19
|
-
s.add_dependency 'blacklight', '>= 7.15', '<
|
|
19
|
+
s.add_dependency 'blacklight', '>= 7.15', '< 10'
|
|
20
20
|
s.add_dependency "parslet"
|
|
21
21
|
|
|
22
22
|
s.add_development_dependency "rails"
|
|
23
|
-
s.add_development_dependency "rspec-rails", "~>
|
|
23
|
+
s.add_development_dependency "rspec-rails", "~> 8.0"
|
|
24
24
|
s.add_development_dependency "capybara"
|
|
25
25
|
s.add_development_dependency 'solr_wrapper'
|
|
26
26
|
s.add_development_dependency 'engine_cart', "~> 2.0"
|
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: blacklight_advanced_search
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 8.0.0
|
|
4
|
+
version: 8.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jonathan Rochkind
|
|
8
8
|
- Chris Beer
|
|
9
|
-
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: blacklight
|
|
@@ -20,7 +19,7 @@ dependencies:
|
|
|
20
19
|
version: '7.15'
|
|
21
20
|
- - "<"
|
|
22
21
|
- !ruby/object:Gem::Version
|
|
23
|
-
version: '
|
|
22
|
+
version: '10'
|
|
24
23
|
type: :runtime
|
|
25
24
|
prerelease: false
|
|
26
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -30,7 +29,7 @@ dependencies:
|
|
|
30
29
|
version: '7.15'
|
|
31
30
|
- - "<"
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
32
|
+
version: '10'
|
|
34
33
|
- !ruby/object:Gem::Dependency
|
|
35
34
|
name: parslet
|
|
36
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -65,14 +64,14 @@ dependencies:
|
|
|
65
64
|
requirements:
|
|
66
65
|
- - "~>"
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
67
|
+
version: '8.0'
|
|
69
68
|
type: :development
|
|
70
69
|
prerelease: false
|
|
71
70
|
version_requirements: !ruby/object:Gem::Requirement
|
|
72
71
|
requirements:
|
|
73
72
|
- - "~>"
|
|
74
73
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '
|
|
74
|
+
version: '8.0'
|
|
76
75
|
- !ruby/object:Gem::Dependency
|
|
77
76
|
name: capybara
|
|
78
77
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -171,7 +170,6 @@ dependencies:
|
|
|
171
170
|
- - ">="
|
|
172
171
|
- !ruby/object:Gem::Version
|
|
173
172
|
version: '0'
|
|
174
|
-
description:
|
|
175
173
|
email:
|
|
176
174
|
- blacklight-development@googlegroups.com
|
|
177
175
|
executables: []
|
|
@@ -228,13 +226,13 @@ files:
|
|
|
228
226
|
- spec/parsing_nesting/to_solr_spec.rb
|
|
229
227
|
- spec/rcov.opts
|
|
230
228
|
- spec/spec_helper.rb
|
|
229
|
+
- spec/test_app_templates/Gemfile.extra
|
|
231
230
|
- spec/test_app_templates/app/controllers/catalog_controller.rb
|
|
232
231
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
|
233
232
|
homepage: http://projectblacklight.org/
|
|
234
233
|
licenses:
|
|
235
234
|
- Apache-2.0
|
|
236
235
|
metadata: {}
|
|
237
|
-
post_install_message:
|
|
238
236
|
rdoc_options: []
|
|
239
237
|
require_paths:
|
|
240
238
|
- lib
|
|
@@ -245,12 +243,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
245
243
|
version: '0'
|
|
246
244
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
245
|
requirements:
|
|
248
|
-
- - "
|
|
246
|
+
- - ">="
|
|
249
247
|
- !ruby/object:Gem::Version
|
|
250
|
-
version:
|
|
248
|
+
version: '0'
|
|
251
249
|
requirements: []
|
|
252
|
-
rubygems_version: 3.
|
|
253
|
-
signing_key:
|
|
250
|
+
rubygems_version: 3.6.9
|
|
254
251
|
specification_version: 4
|
|
255
252
|
summary: Blacklight Advanced Search plugin
|
|
256
253
|
test_files:
|
|
@@ -263,5 +260,6 @@ test_files:
|
|
|
263
260
|
- spec/parsing_nesting/to_solr_spec.rb
|
|
264
261
|
- spec/rcov.opts
|
|
265
262
|
- spec/spec_helper.rb
|
|
263
|
+
- spec/test_app_templates/Gemfile.extra
|
|
266
264
|
- spec/test_app_templates/app/controllers/catalog_controller.rb
|
|
267
265
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|