Skip to content

Commit

Permalink
Switch from Rails to Sinatra
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Derewecki committed Apr 26, 2012
1 parent ea15b13 commit 4081d86
Show file tree
Hide file tree
Showing 41 changed files with 18 additions and 639 deletions.
48 changes: 3 additions & 45 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,46 +1,4 @@
source 'https://rubygems.org'
source :rubygems

gem 'rails', '3.2.3'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'

gem 'json'
gem 'nokogiri'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer'

gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug'

# Heroku dependencies
group :production do
gem 'pg'
gem 'thin'
end
gem 'sinatra'
gem 'thin'
113 changes: 7 additions & 106 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,123 +1,24 @@
GEM
remote: https://rubygems.org/
remote: http://rubygems.org/
specs:
actionmailer (3.2.3)
actionpack (= 3.2.3)
mail (~> 2.4.4)
actionpack (3.2.3)
activemodel (= 3.2.3)
activesupport (= 3.2.3)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.1)
rack (~> 1.4.0)
rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.1.2)
activemodel (3.2.3)
activesupport (= 3.2.3)
builder (~> 3.0.0)
activerecord (3.2.3)
activemodel (= 3.2.3)
activesupport (= 3.2.3)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.3)
activemodel (= 3.2.3)
activesupport (= 3.2.3)
activesupport (3.2.3)
i18n (~> 0.6)
multi_json (~> 1.0)
arel (3.0.2)
builder (3.0.0)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.3.1)
daemons (1.1.8)
erubis (2.7.0)
eventmachine (0.12.10)
execjs (1.3.0)
multi_json (~> 1.0)
hike (1.2.1)
i18n (0.6.0)
journey (1.0.3)
jquery-rails (2.0.2)
railties (>= 3.2.0, < 5.0)
thor (~> 0.14)
json (1.6.6)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.18)
multi_json (1.3.2)
nokogiri (1.5.2)
pg (0.13.2)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack (>= 0.4)
rack-ssl (1.3.2)
rack-protection (1.2.0)
rack
rack-test (0.6.1)
rack (>= 1.0)
rails (3.2.3)
actionmailer (= 3.2.3)
actionpack (= 3.2.3)
activerecord (= 3.2.3)
activeresource (= 3.2.3)
activesupport (= 3.2.3)
bundler (~> 1.0)
railties (= 3.2.3)
railties (3.2.3)
actionpack (= 3.2.3)
activesupport (= 3.2.3)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
sass (3.1.16)
sass-rails (3.2.5)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
sprockets (2.1.2)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.6)
sinatra (1.3.2)
rack (~> 1.3, >= 1.3.6)
rack-protection (~> 1.2)
tilt (~> 1.3, >= 1.3.3)
thin (1.3.1)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
rack (>= 1.0.0)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.33)
uglifier (1.2.4)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)

PLATFORMS
ruby

DEPENDENCIES
coffee-rails (~> 3.2.1)
jquery-rails
json
nokogiri
pg
rails (= 3.2.3)
sass-rails (~> 3.2.3)
sqlite3
sinatra
thin
uglifier (>= 1.0.3)
6 changes: 0 additions & 6 deletions README.md

This file was deleted.

7 changes: 0 additions & 7 deletions Rakefile

This file was deleted.

Binary file removed app/assets/images/rails.png
Binary file not shown.
3 changes: 0 additions & 3 deletions app/controllers/application_controller.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/helpers/application_helper.rb

This file was deleted.

Empty file removed app/mailers/.gitkeep
Empty file.
Empty file removed app/models/.gitkeep
Empty file.
14 changes: 0 additions & 14 deletions app/views/layouts/application.html.erb

This file was deleted.

6 changes: 2 additions & 4 deletions config.ru
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment', __FILE__)
run Mynextmuni::Application
require './server'
run Sinatra::Application
59 changes: 0 additions & 59 deletions config/application.rb

This file was deleted.

6 changes: 0 additions & 6 deletions config/boot.rb

This file was deleted.

25 changes: 0 additions & 25 deletions config/database.yml

This file was deleted.

5 changes: 0 additions & 5 deletions config/environment.rb

This file was deleted.

37 changes: 0 additions & 37 deletions config/environments/development.rb

This file was deleted.

Loading

0 comments on commit 4081d86

Please sign in to comment.