moromi-apns 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/moromi/apns/message/base.rb +14 -0
- data/lib/moromi/apns/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05bc31e586bb7a3d93019962fb4be84487487b35
|
4
|
+
data.tar.gz: 2faac8ede4e600fbf33c889633c510b1a56bfd5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2e2046ee8130935dbd750d9b5b4e47484812ca07ab0715d3be524284090c58e8e3589ddbb09a3a8a9626fc6d10b42cbbe0920b0b00552ab9ff4d0eb8d5c1a9a
|
7
|
+
data.tar.gz: 22f75d95951edb6dc5e004d9535e5dfc5f83bddc3888fa30891aabd1fa26351d862d346573cd09ad7457c8b99a0c48b34aca7da47b75dc76a45a34188c34b1f3
|
@@ -28,6 +28,20 @@ module Moromi::Apns::Message
|
|
28
28
|
}
|
29
29
|
end
|
30
30
|
|
31
|
+
def to_hash
|
32
|
+
base = {
|
33
|
+
aps: {
|
34
|
+
badge: badge,
|
35
|
+
alert: alert,
|
36
|
+
sound: sound,
|
37
|
+
'content-available' => content_available,
|
38
|
+
'mutable-content' => mutable_content,
|
39
|
+
priority: priority
|
40
|
+
}
|
41
|
+
}
|
42
|
+
custom_data.merge(base)
|
43
|
+
end
|
44
|
+
|
31
45
|
# @param [Hash] params
|
32
46
|
def self.unserialize(params)
|
33
47
|
parameter = ::Moromi::Apns::Parameter.unserialize(params[:parameter])
|
data/lib/moromi/apns/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moromi-apns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takahiro Ooishi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
122
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.
|
123
|
+
rubygems_version: 2.6.13
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: APNS model
|