blacklight 6.19.1 → 6.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51a58afc62bfdc6dfd3b7796e75ecdfef49a7d831fbd66cb2b4a34a483ff79bd
4
- data.tar.gz: 696d0e82c3adc9e0728c98452b7588d7235f5cc649ac0a259ae122001b5b78dd
3
+ metadata.gz: 29725d7ac098fe4dfcdadceabf7b03066f14c680a9af21afa54191d643e87e7a
4
+ data.tar.gz: e36bfb2a98c4eccdd1368f8a06a7a377e5fa5f1d3282a48384e31470148b3c50
5
5
  SHA512:
6
- metadata.gz: 4830158f0d709f43a5d2d4388e29843f3ab02404cacd7abf0ba0965b58873a0f01c75e0bfbf2d32f7f467fbd4a98cdf121d2205b9e0de07e7ed28a40047e997f
7
- data.tar.gz: af430dcbe8775706d3c9436b197bcd2fb9b8212ab46cac4ea33b14fd07e3c012293683b94993e4d431214d8a929828e12c8f5154bcd3f841904b68479a461c61
6
+ metadata.gz: f00f3c5c21af357d7c695888835a92a7ca63ca361fdb670fee07254f69a444fca4bc6d7d0ccd396bb871346eabc6ef6015c82d4dbadd81c1a3e7ccb584f56545
7
+ data.tar.gz: 4f06db656530cb3b32364815ae24fff6c4ddcd8fe12373e08d6088b263025b9acb292c616ac45377ba43f96dbb6230875e98553fe4c7bd87b5f18f5819557a92
@@ -24,6 +24,10 @@ matrix:
24
24
  env: "RAILS_VERSION=5.2.0 JRUBY_OPTS=\"-J-Xms512m -J-Xmx1024m\""
25
25
  allow_failures:
26
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"
27
31
  fast_finish: true
28
32
 
29
33
  before_install:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.19.1
1
+ 6.19.2
@@ -1,21 +1,26 @@
1
+ <div class="modal-header">
2
+ <h1><%= t('blacklight.tools.citation') %></h1>
3
+ <button type="button" class="blacklight-modal-close close" data-dismiss="modal" aria-label="<%= t('blacklight.modal.close') %>">
4
+ <span aria-hidden="true">&times;</span>
5
+ </button>
6
+ </div>
7
+ <div class="modal-body">
8
+ <% @documents.each do |document| %>
9
+ <h1 class="modal-title"><%= document_heading(document) %></h1>
1
10
 
2
- <% @documents.each do |document| %>
11
+ <% if document.respond_to?(:export_as_mla_citation_txt) %>
12
+ <h2><%= t('blacklight.citation.mla') %></h2>
13
+ <%= document.send(:export_as_mla_citation_txt).html_safe %><br/><br/>
14
+ <% end %>
3
15
 
4
- <h3 class="modal-title"><%= document_heading(document) %></h3>
16
+ <% if document.respond_to?(:export_as_apa_citation_txt) %>
17
+ <h2><%= t('blacklight.citation.apa') %></h2>
18
+ <%= document.send(:export_as_apa_citation_txt).html_safe %><br/><br/>
19
+ <% end %>
5
20
 
6
- <% if document.respond_to?(:export_as_mla_citation_txt) %>
7
- <h4><%= t('blacklight.citation.mla') %></h4>
8
- <%= document.send(:export_as_mla_citation_txt).html_safe %><br/><br/>
9
- <% end %>
10
-
11
- <% if document.respond_to?(:export_as_apa_citation_txt) %>
12
- <h4><%= t('blacklight.citation.apa') %></h4>
13
- <%= document.send(:export_as_apa_citation_txt).html_safe %><br/><br/>
14
- <% end %>
15
-
16
- <%- if document.respond_to?(:export_as_chicago_citation_txt) -%>
17
- <h4><%= t('blacklight.citation.chicago') %></h4>
18
- <%= document.send(:export_as_chicago_citation_txt).html_safe %>
19
- <%- end -%>
20
-
21
- <% end %>
21
+ <% if document.respond_to?(:export_as_chicago_citation_txt) %>
22
+ <h2><%= t('blacklight.citation.chicago') %></h2>
23
+ <%= document.send(:export_as_chicago_citation_txt).html_safe %>
24
+ <% end %>
25
+ <% end %>
26
+ </div>
@@ -1 +1 @@
1
- <%= render :partial => 'citation' -%>
1
+ <%= render partial: 'citation' %>
@@ -1,7 +1 @@
1
- <div class="modal-header">
2
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
3
- <h3><%= t('blacklight.tools.citation') %></h3>
4
- </div>
5
- <div class="modal-body">
6
- <%= render :partial => 'citation' -%>
7
- </div>
1
+ <%= render partial: 'citation' %>
@@ -42,7 +42,7 @@ Gem::Specification.new do |s|
42
42
  s.add_development_dependency "capybara", '>= 2', '< 4'
43
43
  s.add_development_dependency 'chromedriver-helper', '< 2.0.0' # 2.1.0 is causing "Unable to find chromedriver" on Travis
44
44
  s.add_development_dependency "selenium-webdriver", '>= 3.13.1'
45
- s.add_development_dependency 'engine_cart', '~> 1.2'
45
+ s.add_development_dependency 'engine_cart', '~> 2.1'
46
46
  s.add_development_dependency "equivalent-xml"
47
47
  s.add_development_dependency "coveralls"
48
48
  s.add_development_dependency "simplecov"
@@ -62,7 +62,7 @@ describe CatalogController do
62
62
  end
63
63
 
64
64
  it "returns results (possibly 0) when the user asks for a valid value to a custom facet query", :integration => true do
65
- get :index, params: { f: { example_query_facet_field: 'years_10' } } # valid custom facet value with some results
65
+ get :index, params: { f: { example_query_facet_field: 'years_25' } } # valid custom facet value with some results
66
66
  expect(assigns(:response).docs).to_not be_empty
67
67
  get :index, params: { f: {example_query_facet_field: 'years_5' } } # valid custom facet value with NO results
68
68
  expect(assigns(:response).docs).to be_empty
@@ -149,8 +149,8 @@ describe CatalogController do
149
149
  let(:query_facet_items) { facets.last['items'] }
150
150
  let(:regular_facet_items) { facets.first['items'] }
151
151
  it "has items with labels and values" do
152
- expect(query_facet_items.first['label']).to eq 'within 10 Years'
153
- expect(query_facet_items.first['value']).to eq 'years_10'
152
+ expect(query_facet_items.first['label']).to eq 'within 25 Years'
153
+ expect(query_facet_items.first['value']).to eq 'years_25'
154
154
  expect(regular_facet_items.first['label']).to eq "Book"
155
155
  expect(regular_facet_items.first['value']).to eq "Book"
156
156
  end
@@ -9,8 +9,6 @@ end
9
9
  require 'rubocop/rake_task'
10
10
  RuboCop::RakeTask.new(:rubocop)
11
11
 
12
- EngineCart.fingerprint_proc = EngineCart.rails_fingerprint_proc
13
-
14
12
  desc "Run test suite"
15
13
  task ci: ['blacklight:generate'] do
16
14
  SolrWrapper.wrap do |solr|
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.19.1
4
+ version: 6.19.2
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: 2018-12-18 00:00:00.000000000 Z
20
+ date: 2019-01-11 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rails
@@ -267,14 +267,14 @@ dependencies:
267
267
  requirements:
268
268
  - - "~>"
269
269
  - !ruby/object:Gem::Version
270
- version: '1.2'
270
+ version: '2.1'
271
271
  type: :development
272
272
  prerelease: false
273
273
  version_requirements: !ruby/object:Gem::Requirement
274
274
  requirements:
275
275
  - - "~>"
276
276
  - !ruby/object:Gem::Version
277
- version: '1.2'
277
+ version: '2.1'
278
278
  - !ruby/object:Gem::Dependency
279
279
  name: equivalent-xml
280
280
  requirement: !ruby/object:Gem::Requirement