moromi-apns 0.5.0 → 0.6.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 +1 -1
- data/lib/moromi/apns/parameter.rb +5 -1
- 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: 72b75c279e442226d162346a27168c773e101cf0
|
4
|
+
data.tar.gz: 836a37e735f7cf9b715ef579fa47d7e5cb44e333
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a756477640606abe4fc44c057097a13f5292f3df1e51b4c8e52f0060146f90ea73c459f65d7f2adecc089ed45e4a087210348743c73100de6fd52cd4f5165de7
|
7
|
+
data.tar.gz: de81c262daf1e3f1d302b4a51140c1274a75ab3310c4e0b6b67d39b1cf277e5fc1f40e1957219b22292aac51ab68e36de78db9eb3b579bbb46b275d466a4ee40
|
@@ -6,7 +6,7 @@ module Moromi::Apns::Message
|
|
6
6
|
|
7
7
|
attr_reader :parameter
|
8
8
|
|
9
|
-
def_delegators :@parameter, :alert, :badge, :sound, :content_available, :category, :priority
|
9
|
+
def_delegators :@parameter, :alert, :badge, :sound, :content_available, :mutable_content, :category, :priority
|
10
10
|
|
11
11
|
# @param [Moromi::Apns::Parameter] parameter
|
12
12
|
def initialize(parameter:)
|
@@ -8,15 +8,17 @@ module Moromi
|
|
8
8
|
attr_reader :badge
|
9
9
|
attr_reader :sound
|
10
10
|
attr_reader :content_available
|
11
|
+
attr_reader :mutable_content
|
11
12
|
attr_reader :category
|
12
13
|
attr_reader :priority
|
13
14
|
attr_reader :custom_data
|
14
15
|
|
15
|
-
def initialize(alert:, badge:, sound: 'default', content_available: 1, category: nil, priority: 10, custom_data: {})
|
16
|
+
def initialize(alert:, badge:, sound: 'default', content_available: 1, mutable_content: 0, category: nil, priority: 10, custom_data: {})
|
16
17
|
@alert = alert
|
17
18
|
@badge = badge
|
18
19
|
@sound = sound
|
19
20
|
@content_available = content_available
|
21
|
+
@mutable_content = mutable_content
|
20
22
|
@category = category
|
21
23
|
@priority = priority
|
22
24
|
@custom_data = custom_data
|
@@ -36,6 +38,7 @@ module Moromi
|
|
36
38
|
badge: @badge,
|
37
39
|
sound: @sound,
|
38
40
|
content_available: @content_available,
|
41
|
+
mutable_content: @mutable_content,
|
39
42
|
category: @category,
|
40
43
|
priority: @priority,
|
41
44
|
custom_data: @custom_data
|
@@ -49,6 +52,7 @@ module Moromi
|
|
49
52
|
badge: hash[:badge],
|
50
53
|
sound: hash[:sound],
|
51
54
|
content_available: hash[:content_available],
|
55
|
+
mutable_content: hash[:mutable_content],
|
52
56
|
category: hash[:category],
|
53
57
|
priority: hash[:priority],
|
54
58
|
custom_data: hash[:custom_data]
|
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.6.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:
|
11
|
+
date: 2017-05-09 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.5
|
123
|
+
rubygems_version: 2.4.5
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: APNS model
|