diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index f7dfa0d..e9938be 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -12,4 +12,3 @@ jobs: with: days-before-stale: 90 days-before-close: 30 - diff --git a/lib/middleman-blog/extension.rb b/lib/middleman-blog/extension.rb index 8d95582..0fc6daa 100644 --- a/lib/middleman-blog/extension.rb +++ b/lib/middleman-blog/extension.rb @@ -91,7 +91,7 @@ def initialize(app, options_hash = {}, &block) options.month_link = File.join(options.prefix, options.month_link) options.day_link = File.join(options.prefix, options.day_link) - options.custom_collections.each do |_key, opts| + options.custom_collections.each_value do |opts| opts[:link] = File.join(options.prefix, opts[:link]) end end diff --git a/lib/middleman-blog/helpers.rb b/lib/middleman-blog/helpers.rb index 736af73..2c3602e 100644 --- a/lib/middleman-blog/helpers.rb +++ b/lib/middleman-blog/helpers.rb @@ -69,7 +69,7 @@ def is_blog_article? # @return [BlogArticle] def current_article article = current_resource - article if article&.is_a?(BlogArticle) + article if article.is_a?(BlogArticle) end # Get a path to the given tag page, based on the +taglink+ blog setting. diff --git a/middleman-blog.gemspec b/middleman-blog.gemspec index 3fadd07..e0439ed 100644 --- a/middleman-blog.gemspec +++ b/middleman-blog.gemspec @@ -1,18 +1,18 @@ require "./lib/middleman-blog/version" Gem::Specification.new do | s | - s.name = "middleman-blog" - s.version = Middleman::Blog::VERSION - s.platform = Gem::Platform::RUBY - s.authors = [ "Thomas Reynolds", "Ben Hollis", "Ian Warner" ] - s.email = [ "me@tdreyno.com", "ben@benhollis.net", "ian.warner@drykiss.com" ] - s.homepage = "https://github.com/middleman/middleman-blog" - s.summary = %q{ Blog engine for Middleman } - s.description = %q{ Blog engine for Middleman } - 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.name = "middleman-blog" + s.version = Middleman::Blog::VERSION + s.platform = Gem::Platform::RUBY + s.authors = [ "Thomas Reynolds", "Ben Hollis", "Ian Warner" ] + s.email = [ "me@tdreyno.com", "ben@benhollis.net", "ian.warner@drykiss.com" ] + s.homepage = "https://github.com/middleman/middleman-blog" + s.summary = %q{ Blog engine for Middleman } + s.description = %q{ Blog engine for Middleman } + 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")