Skip to content

Commit

Permalink
Rubocop pass 🤖 and small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
markets committed Apr 10, 2024
1 parent c75d91f commit b646302
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
1 change: 0 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ jobs:
with:
days-before-stale: 90
days-before-close: 30

2 changes: 1 addition & 1 deletion lib/middleman-blog/extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/middleman-blog/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
24 changes: 12 additions & 12 deletions middleman-blog.gemspec
Original file line number Diff line number Diff line change
@@ -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 = [ "[email protected]", "[email protected]", "[email protected]" ]
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 = [ "[email protected]", "[email protected]", "[email protected]" ]
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")
Expand Down

0 comments on commit b646302

Please sign in to comment.