hertz-fcm 1.1.3 → 1.1.4

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: 52def1ed100e79064a6db8b3cd2cd5c833104746d8d2097ad80313132a7087b0
4
- data.tar.gz: 4a63e2d8481fb9265e66c4a8bf53cbc57f6918222e6cd54466f3fa978a7325e1
3
+ metadata.gz: 1aaaae6f312fc2bbe6e8906424e445988955c0e31bebcfe9a1dbb15e41eab23f
4
+ data.tar.gz: dc6917277ec6f067d139554f4f6bd3485d7a65772ea31837518897536fb81c59
5
5
  SHA512:
6
- metadata.gz: f62cd812337464958c63cd0162455e5c078073cc963a5b0fa650401774a47afe34567ca762751d8af6a3b563967db682905f76d9cb561cd7dcea817b4c350a8c
7
- data.tar.gz: 9500b06006b23fdc082b7adf7fcf4eeecba6dbfba8d69d6fbd8a337778da0f2d30e336620f3f5d906d50b3a87880d6db4cf32b2d7d93317de4ac2541365f1596
6
+ metadata.gz: 39221bd8c63ad7255a6245789f4aed1e1d1ea6c6fc0deab27236ce56bd66e412d2fc88360fe82757bdb9115a401ffb04f9a3ed67e2acd2aa366326e2b9651c27
7
+ data.tar.gz: 39e3aa0387355ffa8a47c72f9037368323f677c1012b440ec727ac520166e1b43881f55540c2dc0d261e090d431f4d896ee2ac026edb1c266b24c7bf94caef7b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hertz-fcm (1.1.3)
4
+ hertz-fcm (1.1.4)
5
5
  firebase_cloud_messenger (>= 0.4.0, < 1)
6
6
  hertz (~> 2.0)
7
7
  rails (>= 4.0.0, < 6)
@@ -48,7 +48,7 @@ class PushNotificationSender
48
48
  end
49
49
 
50
50
  def aps
51
- if notification.send(:silent?)
51
+ if notification.respond_to?(:silent?) && notification.send(:silent?)
52
52
  return {
53
53
  category: notification.send(:click_action),
54
54
  'content-available' => 1
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Hertz
4
4
  module Fcm
5
- VERSION = '1.1.3'
5
+ VERSION = '1.1.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hertz-fcm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Petkovic