mongoid-bcrypt-ruby 0.0.1 → 0.0.2

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: 189051bd41368948f426006d9372d7da28256c0b
4
- data.tar.gz: bebbe8d86d442ebc779c3567afa96be05743ea00
3
+ metadata.gz: 65ca9cf90bfec1ea55b86b819b40148b58d80695
4
+ data.tar.gz: 6fa8ad8fee41e769a3791d918aaa175ecaf21d51
5
5
  SHA512:
6
- metadata.gz: ae5b495989b125c280f81574278591210c9691a0eeacf9479cd5971b4a87d5e0b2a0e470fdefaa0365c00b75ebd001601f07f9747e3dd8465618186e788d6f78
7
- data.tar.gz: c0f95ca4426a58fb91e7b6fcbea10bb079b1758d220125dd9b95d0b2cbad05bc12f9c007e8dc5c13f324a420f04af798b2404b828155cfb73529b184791d80bc
6
+ metadata.gz: 64e880fc8efd1d3c4357b57ab9876459163b91cab0a0502e693a267feefae06f393776c0e019bc4c13e2a8c8c5adc58aab02f552724c189e397cc85f8e8a8b2f
7
+ data.tar.gz: 22ae06355d18bdfae52c57924a5411398a2bab846add5d11339042105280d619fd9ecb141d277b1384e7fe4c173c5d21806ff2b58c55ca8ca63904dba3eedebe
@@ -9,7 +9,11 @@ module BCrypt
9
9
  end
10
10
 
11
11
  def demongoize(password)
12
- self.new(password)
12
+ case password
13
+ when String then self.new(password)
14
+ when nil then nil
15
+ else password
16
+ end
13
17
  end
14
18
 
15
19
  def evolve(password)
@@ -1,7 +1,7 @@
1
1
  module Mongoid
2
2
  module Bcrypt
3
3
  module Ruby
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-bcrypt-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Kusano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-23 00:00:00.000000000 Z
11
+ date: 2013-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler