capcoauth 0.1.1 → 0.1.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: c28503763c33f4b3e66be0e3193f0bbb44efd8bf
4
- data.tar.gz: dbe45f966a2dee70221bbd639fe52e6722378c77
3
+ metadata.gz: 044a5432917dc3dcf800b665080c2ff0e68ef7ee
4
+ data.tar.gz: ed80f5118d7afcadfed3629b0f7359d8e3e7598e
5
5
  SHA512:
6
- metadata.gz: 22964c39f960e54d1d371fb9e5acfe047d4a262fc015a83a657625786ed7af395a2f6ef5b1d0ebb827989ec3783ab19d5c0b08287cadb7a13a46c0e2da6d8c8d
7
- data.tar.gz: b1d592b706ced53f4548ce71cc4e51b71cea06fdc3db27cbd832be618c11b97a65db43e91f9950cea2d2094c1d5af58209973c01ed08ba1a8035da0573e3d325
6
+ metadata.gz: df69c54c64cb65e34351f91f688d8e35d28dd8ef4e3afcf19b9d29e4c7b72c0d540b585c3af7d9c361f25150c47999a0bfc14438f5f3e5cbfbbea703d0464beb
7
+ data.tar.gz: 75161dc7136c45a3092a2c9bcfcf3d5b9b98c3b34c8d73212b9bbc16bc0d2ed24cb5b8d96172b5022640a71508d5cba9d294610234e15769abdc58f460ba4b83
@@ -14,6 +14,10 @@ module Capcoauth
14
14
  end
15
15
  end
16
16
 
17
+ def current_user
18
+ User.find session[:capcoauth_user_id] if session[:capcoauth_user_id]
19
+ end
20
+
17
21
  private
18
22
 
19
23
  def capcoauth_token
@@ -1,3 +1,3 @@
1
1
  module Capcoauth
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -1,9 +1,9 @@
1
1
  Capcoauth.configure do |config|
2
2
  # CapcOAuth Client ID
3
- # config.client_id 'YOUR APPLICATION CLIENT ID'
3
+ config.client_id 'YOUR APPLICATION CLIENT ID'
4
4
 
5
5
  # CapcOAuth Client Secret
6
- # config.client_secret 'YOUR APPLICATION CLIENT SECRET'
6
+ config.client_secret 'YOUR APPLICATION CLIENT SECRET'
7
7
 
8
8
  # Configures how often to check CapcOAuth for access token validity, in seconds. If this value is too high,
9
9
  # application will continue to serve requests to users even after the token is revoked
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capcoauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Robertson