enju_question 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +36 -0
- data/app/controllers/answers_controller.rb +140 -0
- data/app/controllers/questions_controller.rb +171 -0
- data/app/models/answer.rb +59 -0
- data/app/models/answer_has_item.rb +20 -0
- data/app/models/question.rb +87 -0
- data/app/models/question_sweeper.rb +17 -0
- data/app/views/answers/_form.html.erb +33 -0
- data/app/views/answers/edit.html.erb +13 -0
- data/app/views/answers/index.atom.builder +16 -0
- data/app/views/answers/index.html.erb +44 -0
- data/app/views/answers/index.rss.builder +31 -0
- data/app/views/answers/new.html.erb +14 -0
- data/app/views/answers/new.mobile.erb +35 -0
- data/app/views/answers/show.html.erb +54 -0
- data/app/views/questions/_crd.html.erb +24 -0
- data/app/views/questions/_index.html.erb +22 -0
- data/app/views/questions/_index_user.html.erb +18 -0
- data/app/views/questions/_list.html.erb +69 -0
- data/app/views/questions/_solved_facet.html.erb +21 -0
- data/app/views/questions/edit.html.erb +44 -0
- data/app/views/questions/index.atom.builder +16 -0
- data/app/views/questions/index.html.erb +5 -0
- data/app/views/questions/index.js.erb +2 -0
- data/app/views/questions/index.mobile.erb +21 -0
- data/app/views/questions/index.rss.builder +41 -0
- data/app/views/questions/index_crd.xml.builder +36 -0
- data/app/views/questions/new.html.erb +35 -0
- data/app/views/questions/show.html.erb +62 -0
- data/app/views/questions/show.mobile.erb +46 -0
- data/app/views/questions/show_crd.xml.builder +34 -0
- data/config/routes.rb +10 -0
- data/db/migrate/098_create_questions.rb +21 -0
- data/db/migrate/099_create_answers.rb +21 -0
- data/db/migrate/20100217054028_create_answer_has_items.rb +17 -0
- data/lib/enju_question/engine.rb +4 -0
- data/lib/enju_question/version.rb +3 -0
- data/lib/enju_question.rb +4 -0
- data/lib/tasks/enju_question_tasks.rake +4 -0
- data/spec/cassette_library/enju_ndl/crd.yml +440 -0
- data/spec/controllers/answers_controller_spec.rb +486 -0
- data/spec/controllers/questions_controller_spec.rb +559 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +9 -0
- data/spec/dummy/app/assets/stylesheets/application.css +7 -0
- data/spec/dummy/app/controllers/application_controller.rb +106 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/ability.rb +42 -0
- data/spec/dummy/app/models/item.rb +5 -0
- data/spec/dummy/app/models/role.rb +8 -0
- data/spec/dummy/app/models/user.rb +29 -0
- data/spec/dummy/app/models/user_group.rb +2 -0
- data/spec/dummy/app/models/user_has_role.rb +4 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/page/403.html.erb +9 -0
- data/spec/dummy/app/views/page/403.mobile.erb +5 -0
- data/spec/dummy/app/views/page/403.xml.erb +4 -0
- data/spec/dummy/app/views/page/404.html.erb +9 -0
- data/spec/dummy/app/views/page/404.mobile.erb +5 -0
- data/spec/dummy/app/views/page/404.xml.erb +4 -0
- data/spec/dummy/config/application.rb +46 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +30 -0
- data/spec/dummy/config/environments/production.rb +60 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/devise.rb +209 -0
- data/spec/dummy/config/initializers/inflections.rb +10 -0
- data/spec/dummy/config/initializers/mime_types.rb +6 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +60 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/006_create_items.rb +36 -0
- data/spec/dummy/db/migrate/20100525171356_acts_as_taggable_on_migration.rb +30 -0
- data/spec/dummy/db/migrate/20111201121636_create_languages.rb +16 -0
- data/spec/dummy/db/migrate/20111201121844_create_roles.rb +12 -0
- data/spec/dummy/db/migrate/20111201155456_create_users.rb +13 -0
- data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +31 -0
- data/spec/dummy/db/migrate/20111201163342_create_user_groups.rb +12 -0
- data/spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb +10 -0
- data/spec/dummy/db/schema.rb +168 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/expire_editable_fragment.rb +62 -0
- data/spec/dummy/log/development.log +2 -0
- data/spec/dummy/log/sunspot-solr-test.log +222 -0
- data/spec/dummy/log/test.log +77918 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/solr/conf/admin-extra.html +31 -0
- data/spec/dummy/solr/conf/elevate.xml +36 -0
- data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/spec/dummy/solr/conf/protwords.txt +21 -0
- data/spec/dummy/solr/conf/schema.xml +238 -0
- data/spec/dummy/solr/conf/scripts.conf +24 -0
- data/spec/dummy/solr/conf/solrconfig.xml +934 -0
- data/spec/dummy/solr/conf/spellings.txt +2 -0
- data/spec/dummy/solr/conf/stopwords.txt +58 -0
- data/spec/dummy/solr/conf/synonyms.txt +31 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_1 +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments.gen +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- data/spec/factories/answer.rb +7 -0
- data/spec/factories/question.rb +6 -0
- data/spec/factories/user.rb +34 -0
- data/spec/fixtures/answer_has_items.yml +26 -0
- data/spec/fixtures/answers.yml +61 -0
- data/spec/fixtures/questions.yml +61 -0
- data/spec/fixtures/roles.yml +21 -0
- data/spec/fixtures/user_groups.yml +25 -0
- data/spec/fixtures/user_has_roles.yml +41 -0
- data/spec/fixtures/users.yml +69 -0
- data/spec/models/answer_has_item_spec.rb +20 -0
- data/spec/models/answer_spec.rb +25 -0
- data/spec/spec_helper.rb +48 -0
- data/spec/support/controller_macros.rb +48 -0
- data/spec/support/devise.rb +4 -0
- data/spec/support/vcr.rb +6 -0
- metadata +306 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
# Licensed to the Apache Software Foundation (ASF) under one or more
|
2
|
+
# contributor license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright ownership.
|
4
|
+
# The ASF licenses this file to You under the Apache License, Version 2.0
|
5
|
+
# (the "License"); you may not use this file except in compliance with
|
6
|
+
# the License. You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
16
|
+
user=
|
17
|
+
solr_hostname=localhost
|
18
|
+
solr_port=8983
|
19
|
+
rsyncd_port=18983
|
20
|
+
data_dir=
|
21
|
+
webapp_name=solr
|
22
|
+
master_host=
|
23
|
+
master_data_dir=
|
24
|
+
master_status_dir=
|