Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

CI fixes

Yegor Tovstikbb4a7bdfb4b5
diff --git a/app/models/watcher_added_notification_mailer.rb b/app/models/watcher_added_notification_mailer.rb
index 43f97fcf9a4..84be563c410 100644
--- a/app/models/watcher_added_notification_mailer.rb
+++ b/app/models/watcher_added_notification_mailer.rb
@@ -1,4 +1,5 @@
#-- encoding: UTF-8
+
#-- copyright
# OpenProject is a project management system.
# Copyright (C) 2012-2018 the OpenProject Foundation (OPF)
@@ -32,8 +33,8 @@ class WatcherAddedNotificationMailer < WatcherNotificationMailer
private
def perform_notification_job(watcher, watcher_changer)
- DeliverWatcherAddedNotificationJob.
- perform_later(watcher.id, watcher.user.id, watcher_changer.id)
+ DeliverWatcherAddedNotificationJob
+ .perform_later(watcher.id, watcher.user.id, watcher_changer.id)
end
end
end
diff --git a/app/models/watcher_notification_mailer.rb b/app/models/watcher_notification_mailer.rb
index a45a9da6f54..bc99e6927b2 100644
--- a/app/models/watcher_notification_mailer.rb
+++ b/app/models/watcher_notification_mailer.rb
@@ -1,4 +1,5 @@
#-- encoding: UTF-8
+
#-- copyright
# OpenProject is a project management system.
# Copyright (C) 2012-2018 the OpenProject Foundation (OPF)
@@ -41,7 +42,7 @@ class WatcherNotificationMailer
private
- def perform_notification_job(watcher, watcher_changer)
+ def perform_notification_job(_watcher, _watcher_changer)
raise NotImplementedError, 'Subclass has to implement #notification_job'
end
diff --git a/app/models/watcher_removed_notification_mailer.rb b/app/models/watcher_removed_notification_mailer.rb
index b6861a4437c..af1fcd11b14 100644
--- a/app/models/watcher_removed_notification_mailer.rb
+++ b/app/models/watcher_removed_notification_mailer.rb
@@ -1,4 +1,5 @@
#-- encoding: UTF-8
+
#-- copyright
# OpenProject is a project management system.
# Copyright (C) 2012-2018 the OpenProject Foundation (OPF)
@@ -33,8 +34,8 @@ class WatcherRemovedNotificationMailer < WatcherNotificationMailer
def perform_notification_job(watcher, watcher_changer)
# As watcher is already destroyed we need to pass a hash
- DeliverWatcherRemovedNotificationJob.
- perform_later(watcher.attributes, watcher.user.id, watcher_changer.id)
+ DeliverWatcherRemovedNotificationJob
+ .perform_later(watcher.attributes, watcher.user.id, watcher_changer.id)
end
end
end
diff --git a/app/workers/deliver_watcher_added_notification_job.rb b/app/workers/deliver_watcher_added_notification_job.rb
index e7534a63400..0c4c7a57a58 100644
--- a/app/workers/deliver_watcher_added_notification_job.rb
+++ b/app/workers/deliver_watcher_added_notification_job.rb
@@ -1,4 +1,5 @@
#-- encoding: UTF-8
+
#-- copyright
# OpenProject is a project management system.
# Copyright (C) 2012-2018 the OpenProject Foundation (OPF)
diff --git a/app/workers/deliver_watcher_notification_job.rb b/app/workers/deliver_watcher_notification_job.rb
index 5b62672903e..61aef640763 100644
--- a/app/workers/deliver_watcher_notification_job.rb
+++ b/app/workers/deliver_watcher_notification_job.rb
@@ -1,4 +1,5 @@
#-- encoding: UTF-8
+
#-- copyright
# OpenProject is a project management system.
# Copyright (C) 2012-2018 the OpenProject Foundation (OPF)
@@ -34,7 +35,7 @@ class DeliverWatcherNotificationJob < DeliverNotificationJob
super(recipient_id, watcher_changer_id)
end
- def render_mail(recipient:, sender:)
+ def render_mail(recipient:, sender:) # rubocop:disable UnusedMethodArgument
raise NotImplementedError, 'Subclass has to implement #render_mail'
end
diff --git a/app/workers/deliver_watcher_removed_notification_job.rb b/app/workers/deliver_watcher_removed_notification_job.rb
index 37b61b2b36e..a12f1d4ee44 100644
--- a/app/workers/deliver_watcher_removed_notification_job.rb
+++ b/app/workers/deliver_watcher_removed_notification_job.rb
@@ -1,4 +1,5 @@
#-- encoding: UTF-8
+
#-- copyright
# OpenProject is a project management system.
# Copyright (C) 2012-2018 the OpenProject Foundation (OPF)