fastlane/lib/fastlane/actions/mailgun.rb in fastlane-2.74.1 vs fastlane/lib/fastlane/actions/mailgun.rb in fastlane-2.75.0.beta.20180109010003

- old
+ new

@@ -100,14 +100,14 @@ "thiagolioy" end def self.handle_params_transition(options) options[:postmaster] = options[:mailgun_sandbox_postmaster] if options[:mailgun_sandbox_postmaster] - puts "\nUsing :mailgun_sandbox_postmaster is deprecated, please change to :postmaster".yellow if options[:mailgun_sandbox_postmaster] + puts("\nUsing :mailgun_sandbox_postmaster is deprecated, please change to :postmaster".yellow) if options[:mailgun_sandbox_postmaster] options[:apikey] = options[:mailgun_apikey] if options[:mailgun_apikey] - puts "\nUsing :mailgun_apikey is deprecated, please change to :apikey".yellow if options[:mailgun_apikey] + puts("\nUsing :mailgun_apikey is deprecated, please change to :apikey".yellow) if options[:mailgun_apikey] end def self.mailgunit(options) sandbox_domain = options[:postmaster].split("@").last params = { @@ -124,10 +124,10 @@ attachment_filenames = [*options[:attachment]] attachments = attachment_filenames.map { |filename| File.new(filename, 'rb') } params.store(:attachment, attachments) end - RestClient.post "https://api:#{options[:apikey]}@api.mailgun.net/v3/#{sandbox_domain}/messages", params + RestClient.post("https://api:#{options[:apikey]}@api.mailgun.net/v3/#{sandbox_domain}/messages", params) mail_template(options) end def self.mail_template(options) hash = {