Skip to content

Commit

Permalink
Merge pull request #101 from publify/dependabot/bundler/rubocop-tw-1.…
Browse files Browse the repository at this point in the history
…56.1

Update rubocop requirement from ~> 1.52.0 to ~> 1.56.1
  • Loading branch information
mvz authored Aug 26, 2023
2 parents e0f4849 + 9dcd90c commit d59f7cf
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/controllers/articles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def extract_feed_format(from)
case from
when /^.*\.rss$/
request.format = "rss"
from = from.gsub(/\.rss/, "")
from = from.gsub(/\.rss$/, "")
when /^.*\.atom$/
request.format = "atom"
from = from.gsub(/\.atom$/, "")
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/base_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def page_header_includes
v = v.chomp
# trim the same number of spaces from the beginning of each line
# this way plugins can indent nicely without making ugly source output
spaces = /\A[ \t]*/.match(v)[0].gsub(/\t/, " ")
spaces = /\A[ \t]*/.match(v)[0].gsub("\t", " ")
# add 2 spaces to line up with the assumed position of the surrounding tags
v.gsub!(/^#{spaces}/, " ")
end
Expand Down
3 changes: 1 addition & 2 deletions app/models/article.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ def self.requested_article(params)

if params[:title]
req_params[:permalink] = CGI.escape(params[:title])
article = published.find_by(req_params)
return article if article
published.find_by(req_params)
end
end

Expand Down
4 changes: 2 additions & 2 deletions lib/text_filter_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ def self.attributes_parse(string)
attributes = {}

string.gsub(/([^ =]+="[^"]*")/) do |match|
key, value = match.split(/=/, 2)
key, value = match.split("=", 2)
attributes[key] = value.delete('"')
end

string.gsub(/([^ =]+='[^']*')/) do |match|
key, value = match.split(/=/, 2)
key, value = match.split("=", 2)
attributes[key] = value.delete("'")
end

Expand Down
2 changes: 1 addition & 1 deletion publify_core.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "pry", "~> 0.14.2"
s.add_development_dependency "rails-controller-testing", "~> 1.0.1"
s.add_development_dependency "rspec-rails", "~> 6.0"
s.add_development_dependency "rubocop", "~> 1.52.0"
s.add_development_dependency "rubocop", "~> 1.56.1"
s.add_development_dependency "rubocop-factory_bot", "~> 2.23.1"
s.add_development_dependency "rubocop-performance", "~> 1.19.0"
s.add_development_dependency "rubocop-rails", "~> 2.20.2"
Expand Down

0 comments on commit d59f7cf

Please sign in to comment.