api_mailer 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/gemfiles/Gemfile.rails-6.1.x +6 -0
- data/lib/api_mailer/base.rb +2 -2
- data/lib/api_mailer/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ef3352599d846840f416765307ff7072a9160c45f53986d2f3d5c2bf6e96b35
|
4
|
+
data.tar.gz: 8db7c8fb7b1f36f0482c2615e75e0a3d8f16f4c034045130f7a00788230257ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e891c99cbd5edd670596c572260990e38e4ca6cfa9db25d2f5f990331c4b0fbd0d97553d61ed934dcd6daa64b3fd36327d12f2ff9a638e157bf100f4b7b1ddf9
|
7
|
+
data.tar.gz: c4cca5012334f2e9f46b6feea25cf74c620304f7219de55b36465e79e2e7f20cc2083fbffca2d8fdf2d22da7d5f9fb12c11548956837a28b1864f2b06e35912d
|
data/.travis.yml
CHANGED
data/lib/api_mailer/base.rb
CHANGED
@@ -79,7 +79,7 @@ module ApiMailer
|
|
79
79
|
templates_name = headers.delete(:template_name) || action_name
|
80
80
|
|
81
81
|
each_template(templates_path(headers), templates_name) do |template|
|
82
|
-
self.formats = template.formats
|
82
|
+
self.formats = template.respond_to?(:formats) ? template.formats : [template.format]
|
83
83
|
|
84
84
|
self.responses << {
|
85
85
|
body: render(template: template),
|
@@ -98,7 +98,7 @@ module ApiMailer
|
|
98
98
|
if templates.empty?
|
99
99
|
raise ActionView::MissingTemplate.new(paths, name, paths, false, 'mailer')
|
100
100
|
else
|
101
|
-
templates.uniq { |t| t.formats }.each(&block)
|
101
|
+
templates.uniq { |t| (t.respond_to?(:formats) ? t.formats : [t.format])}.each(&block)
|
102
102
|
end
|
103
103
|
end
|
104
104
|
|
data/lib/api_mailer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api_mailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carl Allen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -85,6 +85,7 @@ files:
|
|
85
85
|
- gemfiles/Gemfile.rails-4.0.x
|
86
86
|
- gemfiles/Gemfile.rails-4.1.x
|
87
87
|
- gemfiles/Gemfile.rails-5.1.x
|
88
|
+
- gemfiles/Gemfile.rails-6.1.x
|
88
89
|
- lib/api_mailer.rb
|
89
90
|
- lib/api_mailer/base.rb
|
90
91
|
- lib/api_mailer/configuration.rb
|