sendwithus_ruby_action_mailer 0.2.5 → 0.3.0

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: 70f36f5786a9b4f80a58d773df95803f2a64db99
4
- data.tar.gz: 2e7e58f114d30ac7abe99bf2bdc72a8a16b38f27
3
+ metadata.gz: 21973412760d0201ba0253d88c3a976a29c52c7f
4
+ data.tar.gz: d0eb2777b4623eb94fe6e4e453a53688ac269e06
5
5
  SHA512:
6
- metadata.gz: 053ca34f540bbb2285d26b99467a019b5445760ce27816b39f0d4ce39fedd951d78965b48770bd9017ae858267ee6b50a75ba8751fef2aba96fbec75666ce245
7
- data.tar.gz: 50d3e5449252c5f2e7da00e41622c8d9ccf8d7a0068794f23a41d86167cffc5d81fa4eba251d4270ec0b0c077c2f30147f0c8236ebad6159cb54b0dfbd220430
6
+ metadata.gz: 33616b7350e0bcf5eb9fd60654688b0da22754180e9370f6e7f2e6e02d3f96eba242cbd261c6e089c5eea504bc424118cb4c6789abaf93dab3e99b6ad1a19947
7
+ data.tar.gz: cf4f93ca086ffcf134b171ef8f2117e53ee93fef95184a9f8b216c8c841084159958f1278a0245a6cd431183455ad857ba0254e618fb264e75f4f62975226c91
data/README.md CHANGED
@@ -64,7 +64,8 @@ class Notifier < SendWithUsMailer::Base
64
64
  locale: 'en-US',
65
65
  files: ["/path/to/file"],
66
66
  headers: { 'header-name' => 'header-value' },
67
- tags: ['some-tag']
67
+ tags: ['some-tag'],
68
+ esp_account: 'esp_45678asjdlfj'
68
69
  )
69
70
  end
70
71
  end
@@ -99,7 +100,7 @@ SendWithUsMailer allows you to specify default values inside the class definitio
99
100
 
100
101
  `````Ruby
101
102
  class Notifier < SendWithUsMailer::Base
102
- default from: 'system@example.com'
103
+ default from_address: 'system@example.com'
103
104
  end
104
105
  `````
105
106
 
@@ -15,6 +15,7 @@ module SendWithUsMailer
15
15
  @files = []
16
16
  @headers = {}
17
17
  @tags = []
18
+ @esp_account = ""
18
19
  end
19
20
 
20
21
  def assign(key, value) #:nodoc:
@@ -50,6 +51,8 @@ module SendWithUsMailer
50
51
  @headers.merge!(value)
51
52
  when :tags
52
53
  @tags.concat(value)
54
+ when :esp_account
55
+ @esp_account = value
53
56
  end
54
57
  end
55
58
  end
@@ -68,7 +71,7 @@ module SendWithUsMailer
68
71
  from: @from,
69
72
  cc: @cc,
70
73
  bcc: @bcc,
71
- esp_account: "",
74
+ esp_account: @esp_account,
72
75
  version_name: @version_name,
73
76
  locale: @locale,
74
77
  files: @files,
@@ -1,3 +1,3 @@
1
1
  module SendWithUsMailer
2
- VERSION = "0.2.5"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendwithus_ruby_action_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Rempel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-22 00:00:00.000000000 Z
11
+ date: 2015-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: send_with_us