From 4724a6da8c9a860809f02f10174b0dd0f487995a Mon Sep 17 00:00:00 2001 From: Marc Anguera Insa Date: Thu, 7 Nov 2024 13:26:45 +0100 Subject: [PATCH] remove unnecessary require_paths in gemspec + remove useless empty comments --- lib/middleman-blog/blog_article.rb | 3 --- lib/middleman-blog/blog_data.rb | 6 ------ middleman-blog.gemspec | 1 - 3 files changed, 10 deletions(-) diff --git a/lib/middleman-blog/blog_article.rb b/lib/middleman-blog/blog_article.rb index 3cda121..f9c3cf4 100644 --- a/lib/middleman-blog/blog_article.rb +++ b/lib/middleman-blog/blog_article.rb @@ -16,9 +16,6 @@ module Blog module BlogArticle extend Gem::Deprecate - ## - # - ## def self.extended(base) base.class.send(:attr_accessor, :blog_controller) end diff --git a/lib/middleman-blog/blog_data.rb b/lib/middleman-blog/blog_data.rb index 7174dfb..0979816 100644 --- a/lib/middleman-blog/blog_data.rb +++ b/lib/middleman-blog/blog_data.rb @@ -218,9 +218,6 @@ def permalink_options(resource, extra = {}) .merge(extra) end - ## - # - ## def convert_to_article(resource) return resource if resource.is_a?(BlogArticle) @@ -234,9 +231,6 @@ def convert_to_article(resource) resource end - ## - # - ## def template_path(template, article, extras = {}) apply_uri_template template, permalink_options(article, extras) end diff --git a/middleman-blog.gemspec b/middleman-blog.gemspec index e0439ed..123b2d2 100644 --- a/middleman-blog.gemspec +++ b/middleman-blog.gemspec @@ -12,7 +12,6 @@ Gem::Specification.new do | s | s.license = "MIT" s.files = `git ls-files -z`.split( "\0" ) s.test_files = `git ls-files -z -- {fixtures,features}/*`.split( "\0" ) - s.require_paths = [ "lib" ] s.add_dependency("middleman-core", ">= 4.0.0") s.add_dependency("tzinfo", ">= 0.3.0") s.add_dependency("addressable", "~> 2.3")