From 5a4d7352f14e05ca7af2510544bf01db651b7e55 Mon Sep 17 00:00:00 2001 From: Mike Boone Date: Sun, 4 Oct 2015 20:59:53 -0400 Subject: [PATCH] Fixed typos. --- middleman-core/lib/middleman-core/cli.rb | 2 +- middleman-core/lib/middleman-core/configuration.rb | 2 +- .../lib/middleman-core/core_extensions/rendering.rb | 4 ++-- .../lib/middleman-core/core_extensions/show_exceptions.rb | 2 +- middleman-core/lib/middleman-core/meta_pages/sitemap_tree.rb | 2 +- middleman-core/lib/middleman-core/preview_server.rb | 2 +- .../lib/middleman-core/preview_server/server_information.rb | 2 +- middleman-core/lib/middleman-core/renderers/liquid.rb | 2 +- .../lib/middleman-core/sitemap/extensions/content_type.rb | 2 +- middleman-core/lib/middleman-core/sitemap/store.rb | 4 ++-- middleman-core/lib/middleman-core/util.rb | 2 +- middleman-core/lib/middleman-more/extensions/cache_buster.rb | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/middleman-core/lib/middleman-core/cli.rb b/middleman-core/lib/middleman-core/cli.rb index 5090351f..8cf5976f 100644 --- a/middleman-core/lib/middleman-core/cli.rb +++ b/middleman-core/lib/middleman-core/cli.rb @@ -5,7 +5,7 @@ require 'thor/group' # CLI Module module Middleman module Cli - # The base task from which everything else etends + # The base task from which everything else extends class Base < Thor class << self def start(*args) diff --git a/middleman-core/lib/middleman-core/configuration.rb b/middleman-core/lib/middleman-core/configuration.rb index e1cff713..a95c1933 100644 --- a/middleman-core/lib/middleman-core/configuration.rb +++ b/middleman-core/lib/middleman-core/configuration.rb @@ -48,7 +48,7 @@ module Middleman self.class.config end - # Backwards compatibilty with old Sinatra template interface + # Backwards compatibility with old Sinatra template interface # # @deprecated Prefer accessing settings through "config". # diff --git a/middleman-core/lib/middleman-core/core_extensions/rendering.rb b/middleman-core/lib/middleman-core/core_extensions/rendering.rb index c1aab213..aa3e4430 100644 --- a/middleman-core/lib/middleman-core/core_extensions/rendering.rb +++ b/middleman-core/lib/middleman-core/core_extensions/rendering.rb @@ -214,7 +214,7 @@ module Middleman locals = options[:locals] if ::Tilt[found_partial] - # Render the partial if found, otherwide throw exception + # Render the partial if found, otherwise throw exception _render_with_all_renderers(found_partial, locals, self, options, &block) else read_template_file(found_partial) @@ -265,7 +265,7 @@ module Middleman # Try to work around: https://github.com/middleman/middleman/issues/501 locs = locs.dup - # Detect the remdering engine from the extension + # Detect the rendering engine from the extension extension = File.extname(path) engine = extension[1..-1].to_sym diff --git a/middleman-core/lib/middleman-core/core_extensions/show_exceptions.rb b/middleman-core/lib/middleman-core/core_extensions/show_exceptions.rb index 5eba1c0a..380b76b9 100644 --- a/middleman-core/lib/middleman-core/core_extensions/show_exceptions.rb +++ b/middleman-core/lib/middleman-core/core_extensions/show_exceptions.rb @@ -15,7 +15,7 @@ module Middleman # When in dev app.configure :development do - # Include middlemare + # Include middleware use ::Rack::ShowExceptions if config[:show_exceptions] end end diff --git a/middleman-core/lib/middleman-core/meta_pages/sitemap_tree.rb b/middleman-core/lib/middleman-core/meta_pages/sitemap_tree.rb index 4ba89350..66c9b4ca 100644 --- a/middleman-core/lib/middleman-core/meta_pages/sitemap_tree.rb +++ b/middleman-core/lib/middleman-core/meta_pages/sitemap_tree.rb @@ -59,7 +59,7 @@ module Middleman if path_parts.size == 1 sitemap_class = SitemapResource - # Allow special sitemap resources to use custom metadata view calsses + # Allow special sitemap resources to use custom metadata view classes sitemap_class = resource.meta_pages_class if resource.respond_to? :meta_pages_class @children[first_part] = sitemap_class.new(resource) diff --git a/middleman-core/lib/middleman-core/preview_server.rb b/middleman-core/lib/middleman-core/preview_server.rb index 9076b2fa..78a2ac7a 100644 --- a/middleman-core/lib/middleman-core/preview_server.rb +++ b/middleman-core/lib/middleman-core/preview_server.rb @@ -199,7 +199,7 @@ module Middleman @listener.start end - # Trap some interupt signals and shut down smoothly + # Trap some interrupt signals and shut down smoothly # @return [void] def register_signal_handlers %w(INT HUP TERM QUIT).each do |sig| diff --git a/middleman-core/lib/middleman-core/preview_server/server_information.rb b/middleman-core/lib/middleman-core/preview_server/server_information.rb index 937efdd5..186d3423 100644 --- a/middleman-core/lib/middleman-core/preview_server/server_information.rb +++ b/middleman-core/lib/middleman-core/preview_server/server_information.rb @@ -70,7 +70,7 @@ module Middleman config[:server_name] = server_name end - # Make information of internal server class avaible to make debugging + # Make information of internal server class available to make debugging # easier. This can be used to log the class which was used to determine # the preview server settings # diff --git a/middleman-core/lib/middleman-core/renderers/liquid.rb b/middleman-core/lib/middleman-core/renderers/liquid.rb index 376a8709..faffd370 100644 --- a/middleman-core/lib/middleman-core/renderers/liquid.rb +++ b/middleman-core/lib/middleman-core/renderers/liquid.rb @@ -7,7 +7,7 @@ module Middleman module Liquid # Setup extension class << self - # Once registerd + # Once registered def registered(app) app.before_configuration do template_extensions liquid: :html diff --git a/middleman-core/lib/middleman-core/sitemap/extensions/content_type.rb b/middleman-core/lib/middleman-core/sitemap/extensions/content_type.rb index 619ec225..8f6498dd 100644 --- a/middleman-core/lib/middleman-core/sitemap/extensions/content_type.rb +++ b/middleman-core/lib/middleman-core/sitemap/extensions/content_type.rb @@ -5,7 +5,7 @@ module Middleman::Sitemap::Extensions module ContentType # The preferred MIME content type for this resource def content_type - # Allow explcitly setting content type from page/proxy options + # Allow explicitly setting content type from page/proxy options meta_type = metadata[:options][:content_type] return meta_type if meta_type diff --git a/middleman-core/lib/middleman-core/sitemap/store.rb b/middleman-core/lib/middleman-core/sitemap/store.rb index aa46497b..14625743 100644 --- a/middleman-core/lib/middleman-core/sitemap/store.rb +++ b/middleman-core/lib/middleman-core/sitemap/store.rb @@ -54,7 +54,7 @@ module Middleman rebuild_resource_list!(:registered_new) end - # Rebuild the list of resources from scratch, using registed manipulators + # Rebuild the list of resources from scratch, using registered manipulators # rubocop:disable UnusedMethodArgument # @return [void] def rebuild_resource_list!(reason=nil) @@ -99,7 +99,7 @@ module Middleman end end - # Invalidate our cached view of resource that are not ingnored. If your extension + # Invalidate our cached view of resource that are not ignored. If your extension # adds ways to ignore files, you should call this to make sure #resources works right. def invalidate_resources_not_ignored_cache! @resources_not_ignored = nil diff --git a/middleman-core/lib/middleman-core/util.rb b/middleman-core/lib/middleman-core/util.rb index d559a442..7e695abc 100644 --- a/middleman-core/lib/middleman-core/util.rb +++ b/middleman-core/lib/middleman-core/util.rb @@ -112,7 +112,7 @@ module Middleman end end - # Get a recusive list of files inside a path. + # Get a recursive list of files inside a path. # Works with symlinks. # # @param path Some path string or Pathname diff --git a/middleman-core/lib/middleman-more/extensions/cache_buster.rb b/middleman-core/lib/middleman-more/extensions/cache_buster.rb index 1028cb84..24b6e240 100644 --- a/middleman-core/lib/middleman-more/extensions/cache_buster.rb +++ b/middleman-core/lib/middleman-more/extensions/cache_buster.rb @@ -43,7 +43,7 @@ class Middleman::Extensions::CacheBuster < ::Middleman::Extension else # It's a template, possible with partials. We can't really # know when it's updated, so generate fresh cache buster every - # time during developement + # time during development http_path << '?' + Time.now.strftime('%s') end end