lib/cli/frameworks.rb in vmc-IronFoundry-0.3.18 vs lib/cli/frameworks.rb in vmc-IronFoundry-0.3.21

- old
+ new

@@ -85,10 +85,10 @@ matched_file = nil Dir.glob('*.rb').each do |fname| 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['"]/)) + matched_file = fname if (str && str.match(/^\s*require[\s\(]*['"]sinatra(\/base)?['"]/)) end end if matched_file # Sinatra apps f = Framework.lookup('Sinatra')