singularity 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/global_user.rb CHANGED
@@ -16,11 +16,11 @@ class GlobalUser < Redis::NativeHash
16
16
 
17
17
  def password=(value)
18
18
  self[:password_hash] = Singularity::PasswordHash.generate(value, salt)
19
- self[:password_hash]
20
19
  end
21
20
 
22
21
  def password?(value)
23
22
  return false unless value.present?
23
+ return false unless self[:password_hash].present?
24
24
  Singularity::PasswordHash.new(self[:password_hash]).matches?(value, salt)
25
25
  end
26
26
 
@@ -1,3 +1,3 @@
1
1
  module Singularity
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: singularity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-07-08 00:00:00.000000000 Z
13
+ date: 2013-08-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: redis-native_hash