geoblacklight 4.4.1 → 4.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/download_controller.rb +4 -4
- data/lib/geoblacklight/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6820d2f267605af373b65ad7bb940b1787eea36cb85ebde3a75d0ba198a5bb24
|
4
|
+
data.tar.gz: f2e9a5800739987386f67d4e9b248175102d5c347b42d05c80e754f567c11cb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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],
|
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.
|
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-
|
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.
|
910
|
+
rubygems_version: 3.5.11
|
911
911
|
signing_key:
|
912
912
|
specification_version: 4
|
913
913
|
summary: A discovery platform for geospatial holdings
|