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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb4ed10cd413d3a4e9d2dad9426f3daec4fd2ca2
4
- data.tar.gz: 913bff7e68d24e3c7ff712691ec68425e804656a
3
+ metadata.gz: c5270535fbab7516ccc911e63dee5fdaf1b632d7
4
+ data.tar.gz: e699996e65fb6c49bb3cc9d15b5298862c57dedc
5
5
  SHA512:
6
- metadata.gz: aa35b2e12fc1ee5056e74bf6bb6a2f068db3c35968f874025f4100815267cbe85fbc596dc2cfb29e3cf4f62b63f6534b77d067ed7297437c89cef66e05f87401
7
- data.tar.gz: 9bae8b906915dc34bfec3b4f22e02157cab44c4aeed8dda2e69856942d1e309ac1342bcc23bcde35cf80809d78691e76717d4d3be470da01faf8c1ffa851586a
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: false
5
+ sudo: required
6
6
 
7
7
  notifications:
8
8
  email: false
9
9
 
10
10
  rvm:
11
- - 2.4.1
11
+ - 2.4.3
12
12
 
13
13
  matrix:
14
14
  include:
15
- - rvm: 2.3.4
16
- env: "RAILS_VERSION=5.0.5"
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.3"
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
- <li>
5
- <%= render_facet_item_with_icon(field_name, item) %>
6
- </li>
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 %>"><%= render_document_show_field_value document, field: solr_fname %></dd>
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? %>
@@ -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 'factory_girl_rails'
42
+ spec.add_development_dependency 'factory_bot_rails'
43
43
  spec.add_development_dependency 'database_cleaner', '~> 1.3'
44
44
  end
@@ -1,3 +1,3 @@
1
1
  module Geoblacklight
2
- VERSION = '1.7.0'.freeze
2
+ VERSION = '1.7.1'.freeze
3
3
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :user do
3
3
  sequence(:email) { |n| "user#{n}@example.com" }
4
4
  password 'password'
@@ -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 45 do
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
- FactoryGirl.definition_file_paths = [File.expand_path('../factories', __FILE__)]
42
- FactoryGirl.find_definitions
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
@@ -8,7 +8,7 @@ module Features
8
8
  end
9
9
 
10
10
  def sign_in
11
- user = FactoryGirl.create(:user)
11
+ user = FactoryBot.create(:user)
12
12
  user.save
13
13
  visit new_user_session_path
14
14
  fill_in 'user_email', with: user.email
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.0
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: 2017-12-14 00:00:00.000000000 Z
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: factory_girl_rails
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.14
627
+ rubygems_version: 2.6.11
628
628
  signing_key:
629
629
  specification_version: 4
630
630
  summary: A discovery platform for geospatial holdings