Permalink
Browse files

Allow any whitespace between 'require' and 'sinatra'

in main Sinatra app file

Change-Id: I430575cde67eb30db059b0ece554434ee01d246f
  • Loading branch information...
1 parent 251cb52 commit 5225b85d6abdaee79b932222d99ef97115a08ff3 Jennifer Hickey committed May 15, 2012
@@ -24,7 +24,7 @@ app_servers:
executable: false # determined during staging
default: true
detection:
- - "*.rb": "require 'sinatra'|require \"sinatra\"" # .rb files in the root dir containing a require?
+ - "*.rb": "require\\s+'sinatra'|require\\s+\"sinatra\"" # .rb files in the root dir containing a require?
- "config.ru": false # use rack if it detects a config.ru
- "config/environment.rb": false # and config/environment.rb must not exist
staged_services:
@@ -1,5 +1,5 @@
require 'rubygems'
-require 'sinatra'
+require 'sinatra'
get '/' do
results = <<-OUT

0 comments on commit 5225b85

Please sign in to comment.