multiple_mailers 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +16 -15
- data/lib/multiple_mailers/configuration.rb +1 -1
- data/lib/multiple_mailers/version.rb +1 -1
- data/spec/config/mailers.yml +14 -13
- data/spec/spec_helper.rb +4 -0
- metadata +3 -3
data/README.md
CHANGED
@@ -20,21 +20,22 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
define your smtp mailer accounts in `config/mailers.yml`
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
23
|
+
production:
|
24
|
+
default: &default
|
25
|
+
address: 'smtp.gmail.com'
|
26
|
+
port: 587
|
27
|
+
domain: 'railsbp.com'
|
28
|
+
authentication: 'plain'
|
29
|
+
|
30
|
+
notification:
|
31
|
+
<<: *default
|
32
|
+
user_name: 'notification@railsbp.com'
|
33
|
+
password: 'password'
|
34
|
+
|
35
|
+
exception.notifier:
|
36
|
+
<<: *default
|
37
|
+
user_name: 'exception.notifier@railsbp.com'
|
38
|
+
password: 'password'
|
38
39
|
|
39
40
|
the default account is used for all mailer classes, if you want to
|
40
41
|
override it, you can define mailer account for any mailer class you
|
data/spec/config/mailers.yml
CHANGED
@@ -1,15 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
production:
|
2
|
+
default: &default
|
3
|
+
address: 'smtp.gmail.com'
|
4
|
+
port: 587
|
5
|
+
domain: 'railsbp.com'
|
6
|
+
authentication: 'plain'
|
6
7
|
|
7
|
-
notification:
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
notification:
|
9
|
+
<<: *default
|
10
|
+
user_name: 'notification@railsbp.com'
|
11
|
+
password: 'password'
|
11
12
|
|
12
|
-
exception.notifier:
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
exception.notifier:
|
14
|
+
<<: *default
|
15
|
+
user_name: 'exception.notifier@railsbp.com'
|
16
|
+
password: 'password'
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multiple_mailers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-03-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionmailer
|
16
|
-
requirement: &
|
16
|
+
requirement: &70164372870160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70164372870160
|
25
25
|
description: extend actionmailer to allow one smtp account per mailer class
|
26
26
|
email:
|
27
27
|
- flyerhzm@gmail.com
|