blacklight_range_limit 8.3.0 → 8.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +1 -0
- data/Gemfile +8 -0
- data/VERSION +1 -1
- data/app/components/blacklight_range_limit/range_facet_component.html.erb +3 -3
- data/blacklight_range_limit.gemspec +1 -1
- data/spec/components/range_facet_component_spec.rb +3 -2
- data/spec/components/range_form_component_spec.rb +3 -2
- data/spec/spec_helper.rb +0 -1
- metadata +23 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 510a2e212fd11cacd9e7a83be02dec8ddec4f5e3e551fb64187f022825ae2661
|
4
|
+
data.tar.gz: c7505814e1172ff021da4ecd65fc7085639771138cf557cf6343707cad9ad577
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c6ef8dd3df728ab8790ddb050ab05f4ff1d72053410af3a138891160f9cb00d287d341586463e6e91081ea271f6c2afaa08773420177d3d455f966fa366b789
|
7
|
+
data.tar.gz: 8c91836e3eaa68af79f7192d18a81a1c0d57f3d6f8d49d0a1fa278ffc657dc597bfe01294e12e87f7954972c3a9f47ac1cd8a479a9279292b81d20cb637de791
|
data/.github/workflows/ruby.yml
CHANGED
@@ -30,6 +30,7 @@ jobs:
|
|
30
30
|
- ruby: '3.0'
|
31
31
|
rails_version: '7.0.4.1'
|
32
32
|
env:
|
33
|
+
BLACKLIGHT_VERSION: "~> 7.0" # only test on BL 7 for now
|
33
34
|
RAILS_VERSION: ${{ matrix.rails_version }}
|
34
35
|
ENGINE_CART_RAILS_OPTIONS: "--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test ${{ matrix.engine_cart_rails_options }}"
|
35
36
|
steps:
|
data/Gemfile
CHANGED
@@ -9,6 +9,14 @@ group :test do
|
|
9
9
|
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
|
10
10
|
end
|
11
11
|
|
12
|
+
# While gemspec allows BL8 and some people are using BL8... the build
|
13
|
+
# has never actually passed on BL8 yet. We may choose to run tests on
|
14
|
+
# a blacklight version other than the latest allowed by gemspec, to get
|
15
|
+
# tests to pass, or to test on older BL still supported here.
|
16
|
+
if ENV['BLACKLIGHT_VERSION']
|
17
|
+
gem "blacklight", ENV['BLACKLIGHT_VERSION']
|
18
|
+
end
|
19
|
+
|
12
20
|
# BEGIN ENGINE_CART BLOCK
|
13
21
|
# engine_cart: 2.5.0
|
14
22
|
# engine_cart stanza: 2.5.0
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
8.
|
1
|
+
8.4.0
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<%= render(@layout.new(facet_field: @facet_field)) do |component| %>
|
2
|
-
<% component.
|
2
|
+
<% component.with_label do %>
|
3
3
|
<%= @facet_field.label %>
|
4
4
|
<% end %>
|
5
5
|
|
6
|
-
<% component.
|
6
|
+
<% component.with_body do %>
|
7
7
|
<div class="limit_content range_limit <%= @facet_field.key %>-config blrl-plot-config">
|
8
8
|
<% if @facet_field.selected_range_facet_item %>
|
9
9
|
<%= render BlacklightRangeLimit::RangeSegmentsComponent.new(facet_field: @facet_field, facet_items: [@facet_field.selected_range_facet_item], classes: ['current']) %>
|
@@ -37,7 +37,7 @@
|
|
37
37
|
|
38
38
|
<%= render BlacklightRangeLimit::RangeFormComponent.new(facet_field: @facet_field, classes: @classes) %>
|
39
39
|
|
40
|
-
<%=
|
40
|
+
<%= with_more_link(key: @facet_field.key, label: @facet_field.label) unless @facet_field.in_modal? %>
|
41
41
|
|
42
42
|
<% if @facet_field.missing_facet_item && !request.xhr? %>
|
43
43
|
<%= render BlacklightRangeLimit::RangeSegmentsComponent.new(facet_field: @facet_field, facet_items: [@facet_field.missing_facet_item], classes: ['missing', 'subsection']) %>
|
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.license = 'Apache 2.0'
|
19
19
|
|
20
20
|
s.add_dependency 'blacklight', '>= 7.25.2', '< 9'
|
21
|
+
s.add_dependency 'view_component', ">= 2.54", "< 4"
|
21
22
|
s.add_dependency 'deprecation'
|
22
23
|
|
23
24
|
s.add_development_dependency 'rspec', '~> 3.0'
|
@@ -28,5 +29,4 @@ Gem::Specification.new do |s|
|
|
28
29
|
s.add_development_dependency 'solr_wrapper'
|
29
30
|
s.add_development_dependency 'engine_cart', '~> 2.1'
|
30
31
|
s.add_development_dependency 'selenium-webdriver', '>= 3.13.1'
|
31
|
-
s.add_development_dependency 'webdrivers', '~>5.0'
|
32
32
|
end
|
@@ -15,7 +15,6 @@ RSpec.describe BlacklightRangeLimit::RangeFacetComponent, type: :component do
|
|
15
15
|
instance_double(
|
16
16
|
BlacklightRangeLimit::FacetFieldPresenter,
|
17
17
|
key: 'key',
|
18
|
-
html_id: 'id',
|
19
18
|
active?: false,
|
20
19
|
collapsed?: false,
|
21
20
|
in_modal?: false,
|
@@ -30,7 +29,8 @@ RSpec.describe BlacklightRangeLimit::RangeFacetComponent, type: :component do
|
|
30
29
|
range_config: {},
|
31
30
|
modal_path: nil,
|
32
31
|
facet_field: facet_config,
|
33
|
-
**facet_field_params
|
32
|
+
**facet_field_params,
|
33
|
+
**extra_facet_field_params
|
34
34
|
)
|
35
35
|
end
|
36
36
|
|
@@ -39,6 +39,7 @@ RSpec.describe BlacklightRangeLimit::RangeFacetComponent, type: :component do
|
|
39
39
|
end
|
40
40
|
|
41
41
|
let(:facet_field_params) { {} }
|
42
|
+
let(:extra_facet_field_params) { Blacklight::VERSION > '8' ? {} : { html_id: 'id' } }
|
42
43
|
|
43
44
|
before do
|
44
45
|
allow(component).to receive(:search_facet_path).and_return('/range/key')
|
@@ -12,6 +12,7 @@ RSpec.describe BlacklightRangeLimit::RangeFormComponent, type: :component do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
let(:facet_field_params) { {} }
|
15
|
+
let(:extra_facet_field_params) { Blacklight::VERSION > '8' ? {} : { html_id: 'id' } }
|
15
16
|
let(:selected_range) { nil }
|
16
17
|
let(:search_params) { { another_field: 'another_value' } }
|
17
18
|
|
@@ -19,7 +20,6 @@ RSpec.describe BlacklightRangeLimit::RangeFormComponent, type: :component do
|
|
19
20
|
instance_double(
|
20
21
|
BlacklightRangeLimit::FacetFieldPresenter,
|
21
22
|
key: 'key',
|
22
|
-
html_id: 'id',
|
23
23
|
active?: false,
|
24
24
|
collapsed?: false,
|
25
25
|
in_modal?: false,
|
@@ -34,7 +34,8 @@ RSpec.describe BlacklightRangeLimit::RangeFormComponent, type: :component do
|
|
34
34
|
range_config: {},
|
35
35
|
modal_path: nil,
|
36
36
|
facet_field: facet_config,
|
37
|
-
**facet_field_params
|
37
|
+
**facet_field_params,
|
38
|
+
**extra_facet_field_params
|
38
39
|
)
|
39
40
|
end
|
40
41
|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight_range_limit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.
|
4
|
+
version: 8.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Rochkind
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-11-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: blacklight
|
@@ -31,6 +31,26 @@ dependencies:
|
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '9'
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: view_component
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.54'
|
41
|
+
- - "<"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '4'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '2.54'
|
51
|
+
- - "<"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '4'
|
34
54
|
- !ruby/object:Gem::Dependency
|
35
55
|
name: deprecation
|
36
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -157,20 +177,6 @@ dependencies:
|
|
157
177
|
- - ">="
|
158
178
|
- !ruby/object:Gem::Version
|
159
179
|
version: 3.13.1
|
160
|
-
- !ruby/object:Gem::Dependency
|
161
|
-
name: webdrivers
|
162
|
-
requirement: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '5.0'
|
167
|
-
type: :development
|
168
|
-
prerelease: false
|
169
|
-
version_requirements: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '5.0'
|
174
180
|
description:
|
175
181
|
email:
|
176
182
|
- blacklight-development@googlegroups.com
|
@@ -293,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
293
299
|
- !ruby/object:Gem::Version
|
294
300
|
version: '0'
|
295
301
|
requirements: []
|
296
|
-
rubygems_version: 3.
|
302
|
+
rubygems_version: 3.4.21
|
297
303
|
signing_key:
|
298
304
|
specification_version: 4
|
299
305
|
summary: Blacklight Range Limit plugin
|