blacklight_cql 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/VERSION +1 -1
  2. data/spec/{app_root → internal}/app/controllers/application_controller.rb +2 -1
  3. data/spec/internal/app/models/solr_document.rb +3 -0
  4. data/spec/internal/config/database.yml +3 -0
  5. data/spec/internal/config/routes.rb +6 -0
  6. data/spec/internal/config/solr.yml +18 -0
  7. data/spec/internal/db/combustion_test.sqlite +0 -0
  8. data/spec/internal/db/schema.rb +53 -0
  9. data/spec/internal/log/test.log +7223 -0
  10. data/spec/{app_root → internal}/public/favicon.ico +0 -0
  11. data/spec/lib/blacklight_to_solr_spec.rb +1 -2
  12. data/spec/spec_helper.rb +11 -6
  13. data/spec/views/explain.xml.builder_spec.rb +22 -49
  14. metadata +139 -195
  15. data/spec/app_root/Rakefile +0 -7
  16. data/spec/app_root/app/assets/javascripts/application.js +0 -9
  17. data/spec/app_root/app/assets/stylesheets/application.css +0 -7
  18. data/spec/app_root/app/helpers/application_helper.rb +0 -2
  19. data/spec/app_root/app/views/layouts/application.html.erb +0 -14
  20. data/spec/app_root/config/application.rb +0 -45
  21. data/spec/app_root/config/boot.rb +0 -10
  22. data/spec/app_root/config/database.yml +0 -25
  23. data/spec/app_root/config/environment.rb +0 -5
  24. data/spec/app_root/config/environments/development.rb +0 -30
  25. data/spec/app_root/config/environments/production.rb +0 -60
  26. data/spec/app_root/config/environments/test.rb +0 -39
  27. data/spec/app_root/config/initializers/backtrace_silencers.rb +0 -7
  28. data/spec/app_root/config/initializers/inflections.rb +0 -10
  29. data/spec/app_root/config/initializers/mime_types.rb +0 -5
  30. data/spec/app_root/config/initializers/secret_token.rb +0 -7
  31. data/spec/app_root/config/initializers/session_store.rb +0 -8
  32. data/spec/app_root/config/initializers/wrap_parameters.rb +0 -14
  33. data/spec/app_root/config/locales/en.yml +0 -5
  34. data/spec/app_root/config/routes.rb +0 -58
  35. data/spec/app_root/config.ru +0 -4
  36. data/spec/app_root/db/test.sqlite3 +0 -0
  37. data/spec/app_root/log/development.log +0 -0
  38. data/spec/app_root/log/in_memory.log +0 -0
  39. data/spec/app_root/log/test.log +0 -42
  40. data/spec/app_root/public/404.html +0 -26
  41. data/spec/app_root/public/422.html +0 -26
  42. data/spec/app_root/public/500.html +0 -26
  43. data/spec/app_root/script/rails +0 -6
  44. data/spec/app_root/spec/spec_helper.rb +0 -33
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.2.0
@@ -1,3 +1,4 @@
1
1
  class ApplicationController < ActionController::Base
2
- protect_from_forgery
2
+ include Blacklight::Controller
3
+
3
4
  end
@@ -0,0 +1,3 @@
1
+ class SolrDocument
2
+ include Blacklight::Solr::Document
3
+ end
@@ -0,0 +1,3 @@
1
+ test:
2
+ adapter: sqlite3
3
+ database: db/combustion_test.sqlite
@@ -0,0 +1,6 @@
1
+ Rails.application.routes.draw do
2
+ Blacklight.add_routes(self)
3
+
4
+ root :to => "catalog#index"
5
+ #
6
+ end
@@ -0,0 +1,18 @@
1
+ # = jetty_path key
2
+ # each environment can have a jetty_path with absolute or relative
3
+ # (to app root) path to a jetty/solr install. This is used
4
+ # by the rake tasks that start up solr automatically for testing
5
+ # and by rake solr:marc:index.
6
+ #
7
+ # jetty_path is not used by a running Blacklight application
8
+ # at all. In general you do NOT need to deploy solr in Jetty, you can deploy it
9
+ # however you want.
10
+ # jetty_path is only required for rake tasks that need to know
11
+ # how to start up solr, generally for automated testing.
12
+
13
+ development:
14
+ url: http://127.0.0.1:8983/solr
15
+ test: &test
16
+ url: http://127.0.0.1:8888/solr
17
+ cucumber:
18
+ <<: *test
@@ -0,0 +1,53 @@
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 => 20111123152341) 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"
21
+ t.datetime "updated_at"
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"
29
+ t.datetime "updated_at"
30
+ t.string "user_type"
31
+ end
32
+
33
+ add_index "searches", ["user_id"], :name => "index_searches_on_user_id"
34
+
35
+ create_table "users", :force => true do |t|
36
+ t.string "email", :default => "", :null => false
37
+ t.string "encrypted_password", :limit => 128, :default => "", :null => false
38
+ t.string "reset_password_token"
39
+ t.datetime "reset_password_sent_at"
40
+ t.datetime "remember_created_at"
41
+ t.integer "sign_in_count", :default => 0
42
+ t.datetime "current_sign_in_at"
43
+ t.datetime "last_sign_in_at"
44
+ t.string "current_sign_in_ip"
45
+ t.string "last_sign_in_ip"
46
+ t.datetime "created_at"
47
+ t.datetime "updated_at"
48
+ end
49
+
50
+ add_index "users", ["email"], :name => "index_users_on_email", :unique => true
51
+ add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
52
+
53
+ end