Permalink
Browse files

fix modular sinatra app detection

Change-Id: Idb487de6c99050a41b44221e14407a2c10c2a522
  • Loading branch information...
1 parent 870b4e1 commit d066e8b2a1ae495a6d688ead63020526bface2d6 @vito vito committed Sep 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cli/frameworks.rb
View
@@ -86,7 +86,7 @@ def detect(path, available_frameworks)
next if matched_file
File.open(fname, 'r') do |f|
str = f.read # This might want to be limited
- matched_file = fname if (str && str.match(/^\s*require[\s\(]*['"]sinatra['"(\/base['"])]/))
+ matched_file = fname if (str && str.match(/^\s*require[\s\(]*['"]sinatra(\/base)?['"]/))
end
end
if matched_file

0 comments on commit d066e8b

Please sign in to comment.