blacklight 7.36.0 → 7.36.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -26
- data/VERSION +1 -1
- data/app/controllers/concerns/blacklight/token_based_user.rb +1 -12
- data/app/views/catalog/_citation.html.erb +1 -1
- data/app/views/catalog/email.html.erb +2 -2
- data/app/views/catalog/sms.html.erb +2 -2
- data/spec/features/citation_spec.rb +10 -0
- data/spec/features/sms_spec.rb +12 -0
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64b909f4876374f80a0a66d5fbccb800928b0e855b0a42ebe210807e05063017
|
4
|
+
data.tar.gz: 466d99ce6a9abf447cbe8473b6249d8a77d59a62bf70543be72062af37466084
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6882bcf01ab98b2f7769e31993ee6b4ace72962eb41e815e8f1327e708da2693f73e8e351139e47987d5418848909591a9e178a3ee0652b597bd7c7a2ecfae92
|
7
|
+
data.tar.gz: 957d559917e4a40da705f4a5ba262a55377b0c04a8fb49e1fa9b958a848c8af1c20f5ffb541037f4dd7caecc94f5ee51a7e014a69f6d277a08adcd7307ab3e88
|
data/Gemfile
CHANGED
@@ -48,29 +48,3 @@ 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.36.
|
1
|
+
7.36.2
|
@@ -48,18 +48,7 @@ module Blacklight::TokenBasedUser
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def secret_key_generator
|
51
|
-
@secret_key_generator ||=
|
52
|
-
app = Rails.application
|
53
|
-
|
54
|
-
secret_key_base = if app.respond_to?(:credentials)
|
55
|
-
# Rails 5.2+
|
56
|
-
app.credentials.secret_key_base
|
57
|
-
else
|
58
|
-
# Rails <= 5.1
|
59
|
-
app.secrets.secret_key_base
|
60
|
-
end
|
61
|
-
ActiveSupport::KeyGenerator.new(secret_key_base)
|
62
|
-
end
|
51
|
+
@secret_key_generator ||= ActiveSupport::KeyGenerator.new(Rails.application.secret_key_base)
|
63
52
|
end
|
64
53
|
|
65
54
|
def message_encryptor
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%= render Blacklight::System::ModalComponent.new do |component| %>
|
2
|
-
<% component.
|
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.
|
2
|
+
<% component.with_title { t('blacklight.email.form.title') } %>
|
3
3
|
|
4
|
-
<% component.
|
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.
|
2
|
+
<% component.with_title { t('blacklight.sms.form.title') } %>
|
3
3
|
|
4
|
-
<% component.
|
4
|
+
<% component.with_body do %>
|
5
5
|
<%= render 'sms_form' %>
|
6
6
|
<% end %>
|
7
7
|
<% end %>
|
@@ -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.36.
|
4
|
+
version: 7.36.2
|
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: 2024-01-
|
20
|
+
date: 2024-01-22 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.5.
|
960
|
+
rubygems_version: 3.5.4
|
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
|