fcrepo_admin 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +1 -0
  4. data/Gemfile +5 -0
  5. data/LICENSE +27 -0
  6. data/README.rdoc +75 -0
  7. data/Rakefile +22 -0
  8. data/app/controllers/fcrepo_admin/audit_trail_controller.rb +17 -0
  9. data/app/controllers/fcrepo_admin/datastreams_controller.rb +29 -0
  10. data/app/controllers/fcrepo_admin/objects_controller.rb +14 -0
  11. data/app/helpers/application_helper.rb +2 -0
  12. data/app/mailers/.gitkeep +0 -0
  13. data/app/models/.gitkeep +0 -0
  14. data/app/views/fcrepo_admin/audit_trail/index.html.erb +34 -0
  15. data/app/views/fcrepo_admin/catalog/_datastreams.html.erb +19 -0
  16. data/app/views/fcrepo_admin/catalog/_show.html.erb +2 -0
  17. data/app/views/fcrepo_admin/datastreams/_content.html.erb +12 -0
  18. data/app/views/fcrepo_admin/datastreams/_datastreams.html +18 -0
  19. data/app/views/fcrepo_admin/datastreams/_profile.html.erb +10 -0
  20. data/app/views/fcrepo_admin/datastreams/index.html.erb +4 -0
  21. data/app/views/fcrepo_admin/datastreams/show.html.erb +22 -0
  22. data/app/views/fcrepo_admin/objects/_more_info.html.erb +6 -0
  23. data/app/views/fcrepo_admin/objects/_properties.html.erb +8 -0
  24. data/app/views/fcrepo_admin/objects/show.html.erb +18 -0
  25. data/config/locales/fcrepo_admin.en.yml +55 -0
  26. data/config/routes.rb +14 -0
  27. data/doc/README_FOR_APP +2 -0
  28. data/fcrepo_admin.gemspec +42 -0
  29. data/lib/assets/.gitkeep +0 -0
  30. data/lib/assets/stylesheets/fcrepo_admin/fcrepo_admin.css +4 -0
  31. data/lib/fcrepo_admin.rb +8 -0
  32. data/lib/fcrepo_admin/controller_behavior.rb +10 -0
  33. data/lib/fcrepo_admin/engine.rb +12 -0
  34. data/lib/fcrepo_admin/solr_document_extension.rb +49 -0
  35. data/lib/fcrepo_admin/version.rb +3 -0
  36. data/lib/tasks/.gitkeep +0 -0
  37. data/lib/tasks/fcrepo_admin.rake +24 -0
  38. data/script/rails +6 -0
  39. data/spec/controllers/audit_trail_controller_spec.rb +20 -0
  40. data/spec/controllers/datastreams_controller_spec.rb +21 -0
  41. data/spec/factories/fcrepo_admin_factories.rb +20 -0
  42. data/spec/factories/user_factories.rb +8 -0
  43. data/spec/features/audit_trail/index.html.erb_spec.rb +11 -0
  44. data/spec/features/catalog/show.html.erb_spec.rb +21 -0
  45. data/spec/features/datastreams/show.html.erb_spec.rb +31 -0
  46. data/spec/features/objects/show.html.erb_spec.rb +29 -0
  47. data/spec/fixtures/auditable.foxml.xml +110 -0
  48. data/spec/internal/README.rdoc +261 -0
  49. data/spec/internal/Rakefile +7 -0
  50. data/spec/internal/app/assets/javascripts/application.js +16 -0
  51. data/spec/internal/app/assets/stylesheets/application.css +13 -0
  52. data/spec/internal/app/assets/stylesheets/blacklight.css.scss +3 -0
  53. data/spec/internal/app/controllers/application_controller.rb +11 -0
  54. data/spec/internal/app/controllers/catalog_controller.rb +169 -0
  55. data/spec/internal/app/helpers/application_helper.rb +2 -0
  56. data/spec/internal/app/mailers/.gitkeep +0 -0
  57. data/spec/internal/app/models/.gitkeep +0 -0
  58. data/spec/internal/app/models/ability.rb +4 -0
  59. data/spec/internal/app/models/content_model.rb +12 -0
  60. data/spec/internal/app/models/solr_document.rb +36 -0
  61. data/spec/internal/app/models/user.rb +26 -0
  62. data/spec/internal/app/views/catalog/_show_default.html.erb +12 -0
  63. data/spec/internal/app/views/layouts/application.html.erb +14 -0
  64. data/spec/internal/config.ru +4 -0
  65. data/spec/internal/config/application.rb +59 -0
  66. data/spec/internal/config/boot.rb +10 -0
  67. data/spec/internal/config/database.yml +25 -0
  68. data/spec/internal/config/environment.rb +5 -0
  69. data/spec/internal/config/environments/development.rb +37 -0
  70. data/spec/internal/config/environments/production.rb +67 -0
  71. data/spec/internal/config/environments/test.rb +37 -0
  72. data/spec/internal/config/fedora.yml +12 -0
  73. data/spec/internal/config/initializers/backtrace_silencers.rb +7 -0
  74. data/spec/internal/config/initializers/devise.rb +240 -0
  75. data/spec/internal/config/initializers/hydra_config.rb +34 -0
  76. data/spec/internal/config/initializers/inflections.rb +15 -0
  77. data/spec/internal/config/initializers/mime_types.rb +12 -0
  78. data/spec/internal/config/initializers/secret_token.rb +7 -0
  79. data/spec/internal/config/initializers/session_store.rb +8 -0
  80. data/spec/internal/config/initializers/wrap_parameters.rb +14 -0
  81. data/spec/internal/config/locales/devise.en.yml +59 -0
  82. data/spec/internal/config/locales/en.yml +5 -0
  83. data/spec/internal/config/role_map_development.yml +6 -0
  84. data/spec/internal/config/role_map_test.yml +6 -0
  85. data/spec/internal/config/routes.rb +6 -0
  86. data/spec/internal/config/solr.yml +6 -0
  87. data/spec/internal/db/schema.rb +57 -0
  88. data/spec/internal/lib/assets/.gitkeep +0 -0
  89. data/spec/internal/log/.gitkeep +0 -0
  90. data/spec/internal/public/404.html +26 -0
  91. data/spec/internal/public/422.html +26 -0
  92. data/spec/internal/public/500.html +25 -0
  93. data/spec/internal/public/favicon.ico +0 -0
  94. data/spec/internal/script/rails +6 -0
  95. data/spec/spec_helper.rb +45 -0
  96. metadata +397 -0
@@ -0,0 +1,34 @@
1
+ # The following lines determine which user attributes your hydrangea app will use
2
+ # This configuration allows you to use the out of the box ActiveRecord associations between users and user_attributes
3
+ # It also allows you to specify your own user attributes
4
+ # The easiest way to override these methods would be to create your own module to include in User
5
+ # For example you could create a module for your local LDAP instance called MyLocalLDAPUserAttributes:
6
+ # User.send(:include, MyLocalLDAPAttributes)
7
+ # As long as your module includes methods for full_name, affiliation, and photo the personalization_helper should function correctly
8
+ #
9
+
10
+ # windows doesn't properly require hydra-head (from the gemfile), so we need to require it explicitly here:
11
+ require 'hydra/head' unless defined? Hydra
12
+
13
+ if Hydra.respond_to?(:configure)
14
+ Hydra.configure(:shared) do |config|
15
+ # This specifies the solr field names of permissions-related fields.
16
+ # You only need to change these values if you've indexed permissions by some means other than the Hydra's built-in tooling.
17
+ # If you change these, you must also update the permissions request handler in your solrconfig.xml to return those values
18
+ indexer = Solrizer::Descriptor.new(:string, :stored, :indexed, :multivalued)
19
+ config[:permissions] = {
20
+ :discover => {:group =>ActiveFedora::SolrService.solr_name("discover_access_group", indexer), :individual=>ActiveFedora::SolrService.solr_name("discover_access_person", indexer)},
21
+ :read => {:group =>ActiveFedora::SolrService.solr_name("read_access_group", indexer), :individual=>ActiveFedora::SolrService.solr_name("read_access_person", indexer)},
22
+ :edit => {:group =>ActiveFedora::SolrService.solr_name("edit_access_group", indexer), :individual=>ActiveFedora::SolrService.solr_name("edit_access_person", indexer)},
23
+ :owner => ActiveFedora::SolrService.solr_name("depositor", indexer),
24
+ :embargo_release_date => ActiveFedora::SolrService.solr_name("embargo_release_date", Solrizer::Descriptor.new(:date, :stored, :indexed))
25
+ }
26
+ config[:permissions][:inheritable] = {
27
+ :discover => {:group =>ActiveFedora::SolrService.solr_name("inheritable_discover_access_group", indexer), :individual=>ActiveFedora::SolrService.solr_name("inheritable_discover_access_person", indexer)},
28
+ :read => {:group =>ActiveFedora::SolrService.solr_name("inheritable_read_access_group", indexer), :individual=>ActiveFedora::SolrService.solr_name("inheritable_read_access_person", indexer)},
29
+ :edit => {:group =>ActiveFedora::SolrService.solr_name("inheritable_edit_access_group", indexer), :individual=>ActiveFedora::SolrService.solr_name("inheritable_edit_access_person", indexer)},
30
+ :owner => ActiveFedora::SolrService.solr_name("inheritable_depositor", indexer),
31
+ :embargo_release_date => ActiveFedora::SolrService.solr_name("inheritable_embargo_release_date", Solrizer::Descriptor.new(:date, :stored, :indexed))
32
+ }
33
+ end
34
+ end
@@ -0,0 +1,15 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
11
+ #
12
+ # These inflection rules are supported but not enabled by default:
13
+ # ActiveSupport::Inflector.inflections do |inflect|
14
+ # inflect.acronym 'RESTful'
15
+ # end
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.Mime::Type.register_alias "text/plain", :refworks_marc_txt
2
+ Mime::Type.register_alias "text/plain", :openurl_kev
3
+ Mime::Type.register "application/x-endnote-refer", :endnote
4
+ Mime::Type.register "application/marc", :marc
5
+ Mime::Type.register "application/marcxml+xml", :marcxml,
6
+ ["application/x-marc+xml", "application/x-marcxml+xml",
7
+ "application/marc+xml"]
8
+
9
+
10
+ # Add new mime types for use in respond_to blocks:
11
+ # Mime::Type.register "text/richtext", :rtf
12
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = '7adb30ca6c22562208cdfc0ad3941dbdc0faa5d87efa09fdac00b88111708ba67a054785c87edb9950e0058ec4c6034eb3f0a3179a54741801c103bc6e2e3947'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,59 @@
1
+ # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
+
3
+ en:
4
+ devise:
5
+ confirmations:
6
+ confirmed: "Your account was successfully confirmed. You are now signed in."
7
+ send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes."
8
+ send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes."
9
+ failure:
10
+ already_authenticated: "You are already signed in."
11
+ inactive: "Your account was not activated yet."
12
+ invalid: "Invalid email or password."
13
+ invalid_token: "Invalid authentication token."
14
+ locked: "Your account is locked."
15
+ not_found_in_database: "Invalid email or password."
16
+ timeout: "Your session expired, please sign in again to continue."
17
+ unauthenticated: "You need to sign in or sign up before continuing."
18
+ unconfirmed: "You have to confirm your account before continuing."
19
+ mailer:
20
+ confirmation_instructions:
21
+ subject: "Confirmation instructions"
22
+ reset_password_instructions:
23
+ subject: "Reset password instructions"
24
+ unlock_instructions:
25
+ subject: "Unlock Instructions"
26
+ omniauth_callbacks:
27
+ failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
28
+ success: "Successfully authenticated from %{kind} account."
29
+ passwords:
30
+ no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
31
+ send_instructions: "You will receive an email with instructions about how to reset your password in a few minutes."
32
+ send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
33
+ updated: "Your password was changed successfully. You are now signed in."
34
+ updated_not_active: "Your password was changed successfully."
35
+ registrations:
36
+ destroyed: "Bye! Your account was successfully cancelled. We hope to see you again soon."
37
+ signed_up: "Welcome! You have signed up successfully."
38
+ signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
39
+ signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
40
+ signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please open the link to activate your account."
41
+ update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address."
42
+ updated: "You updated your account successfully."
43
+ sessions:
44
+ signed_in: "Signed in successfully."
45
+ signed_out: "Signed out successfully."
46
+ unlocks:
47
+ send_instructions: "You will receive an email with instructions about how to unlock your account in a few minutes."
48
+ send_paranoid_instructions: "If your account exists, you will receive an email with instructions about how to unlock it in a few minutes."
49
+ unlocked: "Your account has been unlocked successfully. Please sign in to continue."
50
+ errors:
51
+ messages:
52
+ already_confirmed: "was already confirmed, please try signing in"
53
+ confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
54
+ expired: "has expired, please request a new one"
55
+ not_found: "not found"
56
+ not_locked: "was not locked"
57
+ not_saved:
58
+ one: "1 error prohibited this %{resource} from being saved:"
59
+ other: "%{count} errors prohibited this %{resource} from being saved:"
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,6 @@
1
+ repositoryReader:
2
+ - repositoryreader@nowhere.org
3
+ repositoryEditor:
4
+ - repositoryeditor@nowhere.org
5
+ repositoryAdmin:
6
+ - repositoryadmin@nowhere.org
@@ -0,0 +1,6 @@
1
+ repositoryReader:
2
+ - repositoryreader@nowhere.org
3
+ repositoryEditor:
4
+ - repositoryeditor@nowhere.org
5
+ repositoryAdmin:
6
+ - repositoryadmin@nowhere.org
@@ -0,0 +1,6 @@
1
+ Rails.application.routes.draw do
2
+ Blacklight.add_routes(self)
3
+ root :to => "catalog#index"
4
+ devise_for :users
5
+ mount FcrepoAdmin::Engine => "/", :as => 'fcrepo_admin'
6
+ end
@@ -0,0 +1,6 @@
1
+ development:
2
+ url: http://localhost:8983/solr/development
3
+ test:
4
+ url: <%= "http://localhost:#{ENV['TEST_JETTY_PORT'] || 8983}/solr/test" %>
5
+ production:
6
+ url: http://your.production.server:8080/bl_solr/core0
@@ -0,0 +1,57 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20130329181521) do
15
+
16
+ create_table "bookmarks", :force => true do |t|
17
+ t.integer "user_id", :null => false
18
+ t.string "document_id"
19
+ t.string "title"
20
+ t.datetime "created_at", :null => false
21
+ t.datetime "updated_at", :null => false
22
+ t.string "user_type"
23
+ end
24
+
25
+ create_table "searches", :force => true do |t|
26
+ t.text "query_params"
27
+ t.integer "user_id"
28
+ t.datetime "created_at", :null => false
29
+ t.datetime "updated_at", :null => false
30
+ t.string "user_type"
31
+ end
32
+
33
+ add_index "searches", ["user_id"], :name => "index_searches_on_user_id"
34
+
35
+ create_table "superusers", :force => true do |t|
36
+ t.integer "user_id", :null => false
37
+ end
38
+
39
+ create_table "users", :force => true do |t|
40
+ t.string "email", :default => "", :null => false
41
+ t.string "encrypted_password", :default => "", :null => false
42
+ t.string "reset_password_token"
43
+ t.datetime "reset_password_sent_at"
44
+ t.datetime "remember_created_at"
45
+ t.integer "sign_in_count", :default => 0
46
+ t.datetime "current_sign_in_at"
47
+ t.datetime "last_sign_in_at"
48
+ t.string "current_sign_in_ip"
49
+ t.string "last_sign_in_ip"
50
+ t.datetime "created_at", :null => false
51
+ t.datetime "updated_at", :null => false
52
+ end
53
+
54
+ add_index "users", ["email"], :name => "index_users_on_email", :unique => true
55
+ add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
56
+
57
+ end
File without changes
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,45 @@
1
+ ENV["RAILS_ENV"] ||= 'test'
2
+
3
+ require File.expand_path("../internal/config/environment", __FILE__)
4
+ require 'rspec/rails'
5
+ require 'rspec/autorun'
6
+ require 'capybara/rails'
7
+ require 'capybara/rspec'
8
+ require 'factory_girl_rails'
9
+
10
+ # Requires supporting ruby files with custom matchers and macros, etc,
11
+ # in spec/support/ and its subdirectories.
12
+ Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
13
+
14
+ RSpec.configure do |config|
15
+ # ## Mock Framework
16
+ #
17
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
18
+ #
19
+ # config.mock_with :mocha
20
+ # config.mock_with :flexmock
21
+ # config.mock_with :rr
22
+
23
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
24
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
25
+
26
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
27
+ # examples within a transaction, remove the following line or assign false
28
+ # instead of true.
29
+ config.use_transactional_fixtures = true
30
+
31
+ # If true, the base class of anonymous controllers will be inferred
32
+ # automatically. This will be the default behavior in future versions of
33
+ # rspec-rails.
34
+ config.infer_base_class_for_anonymous_controllers = false
35
+
36
+ # Run specs in random order to surface order dependencies. If you find an
37
+ # order dependency and want to debug it, you can fix the order by providing
38
+ # the seed, which is printed after each run.
39
+ # --seed 1234
40
+ config.order = "random"
41
+
42
+ # Devise helper
43
+ config.include Devise::TestHelpers, :type => :controller
44
+
45
+ end
metadata ADDED
@@ -0,0 +1,397 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fcrepo_admin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - David Chandek-Stark
8
+ - Jim Coble
9
+ - Chris Beer
10
+ - Justin Coyne
11
+ autorequire:
12
+ bindir: bin
13
+ cert_chain: []
14
+ date: 2013-04-11 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: hydra-head
18
+ requirement: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - '='
21
+ - !ruby/object:Gem::Version
22
+ version: 6.0.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - '='
28
+ - !ruby/object:Gem::Version
29
+ version: 6.0.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: blacklight
32
+ requirement: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ! '>='
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ - !ruby/object:Gem::Dependency
45
+ name: rails
46
+ requirement: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ~>
49
+ - !ruby/object:Gem::Version
50
+ version: '3.2'
51
+ type: :runtime
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ~>
56
+ - !ruby/object:Gem::Version
57
+ version: '3.2'
58
+ - !ruby/object:Gem::Dependency
59
+ name: mime-types
60
+ requirement: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ~>
63
+ - !ruby/object:Gem::Version
64
+ version: '1.19'
65
+ type: :runtime
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ~>
70
+ - !ruby/object:Gem::Version
71
+ version: '1.19'
72
+ - !ruby/object:Gem::Dependency
73
+ name: devise
74
+ requirement: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ type: :development
80
+ prerelease: false
81
+ version_requirements: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ - !ruby/object:Gem::Dependency
87
+ name: rspec
88
+ requirement: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ! '>='
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ type: :development
94
+ prerelease: false
95
+ version_requirements: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ - !ruby/object:Gem::Dependency
101
+ name: rspec-rails
102
+ requirement: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ! '>='
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ type: :development
108
+ prerelease: false
109
+ version_requirements: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ! '>='
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ - !ruby/object:Gem::Dependency
115
+ name: capybara
116
+ requirement: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ type: :development
122
+ prerelease: false
123
+ version_requirements: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ! '>='
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
128
+ - !ruby/object:Gem::Dependency
129
+ name: sqlite3
130
+ requirement: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ! '>='
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ type: :development
136
+ prerelease: false
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: factory_girl_rails
144
+ requirement: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - ! '>='
147
+ - !ruby/object:Gem::Version
148
+ version: '0'
149
+ type: :development
150
+ prerelease: false
151
+ version_requirements: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ! '>='
154
+ - !ruby/object:Gem::Version
155
+ version: '0'
156
+ - !ruby/object:Gem::Dependency
157
+ name: jettywrapper
158
+ requirement: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - ! '>='
161
+ - !ruby/object:Gem::Version
162
+ version: '0'
163
+ type: :development
164
+ prerelease: false
165
+ version_requirements: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - ! '>='
168
+ - !ruby/object:Gem::Version
169
+ version: '0'
170
+ - !ruby/object:Gem::Dependency
171
+ name: jquery-rails
172
+ requirement: !ruby/object:Gem::Requirement
173
+ requirements:
174
+ - - ! '>='
175
+ - !ruby/object:Gem::Version
176
+ version: '0'
177
+ type: :development
178
+ prerelease: false
179
+ version_requirements: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - ! '>='
182
+ - !ruby/object:Gem::Version
183
+ version: '0'
184
+ - !ruby/object:Gem::Dependency
185
+ name: sass-rails
186
+ requirement: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - ! '>='
189
+ - !ruby/object:Gem::Version
190
+ version: '0'
191
+ type: :development
192
+ prerelease: false
193
+ version_requirements: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ - !ruby/object:Gem::Dependency
199
+ name: bootstrap-sass
200
+ requirement: !ruby/object:Gem::Requirement
201
+ requirements:
202
+ - - ! '>='
203
+ - !ruby/object:Gem::Version
204
+ version: '0'
205
+ type: :development
206
+ prerelease: false
207
+ version_requirements: !ruby/object:Gem::Requirement
208
+ requirements:
209
+ - - ! '>='
210
+ - !ruby/object:Gem::Version
211
+ version: '0'
212
+ description: A Rails engine for administrative access to a Fedora Commons repository
213
+ based on the Hydra Project repository application framework.
214
+ email:
215
+ - hydra-tech@googlegroups.com
216
+ executables: []
217
+ extensions: []
218
+ extra_rdoc_files:
219
+ - LICENSE
220
+ - README.rdoc
221
+ files:
222
+ - .gitignore
223
+ - .rspec
224
+ - Gemfile
225
+ - LICENSE
226
+ - README.rdoc
227
+ - Rakefile
228
+ - app/controllers/fcrepo_admin/audit_trail_controller.rb
229
+ - app/controllers/fcrepo_admin/datastreams_controller.rb
230
+ - app/controllers/fcrepo_admin/objects_controller.rb
231
+ - app/helpers/application_helper.rb
232
+ - app/mailers/.gitkeep
233
+ - app/models/.gitkeep
234
+ - app/views/fcrepo_admin/audit_trail/index.html.erb
235
+ - app/views/fcrepo_admin/catalog/_datastreams.html.erb
236
+ - app/views/fcrepo_admin/catalog/_show.html.erb
237
+ - app/views/fcrepo_admin/datastreams/_content.html.erb
238
+ - app/views/fcrepo_admin/datastreams/_datastreams.html
239
+ - app/views/fcrepo_admin/datastreams/_profile.html.erb
240
+ - app/views/fcrepo_admin/datastreams/index.html.erb
241
+ - app/views/fcrepo_admin/datastreams/show.html.erb
242
+ - app/views/fcrepo_admin/objects/_more_info.html.erb
243
+ - app/views/fcrepo_admin/objects/_properties.html.erb
244
+ - app/views/fcrepo_admin/objects/show.html.erb
245
+ - config/locales/fcrepo_admin.en.yml
246
+ - config/routes.rb
247
+ - doc/README_FOR_APP
248
+ - fcrepo_admin.gemspec
249
+ - lib/assets/.gitkeep
250
+ - lib/assets/stylesheets/fcrepo_admin/fcrepo_admin.css
251
+ - lib/fcrepo_admin.rb
252
+ - lib/fcrepo_admin/controller_behavior.rb
253
+ - lib/fcrepo_admin/engine.rb
254
+ - lib/fcrepo_admin/solr_document_extension.rb
255
+ - lib/fcrepo_admin/version.rb
256
+ - lib/tasks/.gitkeep
257
+ - lib/tasks/fcrepo_admin.rake
258
+ - script/rails
259
+ - spec/controllers/audit_trail_controller_spec.rb
260
+ - spec/controllers/datastreams_controller_spec.rb
261
+ - spec/factories/fcrepo_admin_factories.rb
262
+ - spec/factories/user_factories.rb
263
+ - spec/features/audit_trail/index.html.erb_spec.rb
264
+ - spec/features/catalog/show.html.erb_spec.rb
265
+ - spec/features/datastreams/show.html.erb_spec.rb
266
+ - spec/features/objects/show.html.erb_spec.rb
267
+ - spec/fixtures/auditable.foxml.xml
268
+ - spec/internal/README.rdoc
269
+ - spec/internal/Rakefile
270
+ - spec/internal/app/assets/javascripts/application.js
271
+ - spec/internal/app/assets/stylesheets/application.css
272
+ - spec/internal/app/assets/stylesheets/blacklight.css.scss
273
+ - spec/internal/app/controllers/application_controller.rb
274
+ - spec/internal/app/controllers/catalog_controller.rb
275
+ - spec/internal/app/helpers/application_helper.rb
276
+ - spec/internal/app/mailers/.gitkeep
277
+ - spec/internal/app/models/.gitkeep
278
+ - spec/internal/app/models/ability.rb
279
+ - spec/internal/app/models/content_model.rb
280
+ - spec/internal/app/models/solr_document.rb
281
+ - spec/internal/app/models/user.rb
282
+ - spec/internal/app/views/catalog/_show_default.html.erb
283
+ - spec/internal/app/views/layouts/application.html.erb
284
+ - spec/internal/config.ru
285
+ - spec/internal/config/application.rb
286
+ - spec/internal/config/boot.rb
287
+ - spec/internal/config/database.yml
288
+ - spec/internal/config/environment.rb
289
+ - spec/internal/config/environments/development.rb
290
+ - spec/internal/config/environments/production.rb
291
+ - spec/internal/config/environments/test.rb
292
+ - spec/internal/config/fedora.yml
293
+ - spec/internal/config/initializers/backtrace_silencers.rb
294
+ - spec/internal/config/initializers/devise.rb
295
+ - spec/internal/config/initializers/hydra_config.rb
296
+ - spec/internal/config/initializers/inflections.rb
297
+ - spec/internal/config/initializers/mime_types.rb
298
+ - spec/internal/config/initializers/secret_token.rb
299
+ - spec/internal/config/initializers/session_store.rb
300
+ - spec/internal/config/initializers/wrap_parameters.rb
301
+ - spec/internal/config/locales/devise.en.yml
302
+ - spec/internal/config/locales/en.yml
303
+ - spec/internal/config/role_map_development.yml
304
+ - spec/internal/config/role_map_test.yml
305
+ - spec/internal/config/routes.rb
306
+ - spec/internal/config/solr.yml
307
+ - spec/internal/db/schema.rb
308
+ - spec/internal/lib/assets/.gitkeep
309
+ - spec/internal/log/.gitkeep
310
+ - spec/internal/public/404.html
311
+ - spec/internal/public/422.html
312
+ - spec/internal/public/500.html
313
+ - spec/internal/public/favicon.ico
314
+ - spec/internal/script/rails
315
+ - spec/spec_helper.rb
316
+ homepage: http://projecthydra.org
317
+ licenses:
318
+ - BSD Simplified
319
+ metadata: {}
320
+ post_install_message:
321
+ rdoc_options: []
322
+ require_paths:
323
+ - lib
324
+ required_ruby_version: !ruby/object:Gem::Requirement
325
+ requirements:
326
+ - - ! '>='
327
+ - !ruby/object:Gem::Version
328
+ version: 1.9.3
329
+ required_rubygems_version: !ruby/object:Gem::Requirement
330
+ requirements:
331
+ - - ! '>='
332
+ - !ruby/object:Gem::Version
333
+ version: '0'
334
+ requirements: []
335
+ rubyforge_project:
336
+ rubygems_version: 2.0.2
337
+ signing_key:
338
+ specification_version: 4
339
+ summary: Hydra-based Fedora Commons repository admin tool.
340
+ test_files:
341
+ - spec/controllers/audit_trail_controller_spec.rb
342
+ - spec/controllers/datastreams_controller_spec.rb
343
+ - spec/factories/fcrepo_admin_factories.rb
344
+ - spec/factories/user_factories.rb
345
+ - spec/features/audit_trail/index.html.erb_spec.rb
346
+ - spec/features/catalog/show.html.erb_spec.rb
347
+ - spec/features/datastreams/show.html.erb_spec.rb
348
+ - spec/features/objects/show.html.erb_spec.rb
349
+ - spec/fixtures/auditable.foxml.xml
350
+ - spec/internal/README.rdoc
351
+ - spec/internal/Rakefile
352
+ - spec/internal/app/assets/javascripts/application.js
353
+ - spec/internal/app/assets/stylesheets/application.css
354
+ - spec/internal/app/assets/stylesheets/blacklight.css.scss
355
+ - spec/internal/app/controllers/application_controller.rb
356
+ - spec/internal/app/controllers/catalog_controller.rb
357
+ - spec/internal/app/helpers/application_helper.rb
358
+ - spec/internal/app/mailers/.gitkeep
359
+ - spec/internal/app/models/.gitkeep
360
+ - spec/internal/app/models/ability.rb
361
+ - spec/internal/app/models/content_model.rb
362
+ - spec/internal/app/models/solr_document.rb
363
+ - spec/internal/app/models/user.rb
364
+ - spec/internal/app/views/catalog/_show_default.html.erb
365
+ - spec/internal/app/views/layouts/application.html.erb
366
+ - spec/internal/config.ru
367
+ - spec/internal/config/application.rb
368
+ - spec/internal/config/boot.rb
369
+ - spec/internal/config/database.yml
370
+ - spec/internal/config/environment.rb
371
+ - spec/internal/config/environments/development.rb
372
+ - spec/internal/config/environments/production.rb
373
+ - spec/internal/config/environments/test.rb
374
+ - spec/internal/config/fedora.yml
375
+ - spec/internal/config/initializers/backtrace_silencers.rb
376
+ - spec/internal/config/initializers/devise.rb
377
+ - spec/internal/config/initializers/hydra_config.rb
378
+ - spec/internal/config/initializers/inflections.rb
379
+ - spec/internal/config/initializers/mime_types.rb
380
+ - spec/internal/config/initializers/secret_token.rb
381
+ - spec/internal/config/initializers/session_store.rb
382
+ - spec/internal/config/initializers/wrap_parameters.rb
383
+ - spec/internal/config/locales/devise.en.yml
384
+ - spec/internal/config/locales/en.yml
385
+ - spec/internal/config/role_map_development.yml
386
+ - spec/internal/config/role_map_test.yml
387
+ - spec/internal/config/routes.rb
388
+ - spec/internal/config/solr.yml
389
+ - spec/internal/db/schema.rb
390
+ - spec/internal/lib/assets/.gitkeep
391
+ - spec/internal/log/.gitkeep
392
+ - spec/internal/public/404.html
393
+ - spec/internal/public/422.html
394
+ - spec/internal/public/500.html
395
+ - spec/internal/public/favicon.ico
396
+ - spec/internal/script/rails
397
+ - spec/spec_helper.rb