mailjet 1.4.9 → 1.4.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 877e535e8d1af2a65e6e88ad0555feb902b7dbc3
4
- data.tar.gz: 5f656619b7da4f1f4d5aa28259215cf758883df8
3
+ metadata.gz: 1923126091c4c9c2f1ede8c41fead97b8aa72506
4
+ data.tar.gz: c6e775d463707561520dd360d21dee3943561036
5
5
  SHA512:
6
- metadata.gz: 219b17e034c68dc52d5e16bae957be728be8244e80371ffb9d766109073e82d3f95a8299a6082acfae7776089fdcf04563cef587ba5261bd074c3ce1d928fb53
7
- data.tar.gz: 0cc2bfde8c18692a2d214f2ef21176493fa312f0dff1932600b49e0866dfba77b13d62ef2dc9e09863d5ec65fbfba45286bcba3ab5f3dd77231842e796f8618c
6
+ metadata.gz: fa278e56a7fd3b20d53f0a3f54c76fdca25c9f90406ef05bda81f912d7763838c90bf525126e3bbc68b36313c03ec47b40e1fe4349010d25a4f20ca00cfb4937
7
+ data.tar.gz: f99039fd768ff147c9a7f5bf1b9b935090558b6b501596d22fd1fa6f70e73e99656ff063c918067b7bb6d005d4ad5f254e9c8aabfba3eb5fe67bfd113f6d8022
@@ -82,8 +82,7 @@ class Mailjet::APIMailer
82
82
  content[:headers]['Reply-To'] = mail.reply_to.join(', ') if mail.reply_to
83
83
 
84
84
  # Mailjet Send API does not support full from. Splitting the from field into two: name and email address
85
- if Mailjet.config.default_from.present?
86
- # from_address = Mail::AddressList.new(Mailjet.config.default_from).addresses[0]
85
+ if mail[:from].nil? && Mailjet.config.default_from.present?
87
86
  mail[:from] = Mailjet.config.default_from
88
87
  end
89
88
 
@@ -4,7 +4,7 @@ module Mailjet
4
4
  class Newsletter_detailcontent
5
5
  include Mailjet::Resource
6
6
  self.action = "detailcontent"
7
- self.resource_path = "v3/REST/template/id/#{self.action}"
7
+ self.resource_path = "v3/REST/newsletter/id/#{self.action}"
8
8
  self.public_operations = [:get, :post]
9
9
  self.filters = []
10
10
  self.resourceprop = [:text_part, :html_part, :headers, :mjml_content]
@@ -1,3 +1,3 @@
1
1
  module Mailjet
2
- VERSION = "1.4.9"
2
+ VERSION = "1.4.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailjet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.9
4
+ version: 1.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Nappy
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-08-02 00:00:00.000000000 Z
14
+ date: 2016-09-01 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
@@ -384,7 +384,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
384
384
  version: '0'
385
385
  requirements: []
386
386
  rubyforge_project:
387
- rubygems_version: 2.4.5.1
387
+ rubygems_version: 2.4.8
388
388
  signing_key:
389
389
  specification_version: 4
390
390
  summary: Mailjet a powerful all-in-one email service provider clients can use to get