Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Jul 24, 2010
1 parent 329a0b9 commit 1ed22ba
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 68 deletions.
6 changes: 3 additions & 3 deletions lib/cheat/responder.rb
@@ -1,6 +1,6 @@
# class Something < R 'route'
# include Responder
#
#
# def get
# ... important code ...
#
Expand All @@ -24,7 +24,7 @@ class Response
attr_reader :body, :content_type
def initialize(accept) @accept = accept end

TYPES = {
TYPES = {
:yaml => %w[application/yaml text/yaml],
:text => %w[text/plain],
:html => %w[text/html */* application/html],
Expand All @@ -33,7 +33,7 @@ def initialize(accept) @accept = accept end

def method_missing(method, *args)
if TYPES[method] && @accept =~ Regexp.union(*TYPES[method])
@content_type = TYPES[method].first
@content_type = TYPES[method].first
@body = yield if block_given?
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/cheat/rv_harness.rb
Expand Up @@ -15,7 +15,7 @@
ADDR = ARGV[1]

# this is your camping app
require 'site'
require 'site'
app = Cheat

# custom database configuration
Expand All @@ -29,7 +29,7 @@
listener :port => PORT do
uri '/', :handler => Mongrel::Camping::CampingHandler.new(app)
# use the mongrel static server in production instead of the camping controller
uri '/static/', :handler => Mongrel::DirHandler.new("static/")
uri '/static/', :handler => Mongrel::DirHandler.new("static/")
uri '/favicon.ico', :handler => Mongrel::Error404Handler.new('')
setup_signals
run
Expand Down

0 comments on commit 1ed22ba

Please sign in to comment.