msgraph-api 0.0.2 → 0.0.3

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: e56a5499aa07a0a467fe658f6ebf63488c9fa6755316645a573be84d5705dcbe
4
+ data.tar.gz: 01de85bd8a5e68cf06d6ac76270f9b49f0f6763fabf1877c2933027435a653b3
5
5
  SHA512:
6
- metadata.gz: 9cd36861d1e7389ab4d4e551b82ad071c63459d91591f93dc0cd9aa080edcae40b1e5785824e3a656921c6e89654eaa9f2d1e4389da31f1a4c31f01afe801b58
7
- data.tar.gz: 618b8e6adbd9bb8a6f06f158f87395413e272736ff5f144a946b36ff8cb79591e081734a300228015884f585265ff02b7bcfce319549acaf657059871aa0e06b
6
+ metadata.gz: f79c6ac66dc9d424912b82dfc80a6513977fa1b1f0ecd7eb60dc04b2ccb7d90dcb5ccb282b84f5d0abc600599294ef459cf93be35d509835516f5365e9d4c3eb
7
+ data.tar.gz: 2eaeb497ef4e6fda9d7818b89232e366e1dd6894abff5f3ddb378597b496ef23590a5c6a106ed162dc162d1619e69a28094c9ee3bd902a0b9e6695680d8e1416
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.3)
5
5
  activesupport (>= 5.2)
6
6
  microsoft_graph_mailer (~> 0.1.0)
7
7
 
@@ -2,12 +2,9 @@ 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.
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.
11
8
  message.transport_encoding = Encoding::UTF_8
12
9
  end
13
10
  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.3"
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.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobi Schmid