geoblacklight 4.4.0 → 4.4.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: f16750117acd864f79777e3129f784a228585ea845c7a020afe54e923b89df88
4
- data.tar.gz: f0847ae732c4c7ba0518e3a27a9bb602c235e6373ab76e1d13b853cb3708504c
3
+ metadata.gz: 6820d2f267605af373b65ad7bb940b1787eea36cb85ebde3a75d0ba198a5bb24
4
+ data.tar.gz: f2e9a5800739987386f67d4e9b248175102d5c347b42d05c80e754f567c11cb8
5
5
  SHA512:
6
- metadata.gz: '09577c64ae1aec399e2aae6dfd67230de4255c21cfab2ee236031960ce52c119c264beb82d3c3a0eaec4a87e6c46f9dfcfa0f3111153c832e4ca085ecd8d010b'
7
- data.tar.gz: 2049e995da629936168faf8ad3f79f261fb5ef5c3273d8b023a0bfaf9eb757e93b7e246abef4143b6320fc1efd8b184bced56077c31eeb0321d35af688b87219
6
+ metadata.gz: 7247b6f2706fe1e9b857a745b43efccddd4b05e93632afa1030ab76af71606759439a90830c03df5e637979e5c4dd68fe8f56fd1790cf7f3971119b0f03799e6
7
+ data.tar.gz: 7c2aaf7bc4c748a6afb5b943d3f908d1f8dd465d27d065a115ef45665a671d2c20e8d0ba8d9ae4c86383e8011fc64fa0dbdd9aeeb6ea379aa3566af9d8be7b54
@@ -38,7 +38,7 @@ jobs:
38
38
  strategy:
39
39
  matrix:
40
40
  ruby_version: ['3.2', '3.3']
41
- rails_version: [6.1.7.6, 7.1.3]
41
+ rails_version: [6.1.7.6, 7.1.3, 7.2.0]
42
42
 
43
43
  name: test ruby ${{ matrix.ruby_version }} / rails ${{ matrix.rails_version }}
44
44
  steps:
@@ -6,7 +6,7 @@ class DownloadController < ApplicationController
6
6
 
7
7
  rescue_from Geoblacklight::Exceptions::ExternalDownloadFailed do |exception|
8
8
  Geoblacklight.logger.error exception.message + " " + exception.url
9
- flash[:danger] = view_context
9
+ flash.now[:danger] = view_context
10
10
  .tag.span(t("geoblacklight.download.error"),
11
11
  data: {
12
12
  download: "error",
@@ -42,9 +42,9 @@ class DownloadController < ApplicationController
42
42
  if params[:email]
43
43
  response = Geoblacklight::HglDownload.new(@document, params[:email]).get
44
44
  if response.nil?
45
- flash[:danger] = t "geoblacklight.download.error"
45
+ flash.now[:danger] = t "geoblacklight.download.error"
46
46
  else
47
- flash[:success] = t "geoblacklight.download.hgl_success"
47
+ flash.now[:success] = t "geoblacklight.download.hgl_success"
48
48
  end
49
49
  respond_to do |format|
50
50
  format.json { render json: flash, response: response }
@@ -75,7 +75,7 @@ class DownloadController < ApplicationController
75
75
  end
76
76
 
77
77
  def validate(response)
78
- flash[:success] = view_context.link_to(t("geoblacklight.download.success", title: response),
78
+ flash.now[:success] = view_context.link_to(t("geoblacklight.download.success", title: response),
79
79
  download_file_path(response),
80
80
  data: {download: "trigger",
81
81
  download_id: params[:id],
@@ -6,6 +6,6 @@ module BlacklightHelper
6
6
  include Blacklight::CatalogHelperBehavior
7
7
 
8
8
  def render_document_sidebar_partial(document = @document)
9
- super(document) + (render "relations_container", document: document)
9
+ super + (render "relations_container", document: document)
10
10
  end
11
11
  end
@@ -82,7 +82,8 @@ export default class OlInitializer {
82
82
 
83
83
  initializeCog () {
84
84
  const source = new GeoTIFF({
85
- sources: [{ url: this.data.url }]
85
+ sources: [{ url: this.data.url }],
86
+ convertToRGB: true
86
87
  })
87
88
 
88
89
  source.getView().then((view) => {
@@ -17,7 +17,7 @@ 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", ">= 6.1", "< 7.2"
20
+ spec.add_dependency "rails", ">= 6.1", "< 7.3"
21
21
  spec.add_dependency "blacklight", "~> 7.0"
22
22
  spec.add_dependency "config"
23
23
  spec.add_dependency "faraday", "~> 2.0"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Geoblacklight
4
- VERSION = "4.4.0"
4
+ VERSION = "4.4.2"
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -20,10 +20,10 @@ SimpleCov.start "rails" do
20
20
  minimum_coverage 100
21
21
  end
22
22
 
23
- require "factory_bot"
24
23
  require "database_cleaner"
25
24
  require "action_cable/engine"
26
25
  require "engine_cart"
26
+ require "factory_bot"
27
27
  EngineCart.load_application!
28
28
 
29
29
  require "rails-controller-testing" if Rails::VERSION::MAJOR >= 5
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoblacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.0
4
+ version: 4.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Graves
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2024-04-05 00:00:00.000000000 Z
14
+ date: 2024-08-29 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -22,7 +22,7 @@ dependencies:
22
22
  version: '6.1'
23
23
  - - "<"
24
24
  - !ruby/object:Gem::Version
25
- version: '7.2'
25
+ version: '7.3'
26
26
  type: :runtime
27
27
  prerelease: false
28
28
  version_requirements: !ruby/object:Gem::Requirement
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '6.1'
33
33
  - - "<"
34
34
  - !ruby/object:Gem::Version
35
- version: '7.2'
35
+ version: '7.3'
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: blacklight
38
38
  requirement: !ruby/object:Gem::Requirement
@@ -907,7 +907,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
907
907
  - !ruby/object:Gem::Version
908
908
  version: 2.5.2
909
909
  requirements: []
910
- rubygems_version: 3.4.10
910
+ rubygems_version: 3.5.11
911
911
  signing_key:
912
912
  specification_version: 4
913
913
  summary: A discovery platform for geospatial holdings