blacklight_range_limit 9.0.0 → 9.2.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 +65 -22
- data/Gemfile +2 -18
- data/README.md +4 -2
- data/VERSION +1 -1
- data/app/components/blacklight_range_limit/range_facet_component.rb +11 -2
- data/app/components/blacklight_range_limit/range_form_component.html.erb +14 -18
- data/app/components/blacklight_range_limit/range_input_component.html.erb +9 -0
- data/app/components/blacklight_range_limit/range_input_component.rb +14 -0
- data/app/components/blacklight_range_limit/range_segments_component.rb +5 -2
- data/blacklight_range_limit.gemspec +2 -2
- data/lib/blacklight_range_limit/controller_override.rb +14 -7
- data/lib/blacklight_range_limit/routes/range_searchable.rb +0 -1
- data/package.json +1 -1
- data/spec/spec_helper.rb +1 -1
- data/spec/support/presenter_test_helpers.rb +3 -1
- data/spec/test_app_templates/Gemfile.extra +2 -4
- metadata +9 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cb2770ee329bb6bc941864e6e371eab6f676a5aba369c9ece4aebb244703089d
|
|
4
|
+
data.tar.gz: ed51729efb72aa983fbe046995ab9b633cd31923a083f05579912b496a192942
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f40f9917b407aa32b7cb5b0040fd69dde006f911cea0470ddf56c885985e84232ac70488db753a8b3d07efae7e48e3915474f98e9832ad1518c279e5de0347e8
|
|
7
|
+
data.tar.gz: faa8fe7325e92e8cc8694b67c89229c9f346471f06415069b0c5736efa797a1dba040e4b5033559639c36ac52ea21a05b5699b3ab081530aca23d2712bc342a5
|
data/.github/workflows/ruby.yml
CHANGED
|
@@ -12,6 +12,8 @@ on:
|
|
|
12
12
|
branches: [main]
|
|
13
13
|
pull_request:
|
|
14
14
|
branches: ['**']
|
|
15
|
+
schedule:
|
|
16
|
+
- cron: "0 2 * * TUE"
|
|
15
17
|
|
|
16
18
|
jobs:
|
|
17
19
|
test:
|
|
@@ -24,47 +26,97 @@ jobs:
|
|
|
24
26
|
#
|
|
25
27
|
# * Blacklight: 7, 8, or 9
|
|
26
28
|
# * Rails: 7 or 8
|
|
27
|
-
# * sprockets or propshaft(with cssbundling-rails sass)
|
|
28
|
-
# * importmap-rails or esbuild
|
|
29
|
+
# * sprockets or propshaft (with cssbundling-rails sass)
|
|
30
|
+
# * importmap-rails or esbuild (each with sprockets or importmaps)
|
|
29
31
|
#
|
|
30
32
|
# We should work with almost every combo of these (even though BL itself
|
|
31
33
|
# doesn't officially support every one), but we don't test with every one,
|
|
32
34
|
# that'd be too much. Plus BL can't *generate* every one even though it
|
|
33
35
|
# can be made to work with every one. We test with some good significant
|
|
34
36
|
# representative samples.
|
|
37
|
+
#
|
|
38
|
+
# If 'blacklight_version' includes `://`, will be understood as github url,
|
|
39
|
+
# used for testing off blacklight main.
|
|
35
40
|
|
|
36
41
|
include:
|
|
37
|
-
# BLACKLIGHT EDGE, can test with
|
|
42
|
+
# BLACKLIGHT EDGE, can test with latest rails, importmap and esbuild
|
|
38
43
|
#
|
|
39
44
|
|
|
40
|
-
- rails_version: "~> 8.0.
|
|
41
|
-
blacklight_version: '
|
|
45
|
+
- rails_version: "~> 8.1.0.rc1"
|
|
46
|
+
blacklight_version: 'https://github.com/projectblacklight/blacklight.git'
|
|
42
47
|
ruby: "3.3"
|
|
43
48
|
additional_name: "/ importmap-rails"
|
|
44
49
|
additional_engine_cart_rails_options: "--css=bootstrap"
|
|
45
|
-
|
|
46
|
-
|
|
50
|
+
|
|
51
|
+
- rails_version: "~> 8.1.0.rc1"
|
|
52
|
+
blacklight_version: 'https://github.com/projectblacklight/blacklight.git'
|
|
47
53
|
ruby: "3.3"
|
|
48
54
|
additional_name: "/ esbuild"
|
|
49
55
|
additional_engine_cart_rails_options: "--css=bootstrap --javascript=esbuild"
|
|
50
56
|
|
|
57
|
+
# BLACKLIGHT 9 and with Rails 8 and 8.1
|
|
58
|
+
#
|
|
59
|
+
|
|
60
|
+
- rails_version: "~> 8.1.0.rc1"
|
|
61
|
+
blacklight_version: '~> 9.0'
|
|
62
|
+
ruby: "3.4"
|
|
63
|
+
additional_name: "/ importmap-rails"
|
|
64
|
+
additional_engine_cart_rails_options: "--css=bootstrap"
|
|
51
65
|
|
|
66
|
+
- rails_version: "~> 8.1.0.rc1"
|
|
67
|
+
blacklight_version: '~> 9.0'
|
|
68
|
+
ruby: "3.4"
|
|
69
|
+
additional_name: "/ esbuild"
|
|
70
|
+
additional_engine_cart_rails_options: "--css=bootstrap --javascript=esbuild"
|
|
52
71
|
|
|
53
|
-
|
|
54
|
-
|
|
72
|
+
- rails_version: "~> 8.0.0"
|
|
73
|
+
blacklight_version: '~> 9.0'
|
|
74
|
+
ruby: "3.4"
|
|
75
|
+
additional_name: "/ importmap-rails"
|
|
76
|
+
additional_engine_cart_rails_options: "--css=bootstrap"
|
|
77
|
+
|
|
78
|
+
- rails_version: "~> 8.0.0"
|
|
79
|
+
blacklight_version: '~> 9.0'
|
|
80
|
+
ruby: "3.4"
|
|
81
|
+
additional_name: "/ esbuild"
|
|
82
|
+
additional_engine_cart_rails_options: "--css=bootstrap --javascript=esbuild"
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
# BLACKLIGHT 8, can test with use importmaps and esbuild, also rails 8 and 8.1
|
|
86
|
+
# and a bit of 7.2
|
|
87
|
+
|
|
88
|
+
- rails_version: "~> 8.1.0.rc1"
|
|
89
|
+
blacklight_version: "~> 8.0"
|
|
90
|
+
ruby: "3.3"
|
|
91
|
+
additional_name: "/ importmap-rails, propshaft"
|
|
92
|
+
additional_engine_cart_rails_options: "-a propshaft --css=bootstrap"
|
|
93
|
+
|
|
94
|
+
- rails_version: "~> 8.1.0.rc1"
|
|
95
|
+
blacklight_version: "~> 8.0"
|
|
96
|
+
ruby: "3.3"
|
|
97
|
+
additional_engine_cart_rails_options: "-a propshaft --javascript=esbuild --css=bootstrap"
|
|
98
|
+
additional_name: "/ esbuild, propshaft"
|
|
99
|
+
|
|
100
|
+
- rails_version: "~> 8.0.0"
|
|
101
|
+
blacklight_version: "~> 8.0"
|
|
102
|
+
ruby: "3.3"
|
|
103
|
+
additional_name: "/ importmap-rails, propshaft"
|
|
104
|
+
additional_engine_cart_rails_options: "-a propshaft --css=bootstrap"
|
|
55
105
|
|
|
56
106
|
- rails_version: "7.2.1"
|
|
57
107
|
blacklight_version: "~> 8.0"
|
|
58
108
|
ruby: "3.3"
|
|
59
109
|
additional_name: "/ importmap-rails, sprockets"
|
|
110
|
+
|
|
60
111
|
- rails_version: "7.2.1"
|
|
61
112
|
blacklight_version: "~> 8.0"
|
|
62
113
|
ruby: "3.3"
|
|
63
114
|
additional_name: "/ importmap-rails, propshaft"
|
|
64
115
|
additional_engine_cart_rails_options: "-a propshaft --css=bootstrap"
|
|
116
|
+
|
|
65
117
|
- rails_version: "7.2.1"
|
|
66
118
|
blacklight_version: "~> 8.0"
|
|
67
|
-
ruby: 3.3
|
|
119
|
+
ruby: "3.3"
|
|
68
120
|
additional_engine_cart_rails_options: "-a propshaft --javascript=esbuild --css=bootstrap"
|
|
69
121
|
additional_name: "/ esbuild, propshaft"
|
|
70
122
|
|
|
@@ -73,12 +125,11 @@ jobs:
|
|
|
73
125
|
# * Blacklight 8 can't easily generate an app with Rails 7 and sprockets and esbuild
|
|
74
126
|
# (the default layout won't be right), although I think it should work fine.
|
|
75
127
|
#
|
|
76
|
-
# * Can't test with
|
|
77
|
-
# npm package
|
|
128
|
+
# * Can't test with unreleased Blacklight main and esbuild because the blacklight-frontend
|
|
129
|
+
# npm package doesn't work from git checkout. So currently can't test with Rails 8
|
|
78
130
|
# and esbuild.
|
|
79
131
|
|
|
80
132
|
|
|
81
|
-
|
|
82
133
|
# BLACKLIGHT 7, only test with esbuild, not sure if it supports importmaps, it won't generate it
|
|
83
134
|
|
|
84
135
|
- rails_version: "7.2.1"
|
|
@@ -86,6 +137,7 @@ jobs:
|
|
|
86
137
|
ruby: "3.3"
|
|
87
138
|
additional_engine_cart_rails_options: "--javascript=esbuild"
|
|
88
139
|
additional_name: "/ esbuild, sprockets"
|
|
140
|
+
|
|
89
141
|
- rails_version: "7.2.1"
|
|
90
142
|
blacklight_version: "~> 7.0"
|
|
91
143
|
ruby: "3.3"
|
|
@@ -98,15 +150,6 @@ jobs:
|
|
|
98
150
|
additional_engine_cart_rails_options: "--javascript=esbuild"
|
|
99
151
|
additional_name: "/ esbuild, sprockets"
|
|
100
152
|
|
|
101
|
-
- rails_version: "7.0.8.4"
|
|
102
|
-
blacklight_version: "~> 7.0"
|
|
103
|
-
ruby: "3.1"
|
|
104
|
-
additional_engine_cart_rails_options: "--javascript=esbuild"
|
|
105
|
-
additional_name: "/ esbuild, sprockets"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
153
|
|
|
111
154
|
env:
|
|
112
155
|
BLACKLIGHT_VERSION: ${{ matrix.blacklight_version || '~> 8.0' }}
|
data/Gemfile
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
|
-
require 'json'
|
|
3
2
|
|
|
4
3
|
source 'https://rubygems.org'
|
|
5
4
|
|
|
@@ -10,14 +9,9 @@ group :test do
|
|
|
10
9
|
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
|
|
11
10
|
end
|
|
12
11
|
|
|
13
|
-
# While gemspec allows BL8 and some people are using BL8... the build
|
|
14
|
-
# has never actually passed on BL8 yet. We may choose to run tests on
|
|
15
|
-
# a blacklight version other than the latest allowed by gemspec, to get
|
|
16
|
-
# tests to pass, or to test on older BL still supported here.
|
|
17
12
|
if ENV['BLACKLIGHT_VERSION']
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
gem "blacklight", **JSON.parse(ENV['BLACKLIGHT_VERSION'])
|
|
13
|
+
if ENV['BLACKLIGHT_VERSION'].include?("://")
|
|
14
|
+
gem "blacklight", git: ENV['BLACKLIGHT_VERSION']
|
|
21
15
|
else
|
|
22
16
|
gem "blacklight", ENV['BLACKLIGHT_VERSION']
|
|
23
17
|
end
|
|
@@ -45,16 +39,6 @@ else
|
|
|
45
39
|
else
|
|
46
40
|
gem 'rails', ENV['RAILS_VERSION']
|
|
47
41
|
end
|
|
48
|
-
|
|
49
|
-
case ENV['RAILS_VERSION']
|
|
50
|
-
when /^6.0/
|
|
51
|
-
gem 'sass-rails', '>= 6'
|
|
52
|
-
gem 'webpacker', '~> 4.0'
|
|
53
|
-
when /^5.[12]/
|
|
54
|
-
gem 'sass-rails', '~> 5.0'
|
|
55
|
-
gem 'sprockets', '~> 3.7'
|
|
56
|
-
gem 'thor', '~> 0.20'
|
|
57
|
-
end
|
|
58
42
|
end
|
|
59
43
|
end
|
|
60
44
|
# END ENGINE_CART BLOCK
|
data/README.md
CHANGED
|
@@ -173,6 +173,8 @@ bundle exec rspec spec/features/blacklight_range_limit_spec.rb
|
|
|
173
173
|
|
|
174
174
|
Once you are done iterating on your test you will need to stop the application server with `Ctrl-C`.
|
|
175
175
|
|
|
176
|
-
#
|
|
176
|
+
# Release process
|
|
177
177
|
|
|
178
|
-
|
|
178
|
+
Make sure you adjust version to match in both `VERSION` *and* `package.json` file.
|
|
179
|
+
|
|
180
|
+
Release rubygem with `bundle exec rake release` and also be sure to release npm package by running `npm publish` to push the javascript package to https://npmjs.org/package/blacklight-range-limit
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
9.
|
|
1
|
+
9.2.0
|
|
@@ -6,7 +6,16 @@ module BlacklightRangeLimit
|
|
|
6
6
|
|
|
7
7
|
def initialize(facet_field:, layout: nil, classes: BlacklightRangeLimit.classes)
|
|
8
8
|
@facet_field = facet_field
|
|
9
|
-
@layout = layout == false
|
|
9
|
+
@layout = if layout == false
|
|
10
|
+
Blacklight::FacetFieldNoLayoutComponent
|
|
11
|
+
elsif layout
|
|
12
|
+
layout
|
|
13
|
+
elsif defined?(Blacklight::Facets::FacetFieldComponent)
|
|
14
|
+
Blacklight::Facets::FacetFieldComponent # Blacklight 9
|
|
15
|
+
else
|
|
16
|
+
Blacklight::FacetFieldComponent # Blacklight < 9
|
|
17
|
+
end
|
|
18
|
+
|
|
10
19
|
@classes = classes
|
|
11
20
|
end
|
|
12
21
|
|
|
@@ -39,7 +48,7 @@ module BlacklightRangeLimit
|
|
|
39
48
|
min = @facet_field.selected_range_facet_item&.value&.begin || @facet_field.min
|
|
40
49
|
max = @facet_field.selected_range_facet_item&.value&.end || @facet_field.max
|
|
41
50
|
|
|
42
|
-
return nil unless
|
|
51
|
+
return nil unless min && max
|
|
43
52
|
|
|
44
53
|
range_limit_url(range_start: min, range_end: max)
|
|
45
54
|
end
|
|
@@ -3,25 +3,21 @@
|
|
|
3
3
|
|
|
4
4
|
<div class="range-limit-input-group">
|
|
5
5
|
<div class="d-flex justify-content-between align-items-end">
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
%>
|
|
14
|
-
</div>
|
|
6
|
+
<%= render BlacklightRangeLimit::RangeInputComponent.new(
|
|
7
|
+
input_name: begin_input_name,
|
|
8
|
+
input_value: begin_value_default,
|
|
9
|
+
label_text: t("blacklight.range_limit.range_begin_short"),
|
|
10
|
+
min_value: range_config[:min_value],
|
|
11
|
+
max_value: range_config[:max_value],
|
|
12
|
+
css_class: "range_begin") %>
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
%>
|
|
24
|
-
</div>
|
|
14
|
+
<%= render BlacklightRangeLimit::RangeInputComponent.new(
|
|
15
|
+
input_name: end_input_name,
|
|
16
|
+
input_value: end_value_default,
|
|
17
|
+
label_text: t("blacklight.range_limit.range_end_short"),
|
|
18
|
+
min_value: range_config[:min_value],
|
|
19
|
+
max_value: range_config[:max_value],
|
|
20
|
+
css_class: "range_end") %>
|
|
25
21
|
</div>
|
|
26
22
|
<div class="d-flex justify-content-end mt-2">
|
|
27
23
|
<%= submit_tag t('blacklight.range_limit.submit_limit'), class: @classes[:submit], name: nil %>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<div class="d-flex flex-column mr-1 me-1">
|
|
2
|
+
<%= label_tag @input_name, @label_text, class: 'text-muted small mb-1' %>
|
|
3
|
+
<%= number_field_tag @input_name,
|
|
4
|
+
@input_value,
|
|
5
|
+
min: @min_value,
|
|
6
|
+
max: @max_value,
|
|
7
|
+
class: "form-control form-control-sm #{@css_class}" %>
|
|
8
|
+
</div>
|
|
9
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module BlacklightRangeLimit
|
|
4
|
+
class RangeInputComponent < Blacklight::Component
|
|
5
|
+
def initialize(input_name:, input_value:, label_text:, min_value:, max_value:, css_class:)
|
|
6
|
+
@input_name = input_name
|
|
7
|
+
@input_value = input_value
|
|
8
|
+
@label_text = label_text
|
|
9
|
+
@min_value = min_value
|
|
10
|
+
@max_value = max_value
|
|
11
|
+
@css_class = css_class
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -3,11 +3,14 @@
|
|
|
3
3
|
module BlacklightRangeLimit
|
|
4
4
|
class RangeSegmentsComponent < Blacklight::Component
|
|
5
5
|
def initialize(facet_field:, facet_items: nil, item_component: nil, classes: [])
|
|
6
|
-
super
|
|
6
|
+
super()
|
|
7
7
|
|
|
8
8
|
@facet_field = facet_field
|
|
9
9
|
@facet_items = facet_items || facet_field.try(:range_queries) || []
|
|
10
|
-
|
|
10
|
+
# newer versions of BL9 want Blacklight::Facets::ItemComponent -- the older one is supposed
|
|
11
|
+
# to be deprecated, but in fact may not work so we use newer if avail.
|
|
12
|
+
@item_component = facet_field.facet_field.item_component ||
|
|
13
|
+
(defined?(Blacklight::Facets::ItemComponent) ? Blacklight::Facets::ItemComponent : Blacklight::FacetItemComponent)
|
|
11
14
|
@classes = classes
|
|
12
15
|
end
|
|
13
16
|
|
|
@@ -17,8 +17,8 @@ Gem::Specification.new do |s|
|
|
|
17
17
|
|
|
18
18
|
s.license = 'Apache 2.0'
|
|
19
19
|
|
|
20
|
-
s.add_dependency 'blacklight', '>= 7.25.2', '<
|
|
21
|
-
s.add_dependency 'view_component', ">= 2.54", "<
|
|
20
|
+
s.add_dependency 'blacklight', '>= 7.25.2', '< 10'
|
|
21
|
+
s.add_dependency 'view_component', ">= 2.54", "< 5"
|
|
22
22
|
|
|
23
23
|
s.add_development_dependency 'rspec', '~> 3.0'
|
|
24
24
|
s.add_development_dependency 'rspec-rails'
|
|
@@ -8,18 +8,17 @@ module BlacklightRangeLimit
|
|
|
8
8
|
|
|
9
9
|
RANGE_LIMIT_FIELDS = [:range_end, :range_field, :range_start].freeze
|
|
10
10
|
|
|
11
|
+
included do
|
|
12
|
+
# have to do this in before_action so it's done before any application level
|
|
13
|
+
# before_actions, that might do something that needs it
|
|
14
|
+
before_action :_range_limit_add_search_state_fields, only: :range_limit
|
|
15
|
+
end
|
|
16
|
+
|
|
11
17
|
# Action method of our own!
|
|
12
18
|
# Delivers a _partial_ that's a display of a single fields range facets.
|
|
13
19
|
# Used when we need a second Solr query to get range facets, after the
|
|
14
20
|
# first found min/max from result set.
|
|
15
21
|
def range_limit
|
|
16
|
-
# The builder in this action will need our special range_limit fields, so we
|
|
17
|
-
# must allow them.
|
|
18
|
-
if blacklight_config.search_state_fields
|
|
19
|
-
missing_keys = RANGE_LIMIT_FIELDS - blacklight_config.search_state_fields
|
|
20
|
-
blacklight_config.search_state_fields.concat(missing_keys)
|
|
21
|
-
end
|
|
22
|
-
|
|
23
22
|
@facet = blacklight_config.facet_fields[params[:range_field]]
|
|
24
23
|
raise ActionController::RoutingError, 'Not Found' unless @facet&.range
|
|
25
24
|
|
|
@@ -40,6 +39,14 @@ module BlacklightRangeLimit
|
|
|
40
39
|
render BlacklightRangeLimit::RangeSegmentsComponent.new(facet_field: @presenter), layout: !request.xhr?
|
|
41
40
|
end
|
|
42
41
|
|
|
42
|
+
def _range_limit_add_search_state_fields
|
|
43
|
+
# The builder in this action will need our special range_limit fields, so we
|
|
44
|
+
# must allow them.
|
|
45
|
+
blacklight_config.search_state_fields ||= []
|
|
46
|
+
missing_keys = RANGE_LIMIT_FIELDS - blacklight_config.search_state_fields
|
|
47
|
+
blacklight_config.search_state_fields.concat(missing_keys)
|
|
48
|
+
end
|
|
49
|
+
|
|
43
50
|
class_methods do
|
|
44
51
|
def default_range_config
|
|
45
52
|
BlacklightRangeLimit.default_range_config
|
data/package.json
CHANGED
data/spec/spec_helper.rb
CHANGED
|
@@ -44,8 +44,8 @@ RSpec.configure do |config|
|
|
|
44
44
|
config.infer_spec_type_from_file_location!
|
|
45
45
|
|
|
46
46
|
config.include PresenterTestHelpers, type: :presenter
|
|
47
|
+
config.include ViewComponent::TestHelpers, type: :presenter
|
|
47
48
|
config.include ViewComponent::TestHelpers, type: :component
|
|
48
49
|
|
|
49
50
|
config.example_status_persistence_file_path = 'spec/examples.txt'
|
|
50
|
-
|
|
51
51
|
end
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
module PresenterTestHelpers
|
|
4
4
|
def controller
|
|
5
|
-
|
|
5
|
+
# view_component 3+ should be just `vc_test_controller_class` when we drop VC 2 support we can
|
|
6
|
+
# just use that.
|
|
7
|
+
@controller ||= (respond_to?(:vc_test_controller_class) ? vc_test_controller_class : ApplicationController).new.tap { |c| c.request = request }.extend(Rails.application.routes.url_helpers)
|
|
6
8
|
end
|
|
7
9
|
|
|
8
10
|
def request
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
gem 'rails-controller-testing'
|
|
2
2
|
|
|
3
3
|
if ENV['BLACKLIGHT_VERSION']
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
if ENV['BLACKLIGHT_VERSION'].start_with?("{")
|
|
7
|
-
gem "blacklight", **JSON.parse(ENV['BLACKLIGHT_VERSION'])
|
|
4
|
+
if ENV['BLACKLIGHT_VERSION'].include?("://")
|
|
5
|
+
gem "blacklight", git: ENV['BLACKLIGHT_VERSION']
|
|
8
6
|
else
|
|
9
7
|
gem "blacklight", ENV['BLACKLIGHT_VERSION']
|
|
10
8
|
end
|
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: blacklight_range_limit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 9.
|
|
4
|
+
version: 9.2.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.25.2
|
|
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.25.2
|
|
31
30
|
- - "<"
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
32
|
+
version: '10'
|
|
34
33
|
- !ruby/object:Gem::Dependency
|
|
35
34
|
name: view_component
|
|
36
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -40,7 +39,7 @@ dependencies:
|
|
|
40
39
|
version: '2.54'
|
|
41
40
|
- - "<"
|
|
42
41
|
- !ruby/object:Gem::Version
|
|
43
|
-
version: '
|
|
42
|
+
version: '5'
|
|
44
43
|
type: :runtime
|
|
45
44
|
prerelease: false
|
|
46
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -50,7 +49,7 @@ dependencies:
|
|
|
50
49
|
version: '2.54'
|
|
51
50
|
- - "<"
|
|
52
51
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: '
|
|
52
|
+
version: '5'
|
|
54
53
|
- !ruby/object:Gem::Dependency
|
|
55
54
|
name: rspec
|
|
56
55
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -177,7 +176,6 @@ dependencies:
|
|
|
177
176
|
- - ">="
|
|
178
177
|
- !ruby/object:Gem::Version
|
|
179
178
|
version: 3.13.1
|
|
180
|
-
description:
|
|
181
179
|
email:
|
|
182
180
|
- blacklight-development@googlegroups.com
|
|
183
181
|
executables: []
|
|
@@ -198,6 +196,8 @@ files:
|
|
|
198
196
|
- app/components/blacklight_range_limit/range_facet_component.rb
|
|
199
197
|
- app/components/blacklight_range_limit/range_form_component.html.erb
|
|
200
198
|
- app/components/blacklight_range_limit/range_form_component.rb
|
|
199
|
+
- app/components/blacklight_range_limit/range_input_component.html.erb
|
|
200
|
+
- app/components/blacklight_range_limit/range_input_component.rb
|
|
201
201
|
- app/components/blacklight_range_limit/range_segments_component.html.erb
|
|
202
202
|
- app/components/blacklight_range_limit/range_segments_component.rb
|
|
203
203
|
- app/presenters/blacklight_range_limit/facet_field_presenter.rb
|
|
@@ -268,7 +268,6 @@ homepage: https://github.com/projectblacklight/blacklight_range_limit
|
|
|
268
268
|
licenses:
|
|
269
269
|
- Apache 2.0
|
|
270
270
|
metadata: {}
|
|
271
|
-
post_install_message:
|
|
272
271
|
rdoc_options: []
|
|
273
272
|
require_paths:
|
|
274
273
|
- lib
|
|
@@ -283,8 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
283
282
|
- !ruby/object:Gem::Version
|
|
284
283
|
version: '0'
|
|
285
284
|
requirements: []
|
|
286
|
-
rubygems_version: 3.
|
|
287
|
-
signing_key:
|
|
285
|
+
rubygems_version: 3.7.1
|
|
288
286
|
specification_version: 4
|
|
289
287
|
summary: Blacklight Range Limit plugin
|
|
290
288
|
test_files:
|