geoblacklight 4.0.0.pre.alpha.2 → 4.0.0.pre.alpha.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f2e7004abc760233f8cca1ea261b927bc4a59a49396a85963018fa9f7c6997a
4
- data.tar.gz: 9343d1633a6c44603967d225a4380fd8a47f2f8a290c35dbef6e1dd5d195bb7d
3
+ metadata.gz: efc10c8f1326de26d6eeba5f9c7179735c4e99c9cdfa812cceccbafeb08aeefb
4
+ data.tar.gz: 2c6d87d57c7873feb1cbeb27356770636f38dc82ee03b07ef43bda50f72f4e6e
5
5
  SHA512:
6
- metadata.gz: d51c4abeee5d0949dbe9399ce644899e0f18431005e0502a2cf92b68b73eee33d49181f1d65b9a4dbc06c27c554c68d135bffb3990ef82a6e373a518c90b4b05
7
- data.tar.gz: 8bf2c640d645c695801ff940595dd3e3fcdcc435c0521e40c245e3df86abd28d8bafd22d6f9ffaa38dafd83c416c15644e6a7b563d9b941b1735c8230c64af1e
6
+ metadata.gz: 5c6d9303f001da4d11e65bb9858c6d1b66f01e37c8d4b1f707d156ae9b9c462f8aed556adcd8d21e234a4f8517908d7f56e76d45db0707c92c857c3b922633ca
7
+ data.tar.gz: 8816f40c830bd5b1d0e381b15b08c2455ebb509e361f179ce16a6201270601eb079c1309939b67e0b23a37721c5a4c5d38f6726c5d8f4dd458254b34254c7089
@@ -8,7 +8,7 @@
8
8
  <% end %>
9
9
  <% end %>
10
10
  <% if document.direct_download[:download].is_a? String %>
11
- <%= render partial: 'download_link', locals: { download_link: download_link_file(download_text(document.file_format), document.id, document.direct_download[:download]['url']) } %>
11
+ <%= render partial: 'download_link', locals: { download_link: download_link_file(download_text(document.file_format), document.id, document.direct_download[:download]) } %>
12
12
  <% end %>
13
13
  <% end %>
14
14
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Geoblacklight
3
- VERSION = '4.0.0-alpha.2'
3
+ VERSION = '4.0.0-alpha.3'
4
4
  end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+ require 'spec_helper'
3
+
4
+ feature 'Download display on show page' do
5
+ scenario 'with download String' do
6
+ visit solr_document_path '2eddde2f-c222-41ca-bd07-2fd74a21f4de'
7
+ within '.downloads' do
8
+ expect(page).to have_selector(:css, 'a[href="ftp://gdrs.dnr.state.mn.us/gdrs/data/pub/us_mn_state_dnr/fgdb_base_usgs_scanned_topo_100k_drg.zip"]')
9
+ end
10
+ end
11
+
12
+ scenario 'with download Array' do
13
+ visit solr_document_path 'princeton-sx61dn82p'
14
+ within '.downloads' do
15
+ expect(page).to have_selector(:css, 'a[href="https://figgy.princeton.edu/downloads/a990e1b4-7f0e-44b8-ae2a-de7e93cdd74a/file/36a2274c-e0c6-4901-a14f-7c422d15e194"]')
16
+ expect(page).to have_selector(:css, 'a[href="https://libimages1.princeton.edu/loris/figgy_prod/2e%2Fa9%2F43%2F2ea943b0bd4348fc9954b299f1b359f6%2Fintermediate_file.jp2/full/full/0/default.jpg"]')
17
+ end
18
+ end
19
+
20
+ scenario 'with Harvard hgl_download' do
21
+ visit solr_document_path 'harvard-g7064-s2-1834-k3'
22
+ within '.downloads' do
23
+ expect(page).to have_selector(:css, 'a[href="/download/hgl/harvard-g7064-s2-1834-k3"][data-download-type="harvard-hgl"]')
24
+ end
25
+ end
26
+ end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoblacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.pre.alpha.2
4
+ version: 4.0.0.pre.alpha.3
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
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2021-10-08 00:00:00.000000000 Z
14
+ date: 2021-11-09 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -687,6 +687,7 @@ files:
687
687
  - spec/features/search_results_map_spec.rb
688
688
  - spec/features/search_results_overlap_ratio_spec.rb
689
689
  - spec/features/search_spec.rb
690
+ - spec/features/show_page_download_spec.rb
690
691
  - spec/features/show_page_metadata_spec.rb
691
692
  - spec/features/sms_spec.rb
692
693
  - spec/features/split_view.html.erb_spec.rb
@@ -817,7 +818,7 @@ homepage: http://github.com/geoblacklight/geoblacklight
817
818
  licenses:
818
819
  - Apache 2.0
819
820
  metadata: {}
820
- post_install_message:
821
+ post_install_message:
821
822
  rdoc_options: []
822
823
  require_paths:
823
824
  - lib
@@ -832,8 +833,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
832
833
  - !ruby/object:Gem::Version
833
834
  version: 2.5.2
834
835
  requirements: []
835
- rubygems_version: 3.2.15
836
- signing_key:
836
+ rubygems_version: 3.2.22
837
+ signing_key:
837
838
  specification_version: 4
838
839
  summary: A discovery platform for geospatial holdings
839
840
  test_files:
@@ -870,6 +871,7 @@ test_files:
870
871
  - spec/features/search_results_map_spec.rb
871
872
  - spec/features/search_results_overlap_ratio_spec.rb
872
873
  - spec/features/search_spec.rb
874
+ - spec/features/show_page_download_spec.rb
873
875
  - spec/features/show_page_metadata_spec.rb
874
876
  - spec/features/sms_spec.rb
875
877
  - spec/features/split_view.html.erb_spec.rb