aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-10-17 12:42:54 -0400
committerGeorge Claghorn <george@basecamp.com>2018-10-17 12:42:54 -0400
commit2b09cbbe4407ce84b23450b27b2c3b6f35e8ef1b (patch)
tree3ea01a4223d35a4930a36944d65b506f218757d1 /lib
parent7903e3ada80d7938b1b78b06d0f678e95367a56b (diff)
downloadrails-2b09cbbe4407ce84b23450b27b2c3b6f35e8ef1b.tar.gz
rails-2b09cbbe4407ce84b23450b27b2c3b6f35e8ef1b.tar.bz2
rails-2b09cbbe4407ce84b23450b27b2c3b6f35e8ef1b.zip
Shush various interpreter warnings
Diffstat (limited to 'lib')
-rw-r--r--lib/action_mailbox/base.rb2
-rw-r--r--lib/action_mailbox/test_helper.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/action_mailbox/base.rb b/lib/action_mailbox/base.rb
index 103bbc544c..01ddc9c59b 100644
--- a/lib/action_mailbox/base.rb
+++ b/lib/action_mailbox/base.rb
@@ -49,7 +49,7 @@ class ActionMailbox::Base
inbound_email.processing!
yield
inbound_email.delivered! unless inbound_email.bounced?
- rescue => exception
+ rescue
inbound_email.failed!
raise
end
diff --git a/lib/action_mailbox/test_helper.rb b/lib/action_mailbox/test_helper.rb
index b1d7af33f9..a74ea8ef57 100644
--- a/lib/action_mailbox/test_helper.rb
+++ b/lib/action_mailbox/test_helper.rb
@@ -9,7 +9,7 @@ module ActionMailbox
end
def create_inbound_email_from_mail(status: :processing, **mail_options)
- raw_email = Tempfile.new.tap { |raw_email| raw_email.write Mail.new(mail_options).to_s }
+ raw_email = Tempfile.new.tap { |io| io.write Mail.new(mail_options).to_s }
create_inbound_email(raw_email, status: status)
end