Skip to content
Browse files

Convert README from RDoc to (GitHub-Flavored) Markdown.

  • Loading branch information...
1 parent be34990 commit f2e909eb5b4b77e4dbd15cd3fe3a1fe63eb4e045 @HotFusionMan committed
View
2 HotFusionMan-q_and_a_machine.gemspec
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
s.rubyforge_project = s.name
s.required_rubygems_version = '> 1.3.6'
- #s.files = Dir['{app,config,db,lib}/**/*'] + ['LICENSE', 'Rakefile', 'README.rdoc']
+ #s.files = Dir['{app,config,db,lib}/**/*'] + ['LICENSE', 'Rakefile', 'README.md']
s.files = `git ls-files`.split( "\n" )
s.executables = s.files.map { |f| f =~ /^bin\/(.*)/ ? $1 : nil }.compact
s.test_files = Dir['spec/**/*']
View
14 README.md
@@ -0,0 +1,14 @@
+QAndAMachine
+============
+
+A Rails engine implementing a Web-accessible question-answering engine that learns from assertions of facts.
+
+Dependencies
+------------
+
+The ReVerb assertion processor requires ReVerb, which is distributed under the Academic License and therefore must be downloaded separately, from https://github.com/knowitall/reverb-core/ or http://reverb.cs.washington.edu/reverb-latest.jar .
+
+License
+-------
+
+QAndAMachine is distributed under the Apache 2.0 License.
View
3 README.rdoc
@@ -1,3 +0,0 @@
-= QAndAMachine
-
-This project rocks and uses MIT-LICENSE.
View
1 Rakefile
@@ -22,7 +22,6 @@ RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'QAndAMachine'
rdoc.options << '--line-numbers'
- rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
View
0 app/assets/javascripts/questions.js → app/assets/javascripts/assertions.js
File renamed without changes.
View
0 app/assets/stylesheets/questions.css → app/assets/stylesheets/assertions.css
File renamed without changes.
View
21 app/controllers/q_and_a_machine/assertions_controller.rb
@@ -0,0 +1,21 @@
+module QAndAMachine
+ class QuestionsController < ApplicationController
+ def index
+ @questions = QAndAMachine::Assertion.all
+ end
+
+ def new
+ @question = QAndAMachine::Assertion.new
+ end
+
+ def create
+ @question = QAndAMachine::Assertion.create(params[:question])
+ flash[:notice] = 'Assertion has been created!'
+ redirect_to @question
+ end
+
+ def show
+ @question = QAndAMachine::Assertion.find(params[:id])
+ end
+ end
+end
View
21 app/controllers/q_and_a_machine/questions_controller.rb
@@ -1,21 +0,0 @@
-module QAndAMachine
- class QuestionsController < ApplicationController
- def index
- @questions = QAndAMachine::Question.all
- end
-
- def new
- @question = QAndAMachine::Question.new
- end
-
- def create
- @question = QAndAMachine::Question.create(params[:question])
- flash[:notice] = 'Question has been created!'
- redirect_to @question
- end
-
- def show
- @question = QAndAMachine::Question.find(params[:id])
- end
- end
-end
View
2 app/helpers/assertions_helper.rb
@@ -0,0 +1,2 @@
+module AssertionsHelper
+end
View
2 app/helpers/questions_helper.rb
@@ -1,2 +0,0 @@
-module QuestionsHelper
-end
View
4 app/models/q_and_a_machine/assertion.rb
@@ -0,0 +1,4 @@
+module QAndAMachine
+ class Assertion < ActiveRecord::Base
+ end
+end
View
4 app/models/q_and_a_machine/question.rb
@@ -1,4 +0,0 @@
-module QAndAMachine
- class Question < ActiveRecord::Base
- end
-end
View
0 .../q_and_a_machine/questions/_form.html.erb → ...q_and_a_machine/assertions/_form.html.erb
File renamed without changes.
View
2 .../q_and_a_machine/questions/index.html.erb → ...q_and_a_machine/assertions/index.html.erb
@@ -1,5 +1,5 @@
<h1>Questions</h1>
-<%= link_to "New Question", new_question_path %>
+<%= link_to "New Assertion", new_question_path %>
<% if @questions.empty? %>
There are currently no questions.
<% else %>
View
0 ...ws/q_and_a_machine/questions/new.html.erb → ...s/q_and_a_machine/assertions/new.html.erb
File renamed without changes.
View
0 ...s/q_and_a_machine/questions/show.html.erb → .../q_and_a_machine/assertions/show.html.erb
File renamed without changes.
View
14 spec/integration/assertions_spec.rb
@@ -0,0 +1,14 @@
+require 'spec_helper'
+
+describe 'assertions' do
+ it 'creating a new one' do
+ visit questions_path
+ click_link 'New Assertion'
+ fill_in 'Assertion', :with => 'What was the first question?'
+ click_button 'Create Assertion'
+
+ #within '#flash_notice' do
+ # page.should have_content( 'Assertion has been created!' )
+ #end
+ end
+end
View
14 spec/integration/questions_spec.rb
@@ -1,14 +0,0 @@
-require 'spec_helper'
-
-describe 'questions' do
- it 'creating a new one' do
- visit questions_path
- click_link 'New Question'
- fill_in 'Question', :with => 'What was the first question?'
- click_button 'Create Question'
-
- #within '#flash_notice' do
- # page.should have_content( 'Question has been created!' )
- #end
- end
-end

0 comments on commit f2e909e

Please sign in to comment.
Something went wrong with that request. Please try again.