devise-onesignal 3.0.1 → 3.0.2

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: 512a364e2790a927c71a474ec19a9b66026e8e044d4d1f59a1f1577ac8bbe334
4
- data.tar.gz: 3aa80afbc7d74072bc793750be7a98fd64329a4b541c540112c6aa91d8cfc5d5
3
+ metadata.gz: 607eba4ccc567540c1f681725faade5f4b548ccbaf630c014050ffe0921f8506
4
+ data.tar.gz: c43c2b09c2b8123ce1536b27db19e44779bafd85d00eb2c3370284ce031b796a
5
5
  SHA512:
6
- metadata.gz: a22c23438ba1f388817f11a0919feff63dbca9f78b85f8e434387cf8017c29aace7a7bd0255448c29739acf67a0af7440404364b900b679416cadbac3bd59429
7
- data.tar.gz: 35dd3694f3277ca45430081b6b4e1a3a211f047e3ac2a087c144512b2fbbb88cece3415523bd5e366e9dc119367d88c7e53631b9d39ce27c944cdae343d3d173
6
+ metadata.gz: 95dbb20630a289f9b0febcae39e448f88e61e4fcf7ca1c561a831772f0e2b21799c76b67c6fe97005f451401988374f9134c7ebd23e7bf98d9145a0444088fdc
7
+ data.tar.gz: a0443b7c911abcd44f806d1126ce5c4cc871a4cffbc0b9857328c34cf1966b56913dfe4476a6bdd8c0a76e3bc1b7ab36531b955427c0085571339aa4838ce075
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 3.0.2 - 2017-12-21
8
+
9
+ * bugfixes
10
+ * fixed `undefined method 'set_device_owner' for ApplicationController:Class`
11
+
7
12
  ### 3.0.1 - 2017-12-21
8
13
 
9
14
  * bugfixes
@@ -17,7 +17,7 @@ module DeviseOnesignal
17
17
  device = Device.find_or_create_by! onesignal_id: onesignal_player_id
18
18
  device.onesignal_permission = cookies[:oneSignalPlayerPermission]
19
19
  device.last_used = Time.now
20
- device.owner = ApplicationController.set_device_owner || set_device_owner
20
+ device.owner = ApplicationController.try(:set_device_owner) || set_device_owner
21
21
  device.save!
22
22
  end
23
23
  end
@@ -5,7 +5,7 @@ module DeviseOnesignal
5
5
  if cookies[:oneSignalPlayerId].nil?
6
6
  device = Device.new
7
7
  device.onesignal_permission = cookies[:oneSignalPlayerPermission]
8
- device.owner = ApplicationController.set_device_owner || set_device_owner
8
+ device.owner = ApplicationController.try(:set_device_owner) || set_device_owner
9
9
  device.last_used = Time.now
10
10
  else
11
11
  device = Device.find_by onesignal_id: cookies[:oneSignalPlayerId]
@@ -1,5 +1,5 @@
1
1
  module DeviseOnesignal
2
2
 
3
- VERSION = '3.0.1'
3
+ VERSION = '3.0.2'
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: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter