Skip to content

Removes ActiveRecord from all the things. #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ group :development, :test do
gem 'cucumber-rails', require: false
gem "faker"
gem 'pry'
gem 'sqlite3'
end

group :production do
gem 'pg' # ugh heroku
end

group :test do
Expand Down
4 changes: 0 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ GEM
multi_json (1.0.4)
nokogiri (1.5.0)
orm_adapter (0.4.0)
pg (0.12.2)
plucky (0.4.4)
mongo (~> 1.5)
polyglot (0.3.3)
Expand Down Expand Up @@ -207,7 +206,6 @@ GEM
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.5)
term-ansicolor (1.0.7)
thor (0.14.6)
tilt (1.3.3)
Expand Down Expand Up @@ -249,15 +247,13 @@ DEPENDENCIES
mm-devise (~> 2.0)
mocha
mongo_mapper
pg
pry
rails (= 3.1.11)
rdiscount
rspec-rails
sass-rails (~> 3.1.0)
semantic_menu!
simple_form!
sqlite3
uglifier
unicorn
will_paginate
6 changes: 5 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
require File.expand_path('../boot', __FILE__)

require 'rails/all'
require "action_controller/railtie"
require "action_mailer/railtie"
require "active_resource/railtie"
require "rails/test_unit/railtie"
require "sprockets/railtie"

if defined?(Bundler)
# If you precompile assets before deploying to production, use this line
Expand Down
28 changes: 0 additions & 28 deletions config/database.yml

This file was deleted.

9 changes: 0 additions & 9 deletions config/initializers/mongo_mapper.rb

This file was deleted.

18 changes: 18 additions & 0 deletions config/mongo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<% if ENV['MONGOHQ_URL'] %>
defaults: &defaults
url: <%= ENV['MONGOHQ_URL'] %>
<% else %>
defaults: &defaults
host: 127.0.0.1
port: 27017
database: hackety_hack_com_<%= ENV['RAILS_ENV'] %>
<% end %>

development:
<<: *defaults

test:
<<: *defaults

production:
<<: *defaults
16 changes: 0 additions & 16 deletions db/schema.rb

This file was deleted.

3 changes: 0 additions & 3 deletions lib/tasks/cucumber.rake
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ begin
STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***"
end

# In case we don't have ActiveRecord, append a no-op task that we can depend upon.
task 'db:test:prepare' do
end

task :stats => 'cucumber:statsetup'
rescue LoadError
Expand Down