capcoauth 0.3.1 → 0.3.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df5ff4301f9a840184240a23652d81b5cfceff9a
|
4
|
+
data.tar.gz: 6409b7fefea4194a2552468783e83dbe6037d033
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4aba21febd219d18ec7cc8e7e7d5a9f6875be5da5cf7764094237e147c9b1e70048347e8866f7e0c37018be0a12fceb3e12f8a12e33763ac9497bb28663d540e
|
7
|
+
data.tar.gz: 033cc72215fe37ac75b3eca0ea9000070cdd933dba277877f82bee33c6450c008177135ecc31b81c2889a7ab2580853f319b6931ed72e8221868017c87d4ad7e
|
@@ -74,7 +74,8 @@ module Capcoauth
|
|
74
74
|
res.code == 204
|
75
75
|
end
|
76
76
|
|
77
|
-
def notify(user_id, alert=nil, badge=nil, data=
|
77
|
+
def notify(user_id, alert=nil, badge=nil, data={})
|
78
|
+
data = JSON.generate data
|
78
79
|
res = self.post(
|
79
80
|
"#{Capcoauth.configuration.capcoauth_url}/api/v1/user_notifications",
|
80
81
|
{
|
data/lib/capcoauth/version.rb
CHANGED
@@ -13,6 +13,9 @@ Capcoauth.configure do |config|
|
|
13
13
|
# application will continue to serve requests to users even after the token is revoked
|
14
14
|
# config.token_verify_ttl 10
|
15
15
|
|
16
|
+
# Configure a cache store to use to cache access token resolutions.
|
17
|
+
# config.cache_store ActiveSupport::Cache::MemoryStore.new
|
18
|
+
|
16
19
|
# Configure CapcOAuth service URL
|
17
20
|
# config.capcoauth_url ENV['CAPCOAUTH_URL']
|
18
21
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capcoauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Robertson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|