hydra-head 4.0.0.rc6 → 4.0.0

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.
Files changed (84) hide show
  1. data/Gemfile +0 -4
  2. data/Gemfile.lock +54 -57
  3. data/README.textile +8 -16
  4. data/app/assets/stylesheets/hydra/html_refactor.css +3 -9
  5. data/app/assets/stylesheets/hydra/styles.css +5 -120
  6. data/app/helpers/facets_helper.rb +4 -0
  7. data/app/helpers/hydra/blacklight_helper_behavior.rb +9 -41
  8. data/app/helpers/hydra/facets_helper_behavior.rb +27 -0
  9. data/app/models/hydra/ability.rb +48 -41
  10. data/app/models/hydra/role_mapper_behavior.rb +32 -0
  11. data/app/models/role_mapper.rb +1 -20
  12. data/config/jetty.yml +6 -0
  13. data/hydra-head.gemspec +4 -5
  14. data/lib/generators/hydra/assets_generator.rb +0 -1
  15. data/lib/hydra-head/version.rb +1 -1
  16. data/lib/hydra/access_controls_enforcement.rb +4 -64
  17. data/test_support/etc/Gemfile +1 -0
  18. data/test_support/features/absent_model_search_result.feature +2 -2
  19. data/test_support/features/default_partials_search_result.feature +3 -3
  20. data/test_support/features/generic_content_search_result.feature +3 -3
  21. data/test_support/features/generic_image_search_result.feature +3 -3
  22. data/test_support/features/mods_asset_search_result.feature +1 -1
  23. data/test_support/features/mods_asset_show.feature +1 -1
  24. data/test_support/features/step_definitions/edit_metadata_steps.rb +1 -1
  25. data/test_support/features/step_definitions/html_validity_steps.rb +11 -1
  26. data/test_support/features/view_catalog_index.feature +1 -1
  27. data/test_support/spec/controllers/catalog_controller_spec.rb +4 -2
  28. data/test_support/spec/controllers/catalog_controller_viewing_context_spec.rb +2 -4
  29. data/test_support/spec/controllers/catalog_valid_html_spec.rb +4 -7
  30. data/test_support/spec/controllers/file_assets_controller_spec.rb +1 -0
  31. data/test_support/spec/helpers/access_controls_enforcement_spec.rb +0 -59
  32. data/test_support/spec/helpers/access_controls_evaluation_spec.rb +2 -2
  33. data/test_support/spec/helpers/blacklight_helper_spec.rb +1 -17
  34. data/test_support/spec/models/ability_spec.rb +34 -4
  35. data/vendor/cache/actionmailer-3.2.3.gem +0 -0
  36. data/vendor/cache/actionpack-3.2.3.gem +0 -0
  37. data/vendor/cache/{active-fedora-4.0.0.rc20.gem → active-fedora-4.0.0.gem} +0 -0
  38. data/vendor/cache/activemodel-3.2.3.gem +0 -0
  39. data/vendor/cache/activerecord-3.2.3.gem +0 -0
  40. data/vendor/cache/activeresource-3.2.3.gem +0 -0
  41. data/vendor/cache/activesupport-3.2.3.gem +0 -0
  42. data/vendor/cache/{blacklight-3.3.1.gem → blacklight-3.3.2.gem} +0 -0
  43. data/vendor/cache/factory_girl-3.1.1.gem +0 -0
  44. data/vendor/cache/fssm-0.2.9.gem +0 -0
  45. data/vendor/cache/libwebsocket-0.1.3.gem +0 -0
  46. data/vendor/cache/mocha-0.11.0.gem +0 -0
  47. data/vendor/cache/multi_json-1.3.2.gem +0 -0
  48. data/vendor/cache/{rails-3.2.2.gem → rails-3.2.3.gem} +0 -0
  49. data/vendor/cache/railties-3.2.3.gem +0 -0
  50. data/vendor/cache/rdf-0.3.5.2.gem +0 -0
  51. data/vendor/cache/rsolr-1.0.8.gem +0 -0
  52. data/vendor/cache/rspec-expectations-2.9.1.gem +0 -0
  53. data/vendor/cache/rubydora-0.5.8.gem +0 -0
  54. data/vendor/cache/rubyzip-0.9.7.gem +0 -0
  55. data/vendor/cache/sass-3.1.16.gem +0 -0
  56. data/vendor/cache/selenium-webdriver-2.21.2.gem +0 -0
  57. data/vendor/cache/solrizer-fedora-2.0.0.gem +0 -0
  58. data/vendor/cache/sqlite3-1.3.6.gem +0 -0
  59. data/vendor/cache/tzinfo-0.3.33.gem +0 -0
  60. metadata +158 -76
  61. data/Tools.textile +0 -72
  62. data/app/views/catalog/_search_form.html.erb +0 -12
  63. data/vendor/cache/actionmailer-3.2.2.gem +0 -0
  64. data/vendor/cache/actionpack-3.2.2.gem +0 -0
  65. data/vendor/cache/activemodel-3.2.2.gem +0 -0
  66. data/vendor/cache/activerecord-3.2.2.gem +0 -0
  67. data/vendor/cache/activeresource-3.2.2.gem +0 -0
  68. data/vendor/cache/activesupport-3.2.2.gem +0 -0
  69. data/vendor/cache/factory_girl-3.0.0.gem +0 -0
  70. data/vendor/cache/fssm-0.2.8.1.gem +0 -0
  71. data/vendor/cache/mocha-0.10.5.gem +0 -0
  72. data/vendor/cache/multi_json-1.2.0.gem +0 -0
  73. data/vendor/cache/railties-3.2.2.gem +0 -0
  74. data/vendor/cache/rdf-0.3.5.1.gem +0 -0
  75. data/vendor/cache/rsolr-1.0.6.gem +0 -0
  76. data/vendor/cache/rspec-expectations-2.9.0.gem +0 -0
  77. data/vendor/cache/rubydora-0.5.7.gem +0 -0
  78. data/vendor/cache/rubyzip-0.9.6.1.gem +0 -0
  79. data/vendor/cache/sass-3.1.15.gem +0 -0
  80. data/vendor/cache/selenium-webdriver-2.20.0.gem +0 -0
  81. data/vendor/cache/solr-ruby-0.0.8.gem +0 -0
  82. data/vendor/cache/solrizer-fedora-1.2.5.gem +0 -0
  83. data/vendor/cache/sqlite3-1.3.5.gem +0 -0
  84. data/vendor/cache/tzinfo-0.3.32.gem +0 -0
data/Tools.textile DELETED
@@ -1,72 +0,0 @@
1
- h1. Tools to Help You Develop and Test your Application
2
-
3
- h2. The Hydra Jetty
4
-
5
- The Hydra project provides a copy of Jetty with Fedora and Solr pre-installed. This is useful for running tests against and for running your code against while you're actively working on your hydra head.
6
-
7
- Most projects add hydra jetty to their code as a git submodule
8
-
9
- <pre>
10
- git submodule add git://github.com/projecthydra/hydra-jetty.git jetty
11
- git commit -m"added jetty submodule"
12
- </pre>
13
-
14
- Now that you've added the submodule to your git repository, whenever you grab a new working copy of the code, you can get hydra-jetty by running:
15
-
16
- <pre>
17
- git submodule init
18
- git submodule update
19
- </pre>
20
-
21
- *Important*: To apply the your application's solrconfig.xml and schema.xml to the copy of solr in hydra-jetty, run this:
22
-
23
- <pre>
24
- rake hydra:jetty:config
25
- </pre>
26
-
27
- Now you're ready to start jetty. We've written a useful gem that gives you rake tasks for starting and stopping jetty. Make sure you have jettywrapper in your Gemfile
28
-
29
- <pre>
30
- gem "jettywrapper"
31
- </pre>
32
-
33
- Then run <pre>bundle install<pre>
34
-
35
- Now that you have jettywrapper installed, to start jetty use
36
-
37
- <pre>
38
- rake jetty:start
39
- </pre>
40
-
41
- To stop jetty
42
-
43
- <pre>
44
- rake jetty:stop
45
- </pre>
46
-
47
- For more information about using jettywrapper, see http://hudson.projecthydra.org/job/jettywrapper/Documentation/
48
-
49
- h2. RSpec and Cucumber for Testing
50
-
51
- We STRONGLY recommend that you write tests for every local change you make. This will allow you to ensure that upgrading the core code doesn't break any local changes you have made.
52
-
53
- (when should it be a feature rather than a spec)
54
- very basic rule: if it's testing something created with view, use a cucumber feature to test. If it's not created by view code, use a spec to test.
55
-
56
- h4. RSpec for Functional Tests
57
-
58
- Most Ruby projects use either RSpec or Shoulda to write and run their Functional Tests. We use RSpec for all of the Hydra software.
59
-
60
- To set up all the files you need to use rspec to test your Rails application, simply run the rspec generator. This will create a directory called "spec" and put all of the necessary files into it.
61
-
62
- <pre>
63
- rails g rspec:install
64
- </pre>
65
-
66
- h4. Cucumber to Test User Experience
67
-
68
- If you will be writing cucumber tests, run the cucumber generator. This will create a directory called "features" and populate it with all the basic parts you need to run Cucumber tests on your Rails application.
69
-
70
- <pre>rails g cucumber:install</pre>
71
-
72
-
@@ -1,12 +0,0 @@
1
- <div id="search" class="search">
2
- <%= form_tag catalog_index_path, :method => :get do %>
3
- <h2 class="search"><%= label_tag(:q, "Search ") %></h2>
4
- <%= text_field_tag :q, params[:q], :class => "q" %>
5
-
6
- <%= search_as_hidden_fields(:omit_keys => [:q, :search_field, :qt]) %>
7
-
8
- <%= submit_tag("Search", :id => "submit") %>
9
- <% end %>
10
-
11
- <hr/>
12
- </div>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file