devise-onesignal 1.0.1 → 1.1.0

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: 1ec6dac265df43cf5b3c0219355f17a4f641318d70a88c803507025f3e70e580
4
- data.tar.gz: b2f748d6247293217d0b021678eb9a6637f94a0d09123d80aef8a6140bea9cd9
3
+ metadata.gz: 626a558616ceee32d1a38fe055f16c1ca5f2e883ff86bcaedfaf499d25d52451
4
+ data.tar.gz: 650b7560971bfb903a41a4c7497f3d59d3728c5e6ac98026985a00cb1607b440
5
5
  SHA512:
6
- metadata.gz: eff26d9391fe3612fe1f1c7287bb43ec5c33e8b754bb9a10ed8800454932bbd399b914a92eb5ebf391efbd75504afc2a90916139fa5ca3be7b25771ce492db82
7
- data.tar.gz: 71b4fe062b78cd5f4efb3a2710a2fc9b0af6ce996be1605995614e9d0ee8f527a7a8e58670a724a16ba1bb719a7940ae67f40dd44a7d4b65b8c70f7fa89e1371
6
+ metadata.gz: 6b06d8262fcf6baff46412cbff004b1e9c00863fa7d4e3059eb66ef214869189b2b5591dcd9316906a2c57f000aaa5fda33d6df0d36bc2179804ac6c0412bc72
7
+ data.tar.gz: b6b82bf13a56468631a02bd06d57559f50955a31a382a87befada92793d46c51bc99be0d3e4c96331ea66bffac9ff26e41d5a05324f4d4fe507960a41d3beb64
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 1.1.0 - 2017-12-18
8
+
9
+ * enhancements
10
+ * dont't include keys in `current_onesignal` hash whose values are `nil`
11
+
7
12
  ### 1.0.1 - 2017-12-18
8
13
 
9
14
  * bugfixes
@@ -12,6 +12,9 @@ module OneSignalUser
12
12
  current_onesignal[:id] = cookies[:oneSignalUserId]
13
13
  current_onesignal[:permission] = cookies[:oneSignalUserPermission]
14
14
  current_onesignal[OneSignalUser::Configuration.devise_class.downcase.to_sym] = OneSignalUser::Configuration.devise_class.constantize&.find_by(onesignal_id: current_onesignal[:id]) if cookies.has_key?(:oneSignalUserId)
15
+ current_onesignal.each do |key, value|
16
+ current_onesignal.delete(key) if value == nil
17
+ end
15
18
  current_onesignal
16
19
  end
17
20
 
@@ -1,5 +1,5 @@
1
1
  module DeviseOneSignal
2
2
 
3
- VERSION = '1.0.1'
3
+ VERSION = '1.1.0'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-onesignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter