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: b6048a4d88d8454d69379e0184b3cbd0e8838afe323c5e02251d73fc70523234
4
- data.tar.gz: a834861eea10cb37655e28a6dfbf108243bf1bebb012519b3ebf56b0eeb1ea5e
3
+ metadata.gz: b461e7cadd443ff8cf2f76ddc9958d17ed2e64aaf41b2b68251c61aea25b7c47
4
+ data.tar.gz: 01df1f70ff18ff756114f359c08deef299aa830cf64a27a9519238d445d20a3a
5
5
  SHA512:
6
- metadata.gz: bb59f31524cd0fecd22259bf1dc73da7e1c86d7f40c0812b28598c67dce1352ba9be6c450b137ed794cdc8853e82e9a504ff4ff8dcd1b7725165f105d89134ee
7
- data.tar.gz: 1a9ec4389fe2a7e23a3bf70c4b06ee9214f38414de8fcc949140e3765ab9a292597009d8444c287ee4adb5a3cc3b8f1ee8914fae4163324d9a2188ce3201b401
6
+ metadata.gz: 4496b655bfce5b70764e2cf4b17e825d1f93e00f0d193fa9181d55dc2676b78dcf596c26c1a08238637a0ea2bcc2af3de2a5255ea2199b9d4a84bb81f74444f9
7
+ data.tar.gz: 4aa1cb8f688fd42603d41a935fa0bfc1733880db13077a8ba16f7150303e324c4b596f9e72e7fba1209b51820f8012aa634225f256fb8480b77f5b6842184f66
@@ -4,6 +4,6 @@ module PushKit
4
4
  module APNS
5
5
  # @return [String] The gem's semantic version number.
6
6
  #
7
- VERSION = '1.0.0-beta3'
7
+ VERSION = '1.0.0-beta4'
8
8
  end
9
9
  end
@@ -223,11 +223,11 @@ module PushKit
223
223
  aps['alert'] = alert
224
224
  end
225
225
 
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
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' => '1')
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' => '1')
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.beta3
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-22 00:00:00.000000000 Z
11
+ date: 2019-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby