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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 270c0da5321ab367c6fd16c18e1d26fa8c01f55fa04ef4dfd94e4c3d2aee7644
4
- data.tar.gz: d1be23cbf9fd9a697596b3b394c0dd85999da3275d1278635b850322c9c4a8cd
3
+ metadata.gz: 9ef3352599d846840f416765307ff7072a9160c45f53986d2f3d5c2bf6e96b35
4
+ data.tar.gz: 8db7c8fb7b1f36f0482c2615e75e0a3d8f16f4c034045130f7a00788230257ed
5
5
  SHA512:
6
- metadata.gz: 29581c5e029d356772d08945343c32116c01291cde8de39be19b1cbca06559dd03c9b374bafdbd01c6082a16e6feb453ebbcf7be49f41bdcf6712d7697d0d623
7
- data.tar.gz: 2646029233129ab93358a115b08f4c219cb45f5781a9e61a9f99972df738263ed165ca280633b06378e995ac9ab0142731e12629dd3d6299a3150a723e4ad90b
6
+ metadata.gz: e891c99cbd5edd670596c572260990e38e4ca6cfa9db25d2f5f990331c4b0fbd0d97553d61ed934dcd6daa64b3fd36327d12f2ff9a638e157bf100f4b7b1ddf9
7
+ data.tar.gz: c4cca5012334f2e9f46b6feea25cf74c620304f7219de55b36465e79e2e7f20cc2083fbffca2d8fdf2d22da7d5f9fb12c11548956837a28b1864f2b06e35912d
data/.travis.yml CHANGED
@@ -1,9 +1,10 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.7
3
+ - 2.6.1
4
4
  gemfile:
5
5
  - gemfiles/Gemfile.rails-3.2.x
6
6
  - gemfiles/Gemfile.rails-4.0.x
7
7
  - gemfiles/Gemfile.rails-4.1.x
8
8
  - gemfiles/Gemfile.rails-5.1.x
9
+ - gemfiles/Gemfile.rails-6.1.x
9
10
  script: bundle exec rspec spec
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in api_mailer.gemspec
4
+ gemspec :path => '../'
5
+
6
+ gem 'rails', "6.1.4.1"
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module ApiMailer
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
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.8
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-07-24 00:00:00.000000000 Z
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