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: 48878ea66857e9efa43a5a837d28db91d9ccc918
4
- data.tar.gz: a8568a00c443097287e69768ec3bc040a785b1a2
3
+ metadata.gz: df5ff4301f9a840184240a23652d81b5cfceff9a
4
+ data.tar.gz: 6409b7fefea4194a2552468783e83dbe6037d033
5
5
  SHA512:
6
- metadata.gz: 0f41ff5dddad8bc139d69c0af461b771bd77f393032519aa74c4f30dd8370c343ee3026ebe83b2507f05f2e75ad716ae4d8c858aeb7cd5bcfd860c7a02c42bbb
7
- data.tar.gz: d49ebd6f95a3711fe44d097872d9f999f3f7188ef0ead9641b48abda0466e1f0e4be779eed8526ac56c6e5bb1e8d03b80b252db37751a4e17c38c235380c768e
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=nil)
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
  {
@@ -1,3 +1,3 @@
1
1
  module Capcoauth
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
@@ -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.1
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: 2016-11-12 00:00:00.000000000 Z
11
+ date: 2017-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties