bcrypt 3.1.9-java → 3.1.10-java
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.
- data/.travis.yml +1 -0
- data/CHANGELOG +3 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/bcrypt.gemspec +1 -1
- data/lib/bcrypt/password.rb +1 -1
- data/spec/bcrypt/password_spec.rb +1 -0
- metadata +2 -2
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -31,7 +31,7 @@ The bcrypt gem is available on the following ruby platforms:
|
|
31
31
|
|
32
32
|
* JRuby
|
33
33
|
* RubyInstaller 1.8, 1.9, 2.0, and 2.1 builds on win32
|
34
|
-
* Any 1.8, 1.9, 2.0, or 2.
|
34
|
+
* Any 1.8, 1.9, 2.0, 2.1, or 2.2 Ruby on a BSD/OS X/Linux system with a compiler
|
35
35
|
|
36
36
|
## How to use `bcrypt()` in your Rails application
|
37
37
|
|
data/bcrypt.gemspec
CHANGED
data/lib/bcrypt/password.rb
CHANGED
@@ -80,7 +80,7 @@ module BCrypt
|
|
80
80
|
# Splits +h+ into version, cost, salt, and hash and returns them in that order.
|
81
81
|
def split_hash(h)
|
82
82
|
_, v, c, mash = h.split('$')
|
83
|
-
return v, c.to_i, h[0, 29].to_str, mash[-31, 31].to_str
|
83
|
+
return v.to_str, c.to_i, h[0, 29].to_str, mash[-31, 31].to_str
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
@@ -75,6 +75,7 @@ describe "Reading a hashed password" do
|
|
75
75
|
specify "should read the version, cost, salt, and hash" do
|
76
76
|
password = BCrypt::Password.new(@hash)
|
77
77
|
expect(password.version).to eql("2a")
|
78
|
+
expect(password.version.class).to eq String
|
78
79
|
expect(password.cost).to equal(5)
|
79
80
|
expect(password.salt).to eql("$2a$05$CCCCCCCCCCCCCCCCCCCCC.")
|
80
81
|
expect(password.salt.class).to eq String
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: bcrypt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 3.1.
|
5
|
+
version: 3.1.10
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Coda Hale
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-01-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|