devise-onesignal 1.0.0 → 1.0.1

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: 0cae9341b2ac47712e879c7b7c03d7f0977ff691736b57b71616f6c05eb570b2
4
- data.tar.gz: e94704597db1bde57076d4c27b5b3536b043f8381d359a36f0eeaffd1cf28097
3
+ metadata.gz: 1ec6dac265df43cf5b3c0219355f17a4f641318d70a88c803507025f3e70e580
4
+ data.tar.gz: b2f748d6247293217d0b021678eb9a6637f94a0d09123d80aef8a6140bea9cd9
5
5
  SHA512:
6
- metadata.gz: 53e9877f03d83a08dea653fccf068e59bdc86833bfbd190d8f078a156cd3d7ec2b8b09f62316af604ae7f1263a2b3f360d465de2e77cac14e6969cb6ee3742b7
7
- data.tar.gz: 41d36b70e24805a1bf2b892b65ad0aaac2d29b2c6db45d66e379b6190959a66725c9c57e30d3d7b3fd1383b234a3093cc140f371086d80cadd9b606297a1883a
6
+ metadata.gz: eff26d9391fe3612fe1f1c7287bb43ec5c33e8b754bb9a10ed8800454932bbd399b914a92eb5ebf391efbd75504afc2a90916139fa5ca3be7b25771ce492db82
7
+ data.tar.gz: 71b4fe062b78cd5f4efb3a2710a2fc9b0af6ce996be1605995614e9d0ee8f527a7a8e58670a724a16ba1bb719a7940ae67f40dd44a7d4b65b8c70f7fa89e1371
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 1.0.1 - 2017-12-18
8
+
9
+ * bugfixes
10
+ * fixed `Stack Level too deep` when using `current_onesignal`
11
+
7
12
  ### 1.0.0 - 2017-12-18
8
13
 
9
14
  * initial release
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/devise-onesignal.svg)](https://badge.fury.io/rb/devise-onesignal) <img src="https://travis-ci.org/jonhue/devise-onesignal.svg?branch=master" />
4
4
 
5
- Implement user targeted cross-platform notifications with OneSignal & Devise in your Rails app.
5
+ Implement user targeted cross-platform notifications with OneSignal & Devise in your Rails app. Working well together with [onesignal-ruby](https://github.com/tbalthazar/onesignal-ruby) to access the OneSignal API.
6
6
 
7
7
  ---
8
8
 
@@ -10,6 +10,7 @@ Implement user targeted cross-platform notifications with OneSignal & Devise in
10
10
 
11
11
  * [Installation](#installation)
12
12
  * [Usage](#usage)
13
+ * [Configuration](#configuration)
13
14
  * [To Do](#to-do)
14
15
  * [Contributing](#contributing)
15
16
  * [Contributors](#contributors)
@@ -8,6 +8,7 @@ module OneSignalUser
8
8
  end
9
9
 
10
10
  def current_onesignal
11
+ current_onesignal = {}
11
12
  current_onesignal[:id] = cookies[:oneSignalUserId]
12
13
  current_onesignal[:permission] = cookies[:oneSignalUserPermission]
13
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)
@@ -1,5 +1,5 @@
1
1
  module DeviseOneSignal
2
2
 
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter