Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Based on official UniGo Gem https://gitflic.ru/project/unisender/unigo-ruby but using gem faraday", "~> 2.0" to prevent conflicts
For the moment only send_email is supported from the base library
gem 'unigo-sender-simple'
bundle install
configuration example
Unigo::Sender.configure do |config|
config.host = "go1.unisender.ru"
config.api_key = Rails.application.secrets.api_key
end
usage
message = {}
message[:subject] = @subject
message[:body] = { "html": "<h3>#{@title}</h3><div><p>#{@main_text}<br></p></div><div><p>#{@footer}</p></div>", "plaintext": @main_text } unless @template
message[:from_email] = "from@test.ru"
message[:from_name] = @from_name
if @bypass
message[:bypass_unsubscribed] = 1
message[:bypass_global] = 1
message[:bypass_unavailable] = 1
message[:skip_unsubscribe] = 1
end
message[:recipients] = []
message[:template_engine] = "simple"
message[:template_id] = @template if @template
message[:recipients] << {
email: "test@test.com",
substitutions: {
"title" => @title || "",
"main_text" => @main_text || "",
"link" => @link || "",
"link_name" => @link_name || "",
"secondary_text" => @secondary_text || "",
"footer" => @footer || "",
},
}
begin
client = Unigo::Sender::Client.new
client.send_email(message: message)
rescue Faraday::Error => err
raise err.response[:body] # raise Exception, { message: "Send error to #{@email} with subject #{@subject}" }
end
FAQs
Unknown package
We found that unigo-sender-simple demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.