blacklight 3.8.1 → 3.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/.travis.yml +14 -0
  2. data/VERSION +1 -1
  3. data/app/controllers/bookmarks_controller.rb +2 -0
  4. data/app/models/solr_document.rb +5 -0
  5. data/app/views/_user_util_links.html.erb +2 -0
  6. data/app/views/catalog/_bookmark_control.html.erb +1 -1
  7. data/doc/Atom-Responses.md +90 -0
  8. data/doc/Blacklight-3.2-Release-Notes-and-Upgrade-Guide.md +191 -0
  9. data/doc/Blacklight-3.3-release-notes-and-upgrade-guide.md +37 -0
  10. data/doc/Blacklight-3.4-release-notes-and-upgrade-guide.md +27 -0
  11. data/doc/Blacklight-3.5-release-notes-and-upgrade-guide.md +44 -0
  12. data/doc/Blacklight-3.6-release-notes-and-upgrade-guide.md +25 -0
  13. data/doc/Blacklight-3.7-release-notes-and-upgrade-guide.md +78 -0
  14. data/doc/Blacklight-3.8-release-notes-and-upgrade-guide.md +11 -0
  15. data/doc/Blacklight-Add-ons.md +28 -0
  16. data/doc/Blacklight-configuration.md +301 -0
  17. data/doc/Blacklight-on-Heroku.md +135 -0
  18. data/doc/Community-principles.md +44 -0
  19. data/doc/Configuring-and-Customizing-Blacklight.md +271 -0
  20. data/doc/Contributing-to-Blacklight.md +25 -0
  21. data/doc/Examples.md +62 -0
  22. data/doc/Extending-or-Modifying-Blacklight-Search-Behavior.md +141 -0
  23. data/doc/Home.md +77 -0
  24. data/doc/How-to-release-a-version.md +37 -0
  25. data/doc/Indexing-your-data-into-solr.md +5 -0
  26. data/doc/Integration-with-Rails-Footnotes.md +20 -0
  27. data/doc/Pagination.md +38 -0
  28. data/doc/Providing-your-own-view-templates.md +109 -0
  29. data/doc/Quickstart.md +116 -0
  30. data/doc/README.md +77 -0
  31. data/doc/README_SOLR.md +245 -0
  32. data/doc/Release-Notes-And-Upgrade-Guides.md +14 -0
  33. data/doc/Sunspot-for-indexing.md +46 -0
  34. data/doc/User-Authentication.md +60 -0
  35. data/doc/testing.md +115 -0
  36. data/lib/blacklight/controller.rb +4 -1
  37. data/lib/generators/blacklight/blacklight_generator.rb +2 -1
  38. data/lib/solrmarc.log.1 +849 -0
  39. data/test_support/bin/test.sh +3 -1
  40. data/test_support/features/record_view.feature +0 -1
  41. data/test_support/features/search.feature +0 -1
  42. data/test_support/features/step_definitions/error_steps.rb +1 -1
  43. data/test_support/features/step_definitions/general_steps.rb +1 -1
  44. data/test_support/features/step_definitions/search_facets_steps.rb +7 -7
  45. data/test_support/features/step_definitions/search_steps.rb +2 -2
  46. data/test_support/spec/{requests → features}/alternate_controller_spec.rb +0 -0
  47. data/test_support/spec/helpers/blacklight_helper_spec.rb +5 -5
  48. metadata +37 -5
@@ -111,6 +111,8 @@ end
111
111
  gem 'jettywrapper', '>= 1.2.0'
112
112
  " >> Gemfile
113
113
 
114
+ export BUNDLE_GEMFILE=`pwd`/Gemfile
115
+
114
116
  bundle install
115
117
  check_errs $? "Bundle install failed."
116
118
 
@@ -131,7 +133,7 @@ cp ../../test_support/alternate_controller.rb app/controllers/
131
133
  # end
132
134
  ruby -pi.bak -e 'gsub(/devise_for :users/, "devise_for :users\n resources :alternate do\n member do\n get :facet\n end\n end")' config/routes.rb
133
135
 
134
- jetty_zip=$( echo $JETTY_URL | awk '{split($0,a,"/"); print "/tmp/blacklight_jetty_"a[length(a)]}')
136
+ jetty_zip=$( JETTY_URL=$JETTY_URL ruby -e 'puts "/tmp/blacklight_jetty_#{ENV["JETTY_URL"].split("/").last}"')
135
137
  if [ ! -f $jetty_zip ]
136
138
  then
137
139
  curl -L $JETTY_URL -o $jetty_zip
@@ -22,7 +22,6 @@ Feature: Record View
22
22
  And I should see "Call number:"
23
23
  And I should see "E99.D2 H437 2008"
24
24
  And I should see link rel=alternate tags
25
- And the page title should be ""Strong Medicine speaks" - Blacklight"
26
25
 
27
26
  Scenario: Blank titles do not show up
28
27
  Given I am on the document page for id 2008305903
@@ -11,7 +11,6 @@ Feature: Search
11
11
  And I should see a "search" button
12
12
  And I should not see the "startOverLink" element
13
13
  And I should see "Welcome!"
14
- And the page title should be "Blacklight Search Results"
15
14
  And I should see a stylesheet
16
15
 
17
16
  Scenario: Search Page's type of search ("fielded search") choices
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  # checkout http://blog.codefront.net/2007/03/31/testing-rescue_action_in_public-with-rspec/
3
3
  Then /^I should see a flash error "([^\"]*)"$/ do |message|
4
- pageshould have_selector("div.notice", :content => message)
4
+ pageshould have_selector("div.notice", :text => message)
5
5
  end
@@ -10,7 +10,7 @@ Then /^I should see a stylesheet/ do
10
10
  end
11
11
 
12
12
  Then /^the page title should be "([^"]*)"$/i do |title|
13
- page.should have_selector("title", :content => title)
13
+ page.should have_selector("title", :text => title)
14
14
  end
15
15
 
16
16
  Then /I should see "(.*)" (at least|at most|exactly) (.*) times?$/i do |target, comparator, expected_num|
@@ -2,28 +2,28 @@
2
2
  # deprecated
3
3
  Then /^I should see the applied filter "([^\"]*)" with the value "([^\"]*)"$/ do |filter, text|
4
4
  page.should have_selector(".facet_limit") do |node|
5
- node.should have_selector("h3", :content => filter)
6
- node.should have_selector("span.selected", :content => text)
5
+ node.should have_selector("h3", :text => filter)
6
+ node.should have_selector("span.selected", :text => text)
7
7
  end
8
8
  end
9
9
 
10
10
  Then /^I should see the applied facet "([^\"]*)" with the value "([^\"]*)"$/ do |filter, text|
11
11
  page.should have_selector(".facet_limit") do |node|
12
- node.should have_selector("h3", :content => filter)
13
- node.should have_selector("span.selected", :content => text)
12
+ node.should have_selector("h3", :text => filter)
13
+ node.should have_selector("span.selected", :text => text)
14
14
  end
15
15
  end
16
16
 
17
17
  Then /^I should see the facet "([^\"]*)" with the value "([^\"]*)"$/ do |filter, text|
18
18
  page.should have_selector(".facet_limit") do |node|
19
- node.should have_selector("h3", :content => filter)
20
- node.should have_selector("a.label", :content => text)
19
+ node.should have_selector("h3", :text => filter)
20
+ node.should have_selector("a.label", :text => text)
21
21
  end
22
22
  end
23
23
 
24
24
  Then /^the facet "([^\"]+)" should display$/ do |filter|
25
25
  page.should have_selector(".facet_limit") do |node|
26
- node.should have_selector("h3", :content => filter)
26
+ node.should have_selector("h3", :text => filter)
27
27
  end
28
28
  end
29
29
 
@@ -71,8 +71,8 @@ Then /^I should not get results$/ do
71
71
  end
72
72
 
73
73
  Then /^I should see the applied filter "([^\"]*)" with the value "([^\"]*)"$/ do |filter, text|
74
- page.should have_selector("div#facets div h3", :content => filter)
75
- page.should have_selector("div#facets div span.selected", :content => text)
74
+ page.should have_selector("div#facets div h3", :text => filter)
75
+ page.should have_selector("div#facets div span.selected", :text => text)
76
76
  end
77
77
 
78
78
  Then /^I should see an rss discovery link/ do
@@ -206,7 +206,7 @@ describe BlacklightHelper do
206
206
  it "should consist of #document_heading wrapped in a <h1>" do
207
207
  @document = SolrDocument.new('title_display' => "A Fake Document")
208
208
 
209
- render_document_heading.should have_selector("h1", :content => document_heading, :count => 1)
209
+ render_document_heading.should have_selector("h1", :text => document_heading, :count => 1)
210
210
  render_document_heading.html_safe?.should == true
211
211
  end
212
212
  end
@@ -240,23 +240,23 @@ describe BlacklightHelper do
240
240
  it "should consist of the document title wrapped in a <a>" do
241
241
  data = {'id'=>'123456','title_display'=>['654321'] }
242
242
  @document = SolrDocument.new(data)
243
- link_to_document(@document, { :label => :title_display }).should have_selector("a", :content => '654321', :count => 1)
243
+ link_to_document(@document, { :label => :title_display }).should have_selector("a", :text => '654321', :count => 1)
244
244
  end
245
245
  it "should accept and return a string label" do
246
246
  data = {'id'=>'123456','title_display'=>['654321'] }
247
247
  @document = SolrDocument.new(data)
248
- link_to_document(@document, { :label => "title_display" }).should have_selector("a", :content => 'title_display', :count => 1)
248
+ link_to_document(@document, { :label => "title_display" }).should have_selector("a", :text => 'title_display', :count => 1)
249
249
  end
250
250
 
251
251
  it "should accept and return a Proc" do
252
252
  data = {'id'=>'123456','title_display'=>['654321'] }
253
253
  @document = SolrDocument.new(data)
254
- link_to_document(@document, { :label => Proc.new { |doc, opts| doc.get(:id) + ": " + doc.get(:title_display) } }).should have_selector("a", :content => '123456: 654321', :count => 1)
254
+ link_to_document(@document, { :label => Proc.new { |doc, opts| doc.get(:id) + ": " + doc.get(:title_display) } }).should have_selector("a", :text => '123456: 654321', :count => 1)
255
255
  end
256
256
  it "should return id when label is missing" do
257
257
  data = {'id'=>'123456'}
258
258
  @document = SolrDocument.new(data)
259
- link_to_document(@document, { :label => :title_display }).should have_selector("a", :content => '123456', :count => 1)
259
+ link_to_document(@document, { :label => :title_display }).should have_selector("a", :text => '123456', :count => 1)
260
260
  end
261
261
 
262
262
  it "should be html safe" do
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: 3.8.1
4
+ version: 3.8.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
- date: 2012-11-04 00:00:00.000000000 Z
20
+ date: 2012-11-30 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rails
@@ -212,6 +212,7 @@ extra_rdoc_files: []
212
212
  files:
213
213
  - .gitignore
214
214
  - .gitmodules
215
+ - .travis.yml
215
216
  - .yardopts
216
217
  - Gemfile
217
218
  - LICENSE
@@ -292,6 +293,7 @@ files:
292
293
  - app/models/bookmark.rb
293
294
  - app/models/record_mailer.rb
294
295
  - app/models/search.rb
296
+ - app/models/solr_document.rb
295
297
  - app/views/_flash_msg.html.erb
296
298
  - app/views/_user_util_links.html.erb
297
299
  - app/views/bookmarks/_tools.html.erb
@@ -358,6 +360,35 @@ files:
358
360
  - blacklight.gemspec
359
361
  - config/locales/blacklight.en.yml
360
362
  - config/routes.rb
363
+ - doc/Atom-Responses.md
364
+ - doc/Blacklight-3.2-Release-Notes-and-Upgrade-Guide.md
365
+ - doc/Blacklight-3.3-release-notes-and-upgrade-guide.md
366
+ - doc/Blacklight-3.4-release-notes-and-upgrade-guide.md
367
+ - doc/Blacklight-3.5-release-notes-and-upgrade-guide.md
368
+ - doc/Blacklight-3.6-release-notes-and-upgrade-guide.md
369
+ - doc/Blacklight-3.7-release-notes-and-upgrade-guide.md
370
+ - doc/Blacklight-3.8-release-notes-and-upgrade-guide.md
371
+ - doc/Blacklight-Add-ons.md
372
+ - doc/Blacklight-configuration.md
373
+ - doc/Blacklight-on-Heroku.md
374
+ - doc/Community-principles.md
375
+ - doc/Configuring-and-Customizing-Blacklight.md
376
+ - doc/Contributing-to-Blacklight.md
377
+ - doc/Examples.md
378
+ - doc/Extending-or-Modifying-Blacklight-Search-Behavior.md
379
+ - doc/Home.md
380
+ - doc/How-to-release-a-version.md
381
+ - doc/Indexing-your-data-into-solr.md
382
+ - doc/Integration-with-Rails-Footnotes.md
383
+ - doc/Pagination.md
384
+ - doc/Providing-your-own-view-templates.md
385
+ - doc/Quickstart.md
386
+ - doc/README.md
387
+ - doc/README_SOLR.md
388
+ - doc/Release-Notes-And-Upgrade-Guides.md
389
+ - doc/Sunspot-for-indexing.md
390
+ - doc/User-Authentication.md
391
+ - doc/testing.md
361
392
  - lib/SolrMarc.jar
362
393
  - lib/blacklight.rb
363
394
  - lib/blacklight/catalog.rb
@@ -420,6 +451,7 @@ files:
420
451
  - lib/railties/blacklight_cucumber.rake
421
452
  - lib/railties/blacklight_rspec.rake
422
453
  - lib/railties/solr_marc.rake
454
+ - lib/solrmarc.log.1
423
455
  - test_support/.rspec
424
456
  - test_support/alternate_controller.rb
425
457
  - test_support/bin/run-tests.sh
@@ -455,6 +487,7 @@ files:
455
487
  - test_support/spec/controllers/search_history_controller_spec.rb
456
488
  - test_support/spec/data/sample_docs.yml
457
489
  - test_support/spec/data/test_data.utf8.mrc
490
+ - test_support/spec/features/alternate_controller_spec.rb
458
491
  - test_support/spec/helpers/blacklight_helper_spec.rb
459
492
  - test_support/spec/helpers/catalog_helper_spec.rb
460
493
  - test_support/spec/helpers/facets_helper_spec.rb
@@ -483,7 +516,6 @@ files:
483
516
  - test_support/spec/models/search_spec.rb
484
517
  - test_support/spec/models/solr_docment_spec.rb
485
518
  - test_support/spec/rcov.opts
486
- - test_support/spec/requests/alternate_controller_spec.rb
487
519
  - test_support/spec/spec.opts
488
520
  - test_support/spec/spec_helper.rb
489
521
  - test_support/spec/support/assert_difference.rb
@@ -508,7 +540,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
508
540
  version: '0'
509
541
  segments:
510
542
  - 0
511
- hash: -1025939682679006516
543
+ hash: -2337643494068461915
512
544
  required_rubygems_version: !ruby/object:Gem::Requirement
513
545
  none: false
514
546
  requirements:
@@ -517,7 +549,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
517
549
  version: '0'
518
550
  segments:
519
551
  - 0
520
- hash: -1025939682679006516
552
+ hash: -2337643494068461915
521
553
  requirements: []
522
554
  rubyforge_project: blacklight
523
555
  rubygems_version: 1.8.23