blacklight 6.0.0.pre3 → 6.0.0.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/VERSION +1 -1
  4. data/app/controllers/bookmarks_controller.rb +0 -1
  5. data/app/controllers/catalog_controller.rb +0 -1
  6. data/app/controllers/concerns/blacklight/base.rb +0 -1
  7. data/app/controllers/concerns/blacklight/bookmarks.rb +0 -1
  8. data/app/controllers/concerns/blacklight/catalog.rb +6 -38
  9. data/app/controllers/concerns/blacklight/controller.rb +0 -2
  10. data/app/controllers/concerns/blacklight/search_fields.rb +0 -1
  11. data/app/controllers/concerns/blacklight/search_helper.rb +0 -5
  12. data/app/{models → controllers}/concerns/blacklight/token_based_user.rb +6 -10
  13. data/app/controllers/saved_searches_controller.rb +0 -1
  14. data/app/controllers/search_history_controller.rb +0 -1
  15. data/app/helpers/blacklight/blacklight_helper_behavior.rb +0 -4
  16. data/app/helpers/blacklight/catalog_helper_behavior.rb +3 -2
  17. data/app/helpers/blacklight/hash_as_hidden_fields_helper_behavior.rb +0 -1
  18. data/app/helpers/blacklight/layout_helper_behavior.rb +8 -0
  19. data/app/helpers/blacklight/render_constraints_helper_behavior.rb +0 -1
  20. data/app/helpers/blacklight/render_partials_helper.rb +1 -6
  21. data/app/helpers/blacklight/search_history_constraints_helper_behavior.rb +0 -1
  22. data/app/helpers/blacklight/url_helper_behavior.rb +1 -6
  23. data/app/models/blacklight/solr/facet_paginator.rb +0 -1
  24. data/app/models/bookmark.rb +0 -1
  25. data/app/models/concerns/blacklight/configurable.rb +0 -1
  26. data/app/models/concerns/blacklight/document/cache_key.rb +0 -1
  27. data/app/models/concerns/blacklight/document/email.rb +0 -1
  28. data/app/models/concerns/blacklight/document/sms.rb +0 -1
  29. data/app/models/concerns/blacklight/solr/document.rb +0 -7
  30. data/app/models/concerns/blacklight/user.rb +0 -1
  31. data/app/models/record_mailer.rb +0 -1
  32. data/app/models/search.rb +0 -6
  33. data/app/presenters/blacklight/document_presenter.rb +3 -17
  34. data/app/presenters/blacklight/json_presenter.rb +41 -0
  35. data/app/views/catalog/_document.html.erb +1 -1
  36. data/app/views/catalog/_document_default.atom.builder +2 -4
  37. data/app/views/catalog/facet.json.jbuilder +3 -0
  38. data/app/views/catalog/index.atom.builder +1 -1
  39. data/app/views/catalog/index.json.jbuilder +6 -0
  40. data/app/views/layouts/blacklight.html.erb +1 -1
  41. data/app/views/shared/_header_navbar.html.erb +2 -2
  42. data/blacklight.gemspec +9 -4
  43. data/db/migrate/20140202020201_create_searches.rb +1 -2
  44. data/db/migrate/20140202020202_create_bookmarks.rb +1 -2
  45. data/db/migrate/20140320000000_add_polymorphic_type_to_bookmarks.rb +0 -1
  46. data/lib/blacklight.rb +0 -10
  47. data/lib/blacklight/configuration.rb +0 -1
  48. data/lib/blacklight/engine.rb +0 -8
  49. data/lib/blacklight/exceptions.rb +0 -1
  50. data/lib/blacklight/routes.rb +0 -1
  51. data/lib/blacklight/version.rb +0 -1
  52. data/lib/generators/blacklight/assets_generator.rb +0 -1
  53. data/lib/generators/blacklight/install_generator.rb +8 -14
  54. data/lib/generators/blacklight/solr4_generator.rb +27 -0
  55. data/lib/generators/blacklight/solr5_generator.rb +21 -0
  56. data/lib/generators/blacklight/templates/alternate_controller.rb +0 -1
  57. data/lib/generators/blacklight/templates/catalog_controller.rb +3 -4
  58. data/lib/generators/blacklight/templates/solr_document.rb +0 -1
  59. data/lib/generators/blacklight/test_support_generator.rb +0 -1
  60. data/lib/railties/blacklight.rake +0 -7
  61. data/provision.sh +11 -1
  62. data/spec/controllers/blacklight/search_helper_spec.rb +0 -1
  63. data/spec/controllers/bookmarks_controller_spec.rb +26 -1
  64. data/spec/controllers/catalog_controller_spec.rb +8 -35
  65. data/spec/features/facets_spec.rb +0 -1
  66. data/spec/features/record_view_spec.rb +0 -1
  67. data/spec/features/search_context_spec.rb +0 -2
  68. data/spec/features/search_formats_spec.rb +0 -2
  69. data/spec/features/search_pagination_spec.rb +0 -2
  70. data/spec/features/search_results_spec.rb +0 -2
  71. data/spec/features/search_spec.rb +0 -2
  72. data/spec/helpers/blacklight_helper_spec.rb +3 -12
  73. data/spec/helpers/catalog_helper_spec.rb +8 -0
  74. data/spec/helpers/layout_helper_spec.rb +7 -0
  75. data/spec/helpers/url_helper_spec.rb +0 -7
  76. data/spec/lib/tasks/blacklight_task_spec.rb +0 -1
  77. data/spec/models/record_mailer_spec.rb +1 -3
  78. data/spec/models/search_spec.rb +1 -2
  79. data/spec/models/solr_document_spec.rb +22 -24
  80. data/spec/presenters/document_presenter_spec.rb +28 -6
  81. data/spec/spec_helper.rb +0 -1
  82. data/spec/views/catalog/_document.html.erb_spec.rb +20 -3
  83. data/spec/views/catalog/_sort_and_per_page.html.erb_spec.rb +2 -2
  84. data/spec/views/catalog/facet.json.jbuilder_spec.rb +9 -0
  85. data/spec/views/catalog/index.json.jbuilder_spec.rb +30 -0
  86. metadata +15 -15
  87. data/app/models/concerns/blacklight/solr/document/dublin_core.rb +0 -7
  88. data/app/models/concerns/blacklight/solr/document/email.rb +0 -7
  89. data/app/models/concerns/blacklight/solr/document/export.rb +0 -7
  90. data/app/models/concerns/blacklight/solr/document/extensions.rb +0 -8
  91. data/app/models/concerns/blacklight/solr/document/schema_org.rb +0 -7
  92. data/app/models/concerns/blacklight/solr/document/sms.rb +0 -7
  93. data/app/views/catalog/email_sent.html.erb +0 -2
  94. data/app/views/catalog/sms_sent.html.erb +0 -2
  95. data/lib/blacklight/configuration/solr_field.rb +0 -7
@@ -1,4 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
1
  require 'spec_helper'
3
2
 
4
3
  describe "Facets" do
@@ -1,4 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
1
  require 'spec_helper'
3
2
 
4
3
  describe "Record View" do
@@ -1,5 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
-
3
1
  require 'spec_helper'
4
2
 
5
3
  describe "Search Results context", js: true do
@@ -1,5 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
-
3
1
  require 'spec_helper'
4
2
 
5
3
  describe "Search Formats" do
@@ -1,5 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
-
3
1
  require 'spec_helper'
4
2
 
5
3
  describe "Search Pagination" do
@@ -1,5 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
-
3
1
  require 'spec_helper'
4
2
 
5
3
  describe "Search Results" do
@@ -1,5 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
-
3
1
  require 'spec_helper'
4
2
 
5
3
  describe "Search Page" do
@@ -238,13 +238,13 @@ describe BlacklightHelper do
238
238
 
239
239
  describe "render_grouped_response?" do
240
240
  it "should check if the response ivar contains grouped data" do
241
- assign(:response, double("SolrResponse", :grouped? => true))
241
+ assign(:response, double("Solr::Response", :grouped? => true))
242
242
  expect(helper.render_grouped_response?).to be true
243
243
  end
244
244
 
245
245
 
246
246
  it "should check if the response param contains grouped data" do
247
- response = double("SolrResponse", :grouped? => true)
247
+ response = double("Solr::Response", :grouped? => true)
248
248
  expect(helper.render_grouped_response?(response)).to be true
249
249
  end
250
250
  end
@@ -284,15 +284,6 @@ describe BlacklightHelper do
284
284
  allow(helper).to receive(:document_partial_name).with(doc, :xyz)
285
285
  helper.render_document_partial(doc, :xyz)
286
286
  end
287
-
288
- context "with a 1-arg form of document_partial_name" do
289
- it "should only call the 1-arg form of the document_partial_name" do
290
- allow(helper).to receive(:method).with(:document_partial_name).and_return(double(arity: 1))
291
- allow(helper).to receive(:document_partial_name).with(doc)
292
- allow(Deprecation).to receive(:warn)
293
- helper.render_document_partial(doc, nil)
294
- end
295
- end
296
287
  end
297
288
 
298
289
  describe "#document_partial_name" do
@@ -394,7 +385,7 @@ describe BlacklightHelper do
394
385
 
395
386
  before do
396
387
  allow(helper).to receive(:blacklight_config).and_return(CatalogController.blacklight_config)
397
- assign(:response, double("SolrResponse", grouped?: false, start: 0))
388
+ assign(:response, double("Solr::Response", grouped?: false, start: 0))
398
389
  allow(helper).to receive(:link_to_document).and_return('<a/>')
399
390
  allow(helper).to receive(:render_index_doc_actions).and_return('<div/>')
400
391
  end
@@ -226,6 +226,14 @@ describe CatalogHelper do
226
226
 
227
227
  expect(helper.render_thumbnail_tag document).to be_nil
228
228
  end
229
+
230
+ it "should return nil if no thumbnail is in the document" do
231
+ allow(helper).to receive_messages(:blacklight_config => Blacklight::Configuration.new(:index => Blacklight::OpenStructWithHashAccess.new(:thumbnail_field => :xyz) ))
232
+
233
+ allow(document).to receive(:has?).with(:xyz).and_return(false)
234
+
235
+ expect(helper.render_thumbnail_tag document).to be_nil
236
+ end
229
237
  end
230
238
 
231
239
  describe "thumbnail_url" do
@@ -28,4 +28,11 @@ describe LayoutHelper do
28
28
  expect(helper.sidebar_classes).to eq 'col-md-3 col-sm-4'
29
29
  end
30
30
  end
31
+
32
+ describe '#container_classes' do
33
+ it 'returns a string of classe(s)' do
34
+ expect(helper.container_classes).to be_an String
35
+ expect(helper.container_classes).to eq 'container'
36
+ end
37
+ end
31
38
  end
@@ -182,13 +182,6 @@ describe BlacklightUrlHelper do
182
182
  expect(helper.link_to_document(@document, :title_display)).to have_selector("a", :text => '654321', :count => 1)
183
183
  end
184
184
 
185
- it "should have the old deprecated behavior (second argument is a hash)" do
186
- data = {'id'=>'123456','title_display'=>['654321'] }
187
- @document = SolrDocument.new(data)
188
- expect(Deprecation).to receive(:warn)
189
- expect(helper.link_to_document(@document, { :label => "title_display" })).to have_selector("a", :text => 'title_display', :count => 1)
190
- end
191
-
192
185
  it "should accept and return a string label" do
193
186
  data = {'id'=>'123456','title_display'=>['654321'] }
194
187
  @document = SolrDocument.new(data)
@@ -1,4 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
1
  require 'spec_helper'
3
2
  require 'rake'
4
3
 
@@ -1,6 +1,4 @@
1
- # -*- encoding : utf-8 -*-
2
-
3
- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
1
+ require 'spec_helper'
4
2
 
5
3
  describe RecordMailer do
6
4
  before(:each) do
@@ -1,5 +1,4 @@
1
- # -*- encoding : utf-8 -*-
2
- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
1
+ require 'spec_helper'
3
2
 
4
3
  describe Search do
5
4
  describe "query_params" do
@@ -1,33 +1,31 @@
1
- # -*- encoding : utf-8 -*-
1
+ require 'spec_helper'
2
2
 
3
- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
4
-
5
- describe SolrDocument do
3
+ describe SolrDocument do
4
+
5
+ before(:each) do
6
6
 
7
- before(:each) do
8
-
9
- @solrdoc = SolrDocument.new :id => '00282214', :format => ['Book'], :title_display => 'some-title'
7
+ @solrdoc = SolrDocument.new :id => '00282214', :format => ['Book'], :title_display => 'some-title'
8
+
9
+ end
10
+
11
+ describe "new" do
12
+ it "should take a Hash as the argument" do
13
+ expect { SolrDocument.new(:id => 1) }.not_to raise_error
14
+ end
15
+ end
16
+
17
+ describe "access methods" do
10
18
 
19
+ it "should have the right value for title_display" do
20
+ expect(@solrdoc[:title_display]).not_to be_nil
11
21
  end
12
22
 
13
- describe "new" do
14
- it "should take a Hash as the argument" do
15
- expect { SolrDocument.new(:id => 1) }.not_to raise_error
16
- end
23
+ it "should have the right value for format" do
24
+ expect(@solrdoc[:format][0]).to eq 'Book'
17
25
  end
18
26
 
19
- describe "access methods" do
20
-
21
- it "should have the right value for title_display" do
22
- expect(@solrdoc[:title_display]).not_to be_nil
23
- end
24
-
25
- it "should have the right value for format" do
26
- expect(@solrdoc[:format][0]).to eq 'Book'
27
- end
28
-
29
- it "should provide the item's solr id" do
30
- expect(@solrdoc.id).to eq '00282214'
31
- end
27
+ it "should provide the item's solr id" do
28
+ expect(@solrdoc.id).to eq '00282214'
32
29
  end
30
+ end
33
31
  end
@@ -300,12 +300,6 @@ describe Blacklight::DocumentPresenter do
300
300
  expect(subject.render_field_value(['a', 'b'])).to eq "a and b"
301
301
  end
302
302
 
303
- it "should use the separator from the Blacklight field configuration by default" do
304
- Deprecation.silence(Blacklight::DocumentPresenter) do
305
- expect(subject.render_field_value(['c', 'd'], double(separator: '; ', itemprop: nil, separator_options: nil))).to eq "c; d"
306
- end
307
- end
308
-
309
303
  it "should use the field_config.separator_options from the Blacklight field configuration" do
310
304
  expect(subject.render_field_value(['c', 'd'], double(separator: nil, itemprop: nil, separator_options: { two_words_connector: '; '}))).to eq "c; d"
311
305
  end
@@ -358,4 +352,32 @@ describe Blacklight::DocumentPresenter do
358
352
  expect(subject.document_show_html_title).to eq "value"
359
353
  end
360
354
  end
355
+
356
+ describe '#get_field_values' do
357
+ context 'for a field with the helper_method option' do
358
+ let(:field_name) { 'field_with_helper' }
359
+ let(:field_config) { config.add_facet_field 'field_with_helper', helper_method: 'render_field_with_helper' }
360
+
361
+ before do
362
+ document['field_with_helper'] = 'value'
363
+ end
364
+
365
+ it "should check call the helper method with arguments" do
366
+ allow(request_context).to receive(:render_field_with_helper) do |*args|
367
+ args.first
368
+ end
369
+
370
+ render_options = { a: 1 }
371
+
372
+ options = subject.get_field_values field_name, field_config, a: 1
373
+
374
+ expect(options).to include :document, :field, :value, :config, :a
375
+ expect(options[:document]).to eq document
376
+ expect(options[:field]).to eq 'field_with_helper'
377
+ expect(options[:value]).to eq 'value'
378
+ expect(options[:config]).to eq field_config
379
+ expect(options[:a]).to eq 1
380
+ end
381
+ end
382
+ end
361
383
  end
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
1
  # This file is copied to spec/ when you run 'rails generate rspec:install'
3
2
  # Has been customized by Blacklight to work when application is in one place,
4
3
  # and actual spec/ stuff is in another (the blacklight gem checkout).
@@ -9,9 +9,12 @@ describe "catalog/_document" do
9
9
  Blacklight::Configuration.new
10
10
  end
11
11
 
12
- it "should render the header, thumbnail and index by default" do
12
+ before do
13
13
  allow(view).to receive(:render_grouped_response?).and_return(false)
14
14
  allow(view).to receive(:blacklight_config).and_return(blacklight_config)
15
+ end
16
+
17
+ it "should render the header, thumbnail and index by default" do
15
18
  stub_template "catalog/_index_header_default.html.erb" => "document_header"
16
19
  stub_template "catalog/_thumbnail_default.html.erb" => "thumbnail_default"
17
20
  stub_template "catalog/_index_default.html.erb" => "index_default"
@@ -25,8 +28,6 @@ describe "catalog/_document" do
25
28
 
26
29
 
27
30
  it "should use the index.partials parameter to determine the partials to render" do
28
- allow(view).to receive(:render_grouped_response?).and_return(false)
29
- allow(view).to receive(:blacklight_config).and_return(blacklight_config)
30
31
  blacklight_config.index.partials = ['a', 'b', 'c']
31
32
  stub_template "catalog/_a_default.html.erb" => "a_partial"
32
33
  stub_template "catalog/_b_default.html.erb" => "b_partial"
@@ -36,4 +37,20 @@ describe "catalog/_document" do
36
37
  expect(rendered).to match /b_partial/
37
38
  expect(rendered).to match /c_partial/
38
39
  end
40
+
41
+ it 'has a css class with the document position' do
42
+ allow(view).to receive(:render_document_partials)
43
+
44
+ render partial: 'catalog/document', locals: { document: document, document_counter: 5 }
45
+
46
+ expect(rendered).to have_selector 'div.document-position-5'
47
+ end
48
+
49
+ it 'has a data attribute with the document position' do
50
+ allow(view).to receive(:render_document_partials)
51
+
52
+ render partial: 'catalog/document', locals: { document: document, document_counter: 5 }
53
+
54
+ expect(rendered).to have_selector 'div.document[@data-document-counter="5"]'
55
+ end
39
56
  end
@@ -14,7 +14,7 @@ describe "catalog/_sort_and_per_page" do
14
14
  end
15
15
 
16
16
  it "should render the pagination, sort, per page and view type controls" do
17
- assign(:response, double("SolrResponse", limit_value: 1))
17
+ assign(:response, double("Solr::Response", limit_value: 1))
18
18
  stub_template "catalog/_paginate_compact.html.erb" => "paginate_compact"
19
19
  stub_template "catalog/_sort_widget.html.erb" => "sort_widget"
20
20
  stub_template "catalog/_per_page_widget.html.erb" => "per_page_widget"
@@ -27,7 +27,7 @@ describe "catalog/_sort_and_per_page" do
27
27
  end
28
28
 
29
29
  it "should not render the pagination controls with bad limit values" do
30
- assign(:response, double("SolrResponse", limit_value: 0))
30
+ assign(:response, double("Solr::Response", limit_value: 0))
31
31
  stub_template "catalog/_paginate_compact.html.erb" => "paginate_compact"
32
32
  stub_template "catalog/_sort_widget.html.erb" => "sort_widget"
33
33
  stub_template "catalog/_per_page_widget.html.erb" => "per_page_widget"
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+ describe "catalog/facet.json" do
3
+ it "renders facet json" do
4
+ assign :pagination, { items: [{ value: 'Book' }] }
5
+ render template: "catalog/facet.json", format: :json
6
+ hash = JSON.parse(rendered)
7
+ expect(hash).to eq('response' => { 'facets' => { 'items' => [{ 'value' => 'Book' }] } })
8
+ end
9
+ end
@@ -0,0 +1,30 @@
1
+ require 'spec_helper'
2
+ describe "catalog/index.json" do
3
+ let(:response) { double("response") }
4
+ let(:docs) { [{ id: '123', title_t: 'Book1' }, { id: '456', title_t: 'Book2' }] }
5
+ let(:facets) { double("facets") }
6
+ let(:config) { double("config") }
7
+ let(:presenter) { Blacklight::JsonPresenter.new(response, docs, facets, config) }
8
+
9
+ it "renders index json" do
10
+ allow(presenter).to receive(:pagination_info).and_return({ current_page: 1, next_page: 2,
11
+ prev_page: nil })
12
+ allow(presenter).to receive(:search_facets_as_json).and_return(
13
+ [{ name: "format", label: "Format",
14
+ items: [{ value: 'Book', hits: 30, label: 'Book' }] }])
15
+ assign :presenter, presenter
16
+ render template: "catalog/index.json", format: :json
17
+ hash = JSON.parse(rendered)
18
+ expect(hash).to eq('response' => { 'docs' => [{ 'id' => '123', 'title_t' => 'Book1' },
19
+ { 'id' => '456', 'title_t' => 'Book2' }],
20
+ 'facets' => [{ 'name' => "format", 'label' => "Format",
21
+ 'items' => [
22
+ { 'value' => 'Book',
23
+ 'hits' => 30,
24
+ 'label' => 'Book' }] }],
25
+ 'pages' => { 'current_page' => 1,
26
+ 'next_page' => 2,
27
+ 'prev_page' => nil } }
28
+ )
29
+ end
30
+ end
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.0.0.pre3
4
+ version: 6.0.0.pre4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
@@ -15,9 +15,9 @@ authors:
15
15
  - Naomi Dushay
16
16
  - Justin Coyne
17
17
  autorequire:
18
- bindir: bin
18
+ bindir: exe
19
19
  cert_chain: []
20
- date: 2015-11-08 00:00:00.000000000 Z
20
+ date: 2015-11-17 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rails
@@ -315,6 +315,7 @@ files:
315
315
  - app/controllers/concerns/blacklight/search_helper.rb
316
316
  - app/controllers/concerns/blacklight/suggest.rb
317
317
  - app/controllers/concerns/blacklight/suggest_search.rb
318
+ - app/controllers/concerns/blacklight/token_based_user.rb
318
319
  - app/controllers/saved_searches_controller.rb
319
320
  - app/controllers/search_history_controller.rb
320
321
  - app/controllers/suggest_controller.rb
@@ -357,20 +358,14 @@ files:
357
358
  - app/models/concerns/blacklight/document/semantic_fields.rb
358
359
  - app/models/concerns/blacklight/document/sms.rb
359
360
  - app/models/concerns/blacklight/solr/document.rb
360
- - app/models/concerns/blacklight/solr/document/dublin_core.rb
361
- - app/models/concerns/blacklight/solr/document/email.rb
362
- - app/models/concerns/blacklight/solr/document/export.rb
363
- - app/models/concerns/blacklight/solr/document/extensions.rb
364
361
  - app/models/concerns/blacklight/solr/document/more_like_this.rb
365
- - app/models/concerns/blacklight/solr/document/schema_org.rb
366
- - app/models/concerns/blacklight/solr/document/sms.rb
367
362
  - app/models/concerns/blacklight/suggest/response.rb
368
- - app/models/concerns/blacklight/token_based_user.rb
369
363
  - app/models/concerns/blacklight/user.rb
370
364
  - app/models/record_mailer.rb
371
365
  - app/models/search.rb
372
366
  - app/models/solr_document.rb
373
367
  - app/presenters/blacklight/document_presenter.rb
368
+ - app/presenters/blacklight/json_presenter.rb
374
369
  - app/views/_flash_msg.html.erb
375
370
  - app/views/_user_util_links.html.erb
376
371
  - app/views/blacklight/nav/_bookmark.html.erb
@@ -425,11 +420,12 @@ files:
425
420
  - app/views/catalog/citation.html.erb
426
421
  - app/views/catalog/citation.js.erb
427
422
  - app/views/catalog/email.html.erb
428
- - app/views/catalog/email_sent.html.erb
429
423
  - app/views/catalog/email_success.html.erb
430
424
  - app/views/catalog/facet.html.erb
425
+ - app/views/catalog/facet.json.jbuilder
431
426
  - app/views/catalog/index.atom.builder
432
427
  - app/views/catalog/index.html.erb
428
+ - app/views/catalog/index.json.jbuilder
433
429
  - app/views/catalog/index.rss.builder
434
430
  - app/views/catalog/opensearch.json.erb
435
431
  - app/views/catalog/opensearch.xml.builder
@@ -437,7 +433,6 @@ files:
437
433
  - app/views/catalog/show.html.erb
438
434
  - app/views/catalog/show.refworks.erb
439
435
  - app/views/catalog/sms.html.erb
440
- - app/views/catalog/sms_sent.html.erb
441
436
  - app/views/catalog/sms_success.html.erb
442
437
  - app/views/kaminari/blacklight/_first_page.html.erb
443
438
  - app/views/kaminari/blacklight/_gap.html.erb
@@ -479,7 +474,6 @@ files:
479
474
  - lib/blacklight/configuration/field.rb
480
475
  - lib/blacklight/configuration/fields.rb
481
476
  - lib/blacklight/configuration/search_field.rb
482
- - lib/blacklight/configuration/solr_field.rb
483
477
  - lib/blacklight/configuration/sort_field.rb
484
478
  - lib/blacklight/configuration/tool_config.rb
485
479
  - lib/blacklight/configuration/view_config.rb
@@ -511,6 +505,8 @@ files:
511
505
  - lib/generators/blacklight/install_generator.rb
512
506
  - lib/generators/blacklight/models_generator.rb
513
507
  - lib/generators/blacklight/search_builder_generator.rb
508
+ - lib/generators/blacklight/solr4_generator.rb
509
+ - lib/generators/blacklight/solr5_generator.rb
514
510
  - lib/generators/blacklight/templates/alternate_controller.rb
515
511
  - lib/generators/blacklight/templates/blacklight.css.scss
516
512
  - lib/generators/blacklight/templates/blacklight.en.yml
@@ -638,8 +634,10 @@ files:
638
634
  - spec/views/catalog/_thumbnail_default.erb_spec.rb
639
635
  - spec/views/catalog/_view_type_group.html.erb_spec.rb
640
636
  - spec/views/catalog/facet.html.erb_spec.rb
637
+ - spec/views/catalog/facet.json.jbuilder_spec.rb
641
638
  - spec/views/catalog/index.atom.builder_spec.rb
642
639
  - spec/views/catalog/index.html.erb_spec.rb
640
+ - spec/views/catalog/index.json.jbuilder_spec.rb
643
641
  - spec/views/catalog/opensearch.xml.builder_spec.rb
644
642
  - spec/views/catalog/show.html.erb_spec.rb
645
643
  - tasks/blacklight.rake
@@ -654,9 +652,9 @@ require_paths:
654
652
  - lib
655
653
  required_ruby_version: !ruby/object:Gem::Requirement
656
654
  requirements:
657
- - - ">="
655
+ - - "~>"
658
656
  - !ruby/object:Gem::Version
659
- version: '0'
657
+ version: '2.0'
660
658
  required_rubygems_version: !ruby/object:Gem::Requirement
661
659
  requirements:
662
660
  - - ">"
@@ -768,7 +766,9 @@ test_files:
768
766
  - spec/views/catalog/_thumbnail_default.erb_spec.rb
769
767
  - spec/views/catalog/_view_type_group.html.erb_spec.rb
770
768
  - spec/views/catalog/facet.html.erb_spec.rb
769
+ - spec/views/catalog/facet.json.jbuilder_spec.rb
771
770
  - spec/views/catalog/index.atom.builder_spec.rb
772
771
  - spec/views/catalog/index.html.erb_spec.rb
772
+ - spec/views/catalog/index.json.jbuilder_spec.rb
773
773
  - spec/views/catalog/opensearch.xml.builder_spec.rb
774
774
  - spec/views/catalog/show.html.erb_spec.rb