Allow any whitespace between 'require' and 'sinatra'

in main Sinatra app file

Change-Id: I430575cde67eb30db059b0ece554434ee01d246f
This commit is contained in:
Jennifer Hickey 2012-05-15 15:53:08 -07:00
Родитель a14baf8f6b
Коммит cc89d6bf18
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -24,7 +24,7 @@ app_servers:
executable: false # determined during staging executable: false # determined during staging
default: true default: true
detection: 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/environment.rb": false # and config/environment.rb must not exist - "config/environment.rb": false # and config/environment.rb must not exist
staged_services: staged_services:
- "name": "mysql" - "name": "mysql"

Просмотреть файл

@ -24,7 +24,7 @@ app_servers:
executable: false # determined during staging executable: false # determined during staging
default: true default: true
detection: 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.ru": false # use rack if it detects a config.ru
- "config/environment.rb": false # and config/environment.rb must not exist - "config/environment.rb": false # and config/environment.rb must not exist
staged_services: staged_services:

Просмотреть файл

@ -1,5 +1,5 @@
require 'rubygems' require 'rubygems'
require 'sinatra' require 'sinatra'
get '/' do get '/' do
results = <<-OUT results = <<-OUT