clearance 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of clearance might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/NEWS.md +4 -0
- data/lib/clearance/session.rb +1 -1
- data/lib/clearance/version.rb +1 -1
- data/spec/clearance/session_spec.rb +16 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4e6710b70b803fe467aabe7d840cbfa3f18c0d4
|
4
|
+
data.tar.gz: b8728d50e2609028e65810667d3853aebc975b71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 472bd52036488dd09691f23a4065f0394bdfb48c3784d56824871861a1ff6f6497b1d5d8863c021e4a656479314bb08c74a311aca22cca057fea44ee5a952cc0
|
7
|
+
data.tar.gz: 05ba71e0e4e71104e181487c010e30a827b482b4a000c3b7ef9a1c3e90e4b3df6004247fbd59d01af70c7957dc8284163396c2343ecc5e2f8ec0c95277df18ca
|
data/Gemfile.lock
CHANGED
data/NEWS.md
CHANGED
data/lib/clearance/session.rb
CHANGED
data/lib/clearance/version.rb
CHANGED
@@ -25,17 +25,26 @@ describe Clearance::Session do
|
|
25
25
|
end
|
26
26
|
|
27
27
|
it 'returns nil without a remember token' do
|
28
|
-
env = env_without_remember_token
|
29
|
-
session = Clearance::Session.new(env)
|
30
28
|
session.should be_signed_out
|
31
29
|
session.current_user.should be_nil
|
32
30
|
end
|
33
31
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
32
|
+
describe '#sign_in' do
|
33
|
+
it 'sets current_user' do
|
34
|
+
user = build(:user)
|
35
|
+
|
36
|
+
session.sign_in user
|
37
|
+
|
38
|
+
expect(session.current_user).to eq user
|
39
|
+
end
|
40
|
+
|
41
|
+
context 'with nil argument' do
|
42
|
+
it 'assigns current_user' do
|
43
|
+
session.sign_in nil
|
44
|
+
|
45
|
+
expect(session.current_user).to be_nil
|
46
|
+
end
|
47
|
+
end
|
39
48
|
end
|
40
49
|
|
41
50
|
context 'if httponly is set' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clearance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Croak
|
@@ -25,7 +25,7 @@ authors:
|
|
25
25
|
autorequire:
|
26
26
|
bindir: bin
|
27
27
|
cert_chain: []
|
28
|
-
date: 2013-08-
|
28
|
+
date: 2013-08-10 00:00:00.000000000 Z
|
29
29
|
dependencies:
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: bcrypt-ruby
|
@@ -209,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
209
|
version: '0'
|
210
210
|
requirements: []
|
211
211
|
rubyforge_project:
|
212
|
-
rubygems_version: 2.0.
|
212
|
+
rubygems_version: 2.0.3
|
213
213
|
signing_key:
|
214
214
|
specification_version: 4
|
215
215
|
summary: Rails authentication & authorization with email & password.
|