remember_me 0.1.0 → 0.1.1

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: 73407b33f4f37f2b50a969db83bcc703b9a1aa52
4
- data.tar.gz: 5f46150925e1a1f8adef4e05ef6a056f85285cd0
3
+ metadata.gz: 8fca18aa7dc1bc82dd73c6fb24943867b697ca14
4
+ data.tar.gz: b0a4a3be2b8dfb9fa9bc9bfd1ed196506a8ab567
5
5
  SHA512:
6
- metadata.gz: 5477a0ccacdf789cf918a1a93e7ce91c304f0362af725a5b96bd27c38057fc20c294210a905cb307cd6342684ac00eb0cc42b1a0bba93e3e98df034f3c46165a
7
- data.tar.gz: de3ed06e763adcc60f7ff40295de83f314688a6c1a44b1bf443637ef2c9d7c1acad52a0f166e33b93546ec0c0bccffba54a160b96b7dac76d060fc3cacb76ac5
6
+ metadata.gz: de1ce4d69ab106aa9c7460d694f0c58f53f35ec738c4b0ed0fd839b30ba867a5dcf3e38b801fc48789b656f73f56e3ef1ae18cd86e521738a25ba92a00c24ca9
7
+ data.tar.gz: 608837fad787ffa9fbcd3f91ab0c5af8c581037ccd30d0c4c5cc7903809d76fbe6acc7cc4e007ba83c05c55b68dbcf6a5407108b3753ecf3029d361ccb0bab18
@@ -44,8 +44,11 @@ module RememberMe
44
44
  cookie = cookies.signed[remember_key(scope)]
45
45
  resource = cookie ?
46
46
  "#{scope.classify}".constantize.serialize_from_cookie(*cookie) : nil
47
- yield resource if block_given?
48
- resource
47
+ if block_given?
48
+ yield resource
49
+ else
50
+ resource
51
+ end
49
52
  end
50
53
  end
51
54
  end
@@ -1,3 +1,3 @@
1
1
  module RememberMe
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remember_me
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - linyows