geoblacklight 4.4.3 → 4.5.1

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: 52b5acf220b42925f6e5f561184695d15258224f89e289a9c136b578b43db42c
4
- data.tar.gz: e67f2ad90acf15e3d1557ca3ae1962a491088f7d9d0ff7a0fcaf4f7e641f2b85
3
+ metadata.gz: 70ec0fdb43d31e4d9c2d4d5902e5a5d19ea35a6171e6b37f74d9a3fbfd937661
4
+ data.tar.gz: f4b212c5ec24ee1c4c0263e8c0e1ba2c51c0ebcd7e70cf32ae5ccfe6e0a78d15
5
5
  SHA512:
6
- metadata.gz: 007346f8ec5c7e3b81c33f4b7835a10a3eb07c5a3885f9ba965d7af18263572d21f06d03267598a54e3ebb55207b888797c559f39fcb2df65d3d678d7d390c44
7
- data.tar.gz: f9bde64443e74953e95cd77a1324e9d3369944ae693efb518b0bfaca1f0990cdf35027094b185145b38bd341b96bf2427cd94b92f774d7c70f2f7979720c5a95
6
+ metadata.gz: 9a6612a445ce525cd2610b4cc0c83a509a523b13e27ea3ee6314ee5f48cbb6da479f9e103c50ae75312911780e39740db155c9d1b6015a05e5dddd71e2237710
7
+ data.tar.gz: 0fc319d965119d9d7dd79456930fd6f4c32288d68967b9f408adf2da44c4096c7e99f39fe8e575021ef515f705a69e61f7513869774d7a87373972bcbfebebaa
@@ -37,8 +37,11 @@ jobs:
37
37
  runs-on: ubuntu-latest
38
38
  strategy:
39
39
  matrix:
40
- ruby_version: ['3.2', '3.3']
41
- rails_version: [7.1.3, 7.2.0]
40
+ ruby_version: ['3.2', '3.3', '3.4']
41
+ rails_version: ['7.2.2.1', '8.0.2']
42
+ exclude:
43
+ - ruby_version: '3.2'
44
+ rails_version: '8.0.2'
42
45
 
43
46
  name: test ruby ${{ matrix.ruby_version }} / rails ${{ matrix.rails_version }}
44
47
  steps:
data/.solr_wrapper CHANGED
@@ -1,3 +1,4 @@
1
+ version: 8.11.4
1
2
  validate: false
2
3
  instance_dir: tmp/solr
3
4
  download_dir: tmp/solr
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="#6c757d" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! https://fontawesome.com/license (Commercial License) 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc. --><path fill="#6c757d" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="#6c757d" d="M159.3 5.4c7.8-7.3 19.9-7.2 27.7 .1c27.6 25.9 53.5 53.8 77.7 84c11-14.4 23.5-30.1 37-42.9c7.9-7.4 20.1-7.4 28 .1c34.6 33 63.9 76.6 84.5 118c20.3 40.8 33.8 82.5 33.8 111.9C448 404.2 348.2 512 224 512C98.4 512 0 404.1 0 276.5c0-38.4 17.8-85.3 45.4-131.7C73.3 97.7 112.7 48.6 159.3 5.4zM225.7 416c25.3 0 47.7-7 68.8-21c42.1-29.4 53.4-88.2 28.1-134.4c-4.5-9-16-9.6-22.5-2l-25.2 29.3c-6.6 7.6-18.5 7.4-24.7-.5c-16.5-21-46-58.5-62.8-79.8c-6.3-8-18.3-8.1-24.7-.1c-33.8 42.5-50.8 69.3-50.8 99.4C112 375.4 162.6 416 225.7 416z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! https://fontawesome.com/license (Commercial License) 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc. --><path fill="#6c757d" d="M159.3 5.4c7.8-7.3 19.9-7.2 27.7 .1c27.6 25.9 53.5 53.8 77.7 84c11-14.4 23.5-30.1 37-42.9c7.9-7.4 20.1-7.4 28 .1c34.6 33 63.9 76.6 84.5 118c20.3 40.8 33.8 82.5 33.8 111.9C448 404.2 348.2 512 224 512C98.4 512 0 404.1 0 276.5c0-38.4 17.8-85.3 45.4-131.7C73.3 97.7 112.7 48.6 159.3 5.4zM225.7 416c25.3 0 47.7-7 68.8-21c42.1-29.4 53.4-88.2 28.1-134.4c-4.5-9-16-9.6-22.5-2l-25.2 29.3c-6.6 7.6-18.5 7.4-24.7-.5c-16.5-21-46-58.5-62.8-79.8c-6.3-8-18.3-8.1-24.7-.1c-33.8 42.5-50.8 69.3-50.8 99.4C112 375.4 162.6 416 225.7 416z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="#6c757d" d="M272 384c9.6-31.9 29.5-59.1 49.2-86.2l0 0c5.2-7.1 10.4-14.2 15.4-21.4c19.8-28.5 31.4-63 31.4-100.3C368 78.8 289.2 0 192 0S16 78.8 16 176c0 37.3 11.6 71.9 31.4 100.3c5 7.2 10.2 14.3 15.4 21.4l0 0c19.8 27.1 39.7 54.4 49.2 86.2H272zM192 512c44.2 0 80-35.8 80-80V416H112v16c0 44.2 35.8 80 80 80zM112 176c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-61.9 50.1-112 112-112c8.8 0 16 7.2 16 16s-7.2 16-16 16c-44.2 0-80 35.8-80 80z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! https://fontawesome.com/license (Commercial License) 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc. --><path fill="#6c757d" d="M272 384c9.6-31.9 29.5-59.1 49.2-86.2l0 0c5.2-7.1 10.4-14.2 15.4-21.4c19.8-28.5 31.4-63 31.4-100.3C368 78.8 289.2 0 192 0S16 78.8 16 176c0 37.3 11.6 71.9 31.4 100.3c5 7.2 10.2 14.3 15.4 21.4l0 0c19.8 27.1 39.7 54.4 49.2 86.2H272zM192 512c44.2 0 80-35.8 80-80V416H112v16c0 44.2 35.8 80 80 80zM112 176c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-61.9 50.1-112 112-112c8.8 0 16 7.2 16 16s-7.2 16-16 16c-44.2 0-80 35.8-80 80z"/></svg>
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" aria-label="Search" role="img">
2
+ <title>Search</title>
3
+ <path fill="none" d="M0 0h24v24H0V0z"></path>
4
+ <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path>
5
+ </svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="#6c757d" d="M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! https://fontawesome.com/license (Commercial License) 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc. --><path fill="#6c757d" d="M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"/></svg>
@@ -17,8 +17,8 @@ Gem::Specification.new do |spec|
17
17
  spec.require_paths = ["lib"]
18
18
  spec.required_rubygems_version = ">= 2.5.2"
19
19
 
20
- spec.add_dependency "rails", ">= 7", "< 7.3"
21
- spec.add_dependency "blacklight", "~> 7.0"
20
+ spec.add_dependency "rails", ">= 7", "< 8.2"
21
+ spec.add_dependency "blacklight", ">= 7.41", "< 8.0"
22
22
  spec.add_dependency "config"
23
23
  spec.add_dependency "faraday", "~> 2.0"
24
24
  spec.add_dependency "coderay"
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
35
35
  spec.add_development_dependency "rspec-rails"
36
36
  spec.add_development_dependency "engine_cart", "~> 2.0"
37
37
  spec.add_development_dependency "capybara", ">= 2.5.0"
38
- spec.add_development_dependency "webdrivers"
38
+ spec.add_development_dependency "selenium-webdriver"
39
39
  spec.add_development_dependency "factory_bot_rails"
40
40
  spec.add_development_dependency "database_cleaner", "~> 2.0"
41
41
  spec.add_development_dependency "simplecov", "~> 0.22"
@@ -117,6 +117,20 @@ module Geoblacklight
117
117
  copy_file "base.html.erb", "app/views/layouts/blacklight/base.html.erb"
118
118
  end
119
119
 
120
+ # Ensure Sprockets is used instead of Propshaft
121
+ def ensure_sprockets
122
+ gemfile = File.read("Gemfile")
123
+ propshaft_present = gemfile.match?(/^\s*gem\s+["']propshaft["'].*$/)
124
+ if propshaft_present
125
+ gsub_file "Gemfile", /^(\s*gem\s+["']propshaft["'].*)$/, '# \1'
126
+ end
127
+ unless gemfile.match?(/gem ['\"]sprockets-rails['\"]/)
128
+ append_to_file "Gemfile" do
129
+ "\ngem 'sprockets-rails'\n"
130
+ end
131
+ end
132
+ end
133
+
120
134
  def copy_package_json
121
135
  if options[:test]
122
136
  # If building engine cart test app, use specific package.json so the
@@ -1,10 +1,10 @@
1
1
  {
2
- "devDependencies": {
3
- "vite": "^5.1.5",
4
- "vite-plugin-ruby": "^5.0.0",
5
- "vite-plugin-rails": "^0.5.0"
2
+ "dependencies": {
3
+ "@geoblacklight/frontend": "^4.4.6"
6
4
  },
7
- "scripts": {
8
- "postinstall": "yarn link @geoblacklight/frontend"
5
+ "devDependencies": {
6
+ "vite": "^5.0.0",
7
+ "vite-plugin-rails": "^0.5.0",
8
+ "vite-plugin-ruby": "^5.1.0"
9
9
  }
10
10
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Geoblacklight
4
- VERSION = "4.4.3"
4
+ VERSION = "4.5.1"
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -30,25 +30,28 @@ require "rails-controller-testing" if Rails::VERSION::MAJOR >= 5
30
30
  require "rspec/rails"
31
31
  require "capybara/rspec"
32
32
  require "selenium-webdriver"
33
- require "webdrivers"
34
33
 
35
34
  # Setup webmock for specific tests
36
35
  require "webmock/rspec"
37
36
  WebMock.allow_net_connect!(net_http_connect_on_start: true)
38
37
 
39
- Capybara.register_driver(:selenium) do |app|
40
- browser_options = ::Selenium::WebDriver::Chrome::Options.new(args: %w[headless disable-gpu disable-setuid-sandbox window-size=7680,4320])
38
+ Capybara.register_driver :chrome_headless do |app|
39
+ # Set up Chrome options
40
+ options = Selenium::WebDriver::Chrome::Options.new
41
+ options.add_argument("--headless")
42
+ options.add_argument("--disable-gpu")
43
+ options.add_argument("--no-sandbox")
44
+ options.add_argument("--window-size=1280,1024")
41
45
 
42
- http_client = Selenium::WebDriver::Remote::Http::Default.new
43
- http_client.read_timeout = 120
44
- http_client.open_timeout = 120
45
- Capybara::Selenium::Driver.new(app,
46
- browser: :chrome,
47
- options: browser_options,
48
- http_client: http_client)
46
+ # Allow longer TCP reads to prevent timeout in the case of loading fixture
47
+ # eee6150b-ce2f-4837-9d17-ce72a0c1c26f, as part of relations_spec.rb
48
+ client = Selenium::WebDriver::Remote::Http::Default.new
49
+ client.read_timeout = 120 # seconds
50
+
51
+ Capybara::Selenium::Driver.new(app, browser: :chrome, options: options, http_client: client)
49
52
  end
50
53
 
51
- Capybara.javascript_driver = :selenium
54
+ Capybara.javascript_driver = :chrome_headless
52
55
  Capybara.default_max_wait_time = 120
53
56
 
54
57
  require "geoblacklight"
metadata CHANGED
@@ -1,16 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoblacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.3
4
+ version: 4.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Graves
8
8
  - Darren Hardy
9
9
  - Eliot Jordan
10
10
  - Jack Reed
11
+ autorequire:
11
12
  bindir: bin
12
13
  cert_chain: []
13
- date: 2025-05-23 00:00:00.000000000 Z
14
+ date: 2026-06-08 00:00:00.000000000 Z
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: rails
@@ -21,7 +22,7 @@ dependencies:
21
22
  version: '7'
22
23
  - - "<"
23
24
  - !ruby/object:Gem::Version
24
- version: '7.3'
25
+ version: '8.2'
25
26
  type: :runtime
26
27
  prerelease: false
27
28
  version_requirements: !ruby/object:Gem::Requirement
@@ -31,21 +32,27 @@ dependencies:
31
32
  version: '7'
32
33
  - - "<"
33
34
  - !ruby/object:Gem::Version
34
- version: '7.3'
35
+ version: '8.2'
35
36
  - !ruby/object:Gem::Dependency
36
37
  name: blacklight
37
38
  requirement: !ruby/object:Gem::Requirement
38
39
  requirements:
39
- - - "~>"
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '7.41'
43
+ - - "<"
40
44
  - !ruby/object:Gem::Version
41
- version: '7.0'
45
+ version: '8.0'
42
46
  type: :runtime
43
47
  prerelease: false
44
48
  version_requirements: !ruby/object:Gem::Requirement
45
49
  requirements:
46
- - - "~>"
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: '7.41'
53
+ - - "<"
47
54
  - !ruby/object:Gem::Version
48
- version: '7.0'
55
+ version: '8.0'
49
56
  - !ruby/object:Gem::Dependency
50
57
  name: config
51
58
  requirement: !ruby/object:Gem::Requirement
@@ -257,7 +264,7 @@ dependencies:
257
264
  - !ruby/object:Gem::Version
258
265
  version: 2.5.0
259
266
  - !ruby/object:Gem::Dependency
260
- name: webdrivers
267
+ name: selenium-webdriver
261
268
  requirement: !ruby/object:Gem::Requirement
262
269
  requirements:
263
270
  - - ">="
@@ -451,6 +458,7 @@ files:
451
458
  - app/assets/images/blacklight/raster.svg
452
459
  - app/assets/images/blacklight/restricted.svg
453
460
  - app/assets/images/blacklight/rutgers.svg
461
+ - app/assets/images/blacklight/search.svg
454
462
  - app/assets/images/blacklight/sms.svg
455
463
  - app/assets/images/blacklight/stanford.svg
456
464
  - app/assets/images/blacklight/table.svg
@@ -891,6 +899,7 @@ homepage: http://github.com/geoblacklight/geoblacklight
891
899
  licenses:
892
900
  - Apache 2.0
893
901
  metadata: {}
902
+ post_install_message:
894
903
  rdoc_options: []
895
904
  require_paths:
896
905
  - lib
@@ -905,7 +914,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
905
914
  - !ruby/object:Gem::Version
906
915
  version: 2.5.2
907
916
  requirements: []
908
- rubygems_version: 3.6.2
917
+ rubygems_version: 3.5.11
918
+ signing_key:
909
919
  specification_version: 4
910
920
  summary: A discovery platform for geospatial holdings
911
921
  test_files: []