mail_plugger 1.0.0.rc1 → 1.0.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile +0 -1
- data/Gemfile.lock +3 -14
- data/README.md +9 -1
- data/gemfiles/mail_2.6.gemfile +0 -1
- data/gemfiles/mail_2.6.gemfile.lock +3 -14
- data/gemfiles/mail_2.7.0.gemfile +0 -1
- data/gemfiles/mail_2.7.0.gemfile.lock +3 -14
- data/gemfiles/mail_2.7.gemfile +0 -1
- data/gemfiles/mail_2.7.gemfile.lock +3 -14
- data/lib/mail_plugger.rb +3 -2
- data/lib/mail_plugger/delivery_method.rb +2 -2
- data/lib/mail_plugger/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 17973c75bad45ddc1062638b40375b54d904545dc71d6c019be433b8f72a94d5
|
|
4
|
+
data.tar.gz: 86ff45ddfde8982854ed3959fa252da096f856aee4e7233e4063d89e04ee9d7d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76cf32c05fe8c0f091bccefeee7f18cd6424c0e81588c806d4538aac4c8a155e7784e4753e6b7c270d4f531f14b518ca80d231e7da22a4a97cf2ad92fb12d9a6
|
|
7
|
+
data.tar.gz: c68c13d1426dec32f33607f1ca1ff6ca36e92e950c23df4ded15ba1ee39dd4c2ee7c30a1ade1f62adcd8892584d123d50b1dddebbb241383eb0c46cca5d4c413
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,31 +1,25 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
mail_plugger (1.0.0
|
|
4
|
+
mail_plugger (1.0.0)
|
|
5
5
|
mail (~> 2.5)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
addressable (2.7.0)
|
|
11
|
-
public_suffix (>= 2.0.2, < 5.0)
|
|
12
10
|
appraisal (2.3.0)
|
|
13
11
|
bundler
|
|
14
12
|
rake
|
|
15
13
|
thor (>= 0.14.0)
|
|
16
14
|
ast (2.4.1)
|
|
17
|
-
crack (0.4.5)
|
|
18
|
-
rexml
|
|
19
15
|
diff-lcs (1.4.4)
|
|
20
|
-
docile (1.3.
|
|
21
|
-
hashdiff (1.0.1)
|
|
16
|
+
docile (1.3.5)
|
|
22
17
|
mail (2.7.1)
|
|
23
18
|
mini_mime (>= 0.1.1)
|
|
24
19
|
mini_mime (1.0.2)
|
|
25
20
|
parallel (1.20.1)
|
|
26
21
|
parser (3.0.0.0)
|
|
27
22
|
ast (~> 2.4.1)
|
|
28
|
-
public_suffix (4.0.6)
|
|
29
23
|
rainbow (3.0.0)
|
|
30
24
|
rake (13.0.3)
|
|
31
25
|
regexp_parser (2.0.3)
|
|
@@ -43,7 +37,7 @@ GEM
|
|
|
43
37
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
44
38
|
rspec-support (~> 3.10.0)
|
|
45
39
|
rspec-support (3.10.1)
|
|
46
|
-
rubocop (1.8.
|
|
40
|
+
rubocop (1.8.1)
|
|
47
41
|
parallel (~> 1.10)
|
|
48
42
|
parser (>= 3.0.0.0)
|
|
49
43
|
rainbow (>= 2.2.2, < 4.0)
|
|
@@ -69,10 +63,6 @@ GEM
|
|
|
69
63
|
simplecov_json_formatter (0.1.2)
|
|
70
64
|
thor (1.0.1)
|
|
71
65
|
unicode-display_width (2.0.0)
|
|
72
|
-
webmock (3.11.0)
|
|
73
|
-
addressable (>= 2.3.6)
|
|
74
|
-
crack (>= 0.3.2)
|
|
75
|
-
hashdiff (>= 0.4.0, < 2.0.0)
|
|
76
66
|
|
|
77
67
|
PLATFORMS
|
|
78
68
|
ruby
|
|
@@ -86,7 +76,6 @@ DEPENDENCIES
|
|
|
86
76
|
rubocop-performance
|
|
87
77
|
rubocop-rspec
|
|
88
78
|
simplecov
|
|
89
|
-
webmock (~> 3.0)
|
|
90
79
|
|
|
91
80
|
BUNDLED WITH
|
|
92
81
|
2.2.4
|
data/README.md
CHANGED
|
@@ -46,7 +46,15 @@ Or install it yourself as:
|
|
|
46
46
|
|
|
47
47
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
48
48
|
|
|
49
|
-
To install this gem onto your local machine, run `bundle exec rake install`.
|
|
49
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
|
50
|
+
|
|
51
|
+
To release a new version:
|
|
52
|
+
|
|
53
|
+
- Update CHANGELOG.md
|
|
54
|
+
- Update the version number in `version.rb` manually or use `gem-release` gem and run `gem bump -v major|minor|patch|rc|beta`.
|
|
55
|
+
- Build gem with `bundle exec rake build`.
|
|
56
|
+
- Run `bundle install` and `bundle exec appraisal install` to update gemfiles and commit the changes.
|
|
57
|
+
- Run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
50
58
|
|
|
51
59
|
## Contributing
|
|
52
60
|
|
data/gemfiles/mail_2.6.gemfile
CHANGED
|
@@ -1,24 +1,19 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ..
|
|
3
3
|
specs:
|
|
4
|
-
mail_plugger (1.0.0
|
|
4
|
+
mail_plugger (1.0.0)
|
|
5
5
|
mail (~> 2.5)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
addressable (2.7.0)
|
|
11
|
-
public_suffix (>= 2.0.2, < 5.0)
|
|
12
10
|
appraisal (2.3.0)
|
|
13
11
|
bundler
|
|
14
12
|
rake
|
|
15
13
|
thor (>= 0.14.0)
|
|
16
14
|
ast (2.4.1)
|
|
17
|
-
crack (0.4.5)
|
|
18
|
-
rexml
|
|
19
15
|
diff-lcs (1.4.4)
|
|
20
|
-
docile (1.3.
|
|
21
|
-
hashdiff (1.0.1)
|
|
16
|
+
docile (1.3.5)
|
|
22
17
|
mail (2.6.6)
|
|
23
18
|
mime-types (>= 1.16, < 4)
|
|
24
19
|
mime-types (3.3.1)
|
|
@@ -27,7 +22,6 @@ GEM
|
|
|
27
22
|
parallel (1.20.1)
|
|
28
23
|
parser (3.0.0.0)
|
|
29
24
|
ast (~> 2.4.1)
|
|
30
|
-
public_suffix (4.0.6)
|
|
31
25
|
rainbow (3.0.0)
|
|
32
26
|
rake (13.0.3)
|
|
33
27
|
regexp_parser (2.0.3)
|
|
@@ -45,7 +39,7 @@ GEM
|
|
|
45
39
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
46
40
|
rspec-support (~> 3.10.0)
|
|
47
41
|
rspec-support (3.10.1)
|
|
48
|
-
rubocop (1.8.
|
|
42
|
+
rubocop (1.8.1)
|
|
49
43
|
parallel (~> 1.10)
|
|
50
44
|
parser (>= 3.0.0.0)
|
|
51
45
|
rainbow (>= 2.2.2, < 4.0)
|
|
@@ -71,10 +65,6 @@ GEM
|
|
|
71
65
|
simplecov_json_formatter (0.1.2)
|
|
72
66
|
thor (1.0.1)
|
|
73
67
|
unicode-display_width (2.0.0)
|
|
74
|
-
webmock (3.11.0)
|
|
75
|
-
addressable (>= 2.3.6)
|
|
76
|
-
crack (>= 0.3.2)
|
|
77
|
-
hashdiff (>= 0.4.0, < 2.0.0)
|
|
78
68
|
|
|
79
69
|
PLATFORMS
|
|
80
70
|
ruby
|
|
@@ -89,7 +79,6 @@ DEPENDENCIES
|
|
|
89
79
|
rubocop-performance
|
|
90
80
|
rubocop-rspec
|
|
91
81
|
simplecov
|
|
92
|
-
webmock (~> 3.0)
|
|
93
82
|
|
|
94
83
|
BUNDLED WITH
|
|
95
84
|
2.2.4
|
data/gemfiles/mail_2.7.0.gemfile
CHANGED
|
@@ -1,31 +1,25 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ..
|
|
3
3
|
specs:
|
|
4
|
-
mail_plugger (1.0.0
|
|
4
|
+
mail_plugger (1.0.0)
|
|
5
5
|
mail (~> 2.5)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
addressable (2.7.0)
|
|
11
|
-
public_suffix (>= 2.0.2, < 5.0)
|
|
12
10
|
appraisal (2.3.0)
|
|
13
11
|
bundler
|
|
14
12
|
rake
|
|
15
13
|
thor (>= 0.14.0)
|
|
16
14
|
ast (2.4.1)
|
|
17
|
-
crack (0.4.5)
|
|
18
|
-
rexml
|
|
19
15
|
diff-lcs (1.4.4)
|
|
20
|
-
docile (1.3.
|
|
21
|
-
hashdiff (1.0.1)
|
|
16
|
+
docile (1.3.5)
|
|
22
17
|
mail (2.7.0)
|
|
23
18
|
mini_mime (>= 0.1.1)
|
|
24
19
|
mini_mime (1.0.2)
|
|
25
20
|
parallel (1.20.1)
|
|
26
21
|
parser (3.0.0.0)
|
|
27
22
|
ast (~> 2.4.1)
|
|
28
|
-
public_suffix (4.0.6)
|
|
29
23
|
rainbow (3.0.0)
|
|
30
24
|
rake (13.0.3)
|
|
31
25
|
regexp_parser (2.0.3)
|
|
@@ -43,7 +37,7 @@ GEM
|
|
|
43
37
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
44
38
|
rspec-support (~> 3.10.0)
|
|
45
39
|
rspec-support (3.10.1)
|
|
46
|
-
rubocop (1.8.
|
|
40
|
+
rubocop (1.8.1)
|
|
47
41
|
parallel (~> 1.10)
|
|
48
42
|
parser (>= 3.0.0.0)
|
|
49
43
|
rainbow (>= 2.2.2, < 4.0)
|
|
@@ -69,10 +63,6 @@ GEM
|
|
|
69
63
|
simplecov_json_formatter (0.1.2)
|
|
70
64
|
thor (1.0.1)
|
|
71
65
|
unicode-display_width (2.0.0)
|
|
72
|
-
webmock (3.11.0)
|
|
73
|
-
addressable (>= 2.3.6)
|
|
74
|
-
crack (>= 0.3.2)
|
|
75
|
-
hashdiff (>= 0.4.0, < 2.0.0)
|
|
76
66
|
|
|
77
67
|
PLATFORMS
|
|
78
68
|
ruby
|
|
@@ -87,7 +77,6 @@ DEPENDENCIES
|
|
|
87
77
|
rubocop-performance
|
|
88
78
|
rubocop-rspec
|
|
89
79
|
simplecov
|
|
90
|
-
webmock (~> 3.0)
|
|
91
80
|
|
|
92
81
|
BUNDLED WITH
|
|
93
82
|
2.2.4
|
data/gemfiles/mail_2.7.gemfile
CHANGED
|
@@ -1,31 +1,25 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ..
|
|
3
3
|
specs:
|
|
4
|
-
mail_plugger (1.0.0
|
|
4
|
+
mail_plugger (1.0.0)
|
|
5
5
|
mail (~> 2.5)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
addressable (2.7.0)
|
|
11
|
-
public_suffix (>= 2.0.2, < 5.0)
|
|
12
10
|
appraisal (2.3.0)
|
|
13
11
|
bundler
|
|
14
12
|
rake
|
|
15
13
|
thor (>= 0.14.0)
|
|
16
14
|
ast (2.4.1)
|
|
17
|
-
crack (0.4.5)
|
|
18
|
-
rexml
|
|
19
15
|
diff-lcs (1.4.4)
|
|
20
|
-
docile (1.3.
|
|
21
|
-
hashdiff (1.0.1)
|
|
16
|
+
docile (1.3.5)
|
|
22
17
|
mail (2.7.1)
|
|
23
18
|
mini_mime (>= 0.1.1)
|
|
24
19
|
mini_mime (1.0.2)
|
|
25
20
|
parallel (1.20.1)
|
|
26
21
|
parser (3.0.0.0)
|
|
27
22
|
ast (~> 2.4.1)
|
|
28
|
-
public_suffix (4.0.6)
|
|
29
23
|
rainbow (3.0.0)
|
|
30
24
|
rake (13.0.3)
|
|
31
25
|
regexp_parser (2.0.3)
|
|
@@ -43,7 +37,7 @@ GEM
|
|
|
43
37
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
44
38
|
rspec-support (~> 3.10.0)
|
|
45
39
|
rspec-support (3.10.1)
|
|
46
|
-
rubocop (1.8.
|
|
40
|
+
rubocop (1.8.1)
|
|
47
41
|
parallel (~> 1.10)
|
|
48
42
|
parser (>= 3.0.0.0)
|
|
49
43
|
rainbow (>= 2.2.2, < 4.0)
|
|
@@ -69,10 +63,6 @@ GEM
|
|
|
69
63
|
simplecov_json_formatter (0.1.2)
|
|
70
64
|
thor (1.0.1)
|
|
71
65
|
unicode-display_width (2.0.0)
|
|
72
|
-
webmock (3.11.0)
|
|
73
|
-
addressable (>= 2.3.6)
|
|
74
|
-
crack (>= 0.3.2)
|
|
75
|
-
hashdiff (>= 0.4.0, < 2.0.0)
|
|
76
66
|
|
|
77
67
|
PLATFORMS
|
|
78
68
|
ruby
|
|
@@ -87,7 +77,6 @@ DEPENDENCIES
|
|
|
87
77
|
rubocop-performance
|
|
88
78
|
rubocop-rspec
|
|
89
79
|
simplecov
|
|
90
|
-
webmock (~> 3.0)
|
|
91
80
|
|
|
92
81
|
BUNDLED WITH
|
|
93
82
|
2.2.4
|
data/lib/mail_plugger.rb
CHANGED
|
@@ -15,9 +15,10 @@ module MailPlugger
|
|
|
15
15
|
#
|
|
16
16
|
# @param [String/Symbol] delivery_system the name of the API
|
|
17
17
|
#
|
|
18
|
-
# @example using Rails config/initializers/mail_plugger.rb
|
|
18
|
+
# @example using Rails `config/initializers/mail_plugger.rb`
|
|
19
19
|
#
|
|
20
|
-
# The defined API class should have an 'initializer' and a 'deliver'
|
|
20
|
+
# # The defined API class should have an 'initializer' and a 'deliver'
|
|
21
|
+
# # method.
|
|
21
22
|
# class DefinedApiClientClass
|
|
22
23
|
# def initialize(options = {})
|
|
23
24
|
# @settings = { api_key: '12345' }
|
|
@@ -8,7 +8,7 @@ module MailPlugger
|
|
|
8
8
|
# method, then these attributes can be nil, if not then we should set these
|
|
9
9
|
# attributes.
|
|
10
10
|
#
|
|
11
|
-
# @param [Hash] options below
|
|
11
|
+
# @param [Hash] options check options below
|
|
12
12
|
# @option options [Class/Hash] client
|
|
13
13
|
# e.g. DefinedApiClientClass or { 'key' => DefinedApiClientClass }
|
|
14
14
|
#
|
|
@@ -58,7 +58,7 @@ module MailPlugger
|
|
|
58
58
|
#
|
|
59
59
|
# MailPlugger::DeliveryMethod.new.deliver!(message)
|
|
60
60
|
#
|
|
61
|
-
# or
|
|
61
|
+
# # or
|
|
62
62
|
#
|
|
63
63
|
# message = Mail.new(from: 'from@example.com', to: 'to@example.com',
|
|
64
64
|
# subject: 'Test email', body: 'Test email body')
|
data/lib/mail_plugger/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mail_plugger
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.0
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Norbert Szivós
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-01-
|
|
11
|
+
date: 2021-01-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mail
|
|
@@ -96,9 +96,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
96
96
|
version: 2.5.0
|
|
97
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
requirements:
|
|
99
|
-
- - "
|
|
99
|
+
- - ">="
|
|
100
100
|
- !ruby/object:Gem::Version
|
|
101
|
-
version:
|
|
101
|
+
version: '0'
|
|
102
102
|
requirements: []
|
|
103
103
|
rubygems_version: 3.1.4
|
|
104
104
|
signing_key:
|