blacklight 7.35.0 → 7.36.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 841946108f3216c1dfc66f10787069b43fdcca041e9cc3e114524bf0a5cf6aa1
4
- data.tar.gz: 621f2d5648013ab85fa3c3c99a001824e49b24be263cd1eda45a7f5ed9e22daa
3
+ metadata.gz: f765559b5df84d243537823f81c5b6d9fccca157bf7cc17a1c857067f76c4a79
4
+ data.tar.gz: d0de6aa0209d19691e48569b9aa33011f13259755502997082add198ad6e21de
5
5
  SHA512:
6
- metadata.gz: 9ae81c46a04f928701d7e16c227bf33ae9ed0ae214e6ef94bbf96bc0b33aa22ff889e286a1235d6c6a225e11597fe3e832db2c5242cc71a533229ee75dc2b407
7
- data.tar.gz: 2005c22b35ac7a9f4c3fb065f412a6369bcf903f918bc46770d23999a509bae45d855c83b14a0e167f3acbafd900ae63f6fe4cfe30de98f8d97bb17980a64c49
6
+ metadata.gz: d241feeec8c93d23cfbe7a8b9b8600e2cd10ccfe52ddd26e8706b721173311033b31d9378226929008fa8d9326828c9e9363646d67a48f74359fda7479b1a468
7
+ data.tar.gz: bc1df26425a9e43efb3b01bbdcdf31e4b9fd3ad2ee9e6215780e485bf1c7f62d6b625a5c554549f183c1ce104503bba175e0830349cdadc981c7d895d0c440c8
data/.env CHANGED
@@ -1,5 +1,5 @@
1
- ALPINE_RUBY_VERSION=2.7.5
2
- RAILS_VERSION=5.2.6
1
+ ALPINE_RUBY_VERSION=3.2.2
2
+ RAILS_VERSION=7.0.8
3
3
  VIEW_COMPONENT_VERSION=2.6.6
4
4
  SOLR_PORT=8983
5
5
  SOLR_URL=http://solr:8983/solr/blacklight-core
@@ -23,7 +23,7 @@ jobs:
23
23
  uses: ruby/setup-ruby@v1
24
24
  with:
25
25
  ruby-version: 2.7
26
- bundler: 'latest'
26
+ bundler: 'default'
27
27
  - name: Install dependencies
28
28
  run: bundle install
29
29
  - name: Run linter
@@ -32,14 +32,16 @@ jobs:
32
32
  runs-on: ubuntu-latest
33
33
  strategy:
34
34
  matrix:
35
- ruby: [2.7, '3.0', 3.1, 3.2]
35
+ ruby: [3.1, 3.2]
36
+ env:
37
+ RAILS_VERSION: 7.0.8
36
38
  steps:
37
39
  - uses: actions/checkout@v2
38
40
  - name: Set up Ruby
39
41
  uses: ruby/setup-ruby@v1
40
42
  with:
41
43
  ruby-version: ${{ matrix.ruby }}
42
- bundler: 'latest'
44
+ bundler: 'default'
43
45
  - name: Install dependencies
44
46
  run: bundle install
45
47
  - name: Run tests
@@ -51,13 +53,15 @@ jobs:
51
53
  strategy:
52
54
  matrix:
53
55
  ruby: ['3.0']
56
+ env:
57
+ RAILS_VERSION: 7.0.8
54
58
  steps:
55
59
  - uses: actions/checkout@v2
56
60
  - name: Set up Ruby
57
61
  uses: ruby/setup-ruby@v1
58
62
  with:
59
63
  ruby-version: ${{ matrix.ruby }}
60
- bundler: 'latest'
64
+ bundler: 'default'
61
65
  - name: Install dependencies
62
66
  run: bundle install
63
67
  - name: Run tests
@@ -76,7 +80,7 @@ jobs:
76
80
  uses: ruby/setup-ruby@v1
77
81
  with:
78
82
  ruby-version: ${{ matrix.ruby }}
79
- bundler: 'latest'
83
+ bundler: 'default'
80
84
  - name: Install dependencies
81
85
  run: bundle install
82
86
  env:
@@ -97,7 +101,7 @@ jobs:
97
101
  uses: ruby/setup-ruby@v1
98
102
  with:
99
103
  ruby-version: ${{ matrix.ruby }}
100
- bundler: 'latest'
104
+ bundler: 'default'
101
105
  - name: Install dependencies
102
106
  run: bundle install
103
107
  env:
@@ -107,27 +111,25 @@ jobs:
107
111
  env:
108
112
  RAILS_VERSION: 5.2.8.1
109
113
  ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
110
-
111
114
  test_rails6_1:
112
115
  runs-on: ubuntu-latest
113
116
  strategy:
114
117
  matrix:
115
118
  ruby: ['3.0']
119
+ env:
120
+ RAILS_VERSION: 6.1.6.1
116
121
  steps:
117
122
  - uses: actions/checkout@v2
118
123
  - name: Set up Ruby
119
124
  uses: ruby/setup-ruby@v1
120
125
  with:
121
126
  ruby-version: ${{ matrix.ruby }}
122
- bundler: 'latest'
127
+ bundler: 'default'
123
128
  - name: Install dependencies
124
129
  run: bundle install
125
- env:
126
- RAILS_VERSION: 6.1.6.1
127
130
  - name: Run tests
128
131
  run: bundle exec rake ci
129
132
  env:
130
- RAILS_VERSION: 6.1.6.1
131
133
  ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-keeps --skip-action-cable --skip-test'
132
134
  test_vc3:
133
135
  runs-on: ubuntu-latest
@@ -135,6 +137,7 @@ jobs:
135
137
  matrix:
136
138
  ruby: ['3.2']
137
139
  env:
140
+ RAILS_VERSION: 7.0.8
138
141
  VIEW_COMPONENT_VERSION: ${{ matrix.view_component_version }}
139
142
  steps:
140
143
  - uses: actions/checkout@v2
@@ -142,7 +145,7 @@ jobs:
142
145
  uses: ruby/setup-ruby@v1
143
146
  with:
144
147
  ruby-version: ${{ matrix.ruby }}
145
- bundler: 'latest'
148
+ bundler: 'default'
146
149
  - name: Install dependencies
147
150
  run: bundle install
148
151
  - name: Run tests
@@ -154,12 +157,14 @@ jobs:
154
157
  strategy:
155
158
  matrix:
156
159
  ruby: [2.7, '3.0']
160
+ env:
161
+ RAILS_VERSION: 7.0.8
157
162
  steps:
158
163
  - uses: actions/checkout@v2
159
164
  - name: Set up Ruby
160
165
  uses: ruby/setup-ruby@v1
161
166
  with:
162
- bundler: 'latest'
167
+ bundler: 'default'
163
168
  ruby-version: ${{ matrix.ruby }}
164
169
  - name: Install dependencies
165
170
  run: bundle install
data/Gemfile CHANGED
@@ -48,3 +48,29 @@ end
48
48
  # END ENGINE_CART BLOCK
49
49
 
50
50
  eval_gemfile File.expand_path("spec/test_app_templates/Gemfile.extra", File.dirname(__FILE__))
51
+
52
+ gem "rubocop", "~> 1.60"
53
+
54
+ gem "rubocop-capybara", "~> 2.20"
55
+
56
+ gem "rubocop-rspec", "~> 2.26"
57
+
58
+ gem "rubocop-rails", "~> 2.23"
59
+
60
+ gem "rspec", "~> 3.12"
61
+
62
+ gem "simplecov", "~> 0.22.0"
63
+
64
+ gem "engine_cart", "~> 2.6"
65
+
66
+ gem "rspec-rails", "~> 6.1"
67
+
68
+ gem "rspec-collection_matchers", "~> 1.2"
69
+
70
+ gem "capybara", "~> 3.39"
71
+
72
+ gem "selenium-webdriver", "~> 4.16"
73
+
74
+ gem "equivalent-xml", "~> 0.6.0"
75
+
76
+ gem "axe-core-rspec", "~> 4.8"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.35.0
1
+ 7.36.1
@@ -33,7 +33,7 @@ module Blacklight
33
33
  options = sort_fields.values.map { |field_config| [helpers.sort_field_label(field_config.key), field_config.key] }
34
34
  return unless options.any?
35
35
 
36
- select_tag(:sort, options_for_select(options, params[:sort]), class: "form-control sort-select w-auto", aria: { labelledby: 'advanced-search-sort-label' })
36
+ select_tag(:sort, options_for_select(options, params[:sort]), class: "form-select custom-select sort-select w-auto", aria: { labelledby: 'advanced-search-sort-label' })
37
37
  end
38
38
 
39
39
  private
@@ -20,7 +20,7 @@
20
20
  <div class="more_facets">
21
21
  <%= link_to t("more_#{@facet_field.key}_html", scope: 'blacklight.search.facets', default: :more_html, field_name: @facet_field.label),
22
22
  @facet_field.modal_path,
23
- data: { blacklight_modal: 'trigger' } %>
23
+ data: { blacklight_modal: 'trigger', turbo: false } %>
24
24
  </div>
25
25
  <% end %>
26
26
  </div>
@@ -1,5 +1,5 @@
1
1
  <%= render Blacklight::System::ModalComponent.new do |component| %>
2
- <% component.title { t('blacklight.tools.citation') } %>
2
+ <% component.with_title { t('blacklight.tools.citation') } %>
3
3
 
4
4
  <%= render Blacklight::Document::CitationComponent.with_collection(@documents) if @documents.present? %>
5
5
  <% end %>
@@ -1,7 +1,7 @@
1
1
  <%= render Blacklight::System::ModalComponent.new do |component| %>
2
- <% component.title { t('blacklight.email.form.title') } %>
2
+ <% component.with_title { t('blacklight.email.form.title') } %>
3
3
 
4
- <% component.body do %>
4
+ <% component.with_body do %>
5
5
  <%= render 'email_form' %>
6
6
  <% end %>
7
7
  <% end %>
@@ -1,7 +1,7 @@
1
1
  <%= render Blacklight::System::ModalComponent.new do |component| %>
2
- <% component.title { t('blacklight.sms.form.title') } %>
2
+ <% component.with_title { t('blacklight.sms.form.title') } %>
3
3
 
4
- <% component.body do %>
4
+ <% component.with_body do %>
5
5
  <%= render 'sms_form' %>
6
6
  <% end %>
7
7
  <% end %>
@@ -1,4 +1,4 @@
1
- <div id="blacklight-modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
1
+ <div id="blacklight-modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true" data-turbo="false">
2
2
  <div class="modal-dialog modal-lg" role="document">
3
3
  <div class="modal-content">
4
4
  </div>
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.describe 'Citation functionality' do
4
+ before { visit solr_document_path('2007020969') }
5
+
6
+ it 'displays the Cite modal with expected header' do
7
+ click_link 'Cite'
8
+ expect(find('div.modal-header')).to have_text 'Cite'
9
+ end
10
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.describe 'SMS functionality' do
4
+ before { visit solr_document_path('2007020969') }
5
+
6
+ it 'displays SMS modal with form' do
7
+ click_link 'SMS'
8
+ expect(find('div.modal-header')).to have_text 'SMS This'
9
+ fill_in 'Phone Number:', with: '555-555-5555'
10
+ select 'Verizon', from: 'Carrier'
11
+ end
12
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.35.0
4
+ version: 7.36.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: exe
19
19
  cert_chain: []
20
- date: 2023-11-09 00:00:00.000000000 Z
20
+ date: 2024-01-18 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rails
@@ -810,6 +810,7 @@ files:
810
810
  - spec/features/autocomplete_spec.rb
811
811
  - spec/features/axe_spec.rb
812
812
  - spec/features/bookmarks_spec.rb
813
+ - spec/features/citation_spec.rb
813
814
  - spec/features/did_you_mean_spec.rb
814
815
  - spec/features/facet_missing_spec.rb
815
816
  - spec/features/facets_spec.rb
@@ -824,6 +825,7 @@ files:
824
825
  - spec/features/search_sort_spec.rb
825
826
  - spec/features/search_spec.rb
826
827
  - spec/features/sitelinks_search_box_spec.rb
828
+ - spec/features/sms_spec.rb
827
829
  - spec/fixtures/sample_solr_documents.yml
828
830
  - spec/helpers/blacklight/configuration_helper_behavior_spec.rb
829
831
  - spec/helpers/blacklight/facets_helper_behavior_spec.rb
@@ -955,7 +957,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
955
957
  - !ruby/object:Gem::Version
956
958
  version: '0'
957
959
  requirements: []
958
- rubygems_version: 3.4.21
960
+ rubygems_version: 3.5.3
959
961
  signing_key:
960
962
  specification_version: 4
961
963
  summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)
@@ -994,6 +996,7 @@ test_files:
994
996
  - spec/features/autocomplete_spec.rb
995
997
  - spec/features/axe_spec.rb
996
998
  - spec/features/bookmarks_spec.rb
999
+ - spec/features/citation_spec.rb
997
1000
  - spec/features/did_you_mean_spec.rb
998
1001
  - spec/features/facet_missing_spec.rb
999
1002
  - spec/features/facets_spec.rb
@@ -1008,6 +1011,7 @@ test_files:
1008
1011
  - spec/features/search_sort_spec.rb
1009
1012
  - spec/features/search_spec.rb
1010
1013
  - spec/features/sitelinks_search_box_spec.rb
1014
+ - spec/features/sms_spec.rb
1011
1015
  - spec/fixtures/sample_solr_documents.yml
1012
1016
  - spec/helpers/blacklight/configuration_helper_behavior_spec.rb
1013
1017
  - spec/helpers/blacklight/facets_helper_behavior_spec.rb