msgraph-api 0.0.2 → 0.0.4

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: 0bf5dffdb983eaba5c4517b3035f6ac9da673635f17c6028fa8636fed6d84fe1
4
- data.tar.gz: 3ce62724c508c4883004832633a9dca8f37997948f6f8c33e316c80d522b50db
3
+ metadata.gz: d5786361d7c59992ff1089f640e6937475433841dd4d589ba01665cddfb466e5
4
+ data.tar.gz: de7e281866c2ac3b5979473654cfddeb0ecce31772836abd753c38022be13f10
5
5
  SHA512:
6
- metadata.gz: 9cd36861d1e7389ab4d4e551b82ad071c63459d91591f93dc0cd9aa080edcae40b1e5785824e3a656921c6e89654eaa9f2d1e4389da31f1a4c31f01afe801b58
7
- data.tar.gz: 618b8e6adbd9bb8a6f06f158f87395413e272736ff5f144a946b36ff8cb79591e081734a300228015884f585265ff02b7bcfce319549acaf657059871aa0e06b
6
+ metadata.gz: cdd2ddcea759ff459f13c8a5ed6d501a5f0bba07a78eaea367a759c81dc29395f782abb62f86d11e8fc5623056826c80fbc7316a7b62be69eb2e6e017cacc87b
7
+ data.tar.gz: 179a2d27dd67e69d282ac6a33b5aab519a3723b4f3210c0fd69d01ff3f080a1ae17a337a7a09df13d50c96ee640c6f50df7419a79559b18016bfbfac3eed8aec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- msgraph-api (0.0.2)
4
+ msgraph-api (0.0.4)
5
5
  activesupport (>= 5.2)
6
6
  microsoft_graph_mailer (~> 0.1.0)
7
7
 
@@ -2,14 +2,10 @@ module Msgraph
2
2
  module Api
3
3
  class NonMultipartInterceptor
4
4
  def self.delivering_email(message)
5
- if !message.multipart?
6
- # multipart mails are rendered correctly, as the encoding
7
- # ships with every part of the mail. But I think in case of
8
- # single part messages, exchange is guessing the encoding
9
- # ... and gets it totally wrong. So we force UTF-8 for
10
- # mail transport and MS Graph API is happy with that.
11
- message.transport_encoding = Encoding::UTF_8
12
- end
5
+ # it seems like exchange is guessing the encoding... and gets
6
+ # it totally wrong. So we force UTF-8 for mail transport and
7
+ # MS Graph API is happy with that.
8
+ message.transport_encoding = Encoding::UTF_8
13
9
  end
14
10
  end
15
11
  end
@@ -5,11 +5,10 @@ module Msgraph
5
5
  class Railtie < Rails::Railtie
6
6
 
7
7
  config.after_initialize do
8
- if config.action_mailer.delivery_method == :microsoft_graph
8
+ if ActionMailer::Base.delivery_method == :microsoft_graph
9
9
  # add interceptors for "post processing" of mails only if
10
10
  # MS Graph API is used for mail transmission.
11
- config.action_mailer.interceptors ||= []
12
- config.action_mailer.interceptors << "Msgraph::Api::NonMultipartInterceptor"
11
+ ActionMailer::Base.register_interceptor(Msgraph::Api::NonMultipartInterceptor)
13
12
  end
14
13
  end
15
14
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Msgraph
4
4
  module Api
5
- VERSION = "0.0.2"
5
+ VERSION = "0.0.4"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: msgraph-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobi Schmid