blacklight 6.22.0 → 6.23.0

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: fd14b6772e7c5627ce2b623fba876af4d008965be530552de9d3b879edada1f9
4
- data.tar.gz: dbc0fe7d619a9259adabe10a8a92655ec56b2c4b7f00474d89914b86e10740f5
3
+ metadata.gz: 87e4d1ededc8c09e0bc58aca99ca4c37b7fa0ff85877b4ca7c69fda2cbb02f3d
4
+ data.tar.gz: a62ce68954acf22deda2dab59c461f194c77f10035d6287b3ebfcb9884b21bc1
5
5
  SHA512:
6
- metadata.gz: c4bd4e37af22eb9055ce3a6fb596f607aed1bedea8a215bebfbaf7863f16f8dac2d852528520116c1518daa0277168d92ab2599d5d8c274a2b8afe19f3d95a84
7
- data.tar.gz: 7670f38bf4afe72c7697f4dbcd095aadf9cdb858659419c9f1979cf19fb25c83e0fc0736a0a55cba86a5b6fd4abec420c886f0a1f454c5db37e8a395d66a840b
6
+ metadata.gz: 4b4972dcc598dfddc3d48a06d9b0be8d3da169f2255d962b1ef148e14b9a100e67332250c4cfec3ca4c2d0f76c0bb30a2c6d99850ddb74a107a485691eb68331
7
+ data.tar.gz: 373a787a4da0e1a3f4a96331d88fc8411524f2f8935fd3a16571cc25392a92ac6b3fd6dd0b78f8743cd7239644b5e0234b6b9b0e20869a22be6368813d6f5a80
data/.travis.yml CHANGED
@@ -2,33 +2,14 @@ dist: bionic
2
2
  addons:
3
3
  chrome: stable
4
4
  language: ruby
5
- sudo: false
6
5
 
7
6
  notifications:
8
7
  email: false
9
8
 
10
9
  rvm:
11
10
  - 2.5.7
12
-
13
- matrix:
14
- include:
15
- - rvm: 2.5.7
16
- env: "RAILS_VERSION=5.2.0"
17
- - rvm: 2.4.4
18
- env: "RAILS_VERSION=4.2.10"
19
- - rvm: 2.2.10
20
- env: "RAILS_VESION=5.0.7"
21
- - rvm: 2.3.7
22
- env: "RAILS_VERSION=5.1.6"
23
- - rvm: jruby-9.1.17.0
24
- env: "RAILS_VERSION=5.2.0 JRUBY_OPTS=\"-J-Xms512m -J-Xmx1024m\""
25
- allow_failures:
26
- - rvm: jruby-9.1.17.0
27
- - rvm: 2.4.4
28
- env: "RAILS_VERSION=4.2.10"
29
- - rvm: 2.2.10
30
- env: "RAILS_VESION=5.0.7"
31
- fast_finish: true
11
+ - 2.6.5
12
+ - 2.7.0
32
13
 
33
14
  before_install:
34
15
  - gem update --system
@@ -39,7 +20,9 @@ before_script:
39
20
  - if [[ "${RAILS_VERSION}" =~ ^4.2.* ]]; then perl -pi -e "s/ActiveRecord::Migration\[[\d\.]+\]/ActiveRecord::Migration/" db/migrate/*; fi
40
21
 
41
22
  env:
42
- - "RAILS_VERSION=5.1.1"
23
+ - "RAILS_VERSION=5.1.7"
24
+ - "RAILS_VERSION=5.2.0"
25
+
43
26
 
44
27
  notifications:
45
28
  irc: "irc.freenode.org#blacklight"
@@ -49,5 +32,13 @@ notifications:
49
32
  global_env:
50
33
  - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
51
34
  - ENGINE_CART_RAILS_OPTIONS='--skip-git --skip-bundle --skip-listen --skip-spring --skip-yarn --skip-keeps --skip-action-cable --skip-coffee --skip-test'
35
+ - CC_TEST_REPORTER_ID=5042c7358c96b0b926088a4cda3e132fffe7a66ce8047cdb1dc6f0b4b6676b79
52
36
 
53
37
  jdk: openjdk11
38
+
39
+ before_script:
40
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
41
+ - chmod +x ./cc-test-reporter
42
+ - ./cc-test-reporter before-build
43
+ after_script:
44
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Blacklight
2
2
 
3
- [![Build Status](https://travis-ci.org/projectblacklight/blacklight.png?branch=master)](https://travis-ci.org/projectblacklight/blacklight) [![Gem Version](https://badge.fury.io/rb/blacklight.png)](http://badge.fury.io/rb/blacklight) [![Coverage Status](https://coveralls.io/repos/github/projectblacklight/blacklight/badge.svg?branch=master)](https://coveralls.io/github/projectblacklight/blacklight?branch=master)
3
+ [![Build Status](https://travis-ci.org/projectblacklight/blacklight.png?branch=master)](https://travis-ci.org/projectblacklight/blacklight) [![Gem Version](https://badge.fury.io/rb/blacklight.png)](http://badge.fury.io/rb/blacklight) [![Test Coverage](https://api.codeclimate.com/v1/badges/83fd270492c136594e59/test_coverage)](https://codeclimate.com/github/projectblacklight/blacklight/test_coverage)
4
4
 
5
5
  Blacklight is an open source Solr user interface discovery platform.
6
6
  You can use Blacklight to enable searching and browsing of your collections.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.22.0
1
+ 6.23.0
@@ -1,10 +1,10 @@
1
1
  <div class="prev_next_links btn-group pull-left">
2
2
  <%= link_to_previous_page @pagination, raw(t('views.pagination.previous')), params: search_state.to_h, param_name: blacklight_config.facet_paginator_class.request_keys[:page], class: 'btn btn-link', data: { ajax_modal: "preserve" } do %>
3
- <span class="disabled btn btn-disabled"><%= raw(t('views.pagination.previous')) %></span>
3
+ <%= content_tag :span, raw(t('views.pagination.previous')), class: 'disabled btn btn-disabled' %>
4
4
  <% end %>
5
5
 
6
6
  <%= link_to_next_page @pagination, raw(t('views.pagination.next')), params: search_state.to_h, param_name: blacklight_config.facet_paginator_class.request_keys[:page], class: 'btn btn-link', data: { ajax_modal: "preserve" } do %>
7
- <span class="disabled btn btn-disabled"><%= raw(t('views.pagination.next')) %></span>
7
+ <%= content_tag :span, raw(t('views.pagination.next')), class: 'disabled btn btn-disabled' %>
8
8
  <% end %>
9
9
  </div>
10
10
 
@@ -1,4 +1,4 @@
1
- <%= form_tag search_action_url, method: :get, class: 'search-query-form clearfix navbar-form', role: 'search' do %>
1
+ <%= form_tag search_action_url, method: :get, class: 'search-query-form clearfix navbar-form', role: 'search', 'aria-label' => t('blacklight.search.form.submit') do %>
2
2
  <%= render_hash_as_hidden_fields(search_state.params_for_search.except(:q, :search_field, :qt, :page, :utf8)) %>
3
3
  <div class="input-group">
4
4
  <% if search_fields.length > 1 %>
@@ -1,4 +1,4 @@
1
- <div id="sortAndPerPage" class="clearfix">
1
+ <div id="sortAndPerPage" class="clearfix" role="navigation" aria-label="<%= t('blacklight.search.per_page.aria_label')%>">
2
2
  <%= render :partial => "paginate_compact", :object => @response if show_pagination? %>
3
3
  <%= render_results_collection_tools wrapping_class: "search-widgets pull-right" %>
4
4
  </div>
@@ -1,5 +1,5 @@
1
- <%- if has_thumbnail?(document) && tn = render_thumbnail_tag(document, {}, :counter => document_counter_with_offset(document_counter)) %>
1
+ <%- if has_thumbnail?(document) && tn = render_thumbnail_tag(document, { alt: '' }, 'aria-hidden': true, tabindex: -1, counter: document_counter_with_offset(document_counter)) %>
2
2
  <div class="document-thumbnail">
3
3
  <%= tn %>
4
- </div>
5
- <%- end %>
4
+ </div>
5
+ <%- end %>
data/blacklight.gemspec CHANGED
@@ -44,7 +44,6 @@ Gem::Specification.new do |s|
44
44
  s.add_development_dependency "selenium-webdriver", '>= 3.13.1'
45
45
  s.add_development_dependency 'engine_cart', '~> 2.1'
46
46
  s.add_development_dependency "equivalent-xml"
47
- s.add_development_dependency "coveralls"
48
47
  s.add_development_dependency "simplecov"
49
48
  s.add_development_dependency "rubocop", '~> 0.47.0' # pending release of 0.48.1
50
49
  s.add_development_dependency "rubocop-rspec", '~> 1.8.0'
@@ -157,6 +157,7 @@ de:
157
157
  button_label: '%{count} pro Seite'
158
158
  title: 'Anzahl der Ergebnisse pro Seite angezeigt werden'
159
159
  submit: 'Aktualisieren'
160
+ aria_label: 'Ergebnisnavigation'
160
161
  sort:
161
162
  label: 'Ordnen bei %{field}'
162
163
  submit: 'Ergebnisse ordnen'
@@ -157,6 +157,7 @@ en:
157
157
  button_label: '%{count} per page'
158
158
  title: 'Number of results to display per page'
159
159
  submit: 'Update'
160
+ aria_label: 'Results navigation'
160
161
  sort:
161
162
  label: 'Sort by %{field}'
162
163
  submit: 'sort results'
@@ -157,6 +157,7 @@ es:
157
157
  button_label: '%{count} por página'
158
158
  title: 'El número de resultados a mostrar por página'
159
159
  submit: 'Actualización'
160
+ aria_label: 'Navegación de resultados'
160
161
  sort:
161
162
  label: 'Ordenar por %{field}'
162
163
  submit: 'Resultados de ordenación'
@@ -162,6 +162,7 @@ fr:
162
162
  button_label: '%{count} par page'
163
163
  title: 'Nombre de résultats à afficher par page'
164
164
  submit: 'mettre à jour'
165
+ aria_label: 'Navigation dans les résultats'
165
166
  sort:
166
167
  label: 'Trier par %{field}'
167
168
  submit: 'trier les résultats'
@@ -157,6 +157,7 @@ it:
157
157
  button_label: '%{count} per pagina'
158
158
  title: 'Risultati per pagina'
159
159
  submit: 'Aggiorna'
160
+ aria_label: 'Navigazione dei risultati'
160
161
  sort:
161
162
  label: 'Ordina per %{field}'
162
163
  submit: 'Ordina i risultati'
@@ -156,6 +156,7 @@ pt-BR:
156
156
  button_label: '%{count} por página'
157
157
  title: 'Número de resultados para mostrar por página'
158
158
  submit: 'Atualizar'
159
+ aria_label: 'Navegação de resultados'
159
160
  sort:
160
161
  label: 'Ordenar por %{field}'
161
162
  submit: 'ordenar resultados'
@@ -160,6 +160,7 @@ sq:
160
160
  button_label: '%{count} për faqe'
161
161
  title: 'Numri i rezultateve që do të shfaqen për faqe'
162
162
  submit: 'Përditëso'
163
+ aria_label: 'Rezultatet e lundrimit'
163
164
  sort:
164
165
  label: 'Klasifikoj sipas %{field}'
165
166
  submit: 'klasifiko rezultatet'
@@ -160,6 +160,7 @@ zh:
160
160
  button_label: '%{count} 每页'
161
161
  title: '每页显示结果数'
162
162
  submit: '更新'
163
+ aria_label: '结果导航'
163
164
  sort:
164
165
  label: '按 %{field} 排序'
165
166
  submit: '排序'
@@ -22,7 +22,7 @@ module Blacklight
22
22
  def to_h
23
23
  @table
24
24
  end
25
-
25
+
26
26
  def select *args, &block
27
27
  self.class.new to_h.select(*args, &block)
28
28
  end
@@ -58,7 +58,7 @@ module Blacklight
58
58
  end
59
59
 
60
60
  ##
61
- # An OpenStruct refinement that converts any hash-keys into
61
+ # An OpenStruct refinement that converts any hash-keys into
62
62
  # additional instances of NestedOpenStructWithHashAccess
63
63
  class NestedOpenStructWithHashAccess < OpenStructWithHashAccess
64
64
  attr_reader :nested_class
@@ -161,7 +161,11 @@ module Blacklight
161
161
  len = args.length
162
162
 
163
163
  if len.zero?
164
- new_ostruct_member(mid)
164
+ if respond_to?(:new_ostruct_member!, true)
165
+ new_ostruct_member!(mid)
166
+ else
167
+ new_ostruct_member(mid)
168
+ end
165
169
  @table[mid]
166
170
  else
167
171
  super
data/spec/spec_helper.rb CHANGED
@@ -5,14 +5,9 @@
5
5
 
6
6
  ENV["RAILS_ENV"] ||= 'test'
7
7
 
8
- if ENV["COVERAGE"] or ENV["CI"]
9
- require 'simplecov'
10
- require 'coveralls'
11
-
12
- SimpleCov.formatter = Coveralls::SimpleCov::Formatter
13
- SimpleCov.start do
14
- add_filter "/spec/"
15
- end
8
+ require 'simplecov'
9
+ SimpleCov.start do
10
+ add_filter "/spec/"
16
11
  end
17
12
 
18
13
  require 'rsolr'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.22.0
4
+ version: 6.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: exe
19
19
  cert_chain: []
20
- date: 2020-01-29 00:00:00.000000000 Z
20
+ date: 2020-03-13 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rails
@@ -289,20 +289,6 @@ dependencies:
289
289
  - - ">="
290
290
  - !ruby/object:Gem::Version
291
291
  version: '0'
292
- - !ruby/object:Gem::Dependency
293
- name: coveralls
294
- requirement: !ruby/object:Gem::Requirement
295
- requirements:
296
- - - ">="
297
- - !ruby/object:Gem::Version
298
- version: '0'
299
- type: :development
300
- prerelease: false
301
- version_requirements: !ruby/object:Gem::Requirement
302
- requirements:
303
- - - ">="
304
- - !ruby/object:Gem::Version
305
- version: '0'
306
292
  - !ruby/object:Gem::Dependency
307
293
  name: simplecov
308
294
  requirement: !ruby/object:Gem::Requirement