authie 1.0.2 → 1.0.3

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: 0a79a25563e536247558b4b4e0110c54cb0131e6
4
- data.tar.gz: 8e56f9b73ed4104169852d2bb1f87a3b41853e98
3
+ metadata.gz: 552e0b30c5866a15eec565be0df2a97701d3ecdb
4
+ data.tar.gz: c3e542cf860658dbf144cc411fd3c787a1e252c7
5
5
  SHA512:
6
- metadata.gz: 12d450b4dae3f88855b68f6f0b30c8e445489681e632772c09c33ec98fa2c1326d36ba545bb02f6aa51d8998505ebb10407c57150586e2033c87abd96f0ec8c4
7
- data.tar.gz: 9873f56ce1b14561c033cfdbf1a3d3282147b2176b1167468ba6638e29db0b64b2f2df238375935c48648df8548dec9f03b1381ebeff5890e52950241eb027d4
6
+ metadata.gz: 9db009386f2f59d6daf7ebe69f6d285c9523e1346dad4429c3156cb5068072020d41d9bfff4a4f56787a247acf21c80d165906dbe7c6f08f8e815915d29b862a
7
+ data.tar.gz: 7d08d6723c5623714e55e6845a01013f1b9cc67170fd7411f6a2de6c7a2fcf36ef2c9ed2d805ce373c9b1792bf7f7cf146f8f52ccd8d20e368216693ccd9255d
@@ -36,5 +36,13 @@ module Authie
36
36
  Session.start(self, :user => user)
37
37
  end
38
38
 
39
+ def current_user
40
+ auth_session.user
41
+ end
42
+
43
+ def auth_session
44
+ @auth_session ||= Session.get_session(self)
45
+ end
46
+
39
47
  end
40
48
  end
@@ -1,3 +1,3 @@
1
1
  module Authie
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authie
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-22 00:00:00.000000000 Z
11
+ date: 2015-02-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A Rails library for storing user sessions in a backend database
14
14
  email:
@@ -53,4 +53,3 @@ signing_key:
53
53
  specification_version: 4
54
54
  summary: A Rails library for storing user sessions in a backend database
55
55
  test_files: []
56
- has_rdoc: