Bundle update midi-smtp-server

This commit is contained in:
Patrick Gansterer 2022-02-16 17:18:27 +01:00
parent 19efd68c5f
commit bca29bea70
3 changed files with 3 additions and 3 deletions

View file

@ -295,7 +295,7 @@ GEM
rack-contrib (>= 1.1, < 3)
railties (>= 3.0.0, < 7)
method_source (1.0.0)
midi-smtp-server (2.3.2)
midi-smtp-server (3.0.3)
mime-types (3.3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2021.0212)

View file

@ -59,7 +59,7 @@ namespace :foodsoft do
port = ENV['SMTP_SERVER_PORT'].present? ? ENV['SMTP_SERVER_PORT'].to_i : 2525
host = ENV['SMTP_SERVER_HOST']
rake_say "Started SMTP server for incoming email on port #{port}."
server = FoodsoftMailReceiver.new port, host, 1, logger: Rails.logger
server = FoodsoftMailReceiver.new(ports: port, hosts: host, max_processings: 1, logger: Rails.logger)
server.start
server.join
end

View file

@ -2,7 +2,7 @@ require_relative '../spec_helper'
describe FoodsoftMailReceiver do
before :all do
@server = FoodsoftMailReceiver.new 2525, '127.0.0.1', 4, logger_severity: 5
@server = FoodsoftMailReceiver.new(ports: '2525', hosts: '127.0.0.1', max_processings: 4, logger_severity: 5)
@server.start
end