sisimai 4.20.0 → 4.20.1
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/Changes +3 -0
- data/lib/sisimai/ced/us/amazonses.rb +9 -10
- data/lib/sisimai/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 70437a1cc3c7c27e7145fe5596271abee0a41cb2
|
|
4
|
+
data.tar.gz: 41e3102528283f6c5e8e88d1f225120525cb72ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6704f85c5e8191df829fe1d3559195febfa3c02395cf225ae359d3ade99fb6f930498e360c4d86c620b72ff9f858b669d3fc4d16345c8ac82fe1859750b1c891
|
|
7
|
+
data.tar.gz: 317e9d5c37602a583d2d05d87d355d93cdcd12f05bd949e105543705ee29354694b1146c61a871799525f70c90a208e81268f1d7570e6889d0fa205592f4c0b7
|
data/Changes
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
Revision history for Ruby version of Sisimai
|
|
2
2
|
|
|
3
|
+
4.20.1 Sat, 31 Dec 2016 20:10:22 +0900 (JST)
|
|
4
|
+
- Fix the Java version of Gem file.
|
|
5
|
+
|
|
3
6
|
4.20.0 Sat, 31 Dec 2016 13:36:22 +0900 (JST)
|
|
4
7
|
- Experimental implementation: New MTA modules for 2 Cloud Email Deliveries,
|
|
5
8
|
Sisimai::CED::US::AmazonSES and Sisimai::CED::US::SendGrid. These modules
|
|
@@ -14,7 +14,6 @@ module Sisimai
|
|
|
14
14
|
:from => %r/\A[<]?no-reply[@]sns[.]amazonaws[.]com[>]?/,
|
|
15
15
|
:subject => %r/\AAWS Notification Message\z/,
|
|
16
16
|
}
|
|
17
|
-
MRI = RUBY_PLATFORM =~ /java/ ? false : true
|
|
18
17
|
|
|
19
18
|
# https://docs.aws.amazon.com/en_us/ses/latest/DeveloperGuide/notification-contents.html
|
|
20
19
|
BounceType = {
|
|
@@ -82,15 +81,7 @@ module Sisimai
|
|
|
82
81
|
end
|
|
83
82
|
|
|
84
83
|
begin
|
|
85
|
-
if
|
|
86
|
-
# Matz' Ruby Implementation
|
|
87
|
-
require 'oj'
|
|
88
|
-
jsonobject = Oj.load(jsonstring)
|
|
89
|
-
if jsonobject['Message']
|
|
90
|
-
# 'Message' => '{"notificationType":"Bounce",...
|
|
91
|
-
jsonthings = Oj.load(jsonobject['Message'])
|
|
92
|
-
end
|
|
93
|
-
else
|
|
84
|
+
if RUBY_PLATFORM =~ /java/
|
|
94
85
|
# java-based ruby environment like JRuby.
|
|
95
86
|
require 'jrjackson'
|
|
96
87
|
jsonobject = JrJackson::Json.load(jsonstring)
|
|
@@ -98,6 +89,14 @@ module Sisimai
|
|
|
98
89
|
# 'Message' => '{"notificationType":"Bounce",...
|
|
99
90
|
jsonthings = JrJackson::Json.load(jsonobject['Message'])
|
|
100
91
|
end
|
|
92
|
+
else
|
|
93
|
+
# Matz' Ruby Implementation
|
|
94
|
+
require 'oj'
|
|
95
|
+
jsonobject = Oj.load(jsonstring)
|
|
96
|
+
if jsonobject['Message']
|
|
97
|
+
# 'Message' => '{"notificationType":"Bounce",...
|
|
98
|
+
jsonthings = Oj.load(jsonobject['Message'])
|
|
99
|
+
end
|
|
101
100
|
end
|
|
102
101
|
jsonthings ||= jsonobject
|
|
103
102
|
|
data/lib/sisimai/version.rb
CHANGED