mandrill_mailer 1.7.1 → 1.8.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/.github/workflows/tests.yml +28 -0
- data/.travis.yml +6 -1
- data/CHANGELOG.md +6 -0
- data/README.md +2 -3
- data/lib/mandrill_mailer/arg_formatter.rb +1 -1
- data/lib/mandrill_mailer/core_mailer.rb +9 -4
- data/lib/mandrill_mailer/version.rb +1 -1
- data/spec/core_mailer_spec.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 440fbc8df529fb6d5818f2a4dc241d23dcabbfc70dc42416145ac587546ac2b5
|
|
4
|
+
data.tar.gz: 5fd3ce65fd871a8990a4e9a566a513d9b1783771a72d29bdffcbb0eeecd783e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a5688e873e80045743da3b417cf5c4d21d877cf8d8c7c32840fb0b9a9e3249638e80a03fc6e2d2b8599b36f959105f8f94825ba8c8530900f999ff53b575898a
|
|
7
|
+
data.tar.gz: 46dd668deff79e85426447c26049fd77408708abdd658da273bb11a10c8e60622bee3fd6cf536f7972918597e0a0805cd5aa2c8b9df24744a2a77e38f9774412
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: build
|
|
2
|
+
on: [push, pull_request]
|
|
3
|
+
jobs:
|
|
4
|
+
build:
|
|
5
|
+
runs-on: ubuntu-latest
|
|
6
|
+
strategy:
|
|
7
|
+
matrix:
|
|
8
|
+
os: [ubuntu]
|
|
9
|
+
ruby:
|
|
10
|
+
- 2.0
|
|
11
|
+
- 2.1
|
|
12
|
+
- 2.2
|
|
13
|
+
- 2.3
|
|
14
|
+
- 2.4
|
|
15
|
+
- 2.5
|
|
16
|
+
- 2.6
|
|
17
|
+
- 2.7
|
|
18
|
+
- 3.0
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v2
|
|
21
|
+
- uses: ruby/setup-ruby@v1
|
|
22
|
+
with:
|
|
23
|
+
ruby-version: ${{ matrix.ruby }}
|
|
24
|
+
bundler-cache: true
|
|
25
|
+
- name: "bundle install"
|
|
26
|
+
run: bundle install --jobs 4 --retry 3
|
|
27
|
+
- name: "rspec"
|
|
28
|
+
run: bundle exec rspec spec/
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
4
|
|
|
5
|
+
# Unreleased
|
|
6
|
+
|
|
7
|
+
## 1.8.0 - 2021-03-18
|
|
8
|
+
- Support Ruby 3.0.0 [#142](https://github.com/renz45/mandrill_mailer/pull/142) (via @berkos)
|
|
9
|
+
- Allow symbols in vars [#140](https://github.com/renz45/mandrill_mailer/pull/140) (via @raphaelpra)
|
|
10
|
+
|
|
5
11
|
## 1.7.1 - 2018-10-06
|
|
6
12
|
- Fix rspec matcher: https://github.com/renz45/mandrill_mailer/pull/136
|
|
7
13
|
|
data/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# Mandrill Mailer
|
|
2
|
-
[](https://gemnasium.com/renz45/mandrill_mailer) [](http://inch-ci.org/github/renz45/mandrill_mailer)
|
|
2
|
+
[](https://github.com/renz45/mandrill_mailer/actions/workflows/tests.yml) [](https://rubygems.org/gems/mandrill_mailer)
|
|
3
|
+
[](http://inch-ci.org/github/renz45/mandrill_mailer)
|
|
5
4
|
|
|
6
5
|
Inherit the MandrillMailer class in your existing Rails mailers to send transactional emails through Mandrill using their template-based emails.
|
|
7
6
|
|
|
@@ -290,11 +290,16 @@ module MandrillMailer
|
|
|
290
290
|
end
|
|
291
291
|
|
|
292
292
|
# Makes this class act as a singleton without it actually being a singleton
|
|
293
|
-
# This keeps the syntax the same as the
|
|
293
|
+
# This keeps the syntax the same as the original mailers so we can swap quickly if something
|
|
294
294
|
# goes wrong.
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
295
|
+
|
|
296
|
+
class << self
|
|
297
|
+
def method_missing(method, *args, &block)
|
|
298
|
+
return super unless respond_to?(method)
|
|
299
|
+
new.method(method).call(*args, &block)
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
ruby2_keywords(:method_missing) if respond_to?(:ruby2_keywords, true)
|
|
298
303
|
end
|
|
299
304
|
|
|
300
305
|
def self.respond_to?(method, include_private = false)
|
data/spec/core_mailer_spec.rb
CHANGED
|
@@ -121,7 +121,7 @@ describe MandrillMailer::CoreMailer do
|
|
|
121
121
|
expect(new_unique_mailer.message['from_email']).to eq default_from_email
|
|
122
122
|
expect(new_unique_mailer.message['view_content_link']).to eq default_view_content_link
|
|
123
123
|
|
|
124
|
-
global_merge_vars = [{ "name" =>
|
|
124
|
+
global_merge_vars = [{ "name" => "foo", "content" => "bar" }]
|
|
125
125
|
expect(new_unique_mailer.message['global_merge_vars']).to eq global_merge_vars
|
|
126
126
|
end
|
|
127
127
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mandrill_mailer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Rensel
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-03-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -101,6 +101,7 @@ executables: []
|
|
|
101
101
|
extensions: []
|
|
102
102
|
extra_rdoc_files: []
|
|
103
103
|
files:
|
|
104
|
+
- ".github/workflows/tests.yml"
|
|
104
105
|
- ".gitignore"
|
|
105
106
|
- ".rspec"
|
|
106
107
|
- ".travis.yml"
|
|
@@ -137,7 +138,7 @@ homepage: https://github.com/renz45/mandrill_mailer
|
|
|
137
138
|
licenses:
|
|
138
139
|
- MIT
|
|
139
140
|
metadata: {}
|
|
140
|
-
post_install_message:
|
|
141
|
+
post_install_message:
|
|
141
142
|
rdoc_options: []
|
|
142
143
|
require_paths:
|
|
143
144
|
- lib
|
|
@@ -152,9 +153,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
152
153
|
- !ruby/object:Gem::Version
|
|
153
154
|
version: '0'
|
|
154
155
|
requirements: []
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
signing_key:
|
|
156
|
+
rubygems_version: 3.2.3
|
|
157
|
+
signing_key:
|
|
158
158
|
specification_version: 4
|
|
159
159
|
summary: Transactional Mailer for Mandrill
|
|
160
160
|
test_files:
|