forked from sinefunc/proton
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
6 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ doc/ | |
.yardoc | ||
*.gem | ||
/Gemfile.lock | ||
/manual/Gemfile.lock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
source :rubygems | ||
gem 'proscribe', '~> 0.0.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,8 @@ | ||
# This file exists to make this project Rack-compatible. | ||
# You may delete it if you're not concerned about this. | ||
|
||
require 'rubygems' unless defined?(::Gem) | ||
|
||
# Use Bundler if possible. | ||
begin | ||
require 'bundler' | ||
Bundler.setup | ||
rescue LoadError | ||
gem 'proton', '0.3.2' | ||
end | ||
|
||
# Optional: use the 'rack-cache' gem for cacheing. | ||
if ENV['RACK_ENV'] == 'production' | ||
begin | ||
require 'rack/cache' | ||
use Rack::Cache | ||
rescue LoadError | ||
end | ||
rescue LoadError => e | ||
end | ||
|
||
# Load Proton. | ||
require 'proton/server' | ||
Proton::Project.new File.dirname(__FILE__) | ||
run Proton::Server | ||
require 'proscribe' | ||
run ProScribe.rack_app |