Bundle update midi-smtp-server
This commit is contained in:
parent
19efd68c5f
commit
bca29bea70
3 changed files with 3 additions and 3 deletions
|
@ -295,7 +295,7 @@ GEM
|
||||||
rack-contrib (>= 1.1, < 3)
|
rack-contrib (>= 1.1, < 3)
|
||||||
railties (>= 3.0.0, < 7)
|
railties (>= 3.0.0, < 7)
|
||||||
method_source (1.0.0)
|
method_source (1.0.0)
|
||||||
midi-smtp-server (2.3.2)
|
midi-smtp-server (3.0.3)
|
||||||
mime-types (3.3.1)
|
mime-types (3.3.1)
|
||||||
mime-types-data (~> 3.2015)
|
mime-types-data (~> 3.2015)
|
||||||
mime-types-data (3.2021.0212)
|
mime-types-data (3.2021.0212)
|
||||||
|
|
|
@ -59,7 +59,7 @@ namespace :foodsoft do
|
||||||
port = ENV['SMTP_SERVER_PORT'].present? ? ENV['SMTP_SERVER_PORT'].to_i : 2525
|
port = ENV['SMTP_SERVER_PORT'].present? ? ENV['SMTP_SERVER_PORT'].to_i : 2525
|
||||||
host = ENV['SMTP_SERVER_HOST']
|
host = ENV['SMTP_SERVER_HOST']
|
||||||
rake_say "Started SMTP server for incoming email on port #{port}."
|
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.start
|
||||||
server.join
|
server.join
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,7 +2,7 @@ require_relative '../spec_helper'
|
||||||
|
|
||||||
describe FoodsoftMailReceiver do
|
describe FoodsoftMailReceiver do
|
||||||
before :all 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
|
@server.start
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue