geoblacklight 4.4.1 → 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: 0f18b0d462b1cc37f0ae614b92e91569157c7549e354b0478cd8428f9155bab0
4
- data.tar.gz: c4a944b96472e9d1b85cde331f39bbed16d989f81d761c6429b763013dfb5040
3
+ metadata.gz: 6820d2f267605af373b65ad7bb940b1787eea36cb85ebde3a75d0ba198a5bb24
4
+ data.tar.gz: f2e9a5800739987386f67d4e9b248175102d5c347b42d05c80e754f567c11cb8
5
5
  SHA512:
6
- metadata.gz: 532b43034593b558eec54d760db0bd945d6fe18d678c71de051e711b3e71480ffe1707346497905eef99a956dd45b3860ff0e0b8fb5dd05bc77bce7248434c77
7
- data.tar.gz: f66fb8803ae49e3da145458362c593236a013e53482eb173f816baf3e92bb86e9bb8883bea91392923970b74e01d6892e3176e8507ff497329947152fb643233
6
+ metadata.gz: 7247b6f2706fe1e9b857a745b43efccddd4b05e93632afa1030ab76af71606759439a90830c03df5e637979e5c4dd68fe8f56fd1790cf7f3971119b0f03799e6
7
+ data.tar.gz: 7c2aaf7bc4c748a6afb5b943d3f908d1f8dd465d27d065a115ef45665a671d2c20e8d0ba8d9ae4c86383e8011fc64fa0dbdd9aeeb6ea379aa3566af9d8be7b54
@@ -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],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Geoblacklight
4
- VERSION = "4.4.1"
4
+ VERSION = "4.4.2"
5
5
  end
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.1
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-08-13 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
@@ -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.1.6
910
+ rubygems_version: 3.5.11
911
911
  signing_key:
912
912
  specification_version: 4
913
913
  summary: A discovery platform for geospatial holdings