blacklight 5.19.2 → 6.0.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -3
  3. data/.hound.yml +2 -0
  4. data/.jshintrc +67 -0
  5. data/.rubocop_hound.yml +4 -0
  6. data/.travis.yml +11 -8
  7. data/Gemfile +11 -21
  8. data/Rakefile +1 -0
  9. data/VERSION +1 -1
  10. data/app/assets/javascripts/blacklight/blacklight.js +1 -0
  11. data/app/assets/javascripts/blacklight/core.js +5 -19
  12. data/app/assets/javascripts/blacklight/facet_load.js +23 -0
  13. data/app/assets/stylesheets/blacklight/_balanced_list.scss +18 -0
  14. data/app/assets/stylesheets/blacklight/_blacklight_base.scss +5 -1
  15. data/app/assets/stylesheets/blacklight/_bookmark.scss +14 -6
  16. data/app/assets/stylesheets/blacklight/_constraints.scss +52 -0
  17. data/app/assets/stylesheets/blacklight/_controls.scss +61 -0
  18. data/app/assets/stylesheets/blacklight/_facets.scss +31 -4
  19. data/app/assets/stylesheets/blacklight/_header.scss +17 -3
  20. data/app/assets/stylesheets/blacklight/_pagination.scss +21 -0
  21. data/app/assets/stylesheets/blacklight/_search_results.scss +28 -0
  22. data/app/assets/stylesheets/blacklight/blacklight_defaults.scss +0 -3
  23. data/app/controllers/concerns/blacklight/bookmarks.rb +1 -1
  24. data/app/controllers/concerns/blacklight/catalog.rb +3 -45
  25. data/app/controllers/concerns/blacklight/controller.rb +29 -18
  26. data/app/controllers/concerns/blacklight/default_component_configuration.rb +4 -3
  27. data/app/controllers/concerns/blacklight/facet.rb +1 -0
  28. data/app/controllers/concerns/blacklight/request_builders.rb +4 -107
  29. data/app/controllers/concerns/blacklight/search_fields.rb +1 -1
  30. data/app/controllers/concerns/blacklight/search_helper.rb +8 -160
  31. data/app/controllers/saved_searches_controller.rb +1 -1
  32. data/app/controllers/search_history_controller.rb +18 -1
  33. data/app/helpers/blacklight/blacklight_helper_behavior.rb +17 -85
  34. data/app/helpers/blacklight/catalog_helper_behavior.rb +4 -48
  35. data/app/helpers/blacklight/component_helper_behavior.rb +9 -2
  36. data/app/helpers/blacklight/configuration_helper_behavior.rb +3 -43
  37. data/app/helpers/blacklight/facets_helper_behavior.rb +10 -6
  38. data/app/helpers/blacklight/layout_helper_behavior.rb +0 -8
  39. data/app/helpers/blacklight/render_constraints_helper_behavior.rb +9 -10
  40. data/app/helpers/blacklight/render_partials_helper.rb +1 -3
  41. data/app/helpers/blacklight/url_helper_behavior.rb +15 -187
  42. data/{lib → app/models}/blacklight/abstract_repository.rb +0 -15
  43. data/{lib → app/models}/blacklight/configuration.rb +22 -59
  44. data/app/models/blacklight/configuration/context.rb +47 -0
  45. data/{lib → app/models}/blacklight/configuration/facet_field.rb +1 -0
  46. data/{lib → app/models}/blacklight/configuration/field.rb +0 -0
  47. data/{lib → app/models}/blacklight/configuration/fields.rb +2 -6
  48. data/{lib → app/models}/blacklight/configuration/search_field.rb +0 -0
  49. data/{lib → app/models}/blacklight/configuration/solr_field.rb +0 -0
  50. data/{lib → app/models}/blacklight/configuration/sort_field.rb +0 -0
  51. data/{lib → app/models}/blacklight/configuration/tool_config.rb +0 -0
  52. data/app/models/blacklight/configuration/view_config.rb +9 -0
  53. data/app/models/blacklight/facet_paginator.rb +14 -28
  54. data/{lib → app/models}/blacklight/search_builder.rb +16 -24
  55. data/app/models/blacklight/solr/facet_paginator.rb +6 -2
  56. data/{lib → app/models}/blacklight/solr/repository.rb +0 -21
  57. data/{lib → app/models}/blacklight/solr/request.rb +0 -0
  58. data/{lib → app/models}/blacklight/solr/response.rb +9 -8
  59. data/{lib → app/models}/blacklight/solr/response/facets.rb +37 -29
  60. data/{lib → app/models}/blacklight/solr/response/group.rb +0 -0
  61. data/{lib → app/models}/blacklight/solr/response/group_response.rb +0 -0
  62. data/{lib → app/models}/blacklight/solr/response/more_like_this.rb +0 -0
  63. data/{lib → app/models}/blacklight/solr/response/pagination_methods.rb +0 -0
  64. data/{lib → app/models}/blacklight/solr/response/response.rb +0 -0
  65. data/{lib → app/models}/blacklight/solr/response/spelling.rb +2 -1
  66. data/{lib → app/models}/blacklight/solr/search_builder.rb +0 -0
  67. data/app/models/concerns/blacklight/document.rb +11 -27
  68. data/app/models/concerns/blacklight/document/active_model_shim.rb +8 -0
  69. data/app/models/concerns/blacklight/solr/document.rb +8 -3
  70. data/{lib → app/models/concerns}/blacklight/solr/search_builder_behavior.rb +21 -33
  71. data/app/models/concerns/blacklight/user.rb +0 -9
  72. data/app/models/record_mailer.rb +0 -1
  73. data/app/presenters/blacklight/document_presenter.rb +23 -13
  74. data/app/views/blacklight/nav/_saved_searches.html.erb +1 -1
  75. data/app/views/blacklight/nav/_search_history.html.erb +1 -1
  76. data/app/views/bookmarks/_tools.html.erb +1 -2
  77. data/app/views/bookmarks/index.html.erb +2 -2
  78. data/app/views/catalog/_document_default.atom.builder +4 -2
  79. data/app/views/catalog/_facet_index_navigation.html.erb +9 -0
  80. data/app/views/catalog/_facet_layout.html.erb +2 -3
  81. data/app/views/catalog/_facet_pagination.html.erb +19 -21
  82. data/app/views/catalog/_facets.html.erb +2 -3
  83. data/app/views/catalog/_home_text.html.erb +2 -3
  84. data/app/views/catalog/_index_header_default.html.erb +2 -2
  85. data/app/views/catalog/_per_page_widget.html.erb +1 -1
  86. data/app/views/catalog/_search_form.html.erb +21 -18
  87. data/app/views/catalog/_sort_widget.html.erb +1 -1
  88. data/app/views/catalog/_zero_results.html.erb +2 -2
  89. data/app/views/catalog/facet.html.erb +3 -0
  90. data/app/views/catalog/index.atom.builder +1 -1
  91. data/app/views/layouts/blacklight.html.erb +2 -2
  92. data/app/views/saved_searches/index.html.erb +6 -7
  93. data/app/views/search_history/index.html.erb +5 -5
  94. data/app/views/shared/_header_navbar.html.erb +2 -2
  95. data/blacklight.gemspec +5 -5
  96. data/config/locales/blacklight.de.yml +1 -4
  97. data/config/locales/blacklight.en.yml +2 -7
  98. data/config/locales/blacklight.es.yml +1 -4
  99. data/config/locales/blacklight.fr.yml +1 -4
  100. data/config/locales/blacklight.it.yml +1 -4
  101. data/config/locales/blacklight.pt-BR.yml +1 -4
  102. data/config/routes.rb +9 -0
  103. data/db/migrate/20140202020201_create_searches.rb +1 -1
  104. data/db/migrate/20140202020202_create_bookmarks.rb +1 -1
  105. data/lib/blacklight.rb +5 -82
  106. data/lib/blacklight/engine.rb +0 -5
  107. data/lib/blacklight/parameters.rb +13 -0
  108. data/lib/blacklight/path.rb +143 -0
  109. data/lib/blacklight/routes.rb +3 -134
  110. data/lib/blacklight/routes/exportable.rb +25 -0
  111. data/lib/blacklight/routes/searchable.rb +20 -0
  112. data/lib/blacklight/solr.rb +1 -9
  113. data/lib/blacklight/utils.rb +2 -44
  114. data/lib/generators/blacklight/controller_generator.rb +7 -4
  115. data/lib/generators/blacklight/install_generator.rb +16 -9
  116. data/lib/generators/blacklight/models_generator.rb +18 -0
  117. data/lib/generators/blacklight/templates/catalog_controller.rb +85 -91
  118. data/lib/generators/blacklight/test_support_generator.rb +22 -15
  119. data/solr/conf/_rest_managed.json +3 -0
  120. data/solr/conf/admin-extra.html +31 -0
  121. data/solr/conf/elevate.xml +36 -0
  122. data/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
  123. data/solr/conf/protwords.txt +21 -0
  124. data/solr/conf/schema.xml +621 -0
  125. data/solr/conf/scripts.conf +24 -0
  126. data/solr/conf/solrconfig.xml +391 -0
  127. data/solr/conf/spellings.txt +2 -0
  128. data/solr/conf/stopwords.txt +58 -0
  129. data/solr/conf/stopwords_en.txt +58 -0
  130. data/solr/conf/synonyms.txt +31 -0
  131. data/solr/conf/xslt/example.xsl +132 -0
  132. data/solr/conf/xslt/example_atom.xsl +67 -0
  133. data/solr/conf/xslt/example_rss.xsl +66 -0
  134. data/solr/conf/xslt/luke.xsl +337 -0
  135. data/solr/sample_solr_documents.yml +1 -0
  136. data/spec/controllers/blacklight/base_spec.rb +17 -0
  137. data/spec/controllers/blacklight/search_helper_spec.rb +25 -297
  138. data/spec/controllers/catalog_controller_spec.rb +7 -6
  139. data/spec/controllers/saved_searches_controller_spec.rb +1 -0
  140. data/spec/controllers/search_history_controller_spec.rb +1 -0
  141. data/spec/features/alternate_controller_spec.rb +10 -10
  142. data/spec/features/bookmarks_spec.rb +8 -22
  143. data/spec/features/facets_spec.rb +27 -7
  144. data/spec/features/record_view_spec.rb +4 -13
  145. data/spec/features/search_formats_spec.rb +1 -26
  146. data/spec/features/sitelinks_search_box.rb +1 -1
  147. data/spec/helpers/blacklight_helper_spec.rb +8 -38
  148. data/spec/helpers/catalog_helper_spec.rb +0 -8
  149. data/spec/helpers/configuration_helper_spec.rb +0 -25
  150. data/spec/helpers/facets_helper_spec.rb +12 -11
  151. data/spec/helpers/hash_as_hidden_fields_spec.rb +7 -7
  152. data/spec/helpers/layout_helper_spec.rb +0 -7
  153. data/spec/helpers/render_constraints_helper_spec.rb +4 -2
  154. data/spec/helpers/url_helper_spec.rb +13 -254
  155. data/spec/lib/blacklight/parameters_spec.rb +22 -0
  156. data/spec/lib/blacklight/path_spec.rb +254 -0
  157. data/spec/lib/blacklight_spec.rb +6 -2
  158. data/spec/models/blacklight/configuration/context_spec.rb +33 -0
  159. data/spec/models/blacklight/document/active_model_shim_spec.rb +33 -0
  160. data/spec/models/blacklight/document_spec.rb +29 -1
  161. data/spec/models/blacklight/facet_paginator_spec.rb +14 -13
  162. data/spec/models/blacklight/search_builder_spec.rb +17 -23
  163. data/spec/models/blacklight/solr/facet_paginator_spec.rb +11 -1
  164. data/spec/models/blacklight/solr/response/facets_spec.rb +19 -25
  165. data/spec/models/blacklight/solr/response/group_response_spec.rb +5 -5
  166. data/spec/models/blacklight/solr/response_spec.rb +0 -11
  167. data/spec/models/blacklight/solr/search_builder_spec.rb +49 -57
  168. data/spec/presenters/document_presenter_spec.rb +15 -42
  169. data/spec/routing/catalog_routing_spec.rb +7 -11
  170. data/spec/spec_helper.rb +4 -42
  171. data/spec/support/controller_level_helpers.rb +17 -0
  172. data/spec/test_app_templates/lib/generators/test_app_generator.rb +1 -2
  173. data/spec/views/_user_util_links.html.erb_spec.rb +1 -1
  174. data/spec/views/catalog/_facet_index_navigation.html.erb_spec.rb +40 -0
  175. data/spec/views/catalog/_facet_layout.html.erb_spec.rb +1 -1
  176. data/spec/views/catalog/_facets.html.erb_spec.rb +2 -2
  177. data/spec/views/catalog/_paginate_compact.html.erb_spec.rb +1 -1
  178. data/spec/views/catalog/_show_tools.html.erb_spec.rb +8 -8
  179. data/spec/views/catalog/_sort_and_per_page.html.erb_spec.rb +2 -2
  180. data/tasks/blacklight.rake +25 -30
  181. metadata +93 -71
  182. data/app/assets/stylesheets/blacklight/_catalog.scss +0 -229
  183. data/app/controllers/concerns/blacklight/search_history.rb +0 -31
  184. data/app/views/catalog/_refworks_form.html.erb +0 -6
  185. data/lib/blacklight/configuration/view_config.rb +0 -71
  186. data/lib/blacklight/rails/routes.rb +0 -29
  187. data/lib/blacklight/solr_helper.rb +0 -9
  188. data/lib/generators/blacklight/templates/config/initializers/blacklight_initializer.rb +0 -9
  189. data/spec/helpers/component_helper_spec.rb +0 -19
  190. data/spec/lib/blacklight/routes_spec.rb +0 -25
  191. data/spec/lib/blacklight/solr_helper_spec.rb +0 -12
  192. data/spec/routing/routes_spec.rb +0 -20
  193. data/spec/views/catalog/_document_action.html.erb_spec.rb +0 -21
@@ -18,40 +18,36 @@ describe "Routing" do
18
18
  it "should map { :controller => 'catalog', :action => 'show', :id => 666 } to /catalog/666" do
19
19
  expect(:get => "/catalog/666").to route_to(:controller => 'catalog', :action => 'show', :id => "666")
20
20
  end
21
- it "should map {:controller => 'catalog', :id => '111', :action => 'librarian_view'} to /catalog/111/librarian_view" do
22
- expect(:get => "/catalog/111/librarian_view").to route_to(:controller => 'catalog', :action => 'librarian_view', :id => "111")
23
- expect(:get => librarian_view_catalog_path('111')).to route_to(:controller => 'catalog', :action => 'librarian_view', :id => "111")
24
- end
25
21
  end
26
22
 
27
23
 
28
- describe "catalog_path for SolrDocument", :test => true do
24
+ describe "solr_document_path for SolrDocument", :test => true do
29
25
  it "should route correctly" do
30
- expect(:get => catalog_path(SolrDocument.new(:id => 'asdf'))).to route_to(:controller => 'catalog', :action => 'show', :id => 'asdf')
26
+ expect(:get => solr_document_path(SolrDocument.new(:id => 'asdf'))).to route_to(:controller => 'catalog', :action => 'show', :id => 'asdf')
31
27
  end
32
28
 
33
29
  context "should escape solr document ids" do
34
30
 
35
31
  it "should pass-through url-valid ids" do
36
- expect(:get => catalog_path(SolrDocument.new(:id => 'qwerty'))).to route_to(:controller => 'catalog', :action => 'show', :id => 'qwerty')
32
+ expect(:get => solr_document_path(SolrDocument.new(:id => 'qwerty'))).to route_to(:controller => 'catalog', :action => 'show', :id => 'qwerty')
37
33
  end
38
34
 
39
35
  it "should route url-like ids" do
40
36
  skip "This works if you configure your routing to have very liberal constraints on :id.. not sure how to go about testing it though"
41
- expect(:get => catalog_path(SolrDocument.new(:id => 'http://example.com'))).to route_to(:controller => 'catalog', :action => 'show', :id => 'http://example.com')
37
+ expect(:get => solr_document_path(SolrDocument.new(:id => 'http://example.com'))).to route_to(:controller => 'catalog', :action => 'show', :id => 'http://example.com')
42
38
  end
43
39
 
44
40
  it "should route ids with whitespace" do
45
- expect(:get => catalog_path(SolrDocument.new(:id => 'mm 123'))).to route_to(:controller => 'catalog', :action => 'show', :id => 'mm 123')
41
+ expect(:get => solr_document_path(SolrDocument.new(:id => 'mm 123'))).to route_to(:controller => 'catalog', :action => 'show', :id => 'mm 123')
46
42
  end
47
43
 
48
44
  it "should route ids with a literal '+'" do
49
- expect(:get => catalog_path(SolrDocument.new(:id => 'this+that'))).to route_to(:controller => 'catalog', :action => 'show', :id => 'this+that')
45
+ expect(:get => solr_document_path(SolrDocument.new(:id => 'this+that'))).to route_to(:controller => 'catalog', :action => 'show', :id => 'this+that')
50
46
  end
51
47
 
52
48
  it "should route ids with a literal '/" do
53
49
  skip "This works if you configure your routing to have very liberal constraints on :id.. not sure how to go about testing it though"
54
- expect(:get => catalog_path(SolrDocument.new(:id => 'and/or'))).to route_to(:controller => 'catalog', :action => 'show', :id => 'and/or')
50
+ expect(:get => solr_document_path(SolrDocument.new(:id => 'and/or'))).to route_to(:controller => 'catalog', :action => 'show', :id => 'and/or')
55
51
  end
56
52
  end
57
53
  end
data/spec/spec_helper.rb CHANGED
@@ -17,7 +17,6 @@ end
17
17
 
18
18
  require 'rsolr'
19
19
  require 'blacklight'
20
- require 'blacklight/marc'
21
20
 
22
21
  require 'engine_cart'
23
22
  EngineCart.load_application!
@@ -57,46 +56,9 @@ RSpec.configure do |config|
57
56
  config.include Devise::TestHelpers, type: :controller
58
57
  config.infer_spec_type_from_file_location!
59
58
 
60
- config.expect_with :rspec do |expectations|
61
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
62
- end
63
-
64
- config.default_formatter = 'doc' if config.files_to_run.one?
65
-
66
- config.shared_context_metadata_behavior = :apply_to_host_groups
67
-
68
- # This allows you to limit a spec run to individual examples or groups
69
- # you care about by tagging them with `:focus` metadata. When nothing
70
- # is tagged with `:focus`, all examples get run. RSpec also provides
71
- # aliases for `it`, `describe`, and `context` that include `:focus`
72
- # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
73
- config.filter_run_when_matching :focus
74
-
75
- config.example_status_persistence_file_path = 'spec/examples.txt'
76
- # Many RSpec users commonly either run the entire suite or an individual
77
- # file, and it's useful to allow more verbose output when running an
78
- # individual spec file.
79
- if config.files_to_run.one?
80
- # Use the documentation formatter for detailed output,
81
- # unless a formatter has already been configured
82
- # (e.g. via a command-line flag).
83
- config.default_formatter = 'doc'
84
- end
59
+ config.include(ControllerLevelHelpers, type: :helper)
60
+ config.before(:each, type: :helper) { initialize_controller_helpers(helper) }
85
61
 
86
- # Print the 10 slowest examples and example groups at the
87
- # end of the spec run, to help surface which specs are running
88
- # particularly slow.
89
- config.profile_examples = 10
90
-
91
- # Run specs in random order to surface order dependencies. If you find an
92
- # order dependency and want to debug it, you can fix the order by providing
93
- # the seed, which is printed after each run.
94
- # --seed 1234
95
- config.order = :random
96
-
97
- # Seed global randomization in this process using the `--seed` CLI option.
98
- # Setting this allows you to use `--seed` to deterministically reproduce
99
- # test failures related to randomization by passing the same `--seed` value
100
- # as the one that triggered the failure.
101
- Kernel.srand config.seed
62
+ config.include(ControllerLevelHelpers, type: :view)
63
+ config.before(:each, type: :view) { initialize_controller_helpers(view) }
102
64
  end
@@ -0,0 +1,17 @@
1
+ module ControllerLevelHelpers
2
+ module ControllerViewHelpers
3
+ include Blacklight::Facet
4
+
5
+ def blacklight_path
6
+ @blacklight_path ||= Blacklight::Path.new(params, blacklight_config)
7
+ end
8
+
9
+ def blacklight_configuration_context
10
+ @blacklight_configuration_context ||= Blacklight::Configuration::Context.new(controller)
11
+ end
12
+ end
13
+
14
+ def initialize_controller_helpers(helper)
15
+ helper.extend ControllerViewHelpers
16
+ end
17
+ end
@@ -17,13 +17,12 @@ class TestAppGenerator < Rails::Generators::Base
17
17
 
18
18
  def run_blacklight_generator
19
19
  say_status("warning", "GENERATING BL", :yellow)
20
- gem 'blacklight-marc', "~> 5.0"
21
20
 
22
21
  Bundler.with_clean_env do
23
22
  run "bundle install"
24
23
  end
25
24
 
26
- generate 'blacklight:install', '--devise --marc --jettywrapper'
25
+ generate 'blacklight:install', '--devise --jettywrapper'
27
26
  end
28
27
 
29
28
  def run_test_support_generator
@@ -12,7 +12,7 @@ describe "_user_util_links" do
12
12
  it "should render the correct bookmark count" do
13
13
  count = rand(99)
14
14
  allow(view).to receive(:blacklight_config).and_return(blacklight_config)
15
- allow(view).to receive(:render_bookmarks_control?).and_return true
15
+ allow(controller).to receive(:render_bookmarks_control?).and_return true
16
16
  allow(view).to receive(:has_user_authentication_provider?).and_return false
17
17
  allow(view).to receive_message_chain(:current_or_guest_user, :bookmarks, :count).and_return(count)
18
18
  render :partial => "user_util_links"
@@ -0,0 +1,40 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'catalog/_facet_index_navigation.html.erb', type: :view do
4
+ let(:pagination) { Blacklight::Solr::FacetPaginator.new([]) }
5
+ let(:facet) { Blacklight::Configuration::FacetField.new({ index_range: '0'..'9' })}
6
+
7
+ before do
8
+ assign(:pagination, pagination)
9
+ assign(:facet, facet)
10
+ end
11
+
12
+ it 'renders the facet index navigation range' do
13
+ render
14
+
15
+ expect(rendered).to have_selector '.pagination'
16
+ expect(rendered).to have_link '0', href: '/?facet.prefix=0&facet.sort=index'
17
+ expect(rendered).to have_link '1'
18
+ expect(rendered).to have_link '8'
19
+ expect(rendered).to have_link '9'
20
+ end
21
+
22
+ it 'renders a "clear filter" button' do
23
+ render
24
+ expect(rendered).to have_selector '.btn.disabled', text: 'Clear Filter'
25
+ end
26
+
27
+ context 'with a selected index' do
28
+ let(:pagination) { Blacklight::Solr::FacetPaginator.new([], prefix: '5') }
29
+
30
+ it 'highlights the selected index' do
31
+ render
32
+ expect(rendered).to have_selector '.active', text: '5'
33
+ end
34
+
35
+ it 'enables the clear facets button' do
36
+ render
37
+ expect(rendered).to have_link 'Clear Filter'
38
+ end
39
+ end
40
+ end
@@ -23,7 +23,7 @@ describe "catalog/facet_layout" do
23
23
 
24
24
  it "should have a title with a link for a11y" do
25
25
  render partial: 'catalog/facet_layout', locals: { facet_field: facet_field }
26
- expect(rendered).to have_selector 'h5 a', text: 'Some Field'
26
+ expect(rendered).to have_selector 'h3 a', text: 'Some Field'
27
27
  end
28
28
 
29
29
  it "should be collapsable" do
@@ -6,7 +6,7 @@ describe "catalog/_facets" do
6
6
  before do
7
7
  allow(view).to receive_messages(blacklight_config: blacklight_config)
8
8
  allow(view).to receive(:search_action_path) do |*args|
9
- catalog_index_url *args
9
+ search_catalog_url *args
10
10
  end
11
11
  end
12
12
 
@@ -26,7 +26,7 @@ describe "catalog/_facets" do
26
26
  before do
27
27
  blacklight_config.facet_fields['facet_field_1'] = facet_field
28
28
 
29
- @mock_display_facet_1 = double(:name => 'facet_field_1', sort: nil, offset: nil, :items => [Blacklight::Solr::Response::Facets::FacetItem.new(:value => 'Value', :hits => 1234)])
29
+ @mock_display_facet_1 = double(:name => 'facet_field_1', sort: nil, offset: nil, prefix: nil, :items => [Blacklight::Solr::Response::Facets::FacetItem.new(:value => 'Value', :hits => 1234)])
30
30
  allow(view).to receive_messages(:facet_field_names => [:facet_field_1],
31
31
  :facet_limit_for => 10 )
32
32
 
@@ -18,7 +18,7 @@ describe "catalog/_paginate_compact.html.erb" do
18
18
  include Blacklight::SearchHelper
19
19
 
20
20
  it "should render solr responses" do
21
- solr_response, document_list = search_results({ q: '' }, CatalogController.search_params_logic)
21
+ solr_response, document_list = search_results(q: '')
22
22
 
23
23
  render :partial => 'catalog/paginate_compact', :object => solr_response
24
24
  expect(rendered).to have_selector ".page_entries"
@@ -24,56 +24,56 @@ describe "catalog/_show_tools.html.erb" do
24
24
 
25
25
 
26
26
  it "should render a document action" do
27
- allow(view).to receive(:some_action_test_path).with(id: document).and_return "x"
27
+ allow(view).to receive(:some_action_solr_document_path).with(document).and_return "x"
28
28
  document_actions[:some_action] = Blacklight::Configuration::ToolConfig.new partial: 'document_action'
29
29
  render partial: 'catalog/show_tools'
30
30
  expect(rendered).to have_link "Some action", href: "x"
31
31
  end
32
32
 
33
33
  it "should use the provided label" do
34
- allow(view).to receive(:some_action_test_path).and_return "x"
34
+ allow(view).to receive(:some_action_solr_document_path).and_return "x"
35
35
  document_actions[:some_action] = Blacklight::Configuration::ToolConfig.new label: "Some label", partial: 'document_action'
36
36
  render partial: 'catalog/show_tools'
37
37
  expect(rendered).to have_selector '.some_action', text: "Some label"
38
38
  end
39
39
 
40
40
  it "should evaluate a document action's if configurations" do
41
- allow(view).to receive(:some_action_test_path).and_return "x"
41
+ allow(view).to receive(:some_action_solr_document_path).and_return "x"
42
42
  document_actions[:some_action] = Blacklight::Configuration::ToolConfig.new if: false, partial: 'document_action'
43
43
  render partial: 'catalog/show_tools'
44
44
  expect(rendered).not_to have_selector '.some_action', text: "Some action"
45
45
  end
46
46
 
47
47
  it "should evaluate a document action's if configuration with a proc" do
48
- allow(view).to receive(:some_action_test_path).and_return "x"
48
+ allow(view).to receive(:some_action_solr_document_path).and_return "x"
49
49
  document_actions[:some_action] = Blacklight::Configuration::ToolConfig.new partial: 'document_action', if: Proc.new { |config, doc| doc.id == "xyz" }
50
50
  render partial: 'catalog/show_tools'
51
51
  expect(rendered).not_to have_selector '.some_action', text: "Some action"
52
52
  end
53
53
 
54
54
  it "should evaluate a document action's unless configurations" do
55
- allow(view).to receive(:some_action_test_path).and_return "x"
55
+ allow(view).to receive(:some_action_solr_document_path).and_return "x"
56
56
  document_actions[:some_action] = Blacklight::Configuration::ToolConfig.new partial: 'document_action', unless: true
57
57
  render partial: 'catalog/show_tools'
58
58
  expect(rendered).not_to have_selector '.some_action', text: "Some action"
59
59
  end
60
60
 
61
61
  it "should allow the tool to have a custom id" do
62
- allow(view).to receive(:some_action_test_path).and_return "x"
62
+ allow(view).to receive(:some_action_solr_document_path).and_return "x"
63
63
  document_actions[:some_action] = Blacklight::Configuration::ToolConfig.new partial: 'document_action', id: "some_action"
64
64
  render partial: 'catalog/show_tools'
65
65
  expect(rendered).to have_selector '#some_action', text: "Some action"
66
66
  end
67
67
 
68
68
  it "should default to modal behavior" do
69
- allow(view).to receive(:some_action_test_path).and_return "x"
69
+ allow(view).to receive(:some_action_solr_document_path).and_return "x"
70
70
  document_actions[:some_action] = Blacklight::Configuration::ToolConfig.new partial: 'document_action'
71
71
  render partial: 'catalog/show_tools'
72
72
  expect(rendered).to have_selector '.some_action > a[data-ajax-modal="trigger"]', text: "Some action"
73
73
  end
74
74
 
75
75
  it "should allow configuration to opt out of modal behavior" do
76
- allow(view).to receive(:some_action_test_path).and_return "x"
76
+ allow(view).to receive(:some_action_solr_document_path).and_return "x"
77
77
  document_actions[:some_action] = Blacklight::Configuration::ToolConfig.new partial: 'document_action', modal: false
78
78
  render partial: 'catalog/show_tools'
79
79
  expect(rendered).not_to have_selector '.some_action > a[data-ajax-modal="trigger"]', text: "Some action"
@@ -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("Solr::Response", limit_value: 1))
17
+ assign(:response, double("SolrResponse", 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("Solr::Response", limit_value: 0))
30
+ assign(:response, double("SolrResponse", 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"
@@ -1,6 +1,6 @@
1
1
  ZIP_URL = "https://github.com/projectblacklight/blacklight-jetty/archive/v4.10.4.zip"
2
2
 
3
- require 'jettywrapper'
3
+ require 'solr_wrapper'
4
4
  require 'engine_cart/rake_task'
5
5
 
6
6
  require 'rspec/core/rake_task'
@@ -11,40 +11,39 @@ end
11
11
  EngineCart.fingerprint_proc = EngineCart.rails_fingerprint_proc
12
12
 
13
13
  desc "Run test suite"
14
- task :ci => ['blacklight:generate', 'blacklight:clean'] do
15
- jetty_params = Jettywrapper.load_config('test')
16
- error = Jettywrapper.wrap(jetty_params) do
17
- Rake::Task["blacklight:fixtures"].invoke
18
- Rake::Task['blacklight:coverage'].invoke
14
+ task :ci => ['blacklight:generate'] do
15
+ SolrWrapper.wrap(port: '8888') do |solr|
16
+ solr.with_collection(name: 'blacklight-core', dir: File.join(File.expand_path("..", File.dirname(__FILE__)), "solr", "conf")) do
17
+ within_test_app do
18
+ system "RAILS_ENV=test rake blacklight:index:seed"
19
+ end
20
+ Rake::Task['blacklight:coverage'].invoke
21
+ end
19
22
  end
20
- raise "test failures: #{error}" if error
21
23
  end
22
24
 
23
25
  namespace :blacklight do
24
- desc "Load fixtures"
25
- task :fixtures => [:generate] do
26
- within_test_app do
27
- system "rake solr:marc:index_test_data RAILS_ENV=test"
28
- abort "Error running fixtures" unless $?.success?
29
- end
30
- end
31
-
32
26
  desc "Run tests with coverage"
33
27
  task :coverage do
34
28
  ENV['COVERAGE'] = 'true'
35
29
  Rake::Task["spec"].invoke
36
30
  end
37
31
 
38
- desc "Clean out the test jetty"
39
- task :clean => ['jetty:clean'] do
40
- end
41
-
42
32
  desc "Create the test rails app"
43
33
  task :generate => ['engine_cart:generate'] do
44
34
  end
45
35
 
36
+ namespace :internal do
37
+ task :seed => ['engine_cart:generate'] do
38
+ within_test_app do
39
+ system "bundle exec rake blacklight:index:seed"
40
+ end
41
+ end
42
+ end
43
+
44
+ desc 'Run Solr and Blacklight for interactive development'
46
45
  task :server do
47
- if File.exists? 'spec/internal'
46
+ if File.exists? EngineCart.destination
48
47
  within_test_app do
49
48
  system "bundle update"
50
49
  end
@@ -52,17 +51,13 @@ namespace :blacklight do
52
51
  Rake::Task['engine_cart:generate'].invoke
53
52
  end
54
53
 
55
- unless File.exists? 'jetty'
56
- Rake::Task['jetty:clean'].invoke
57
- end
58
-
59
- jetty_params = Jettywrapper.load_config
60
- jetty_params[:startup_wait]= 60
54
+ SolrWrapper.wrap(port: '8983') do |solr|
55
+ solr.with_collection(name: 'blacklight-core', dir: File.join(File.expand_path("..", File.dirname(__FILE__)), "solr", "conf")) do
56
+ Rake::Task['blacklight:internal:seed'].invoke
61
57
 
62
- Jettywrapper.wrap(jetty_params) do
63
- within_test_app do
64
- system "rake solr:marc:index_test_data"
65
- system "bundle exec rails s"
58
+ within_test_app do
59
+ system "bundle exec rails s"
60
+ end
66
61
  end
67
62
  end
68
63
  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: 5.19.2
4
+ version: 6.0.0.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
- date: 2016-10-14 00:00:00.000000000 Z
20
+ date: 2015-11-05 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rails
@@ -25,7 +25,7 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: 3.2.6
28
+ version: '4.1'
29
29
  - - "<"
30
30
  - !ruby/object:Gem::Version
31
31
  version: '5'
@@ -35,10 +35,24 @@ dependencies:
35
35
  requirements:
36
36
  - - ">="
37
37
  - !ruby/object:Gem::Version
38
- version: 3.2.6
38
+ version: '4.1'
39
39
  - - "<"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '5'
42
+ - !ruby/object:Gem::Dependency
43
+ name: globalid
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
42
56
  - !ruby/object:Gem::Dependency
43
57
  name: nokogiri
44
58
  requirement: !ruby/object:Gem::Requirement
@@ -72,9 +86,6 @@ dependencies:
72
86
  requirement: !ruby/object:Gem::Requirement
73
87
  requirements:
74
88
  - - "~>"
75
- - !ruby/object:Gem::Version
76
- version: '1.0'
77
- - - ">="
78
89
  - !ruby/object:Gem::Version
79
90
  version: 1.0.11
80
91
  type: :runtime
@@ -82,9 +93,6 @@ dependencies:
82
93
  version_requirements: !ruby/object:Gem::Requirement
83
94
  requirements:
84
95
  - - "~>"
85
- - !ruby/object:Gem::Version
86
- version: '1.0'
87
- - - ">="
88
96
  - !ruby/object:Gem::Version
89
97
  version: 1.0.11
90
98
  - !ruby/object:Gem::Dependency
@@ -116,33 +124,19 @@ dependencies:
116
124
  - !ruby/object:Gem::Version
117
125
  version: '0'
118
126
  - !ruby/object:Gem::Dependency
119
- name: jettywrapper
127
+ name: solr_wrapper
120
128
  requirement: !ruby/object:Gem::Requirement
121
129
  requirements:
122
130
  - - ">="
123
131
  - !ruby/object:Gem::Version
124
- version: 1.7.0
132
+ version: '0'
125
133
  type: :development
126
134
  prerelease: false
127
135
  version_requirements: !ruby/object:Gem::Requirement
128
136
  requirements:
129
137
  - - ">="
130
138
  - !ruby/object:Gem::Version
131
- version: 1.7.0
132
- - !ruby/object:Gem::Dependency
133
- name: blacklight-marc
134
- requirement: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '5.0'
139
- type: :development
140
- prerelease: false
141
- version_requirements: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '5.0'
139
+ version: '0'
146
140
  - !ruby/object:Gem::Dependency
147
141
  name: rspec-rails
148
142
  requirement: !ruby/object:Gem::Requirement
@@ -219,14 +213,14 @@ dependencies:
219
213
  requirements:
220
214
  - - "~>"
221
215
  - !ruby/object:Gem::Version
222
- version: '1.0'
216
+ version: 0.8.0
223
217
  type: :development
224
218
  prerelease: false
225
219
  version_requirements: !ruby/object:Gem::Requirement
226
220
  requirements:
227
221
  - - "~>"
228
222
  - !ruby/object:Gem::Version
229
- version: '1.0'
223
+ version: 0.8.0
230
224
  - !ruby/object:Gem::Dependency
231
225
  name: equivalent-xml
232
226
  requirement: !ruby/object:Gem::Requirement
@@ -252,6 +246,7 @@ extra_rdoc_files: []
252
246
  files:
253
247
  - ".gitignore"
254
248
  - ".hound.yml"
249
+ - ".jshintrc"
255
250
  - ".rspec"
256
251
  - ".rubocop.yml"
257
252
  - ".rubocop_hound.yml"
@@ -272,16 +267,21 @@ files:
272
267
  - app/assets/javascripts/blacklight/checkbox_submit.js
273
268
  - app/assets/javascripts/blacklight/collapsable.js
274
269
  - app/assets/javascripts/blacklight/core.js
270
+ - app/assets/javascripts/blacklight/facet_load.js
275
271
  - app/assets/javascripts/blacklight/search_context.js
272
+ - app/assets/stylesheets/blacklight/_balanced_list.scss
276
273
  - app/assets/stylesheets/blacklight/_blacklight_base.scss
277
274
  - app/assets/stylesheets/blacklight/_bookmark.scss
278
- - app/assets/stylesheets/blacklight/_catalog.scss
275
+ - app/assets/stylesheets/blacklight/_constraints.scss
276
+ - app/assets/stylesheets/blacklight/_controls.scss
279
277
  - app/assets/stylesheets/blacklight/_facets.scss
280
278
  - app/assets/stylesheets/blacklight/_group.scss
281
279
  - app/assets/stylesheets/blacklight/_header.scss
282
280
  - app/assets/stylesheets/blacklight/_layout.scss
283
281
  - app/assets/stylesheets/blacklight/_modal.scss
282
+ - app/assets/stylesheets/blacklight/_pagination.scss
284
283
  - app/assets/stylesheets/blacklight/_search_history.scss
284
+ - app/assets/stylesheets/blacklight/_search_results.scss
285
285
  - app/assets/stylesheets/blacklight/blacklight.scss
286
286
  - app/assets/stylesheets/blacklight/blacklight_defaults.scss
287
287
  - app/controllers/bookmarks_controller.rb
@@ -296,7 +296,6 @@ files:
296
296
  - app/controllers/concerns/blacklight/search_context.rb
297
297
  - app/controllers/concerns/blacklight/search_fields.rb
298
298
  - app/controllers/concerns/blacklight/search_helper.rb
299
- - app/controllers/concerns/blacklight/search_history.rb
300
299
  - app/controllers/saved_searches_controller.rb
301
300
  - app/controllers/search_history_controller.rb
302
301
  - app/helpers/blacklight/blacklight_helper_behavior.rb
@@ -320,8 +319,31 @@ files:
320
319
  - app/helpers/layout_helper.rb
321
320
  - app/helpers/render_constraints_helper.rb
322
321
  - app/helpers/search_history_constraints_helper.rb
322
+ - app/models/blacklight/abstract_repository.rb
323
+ - app/models/blacklight/configuration.rb
324
+ - app/models/blacklight/configuration/context.rb
325
+ - app/models/blacklight/configuration/facet_field.rb
326
+ - app/models/blacklight/configuration/field.rb
327
+ - app/models/blacklight/configuration/fields.rb
328
+ - app/models/blacklight/configuration/search_field.rb
329
+ - app/models/blacklight/configuration/solr_field.rb
330
+ - app/models/blacklight/configuration/sort_field.rb
331
+ - app/models/blacklight/configuration/tool_config.rb
332
+ - app/models/blacklight/configuration/view_config.rb
323
333
  - app/models/blacklight/facet_paginator.rb
334
+ - app/models/blacklight/search_builder.rb
324
335
  - app/models/blacklight/solr/facet_paginator.rb
336
+ - app/models/blacklight/solr/repository.rb
337
+ - app/models/blacklight/solr/request.rb
338
+ - app/models/blacklight/solr/response.rb
339
+ - app/models/blacklight/solr/response/facets.rb
340
+ - app/models/blacklight/solr/response/group.rb
341
+ - app/models/blacklight/solr/response/group_response.rb
342
+ - app/models/blacklight/solr/response/more_like_this.rb
343
+ - app/models/blacklight/solr/response/pagination_methods.rb
344
+ - app/models/blacklight/solr/response/response.rb
345
+ - app/models/blacklight/solr/response/spelling.rb
346
+ - app/models/blacklight/solr/search_builder.rb
325
347
  - app/models/bookmark.rb
326
348
  - app/models/concerns/blacklight/configurable.rb
327
349
  - app/models/concerns/blacklight/document.rb
@@ -342,6 +364,7 @@ files:
342
364
  - app/models/concerns/blacklight/solr/document/more_like_this.rb
343
365
  - app/models/concerns/blacklight/solr/document/schema_org.rb
344
366
  - app/models/concerns/blacklight/solr/document/sms.rb
367
+ - app/models/concerns/blacklight/solr/search_builder_behavior.rb
345
368
  - app/models/concerns/blacklight/token_based_user.rb
346
369
  - app/models/concerns/blacklight/user.rb
347
370
  - app/models/record_mailer.rb
@@ -367,6 +390,7 @@ files:
367
390
  - app/views/catalog/_document_default.rss.builder
368
391
  - app/views/catalog/_document_list.html.erb
369
392
  - app/views/catalog/_email_form.html.erb
393
+ - app/views/catalog/_facet_index_navigation.html.erb
370
394
  - app/views/catalog/_facet_layout.html.erb
371
395
  - app/views/catalog/_facet_limit.html.erb
372
396
  - app/views/catalog/_facet_pagination.html.erb
@@ -381,7 +405,6 @@ files:
381
405
  - app/views/catalog/_paginate_compact.html.erb
382
406
  - app/views/catalog/_per_page_widget.html.erb
383
407
  - app/views/catalog/_previous_next_doc.html.erb
384
- - app/views/catalog/_refworks_form.html.erb
385
408
  - app/views/catalog/_results_pagination.html.erb
386
409
  - app/views/catalog/_search_form.html.erb
387
410
  - app/views/catalog/_search_header.html.erb
@@ -444,39 +467,19 @@ files:
444
467
  - config/locales/blacklight.fr.yml
445
468
  - config/locales/blacklight.it.yml
446
469
  - config/locales/blacklight.pt-BR.yml
470
+ - config/routes.rb
447
471
  - db/migrate/20140202020201_create_searches.rb
448
472
  - db/migrate/20140202020202_create_bookmarks.rb
449
473
  - db/migrate/20140320000000_add_polymorphic_type_to_bookmarks.rb
450
474
  - lib/blacklight.rb
451
- - lib/blacklight/abstract_repository.rb
452
- - lib/blacklight/configuration.rb
453
- - lib/blacklight/configuration/facet_field.rb
454
- - lib/blacklight/configuration/field.rb
455
- - lib/blacklight/configuration/fields.rb
456
- - lib/blacklight/configuration/search_field.rb
457
- - lib/blacklight/configuration/solr_field.rb
458
- - lib/blacklight/configuration/sort_field.rb
459
- - lib/blacklight/configuration/tool_config.rb
460
- - lib/blacklight/configuration/view_config.rb
461
475
  - lib/blacklight/engine.rb
462
476
  - lib/blacklight/exceptions.rb
463
- - lib/blacklight/rails/routes.rb
477
+ - lib/blacklight/parameters.rb
478
+ - lib/blacklight/path.rb
464
479
  - lib/blacklight/routes.rb
465
- - lib/blacklight/search_builder.rb
480
+ - lib/blacklight/routes/exportable.rb
481
+ - lib/blacklight/routes/searchable.rb
466
482
  - lib/blacklight/solr.rb
467
- - lib/blacklight/solr/repository.rb
468
- - lib/blacklight/solr/request.rb
469
- - lib/blacklight/solr/response.rb
470
- - lib/blacklight/solr/response/facets.rb
471
- - lib/blacklight/solr/response/group.rb
472
- - lib/blacklight/solr/response/group_response.rb
473
- - lib/blacklight/solr/response/more_like_this.rb
474
- - lib/blacklight/solr/response/pagination_methods.rb
475
- - lib/blacklight/solr/response/response.rb
476
- - lib/blacklight/solr/response/spelling.rb
477
- - lib/blacklight/solr/search_builder.rb
478
- - lib/blacklight/solr/search_builder_behavior.rb
479
- - lib/blacklight/solr_helper.rb
480
483
  - lib/blacklight/utils.rb
481
484
  - lib/blacklight/version.rb
482
485
  - lib/generators/blacklight/assets_generator.rb
@@ -490,16 +493,32 @@ files:
490
493
  - lib/generators/blacklight/templates/blacklight.en.yml
491
494
  - lib/generators/blacklight/templates/catalog_controller.rb
492
495
  - lib/generators/blacklight/templates/config/blacklight.yml
493
- - lib/generators/blacklight/templates/config/initializers/blacklight_initializer.rb
494
496
  - lib/generators/blacklight/templates/config/jetty.yml
495
497
  - lib/generators/blacklight/templates/search_builder.rb
496
498
  - lib/generators/blacklight/templates/solr_document.rb
497
499
  - lib/generators/blacklight/test_support_generator.rb
498
500
  - lib/generators/blacklight/user_generator.rb
499
501
  - lib/railties/blacklight.rake
502
+ - solr/conf/_rest_managed.json
503
+ - solr/conf/admin-extra.html
504
+ - solr/conf/elevate.xml
505
+ - solr/conf/mapping-ISOLatin1Accent.txt
506
+ - solr/conf/protwords.txt
507
+ - solr/conf/schema.xml
508
+ - solr/conf/scripts.conf
509
+ - solr/conf/solrconfig.xml
510
+ - solr/conf/spellings.txt
511
+ - solr/conf/stopwords.txt
512
+ - solr/conf/stopwords_en.txt
513
+ - solr/conf/synonyms.txt
514
+ - solr/conf/xslt/example.xsl
515
+ - solr/conf/xslt/example_atom.xsl
516
+ - solr/conf/xslt/example_rss.xsl
517
+ - solr/conf/xslt/luke.xsl
500
518
  - solr/sample_solr_documents.yml
501
519
  - spec/controllers/alternate_controller_spec.rb
502
520
  - spec/controllers/application_controller_spec.rb
521
+ - spec/controllers/blacklight/base_spec.rb
503
522
  - spec/controllers/blacklight/catalog/component_configuration_spec.rb
504
523
  - spec/controllers/blacklight/facet_spec.rb
505
524
  - spec/controllers/blacklight/search_fields_spec.rb
@@ -525,7 +544,6 @@ files:
525
544
  - spec/features/sitelinks_search_box.rb
526
545
  - spec/helpers/blacklight_helper_spec.rb
527
546
  - spec/helpers/catalog_helper_spec.rb
528
- - spec/helpers/component_helper_spec.rb
529
547
  - spec/helpers/configuration_helper_spec.rb
530
548
  - spec/helpers/facets_helper_spec.rb
531
549
  - spec/helpers/hash_as_hidden_fields_spec.rb
@@ -533,13 +551,15 @@ files:
533
551
  - spec/helpers/render_constraints_helper_spec.rb
534
552
  - spec/helpers/search_history_constraints_helper_spec.rb
535
553
  - spec/helpers/url_helper_spec.rb
536
- - spec/lib/blacklight/routes_spec.rb
537
- - spec/lib/blacklight/solr_helper_spec.rb
554
+ - spec/lib/blacklight/parameters_spec.rb
555
+ - spec/lib/blacklight/path_spec.rb
538
556
  - spec/lib/blacklight/utils_spec.rb
539
557
  - spec/lib/blacklight_spec.rb
540
558
  - spec/lib/tasks/blacklight_task_spec.rb
541
559
  - spec/models/blacklight/configurable_spec.rb
560
+ - spec/models/blacklight/configuration/context_spec.rb
542
561
  - spec/models/blacklight/configuration_spec.rb
562
+ - spec/models/blacklight/document/active_model_shim_spec.rb
543
563
  - spec/models/blacklight/document/cache_key_spec.rb
544
564
  - spec/models/blacklight/document/dublin_core_spec.rb
545
565
  - spec/models/blacklight/document/email_spec.rb
@@ -564,9 +584,9 @@ files:
564
584
  - spec/models/solr_document_spec.rb
565
585
  - spec/presenters/document_presenter_spec.rb
566
586
  - spec/routing/catalog_routing_spec.rb
567
- - spec/routing/routes_spec.rb
568
587
  - spec/spec.opts
569
588
  - spec/spec_helper.rb
589
+ - spec/support/controller_level_helpers.rb
570
590
  - spec/support/features.rb
571
591
  - spec/support/features/session_helpers.rb
572
592
  - spec/test_app_templates/lib/generators/test_app_generator.rb
@@ -574,8 +594,8 @@ files:
574
594
  - spec/views/catalog/_constraints.html.erb_spec.rb
575
595
  - spec/views/catalog/_constraints_element.html.erb_spec.rb
576
596
  - spec/views/catalog/_document.html.erb_spec.rb
577
- - spec/views/catalog/_document_action.html.erb_spec.rb
578
597
  - spec/views/catalog/_document_list.html.erb_spec.rb
598
+ - spec/views/catalog/_facet_index_navigation.html.erb_spec.rb
579
599
  - spec/views/catalog/_facet_layout.html.erb_spec.rb
580
600
  - spec/views/catalog/_facets.html.erb_spec.rb
581
601
  - spec/views/catalog/_index_default.erb_spec.rb
@@ -610,12 +630,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
610
630
  version: '0'
611
631
  required_rubygems_version: !ruby/object:Gem::Requirement
612
632
  requirements:
613
- - - ">="
633
+ - - ">"
614
634
  - !ruby/object:Gem::Version
615
- version: '0'
635
+ version: 1.3.1
616
636
  requirements: []
617
637
  rubyforge_project:
618
- rubygems_version: 2.5.1
638
+ rubygems_version: 2.4.5.1
619
639
  signing_key:
620
640
  specification_version: 4
621
641
  summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)
@@ -623,6 +643,7 @@ summary: Blacklight provides a discovery interface for any Solr (http://lucene.a
623
643
  test_files:
624
644
  - spec/controllers/alternate_controller_spec.rb
625
645
  - spec/controllers/application_controller_spec.rb
646
+ - spec/controllers/blacklight/base_spec.rb
626
647
  - spec/controllers/blacklight/catalog/component_configuration_spec.rb
627
648
  - spec/controllers/blacklight/facet_spec.rb
628
649
  - spec/controllers/blacklight/search_fields_spec.rb
@@ -648,7 +669,6 @@ test_files:
648
669
  - spec/features/sitelinks_search_box.rb
649
670
  - spec/helpers/blacklight_helper_spec.rb
650
671
  - spec/helpers/catalog_helper_spec.rb
651
- - spec/helpers/component_helper_spec.rb
652
672
  - spec/helpers/configuration_helper_spec.rb
653
673
  - spec/helpers/facets_helper_spec.rb
654
674
  - spec/helpers/hash_as_hidden_fields_spec.rb
@@ -656,13 +676,15 @@ test_files:
656
676
  - spec/helpers/render_constraints_helper_spec.rb
657
677
  - spec/helpers/search_history_constraints_helper_spec.rb
658
678
  - spec/helpers/url_helper_spec.rb
659
- - spec/lib/blacklight/routes_spec.rb
660
- - spec/lib/blacklight/solr_helper_spec.rb
679
+ - spec/lib/blacklight/parameters_spec.rb
680
+ - spec/lib/blacklight/path_spec.rb
661
681
  - spec/lib/blacklight/utils_spec.rb
662
682
  - spec/lib/blacklight_spec.rb
663
683
  - spec/lib/tasks/blacklight_task_spec.rb
664
684
  - spec/models/blacklight/configurable_spec.rb
685
+ - spec/models/blacklight/configuration/context_spec.rb
665
686
  - spec/models/blacklight/configuration_spec.rb
687
+ - spec/models/blacklight/document/active_model_shim_spec.rb
666
688
  - spec/models/blacklight/document/cache_key_spec.rb
667
689
  - spec/models/blacklight/document/dublin_core_spec.rb
668
690
  - spec/models/blacklight/document/email_spec.rb
@@ -687,9 +709,9 @@ test_files:
687
709
  - spec/models/solr_document_spec.rb
688
710
  - spec/presenters/document_presenter_spec.rb
689
711
  - spec/routing/catalog_routing_spec.rb
690
- - spec/routing/routes_spec.rb
691
712
  - spec/spec.opts
692
713
  - spec/spec_helper.rb
714
+ - spec/support/controller_level_helpers.rb
693
715
  - spec/support/features.rb
694
716
  - spec/support/features/session_helpers.rb
695
717
  - spec/test_app_templates/lib/generators/test_app_generator.rb
@@ -697,8 +719,8 @@ test_files:
697
719
  - spec/views/catalog/_constraints.html.erb_spec.rb
698
720
  - spec/views/catalog/_constraints_element.html.erb_spec.rb
699
721
  - spec/views/catalog/_document.html.erb_spec.rb
700
- - spec/views/catalog/_document_action.html.erb_spec.rb
701
722
  - spec/views/catalog/_document_list.html.erb_spec.rb
723
+ - spec/views/catalog/_facet_index_navigation.html.erb_spec.rb
702
724
  - spec/views/catalog/_facet_layout.html.erb_spec.rb
703
725
  - spec/views/catalog/_facets.html.erb_spec.rb
704
726
  - spec/views/catalog/_index_default.erb_spec.rb