geoblacklight 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -5
- data/app/views/catalog/_icon_facet.html.erb +10 -3
- data/app/views/catalog/_upper_metadata.html.erb +2 -1
- data/geoblacklight.gemspec +1 -1
- data/lib/geoblacklight/version.rb +1 -1
- data/spec/factories/user.rb +1 -1
- data/spec/features/download_layer_spec.rb +1 -1
- data/spec/features/linkified_attribute_table_spec.rb +1 -0
- data/spec/features/split_view.html.erb_spec.rb +1 -0
- data/spec/spec_helper.rb +2 -2
- data/spec/support/features/session_helpers.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5270535fbab7516ccc911e63dee5fdaf1b632d7
|
4
|
+
data.tar.gz: e699996e65fb6c49bb3cc9d15b5298862c57dedc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 747b13d2a4fd7217b96f9b746f8af36c51a12be37d6fea198d3eeebcfe35ff479626a1563bcafe93384bfd1340086d65f6696ffcfcddeef95bb70ce8fc7f35bb
|
7
|
+
data.tar.gz: d7c85ac98ffe88c6a32b54c724522aa8bc5bc12f5ed3b674fe00030cde245ae6ff20088b485d5e74fb15e68a96ea23195f01a420d67bd279a7e939cda824f8f3
|
data/.travis.yml
CHANGED
@@ -2,18 +2,18 @@ dist: trusty
|
|
2
2
|
addons:
|
3
3
|
chrome: stable
|
4
4
|
language: ruby
|
5
|
-
sudo:
|
5
|
+
sudo: required
|
6
6
|
|
7
7
|
notifications:
|
8
8
|
email: false
|
9
9
|
|
10
10
|
rvm:
|
11
|
-
- 2.4.
|
11
|
+
- 2.4.3
|
12
12
|
|
13
13
|
matrix:
|
14
14
|
include:
|
15
|
-
- rvm: 2.3.
|
16
|
-
env: "RAILS_VERSION=5.0.
|
15
|
+
- rvm: 2.3.6
|
16
|
+
env: "RAILS_VERSION=5.0.6"
|
17
17
|
|
18
18
|
before_install:
|
19
19
|
- gem update --system
|
@@ -21,7 +21,7 @@ before_install:
|
|
21
21
|
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
|
22
22
|
|
23
23
|
env:
|
24
|
-
- "RAILS_VERSION=5.1.
|
24
|
+
- "RAILS_VERSION=5.1.4 "
|
25
25
|
|
26
26
|
global_env:
|
27
27
|
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|
@@ -1,8 +1,15 @@
|
|
1
1
|
<ul class="facet-values list-unstyled">
|
2
2
|
<% paginator = facet_paginator(facet_field, display_facet) %>
|
3
3
|
<% paginator.items.each do |item| -%>
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
<li>
|
5
|
+
<%= render_facet_item_with_icon(field_name, item) %>
|
6
|
+
</li>
|
7
|
+
<% end %>
|
8
|
+
<% unless paginator.last_page? || params[:action] == "facet" %>
|
9
|
+
<li class="more_facets">
|
10
|
+
<%= link_to t("more_#{field_name}_html", scope: 'blacklight.search.facets', default: :more_html, field_name: facet_field.label),
|
11
|
+
search_facet_path(id: facet_field.key),
|
12
|
+
class: 'more_facets_link' %>
|
13
|
+
</li>
|
7
14
|
<% end %>
|
8
15
|
</ul>
|
@@ -1,4 +1,5 @@
|
|
1
1
|
<% document ||= @document %>
|
2
|
+
<% doc_presenter = show_presenter(document) %>
|
2
3
|
<div class="geoblacklight-view-panel">
|
3
4
|
|
4
5
|
<%# From https://github.com/projectblacklight/blacklight/blob/master/app/views/catalog/_show_default.html.erb %>
|
@@ -8,7 +9,7 @@
|
|
8
9
|
<% document_show_fields(document).each do |solr_fname, field| %>
|
9
10
|
<% if should_render_show_field? document, field %>
|
10
11
|
<dt class="blacklight-<%= solr_fname.parameterize %>"><%= render_document_show_field_label document, field: solr_fname %></dt>
|
11
|
-
<dd class="blacklight-<%= solr_fname.parameterize %>"><%=
|
12
|
+
<dd class="blacklight-<%= solr_fname.parameterize %>"><%= doc_presenter.field_value solr_fname %></dd>
|
12
13
|
<% end %>
|
13
14
|
<% end %>
|
14
15
|
<% if !@document.references.nil? && !@document.references.url.nil? %>
|
data/geoblacklight.gemspec
CHANGED
@@ -39,6 +39,6 @@ Gem::Specification.new do |spec|
|
|
39
39
|
spec.add_development_dependency 'capybara', '>= 2.5.0'
|
40
40
|
spec.add_development_dependency 'selenium-webdriver'
|
41
41
|
spec.add_development_dependency 'chromedriver-helper'
|
42
|
-
spec.add_development_dependency '
|
42
|
+
spec.add_development_dependency 'factory_bot_rails'
|
43
43
|
spec.add_development_dependency 'database_cleaner', '~> 1.3'
|
44
44
|
end
|
data/spec/factories/user.rb
CHANGED
@@ -86,7 +86,7 @@ feature 'Download layer' do
|
|
86
86
|
fill_in('Email', with: 'foo@example.com')
|
87
87
|
click_button('Request')
|
88
88
|
end
|
89
|
-
using_wait_time
|
89
|
+
using_wait_time 95 do
|
90
90
|
expect(page).to have_css('.alert-success')
|
91
91
|
expect(page).to have_content('You should receive an email when your download is ready')
|
92
92
|
end
|
@@ -2,6 +2,7 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
feature 'Attribute table values', js: true do
|
4
4
|
scenario 'are linkified' do
|
5
|
+
pending 'ArcGIS server returning an error'
|
5
6
|
visit solr_document_path 'minnesota-e2f33b52-4039-4bbb-9095-b5cdc0175943'
|
6
7
|
# Wait until SVG elements are added
|
7
8
|
expect(page).to have_css '.leaflet-overlay-pane svg'
|
@@ -28,6 +28,7 @@ feature 'Index view', js: true do
|
|
28
28
|
expect(page).to have_css('a.facet_select', text: 'Columbia', visible: true)
|
29
29
|
expect(page).to have_css('a.facet_select', text: 'MIT', visible: true)
|
30
30
|
expect(page).to have_css('a.facet_select', text: 'Stanford', visible: true)
|
31
|
+
expect(page).to have_css('a.more_facets_link', text: 'more Institution »', visible: true)
|
31
32
|
end
|
32
33
|
|
33
34
|
scenario 'hover on record should produce bounding box on map' do
|
data/spec/spec_helper.rb
CHANGED
@@ -38,8 +38,8 @@ require 'geoblacklight'
|
|
38
38
|
|
39
39
|
Dir['./spec/support/**/*.rb'].sort.each { |f| require f }
|
40
40
|
|
41
|
-
|
42
|
-
|
41
|
+
FactoryBot.definition_file_paths = [File.expand_path('../factories', __FILE__)]
|
42
|
+
FactoryBot.find_definitions
|
43
43
|
|
44
44
|
RSpec.configure do |config|
|
45
45
|
config.use_transactional_fixtures = false
|
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: 1.7.
|
4
|
+
version: 1.7.1
|
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:
|
14
|
+
date: 2018-01-22 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
@@ -280,7 +280,7 @@ dependencies:
|
|
280
280
|
- !ruby/object:Gem::Version
|
281
281
|
version: '0'
|
282
282
|
- !ruby/object:Gem::Dependency
|
283
|
-
name:
|
283
|
+
name: factory_bot_rails
|
284
284
|
requirement: !ruby/object:Gem::Requirement
|
285
285
|
requirements:
|
286
286
|
- - ">="
|
@@ -624,7 +624,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
624
624
|
version: 2.5.2
|
625
625
|
requirements: []
|
626
626
|
rubyforge_project:
|
627
|
-
rubygems_version: 2.6.
|
627
|
+
rubygems_version: 2.6.11
|
628
628
|
signing_key:
|
629
629
|
specification_version: 4
|
630
630
|
summary: A discovery platform for geospatial holdings
|