Skip to content
This repository has been archived by the owner on Oct 13, 2020. It is now read-only.

Commit

Permalink
Added bootstrap and first specs running
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Lozinski committed Jun 15, 2012
1 parent 8e722df commit bbdfc11
Show file tree
Hide file tree
Showing 23 changed files with 7,802 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -1,4 +1,7 @@
*.gem
.DS_store
tags
gems.tags
*.swp
*.rbc
.bundle
Expand Down
2 changes: 2 additions & 0 deletions .rspec
@@ -0,0 +1,2 @@
--color
--format progress
8 changes: 8 additions & 0 deletions Gemfile
Expand Up @@ -6,6 +6,7 @@ gem 'heroku'
gem 'foreman'
gem 'activerecord'
gem 'rake'
gem 'rack'

group :production do
gem 'pg'
Expand All @@ -14,3 +15,10 @@ end
group :development do
gem 'sqlite3'
end

group :test do
gem 'rspec'
gem 'guard-rspec'
gem 'rack-test'
end

30 changes: 30 additions & 0 deletions Gemfile.lock
Expand Up @@ -16,10 +16,17 @@ GEM
arel (3.0.0)
builder (3.0.0)
daemons (1.1.8)
diff-lcs (1.1.3)
eventmachine (0.12.10)
excon (0.14.0)
ffi (1.0.11)
foreman (0.47.0)
thor (>= 0.13.6)
guard (1.1.1)
listen (>= 0.4.2)
thor (>= 0.14.6)
guard-rspec (1.0.1)
guard (>= 1.1)
heroku (2.27.2)
heroku-api (~> 0.2.5)
launchy (>= 0.3.2)
Expand All @@ -31,16 +38,35 @@ GEM
i18n (0.6.0)
launchy (2.1.0)
addressable (~> 2.2.6)
listen (0.4.5)
rb-fchange (~> 0.0.5)
rb-fsevent (~> 0.9.1)
rb-inotify (~> 0.8.8)
mime-types (1.18)
multi_json (1.3.6)
netrc (0.7.4)
pg (0.13.2)
rack (1.4.1)
rack-protection (1.2.0)
rack
rack-test (0.6.1)
rack (>= 1.0)
rake (0.9.2.2)
rb-fchange (0.0.5)
ffi
rb-fsevent (0.9.1)
rb-inotify (0.8.8)
ffi (>= 0.5.0)
rest-client (1.6.7)
mime-types (>= 1.16)
rspec (2.10.0)
rspec-core (~> 2.10.0)
rspec-expectations (~> 2.10.0)
rspec-mocks (~> 2.10.0)
rspec-core (2.10.1)
rspec-expectations (2.10.0)
diff-lcs (~> 1.1.3)
rspec-mocks (2.10.1)
rubyzip (0.9.8)
sinatra (1.3.2)
rack (~> 1.3, >= 1.3.6)
Expand All @@ -61,9 +87,13 @@ PLATFORMS
DEPENDENCIES
activerecord
foreman
guard-rspec
heroku
pg
rack
rack-test
rake
rspec
sinatra
sqlite3
thin
10 changes: 10 additions & 0 deletions Guardfile
@@ -0,0 +1,10 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme

guard 'rspec', :version => 2 do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }

end

2 changes: 1 addition & 1 deletion Procfile
@@ -1 +1 @@
web: bundle exec ruby app.rb -p $PORT -e $RACK_ENV
web: bundle exec rackup -I. -p $PORT
7 changes: 5 additions & 2 deletions app.rb
@@ -1,5 +1,8 @@
require 'config/environment'
require 'sinatra'

get '/' do
"Deployed Successfully<br/><tt>#{settings.environment}</tt>"
class App < Sinatra::Application
get '/' do
erb :welcome
end
end
2 changes: 2 additions & 0 deletions config.ru
@@ -0,0 +1,2 @@
require 'app'
run App
3 changes: 3 additions & 0 deletions config/database.yml
@@ -1,3 +1,6 @@
development:
adapter: sqlite3
database: 'db/development.sqlite'
test:
adapter: sqlite3
database: 'db/test.sqlite'

0 comments on commit bbdfc11

Please sign in to comment.