ditty 0.7.0.pre.rc1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ditty/helpers/authentication.rb +2 -1
- data/lib/ditty/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16ed8ef74d24cd5afd39d1cf3b5fc396d317809f56b4968b51433193202a9716
|
4
|
+
data.tar.gz: a8a21a36396f59a455613c21541974a26b4eaf0fbadc21bb3899ff720bf9c356
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef3c10b9867a2c2077ecf2cea14462ec32d811db7d83625fdba64aac5b8016da2e8276f0b14cb52d1f5ebe74e5b0a10191e28542c088d498da3538ad3581baab
|
7
|
+
data.tar.gz: 1d87b3e5aaa54320259e0031215a6cdd4d41b5ebbf9eef8d349fdd3c2cbb75d42da529b65a9f36aee3aa50aaf8f60379b435d14abfae4cd0621a525aa80c4926
|
@@ -9,12 +9,13 @@ module Ditty
|
|
9
9
|
module Authentication
|
10
10
|
def current_user
|
11
11
|
return anonymous_user if current_user_id.nil?
|
12
|
-
User[current_user_id]
|
12
|
+
@current_user ||= User[current_user_id]
|
13
13
|
end
|
14
14
|
|
15
15
|
def current_user=(user)
|
16
16
|
env['rack.session'] = {} if env['rack.session'].nil?
|
17
17
|
env['rack.session']['user_id'] = user.id if user
|
18
|
+
@current_user = user
|
18
19
|
end
|
19
20
|
|
20
21
|
def current_user_id
|
data/lib/ditty/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ditty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.0
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jurgens du Toit
|
@@ -532,9 +532,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
532
532
|
version: '0'
|
533
533
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
534
534
|
requirements:
|
535
|
-
- - "
|
535
|
+
- - ">="
|
536
536
|
- !ruby/object:Gem::Version
|
537
|
-
version:
|
537
|
+
version: '0'
|
538
538
|
requirements: []
|
539
539
|
rubyforge_project:
|
540
540
|
rubygems_version: 2.7.7
|