msgraph-api 0.0.2 → 0.0.3
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/Gemfile.lock +1 -1
- data/lib/msgraph/api/non_multipart_interceptor.rb +3 -6
- data/lib/msgraph/api/railtie.rb +2 -3
- data/lib/msgraph/api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e56a5499aa07a0a467fe658f6ebf63488c9fa6755316645a573be84d5705dcbe
|
|
4
|
+
data.tar.gz: 01de85bd8a5e68cf06d6ac76270f9b49f0f6763fabf1877c2933027435a653b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f79c6ac66dc9d424912b82dfc80a6513977fa1b1f0ecd7eb60dc04b2ccb7d90dcb5ccb282b84f5d0abc600599294ef459cf93be35d509835516f5365e9d4c3eb
|
|
7
|
+
data.tar.gz: 2eaeb497ef4e6fda9d7818b89232e366e1dd6894abff5f3ddb378597b496ef23590a5c6a106ed162dc162d1619e69a28094c9ee3bd902a0b9e6695680d8e1416
|
data/Gemfile.lock
CHANGED
|
@@ -2,12 +2,9 @@ module Msgraph
|
|
|
2
2
|
module Api
|
|
3
3
|
class NonMultipartInterceptor
|
|
4
4
|
def self.delivering_email(message)
|
|
5
|
-
|
|
6
|
-
#
|
|
7
|
-
#
|
|
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
|
data/lib/msgraph/api/railtie.rb
CHANGED
|
@@ -5,11 +5,10 @@ module Msgraph
|
|
|
5
5
|
class Railtie < Rails::Railtie
|
|
6
6
|
|
|
7
7
|
config.after_initialize do
|
|
8
|
-
if
|
|
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
|
-
|
|
12
|
-
config.action_mailer.interceptors << "Msgraph::Api::NonMultipartInterceptor"
|
|
11
|
+
ActionMailer::Base.register_interceptor(Msgraph::Api::NonMultipartInterceptor)
|
|
13
12
|
end
|
|
14
13
|
end
|
|
15
14
|
|
data/lib/msgraph/api/version.rb
CHANGED