lib/push_kit/apns/notification.rb in push_kit-apns-1.0.0.pre.beta3 vs lib/push_kit/apns/notification.rb in push_kit-apns-1.0.0.pre.beta4

- old
+ new

@@ -221,14 +221,14 @@ if (alert = payload_alert) && alert.any? aps['alert'] = alert end - aps['badge'] = badge if badge.is_a?(Integer) - aps['sound'] = sound.to_s if sound.is_a?(String) || sound.is_a?(Symbol) - aps['category'] = category if category.is_a?(String) - aps['content-available'] = '1' if content_available - aps['mutable-content'] = '1' if mutable_content + aps['badge'] = badge if badge.is_a?(Integer) + aps['sound'] = sound.to_s if sound.is_a?(String) || sound.is_a?(Symbol) + aps['category'] = category if category.is_a?(String) + aps['content-available'] = 1 if content_available + aps['mutable-content'] = 1 if mutable_content aps end # rubocop:enable Metrics/CyclomaticComplexity # rubocop:enable Metrics/PerceivedComplexity