Skip to content

Commit edaa131

Browse files
authored
Merge pull request #130 from publify/dependabot/bundler/rubocop-tw-1.59.0
Update rubocop requirement from ~> 1.57.1 to ~> 1.59.0
2 parents 4f669a1 + 384ff03 commit edaa131

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

app/controllers/admin/articles_controller.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ def autosave
123123
if @article.save
124124
flash[:success] = I18n.t("admin.articles.autosave.success")
125125
@must_update_calendar =
126-
(params[:article][:published_at] and
127-
params[:article][:published_at].to_time.to_i < Time.zone.now.to_time.to_i and
128-
@article.parent_id.nil?)
126+
params[:article][:published_at] and
127+
params[:article][:published_at].to_time.to_i < Time.zone.now.to_time.to_i and
128+
@article.parent_id.nil?
129129
respond_to do |format|
130130
format.js
131131
end

app/controllers/comments_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def preview
3232

3333
def recaptcha_ok_for?(comment)
3434
use_recaptcha = comment.blog.use_recaptcha
35-
((use_recaptcha && verify_recaptcha(model: comment)) || !use_recaptcha)
35+
(use_recaptcha && verify_recaptcha(model: comment)) || !use_recaptcha
3636
end
3737

3838
def new_comment_defaults

app/helpers/base_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def show_meta_keyword
198198
end
199199

200200
def stop_index_robots?(blog)
201-
stop = (params[:year].present? || params[:page].present?)
201+
stop = params[:year].present? || params[:page].present?
202202
stop = blog.unindex_tags if controller_name == "tags"
203203
stop = blog.unindex_categories if controller_name == "categories"
204204
stop

publify_core.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Gem::Specification.new do |s|
5757
s.add_development_dependency "pry", "~> 0.14.2"
5858
s.add_development_dependency "rails-controller-testing", "~> 1.0.1"
5959
s.add_development_dependency "rspec-rails", "~> 6.0"
60-
s.add_development_dependency "rubocop", "~> 1.57.1"
60+
s.add_development_dependency "rubocop", "~> 1.59.0"
6161
s.add_development_dependency "rubocop-capybara", "~> 2.19.0"
6262
s.add_development_dependency "rubocop-factory_bot", "~> 2.24.0"
6363
s.add_development_dependency "rubocop-performance", "~> 1.19.0"

0 commit comments

Comments
 (0)