Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
fix modular sinatra app detection
Browse files Browse the repository at this point in the history
Change-Id: Idb487de6c99050a41b44221e14407a2c10c2a522
  • Loading branch information
vito committed Sep 7, 2012
1 parent 870b4e1 commit d066e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli/frameworks.rb
Expand Up @@ -86,7 +86,7 @@ def detect(path, available_frameworks)
next if matched_file next if matched_file
File.open(fname, 'r') do |f| File.open(fname, 'r') do |f|
str = f.read # This might want to be limited 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
end end
if matched_file if matched_file
Expand Down

0 comments on commit d066e8b

Please sign in to comment.