bcrypt 3.1.9 → 3.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTI2Y2YyN2NlM2ZiNWUzMjUwYjhkMTUyNzExNWU0NzMyNmJhZGE1Mw==
4
+ NGQwY2ViYTc1OTE2ZWJjMmI4ODA0MDI1ZTM3ZjM1YmQ1M2U5M2IxNQ==
5
5
  data.tar.gz: !binary |-
6
- ODAwODQxZmY1MzY5YTY2MTU4OTY2NzAzNWUyMWY5MWUyZTYxOGJiNg==
6
+ ODgxODEzNzM3ZjBmYzdhMzUyMjJiYzZlMGIxZjdkNGI0NjRjMWE4Yg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzdiMDI5YzFiOTlhNDM2ODc5Njk0MGIyNDlmYmJlZWRmMzI1MDAxNmVjNTgw
10
- Zjc2ODI3MzA1OTIzYTg4YmYxZWYyMzJjMzE1YWUzNmI5YzY2NzhhM2Y1Zjhm
11
- YjEwMTBlZjFiMjFhZDUzMjhiYmRjOWJkYWUzY2E3ZjQxZmUxMTA=
9
+ MGQyODgxZjU5OGY0NzU5ZmViMmMxMzQ5M2I2ZWIzYTI1ZjQzNjM0Y2Y4NjY3
10
+ Y2JiYzQ1ZWNjMTVmODk0MjVhMWUwYjQ5NDIxNGI1OGRhZTVmZWYxNDI3NTdl
11
+ Njc5NjIzNjZhYjg1ZjJmZmQ0ZmI4NzVhYTQ4M2VkNDA2NDljYjU=
12
12
  data.tar.gz: !binary |-
13
- N2RlNDk5NGRhYjQyMDA4MTg2ODFmNWM4YzA3MjhiY2IwNmNiODk2YjlmZGUz
14
- ZGQyODQ5ZjhkNTU0ZDBhZjk1NjZlZGNiYzBhNTU2NTQzOGRhYWQzNTI4NDA5
15
- ZDc0ZGM4NjIzNTE2M2YzYWM0ODMyNGQxZjYxOTIyN2JmZDhmYjk=
13
+ OTk3NzIzMjc1MTRmZDNlMWIzNjVhMWQ2ZTJlNzAwNTBkZDBhNDg4MDc0ODgx
14
+ MTVlZGY0YmJkOGNlYjIyYTQ2YjdiNzIzN2Y4ODYyZTBlM2IyZmQ5NjVlODI0
15
+ ZGM2MjAwNTVjZmY3ODExM2NjZWRmMzc4NzY0YzZkMTA4NDZhMjE=
@@ -5,6 +5,7 @@ rvm:
5
5
  - 1.9.3
6
6
  - 2.0.0
7
7
  - 2.1.0
8
+ - 2.2.0
8
9
  - ruby-head
9
10
  - jruby-18mode
10
11
  - jruby-19mode
data/CHANGELOG CHANGED
@@ -76,3 +76,6 @@
76
76
 
77
77
  3.1.9 Oct 23 2014
78
78
  - Rebuild corrupt binaries
79
+
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]
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bcrypt (3.1.9)
4
+ bcrypt (3.1.10)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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.1 ruby on a BSD/OSX/Linux system with a compiler
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
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'bcrypt'
3
- s.version = '3.1.9'
3
+ s.version = '3.1.10'
4
4
 
5
5
  s.summary = "OpenBSD's bcrypt() password hashing algorithm."
6
6
  s.description = <<-EOF
@@ -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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcrypt
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.9
4
+ version: 3.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coda Hale
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-23 00:00:00.000000000 Z
11
+ date: 2015-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  requirements: []
124
124
  rubyforge_project:
125
- rubygems_version: 2.2.2
125
+ rubygems_version: 2.4.5
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: OpenBSD's bcrypt() password hashing algorithm.