shield 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/shield.rb +2 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77cd76e6a2f65b5ae1d0e26b06d5185feb42fd21
4
- data.tar.gz: 0991b78c69a3ec1aaf06e750c9a7eab080ab3b58
3
+ metadata.gz: 5e8cddce5d60179e40bb696d3cf99881cef02d32
4
+ data.tar.gz: de020f37164376682f9f31b48d3e82c4e31acca0
5
5
  SHA512:
6
- metadata.gz: c33d819596edd60569d1f7144e7fdcbaf5cb63daf1a1a571fcc14d1a27f085b5f2836d1adce6fd1198a49786376845dc0f165152b17f19ffb219d6553b62a026
7
- data.tar.gz: 35cbd8971b6abfde4cdc64559b7e18ffd2146989d5463f1de54b147e47a1b4d1e33a87e372ac8e87f436cb15591bd9135350234b3c32d35213d281fea3e6163b
6
+ metadata.gz: f7299a1a78a171b4e9b382282552ea521861ac0ecc8f96673998bdce98f8a9886b839e05e9dcb0195c57f55d72cc813cea169f6f675e51687dc034d4be6f2564
7
+ data.tar.gz: f85025b14a92309fc03edc3dc978e23e4f6dffd267fa2fd6ef12a372fe56c14e58797901e94f1a7abb86b60b5fccbb840ef81356ed1d9a73cd0524f0f801d666
data/lib/shield.rb CHANGED
@@ -46,6 +46,7 @@ module Shield
46
46
  end
47
47
 
48
48
  def authenticate(user)
49
+ session.clear
49
50
  session[user.class.to_s] = user.id
50
51
  end
51
52
 
@@ -54,7 +55,7 @@ module Shield
54
55
  authenticate(user) if user
55
56
  end
56
57
 
57
- def remember(user, expire = 1209600)
58
+ def remember(expire = 1209600)
58
59
  session[:remember_for] = expire
59
60
  end
60
61
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shield
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Martens
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-06-05 00:00:00.000000000 Z
13
+ date: 2013-10-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: armor
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  requirements: []
89
89
  rubyforge_project:
90
- rubygems_version: 2.0.0
90
+ rubygems_version: 2.0.3
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Generic authentication protocol for rack applications.