push_kit-apns 1.0.0.pre.beta3 → 1.0.0.pre.beta4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b461e7cadd443ff8cf2f76ddc9958d17ed2e64aaf41b2b68251c61aea25b7c47
|
4
|
+
data.tar.gz: 01df1f70ff18ff756114f359c08deef299aa830cf64a27a9519238d445d20a3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4496b655bfce5b70764e2cf4b17e825d1f93e00f0d193fa9181d55dc2676b78dcf596c26c1a08238637a0ea2bcc2af3de2a5255ea2199b9d4a84bb81f74444f9
|
7
|
+
data.tar.gz: 4aa1cb8f688fd42603d41a935fa0bfc1733880db13077a8ba16f7150303e324c4b596f9e72e7fba1209b51820f8012aa634225f256fb8480b77f5b6842184f66
|
@@ -223,11 +223,11 @@ module PushKit
|
|
223
223
|
aps['alert'] = alert
|
224
224
|
end
|
225
225
|
|
226
|
-
aps['badge'] = badge
|
227
|
-
aps['sound'] = sound.to_s
|
228
|
-
aps['category'] = category
|
229
|
-
aps['content-available'] =
|
230
|
-
aps['mutable-content'] =
|
226
|
+
aps['badge'] = badge if badge.is_a?(Integer)
|
227
|
+
aps['sound'] = sound.to_s if sound.is_a?(String) || sound.is_a?(Symbol)
|
228
|
+
aps['category'] = category if category.is_a?(String)
|
229
|
+
aps['content-available'] = 1 if content_available
|
230
|
+
aps['mutable-content'] = 1 if mutable_content
|
231
231
|
|
232
232
|
aps
|
233
233
|
end
|
@@ -185,7 +185,7 @@ RSpec.describe PushKit::APNS::Notification, :unit do
|
|
185
185
|
|
186
186
|
it 'includes #content_available when truthy' do
|
187
187
|
subject.content_available = true
|
188
|
-
expect(payload_aps).to include('content-available' =>
|
188
|
+
expect(payload_aps).to include('content-available' => 1)
|
189
189
|
end
|
190
190
|
|
191
191
|
it 'excludes #content_available when falsey' do
|
@@ -195,7 +195,7 @@ RSpec.describe PushKit::APNS::Notification, :unit do
|
|
195
195
|
|
196
196
|
it 'includes #mutable_content when truthy' do
|
197
197
|
subject.mutable_content = true
|
198
|
-
expect(payload_aps).to include('mutable-content' =>
|
198
|
+
expect(payload_aps).to include('mutable-content' => 1)
|
199
199
|
end
|
200
200
|
|
201
201
|
it 'excludes #mutable_content when falsey' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: push_kit-apns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.
|
4
|
+
version: 1.0.0.pre.beta4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nialto Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|