blacklight 7.43.1 → 7.43.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9ff50731a5c80185421b111145bed535e43633fef2f689fc12ee70178cd38ad
4
- data.tar.gz: 1272086317d9ce74c949c55d11ae466ce8396bbe3753ecdefc22c6fc145c7d56
3
+ metadata.gz: 55824e54437448fdce78c30180ba1ddedefae1360b6e5468b5ec60663e6d1232
4
+ data.tar.gz: a1056d6a5f8bb57da327115f182434285be843daea42d3a8df17c42103894267
5
5
  SHA512:
6
- metadata.gz: 9c6baea15f44f226dd15c8da725a2635c7f0796f09f7b361ae35461fbe2ef1ef4e52df77598d0f318b030ac718aadfd0eb64609c6dba833a02d852fdc11c8bf9
7
- data.tar.gz: fc535ec20247011d1da966ed38f982e3eeafc636146a2723bd8cb3ed4f02017ab5ddc483ce226aceaac1bf7b50eb14098da0fedf01b76d238d4b9695fcaabf56
6
+ metadata.gz: 8b7594ab2fe336dd67f70f13d13cb88c69028f6ef66aaf5363928372c317ac79629c81dc8df9d06f8718f0cdbc2213b2c3e8f5ee58e35b47ab011b49c66798d5
7
+ data.tar.gz: ec233ac4802dc0ce0e7d16d5560311272b69cd8404402e6e02d91bc108808fa680366eb940628ca59988afdc107d6fcba897691433fbfed7c26c6d5a8feb3168
data/.github/matrix.json CHANGED
@@ -47,6 +47,10 @@
47
47
  "rails_version": "8.1.3",
48
48
  "bootstrap_version": "~> 4.0"
49
49
  },
50
+ {
51
+ "ruby": "4.0",
52
+ "rails_version": "8.1.3"
53
+ },
50
54
  {
51
55
  "ruby": "3.3",
52
56
  "rails_version": "7.1.5.1",
@@ -63,7 +67,7 @@
63
67
  {
64
68
  "ruby": "3.3",
65
69
  "rails_version": "7.1.5.1",
66
- "api:": "true",
70
+ "api": "true",
67
71
  "additional_engine_cart_rails_options": "--api --skip-yarn",
68
72
  "additional_name": "| API"
69
73
  }
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.43.1
1
+ 7.43.2
data/blacklight.gemspec CHANGED
@@ -43,7 +43,7 @@ Gem::Specification.new do |s|
43
43
  s.add_development_dependency 'axe-core-rspec'
44
44
  s.add_development_dependency "capybara", '~> 3'
45
45
  s.add_development_dependency 'selenium-webdriver'
46
- s.add_development_dependency 'engine_cart', '~> 2.1'
46
+ s.add_development_dependency 'engine_cart', '~> 2.7'
47
47
  s.add_development_dependency "equivalent-xml"
48
48
  s.add_development_dependency "rexml"
49
49
  s.add_development_dependency "simplecov"
@@ -36,7 +36,7 @@ module Blacklight
36
36
  CONTENT
37
37
  end
38
38
  empty_directory 'app/assets/images'
39
- elsif defined?(Sprockets::VERSION) && Sprockets::VERSION >= '4'
39
+ elsif defined?(Sprockets::VERSION) && Sprockets::VERSION >= '4' && !using_importmap?
40
40
  append_to_file 'app/assets/config/manifest.js', "\n//= link application.js"
41
41
  empty_directory 'app/assets/images'
42
42
  end
@@ -86,6 +86,10 @@ module Blacklight
86
86
 
87
87
  private
88
88
 
89
+ def using_importmap?
90
+ File.exist?(File.expand_path('config/importmap.rb', destination_root))
91
+ end
92
+
89
93
  def has_blacklight_assets?
90
94
  application_js.include?('blacklight/blacklight')
91
95
  end
@@ -36,7 +36,7 @@ module Blacklight
36
36
 
37
37
  def bundle_install
38
38
  inside destination_root do
39
- Bundler.with_clean_env do
39
+ Bundler.with_unbundled_env do
40
40
  run "bundle install"
41
41
  end
42
42
  end
@@ -25,7 +25,7 @@ module Blacklight
25
25
  gem "devise-guests", "~> 0.8"
26
26
 
27
27
  inside destination_root do
28
- Bundler.with_clean_env do
28
+ Bundler.with_unbundled_env do
29
29
  run "bundle install"
30
30
  end
31
31
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blacklight-frontend",
3
- "version": "7.43.1",
3
+ "version": "7.43.2",
4
4
  "description": "The frontend code and styles for Blacklight",
5
5
  "main": "app/assets/javascripts/blacklight",
6
6
  "scripts": {
@@ -231,7 +231,7 @@ RSpec.describe Blacklight::FacetsHelperBehavior do
231
231
  context "when one of the facet items is rendered as nil" do
232
232
  # An app may override render_facet_item to filter out some undesired facet items by returning nil.
233
233
  before do
234
- allow_any_instance_of Blacklight::FacetItemComponent.to receive(:overridden_helper_methods?).and_return(true) # rubocop:disable RSpec/AnyInstance
234
+ allow_any_instance_of(Blacklight::FacetItemComponent).to receive(:overridden_helper_methods?).and_return(true) # rubocop:disable RSpec/AnyInstance
235
235
  allow(helper).to receive(:render_facet_item).and_return('<a class="facet-select">Book</a>'.html_safe, nil)
236
236
  end
237
237
 
data/spec/spec_helper.rb CHANGED
@@ -46,7 +46,7 @@ RSpec.configure do |config|
46
46
  config.disable_monkey_patching!
47
47
 
48
48
  # When we're testing the API, only run the api tests
49
- config.filter_run api: true if ENV['BLACKLIGHT_API_TEST']
49
+ config.filter_run api: true if ENV['BLACKLIGHT_API_TEST'].present?
50
50
 
51
51
  if Rails.version.to_f >= 7.1
52
52
  config.fixture_paths = [Rails.root.join("spec/fixtures")]
@@ -15,7 +15,7 @@ class TestAppGenerator < Rails::Generators::Base
15
15
  run "bundle install"
16
16
  end
17
17
  options = '--devise'
18
- if ENV['BLACKLIGHT_API_TEST']
18
+ if ENV['BLACKLIGHT_API_TEST'].present?
19
19
  options += ' --skip-assets'
20
20
  end
21
21
 
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.43.1
4
+ version: 7.43.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
@@ -14,10 +14,9 @@ authors:
14
14
  - Dan Funk
15
15
  - Naomi Dushay
16
16
  - Justin Coyne
17
- autorequire:
18
17
  bindir: exe
19
18
  cert_chain: []
20
- date: 2026-10-09 00:00:00.000000000 Z
19
+ date: 1980-01-02 00:00:00.000000000 Z
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
23
22
  name: rails
@@ -281,14 +280,14 @@ dependencies:
281
280
  requirements:
282
281
  - - "~>"
283
282
  - !ruby/object:Gem::Version
284
- version: '2.1'
283
+ version: '2.7'
285
284
  type: :development
286
285
  prerelease: false
287
286
  version_requirements: !ruby/object:Gem::Requirement
288
287
  requirements:
289
288
  - - "~>"
290
289
  - !ruby/object:Gem::Version
291
- version: '2.1'
290
+ version: '2.7'
292
291
  - !ruby/object:Gem::Dependency
293
292
  name: equivalent-xml
294
293
  requirement: !ruby/object:Gem::Requirement
@@ -1035,7 +1034,6 @@ homepage: http://projectblacklight.org/
1035
1034
  licenses:
1036
1035
  - Apache 2.0
1037
1036
  metadata: {}
1038
- post_install_message:
1039
1037
  rdoc_options: []
1040
1038
  require_paths:
1041
1039
  - lib
@@ -1050,8 +1048,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1050
1048
  - !ruby/object:Gem::Version
1051
1049
  version: '0'
1052
1050
  requirements: []
1053
- rubygems_version: 3.4.1
1054
- signing_key:
1051
+ rubygems_version: 4.0.20
1055
1052
  specification_version: 4
1056
1053
  summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)
1057
1054
  index.