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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4f52b587030a73006aa7c1049683a87ced035ef
4
- data.tar.gz: 92830575116ac92665e0423ae8704fe0e096aaf0
3
+ metadata.gz: 70437a1cc3c7c27e7145fe5596271abee0a41cb2
4
+ data.tar.gz: 41e3102528283f6c5e8e88d1f225120525cb72ed
5
5
  SHA512:
6
- metadata.gz: a3068b38213e14b47495c31bef72c8dd1926478dcae9b63490794a90c30b2e4a8aaa6fcc5d368b65b98309ed7c99fce54d6e17d4f435b9e6051fd75202600783
7
- data.tar.gz: 58b01d24a1b5806a541517b1236e3fa6eb030c92962d33b37c6dacf701b827213ced05f36768ba49d4ae4972651cdbf2e248f63d01644fa7a1c53af673a33f7b
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 MRI
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
 
@@ -1,4 +1,4 @@
1
1
  # Define the version number of Sisimai
2
2
  module Sisimai
3
- VERSION = '4.20.0'
3
+ VERSION = '4.20.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sisimai
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.20.0
4
+ version: 4.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - azumakuniyuki