From 17ac23c327896ea82884e63bb88a3c2767116f9e Mon Sep 17 00:00:00 2001 From: Gabriel Andretta Date: Sat, 25 Jun 2011 20:41:26 -0300 Subject: [PATCH] not really sure beign is a word --- lib/sinatra/reloader.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/sinatra/reloader.rb b/lib/sinatra/reloader.rb index a0d4285..f777460 100644 --- a/lib/sinatra/reloader.rb +++ b/lib/sinatra/reloader.rb @@ -190,7 +190,7 @@ def inline_templates=(file=nil) # Does everything Sinatra::Base#use does, but it also tells the # +Watcher::List+ for the Sinatra application to watch the - # middleware beign used. + # middleware being used. def use(middleware, *args, &block) path = caller_files[1] || File.expand_path($0) watch_element(path, :middleware, [middleware, args, block]) @@ -199,7 +199,7 @@ def use(middleware, *args, &block) # Does everything Sinatra::Base#add_filter does, but it also tells # the +Watcher::List+ for the Sinatra application to watch the - # defined filter beign used. + # defined filter being used. def add_filter(type, path = nil, options = {}, &block) source_location = block.respond_to?(:source_location) ? block.source_location.first : caller_files[1] @@ -221,7 +221,7 @@ def error(*codes, &block) end # Does everything Sinatra::Base#register does, but it also lets - # the reloader know that an extension is beign registered, because + # the reloader know that an extension is being registered, because # the elements defined in its +registered+ method need a special # treatment. def register(*extensions, &block) @@ -280,7 +280,7 @@ def dont_reload(glob) attr_reader :register_path - # Indicates an extesion is beign registered. + # Indicates an extesion is being registered. def start_registering_extension @register_path = caller_files[2] end @@ -299,7 +299,7 @@ def registering_extension? # tells the Watcher::List for the current application to watch it # in the file located at +path+. # - # If an extension is beign registered, it also tells the list to + # If an extension is being registered, it also tells the list to # watch it in the file where the extesion has been registered. # This prevents the duplication of the elements added by the # extension in its +registered+ method with every reload.