lookout-bcrypt 3.2.0 → 3.2.1
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.
- checksums.yaml +13 -5
- data/.travis.yml +1 -0
- data/CHANGELOG +11 -2
- 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 +27 -28
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MjQ3MjQwOWI4YWEwNWRkZjc3MzM2ZWIxZWMxZjE2MDNmNmJhZTQ3OA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YTJlNDFlMzY3NGI3OTk4OGI4OWJmZDliNGJlMmNlY2JhNDAyYmJkNg==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZmY3ZGZlNGU1YTc0OGU4NjE4ZjY4Y2I0MTE2NGIyMWFlMGI3NmYzNzBjZjg1
|
10
|
+
MmQ1NTJhZTk4MTdlMDk1NzY4MTYyYTM0OGU5MDZiMDBmNDJmOWFmYjU3OGNk
|
11
|
+
MWI1YjBmYzM5ZmZjNmFkMWJmYWQ3MTVhYjIxNmZiY2E2MzIyNTA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZjZkMmZjNTM4YTRhMmM4YTUyMmY3YWEyOGFkMjJkOWQ5YzQ1ZTVlNjM3MGUy
|
14
|
+
MzI2MTdjMmE4NDYxZjgxZTAzNTFjNDAzMjdlZTNhOTFlZGNlMTkxMGFjZGM4
|
15
|
+
MjFlMjkwZjAyMDAyNGM4MDZmOGYyZjA4NmEwMWFkMzBlYmI2NTE=
|
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
@@ -77,5 +77,14 @@
|
|
77
77
|
3.1.9 Oct 23 2014
|
78
78
|
- Rebuild corrupt binaries
|
79
79
|
|
80
|
-
3.
|
81
|
-
-
|
80
|
+
3.1.10 Jan 28 2015
|
81
|
+
- Fix issue with dumping a BCrypt::Password instance to YAML in Ruby 2.2 [GH #107 by @mattwildig]
|
82
|
+
|
83
|
+
|
84
|
+
Lookout fork:
|
85
|
+
|
86
|
+
3.2.0 Jan 23 2014
|
87
|
+
- fix jBCrypt handling of binary strings
|
88
|
+
|
89
|
+
3.2.1 Feb 10 2015
|
90
|
+
- merge fixes from 3.1.10
|
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
@@ -1,62 +1,61 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lookout-bcrypt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Coda Hale
|
8
8
|
- Ariel Salomon
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-02-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|
16
|
-
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - ~>
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 0.9.2
|
21
|
-
|
21
|
+
type: :development
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
24
|
requirements:
|
23
25
|
- - ~>
|
24
26
|
- !ruby/object:Gem::Version
|
25
27
|
version: 0.9.2
|
26
|
-
prerelease: false
|
27
|
-
type: :development
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rspec
|
30
|
-
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - '>='
|
32
|
+
- - ! '>='
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '3'
|
35
|
-
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
36
38
|
requirements:
|
37
|
-
- - '>='
|
39
|
+
- - ! '>='
|
38
40
|
- !ruby/object:Gem::Version
|
39
41
|
version: '3'
|
40
|
-
prerelease: false
|
41
|
-
type: :development
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rdoc
|
44
|
-
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - ~>
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '3.12'
|
49
|
-
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
52
|
requirements:
|
51
53
|
- - ~>
|
52
54
|
- !ruby/object:Gem::Version
|
53
55
|
version: '3.12'
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
bcrypt() is a sophisticated and secure hash algorithm designed by The OpenBSD project
|
58
|
-
for hashing passwords. The bcrypt Ruby gem provides a simple wrapper for safely handling
|
59
|
-
passwords.
|
56
|
+
description: ! " bcrypt() is a sophisticated and secure hash algorithm designed
|
57
|
+
by The OpenBSD project\n for hashing passwords. The bcrypt Ruby gem provides
|
58
|
+
a simple wrapper for safely handling\n passwords.\n"
|
60
59
|
email: ariel.salomon@gmail.com
|
61
60
|
executables: []
|
62
61
|
extensions:
|
@@ -65,10 +64,10 @@ extra_rdoc_files:
|
|
65
64
|
- README.md
|
66
65
|
- COPYING
|
67
66
|
- CHANGELOG
|
68
|
-
- lib/bcrypt.rb
|
69
67
|
- lib/bcrypt/engine.rb
|
70
68
|
- lib/bcrypt/error.rb
|
71
69
|
- lib/bcrypt/password.rb
|
70
|
+
- lib/bcrypt.rb
|
72
71
|
files:
|
73
72
|
- .gitignore
|
74
73
|
- .rspec
|
@@ -102,7 +101,7 @@ homepage: https://github.com/Oscil8/bcrypt-ruby
|
|
102
101
|
licenses:
|
103
102
|
- MIT
|
104
103
|
metadata: {}
|
105
|
-
post_install_message:
|
104
|
+
post_install_message:
|
106
105
|
rdoc_options:
|
107
106
|
- --title
|
108
107
|
- bcrypt-ruby
|
@@ -114,18 +113,18 @@ require_paths:
|
|
114
113
|
- lib
|
115
114
|
required_ruby_version: !ruby/object:Gem::Requirement
|
116
115
|
requirements:
|
117
|
-
- - '>='
|
116
|
+
- - ! '>='
|
118
117
|
- !ruby/object:Gem::Version
|
119
118
|
version: '0'
|
120
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
120
|
requirements:
|
122
|
-
- - '>='
|
121
|
+
- - ! '>='
|
123
122
|
- !ruby/object:Gem::Version
|
124
123
|
version: '0'
|
125
124
|
requirements: []
|
126
|
-
rubyforge_project:
|
127
|
-
rubygems_version: 2.
|
128
|
-
signing_key:
|
125
|
+
rubyforge_project:
|
126
|
+
rubygems_version: 2.4.5
|
127
|
+
signing_key:
|
129
128
|
specification_version: 4
|
130
129
|
summary: OpenBSD's bcrypt() password hashing algorithm.
|
131
130
|
test_files: []
|