Permalink
Browse files

Use Rack::ShowExceptions middleware to display error page.

* This is a small step towards using Rack::MailExceptions which is what I
actually want to do.
* I've had to introduce a small change into vanilla-rb which I will
submit as a pull request.
  • Loading branch information...
1 parent 736c95f commit 6b0df42f92b96e6d3af2d2de5783e29456e643e0 @floehopper floehopper committed Sep 9, 2012
Showing with 25 additions and 13 deletions.
  1. +1 −1 Gemfile
  2. +16 −10 Gemfile.lock
  3. +2 −0 application.rb
  4. +6 −2 config.ru
View
@@ -1,6 +1,6 @@
source :rubygems
-gem "vanilla", '~> 1.17.3'
+gem "vanilla", git: "git@github.com:freerange/vanilla-rb.git", branch: "raise-errors"
gem "kramdown"
group :development do
View
@@ -7,6 +7,21 @@ GIT
open4
thor
+GIT
+ remote: git@github.com:freerange/vanilla-rb.git
+ revision: fff25081cd331b25b0c21449fee135aa5ded608e
+ branch: raise-errors
+ specs:
+ vanilla (1.17.2)
+ BlueCloth (>= 1.0.0)
+ RedCloth (>= 4.1.1)
+ haml (>= 3.1)
+ parslet (>= 1.2.0)
+ rack (>= 0.9.1)
+ rack-test (>= 0.5.7)
+ ratom (>= 0.3.5)
+ soup (>= 1.0.9)
+
GEM
remote: http://rubygems.org/
specs:
@@ -41,15 +56,6 @@ GEM
libxml-ruby (~> 2.3.2)
soup (1.0.9)
thor (0.15.0)
- vanilla (1.17.3)
- BlueCloth (>= 1.0.0)
- RedCloth (>= 4.1.1)
- haml (>= 3.1)
- parslet (>= 1.2.0)
- rack (>= 0.9.1)
- rack-test (>= 0.5.7)
- ratom (>= 0.3.5)
- soup (>= 1.0.9)
PLATFORMS
ruby
@@ -58,4 +64,4 @@ DEPENDENCIES
kramdown
rake
recap!
- vanilla (~> 1.17.3)
+ vanilla!
View
@@ -40,5 +40,7 @@ class Application < Vanilla::App
"soups/system"
]
+ config.raise_errors = true
+
$LOAD_PATH.unshift File.expand_path(File.join(config.root, "soups/dynasnips"))
end
View
@@ -1,6 +1,10 @@
$: << File.dirname(__FILE__)
+
require "application"
-require 'vanilla/static'
-use Vanilla::Static, File.join(File.dirname(__FILE__), 'public')
+require "vanilla/static"
+
+use Vanilla::Static, File.join(File.dirname(__FILE__), "public")
+
+use Rack::ShowExceptions
run Application.new

0 comments on commit 6b0df42

Please sign in to comment.