lib/sinatra/main.rb in sinatra-0.9.4 vs lib/sinatra/main.rb in sinatra-0.9.5

- old
+ new

@@ -1,9 +1,9 @@ require 'sinatra/base' module Sinatra - class Default < Base + class Application < Base # we assume that the first file that requires 'sinatra' is the # app_file. all other path related options are calculated based # on this path by default. set :app_file, caller_files.first || $0 @@ -23,9 +23,10 @@ end include Sinatra::Delegator def mime(ext, type) + warn 'mime is deprecated; use mime_type instead.' ext = ".#{ext}" unless ext.to_s[0] == ?. Rack::Mime::MIME_TYPES[ext.to_s] = type end at_exit do