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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +2 -1
- data/app/controllers/concerns/one_signal_user.rb +1 -0
- data/lib/devise-onesignal/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ec6dac265df43cf5b3c0219355f17a4f641318d70a88c803507025f3e70e580
|
4
|
+
data.tar.gz: b2f748d6247293217d0b021678eb9a6637f94a0d09123d80aef8a6140bea9cd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eff26d9391fe3612fe1f1c7287bb43ec5c33e8b754bb9a10ed8800454932bbd399b914a92eb5ebf391efbd75504afc2a90916139fa5ca3be7b25771ce492db82
|
7
|
+
data.tar.gz: 71b4fe062b78cd5f4efb3a2710a2fc9b0af6ce996be1605995614e9d0ee8f527a7a8e58670a724a16ba1bb719a7940ae67f40dd44a7d4b65b8c70f7fa89e1371
|
data/CHANGELOG.md
CHANGED
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)
|