sendwithus_ruby_action_mailer 0.2.3 → 0.2.4

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: 35c5adf9a2bbeb0c1fc6854cefc705b06f80057f
4
- data.tar.gz: 02fbf0496ca2e4da5f69bb08b89ead84d6c607c3
3
+ metadata.gz: 542e23c4dfef597322342a3c9978db8b15587a60
4
+ data.tar.gz: e91f77330ae0414b27b1e8fbf8dd381249d2846b
5
5
  SHA512:
6
- metadata.gz: 734e76a3e462c8187e7365164b74f0ce4cc544fe98928df79fe458de45e4aeae9397db19dfcec1cef5965d4f31933eaf6251af510789ea28f405dca981528892
7
- data.tar.gz: 9d40404a2fbbbc839a0bf2481adab4054ccb06f9cf4d6e401b6ad44cef333942b511f82f7acca9fe56175177ecff868330d15dc5987ebcf7c0e141bda60f92ef
6
+ metadata.gz: d1cc7da792781c4291e14ef88d8d23c0fec83b4a78d00f3e376d271834a7a344d6ebae2e9e27aac2ff27e52b2656d4ee3f4453d2fc2b363ae584ac0299286de4
7
+ data.tar.gz: c5589c2abce60712c3184cf54296148ed071f34601ba049db4506edac9a5ea15210f647dc1ad777aaade80a6e7410cb1cc458b623d5c423ce3080fcde7fb5871
data/README.md CHANGED
@@ -63,7 +63,8 @@ class Notifier < SendWithUsMailer::Base
63
63
  version_name: 'version-A',
64
64
  locale: 'en-US',
65
65
  files: ["/path/to/file"],
66
- headers: { 'header-name' => 'header-value' }
66
+ headers: { 'header-name' => 'header-value' },
67
+ tags: ['some-tag']
67
68
  )
68
69
  end
69
70
  end
@@ -14,6 +14,7 @@ module SendWithUsMailer
14
14
  @locale = ""
15
15
  @files = []
16
16
  @headers = {}
17
+ @tags = []
17
18
  end
18
19
 
19
20
  def assign(key, value) #:nodoc:
@@ -47,6 +48,8 @@ module SendWithUsMailer
47
48
  @files.concat(value)
48
49
  when :headers
49
50
  @headers.merge!(value)
51
+ when :tags
52
+ @tags.concat(value)
50
53
  end
51
54
  end
52
55
  end
@@ -69,7 +72,8 @@ module SendWithUsMailer
69
72
  version_name: @version_name,
70
73
  locale: @locale,
71
74
  files: @files,
72
- headers: @headers
75
+ headers: @headers,
76
+ tags: @tags
73
77
  )
74
78
  end
75
79
  end
@@ -1,3 +1,3 @@
1
1
  module SendWithUsMailer
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -29,7 +29,8 @@ describe SendWithUsMailer do
29
29
  from_name: 'asender',
30
30
  reply_to: 'ano-reply@company.com',
31
31
  version_name: 'v2',
32
- headers: { 'header-name' => 'header-value' }
32
+ headers: { 'header-name' => 'header-value' },
33
+ tags: ['some-tag']
33
34
  end
34
35
  end
35
36
 
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.3
4
+ version: 0.2.4
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-04-21 00:00:00.000000000 Z
11
+ date: 2015-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: send_with_us