bcrypt-ruby 3.1.1 → 3.1.2.rc1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,6 +1,7 @@
1
1
  *.o
2
2
  *.bundle
3
3
  *.so
4
+ *.jar
4
5
  ext/mri/Makefile
5
6
  doc
6
7
  pkg
data/CHANGELOG CHANGED
@@ -53,3 +53,7 @@
53
53
 
54
54
  3.1.1 Jul 10 2013
55
55
  - Remove support for Ruby 1.8 in compiled win32 binaries
56
+
57
+ 3.1.2 Aug 23 2013
58
+ - Add support for Ruby 1.8 and 2.0 (in addition to 1.9) in compiled Windows binaries
59
+ - Add support for 64-bit Windows
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bcrypt-ruby (3.1.1)
4
+ bcrypt-ruby (3.1.2.rc1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -9,8 +9,8 @@ GEM
9
9
  diff-lcs (1.2.4)
10
10
  json (1.7.3)
11
11
  json (1.7.3-java)
12
- rake (10.0.4)
13
- rake-compiler (0.8.3)
12
+ rake (10.1.0)
13
+ rake-compiler (0.9.1)
14
14
  rake
15
15
  rdoc (3.12)
16
16
  json (~> 1.4)
@@ -30,6 +30,6 @@ PLATFORMS
30
30
 
31
31
  DEPENDENCIES
32
32
  bcrypt-ruby!
33
- rake-compiler
33
+ rake-compiler (~> 0.9.0)
34
34
  rdoc
35
35
  rspec
data/README.md CHANGED
@@ -31,13 +31,13 @@ re-hash those passwords. This vulernability only affected the JRuby gem.
31
31
  The bcrypt-ruby gem is available on the following ruby platforms:
32
32
 
33
33
  * JRuby
34
- * RubyInstaller 1.9 builds on win32
35
- * Any 1.8 or 1.9 ruby on a BSD/OSX/Linux system with a compiler
34
+ * RubyInstaller 1.8, 1.9, and 2.0 builds on win32
35
+ * Any 1.8, 1.9, or 2.0 ruby on a BSD/OSX/Linux system with a compiler
36
36
 
37
37
  ## How to use `bcrypt()` in your Rails application
38
38
 
39
39
  *Note*: Rails versions >= 3 ship with `ActiveModel::SecurePassword` which uses bcrypt-ruby.
40
- `has_secure_password` [docs](http://api.rubyonrails.org/classes/ActiveModel/SecurePassword/ClassMethods.html#method-i-has_secure_password)
40
+ `has_secure_password` [docs](http://api.rubyonrails.org/classes/ActiveModel/SecurePassword/ClassMethods.html#method-i-has_secure_password)
41
41
  implements a similar authentication strategy to the code below.
42
42
 
43
43
  ### The _User_ model
data/Rakefile CHANGED
@@ -57,7 +57,7 @@ else
57
57
  Rake::ExtensionTask.new("bcrypt_ext", GEMSPEC) do |ext|
58
58
  ext.ext_dir = 'ext/mri'
59
59
  ext.cross_compile = true
60
- ext.cross_platform = ['x86-mingw32', 'x86-mswin32-60']
60
+ ext.cross_platform = ['x86-mingw32', 'x86-mswin32-60', 'x64-mingw32']
61
61
  end
62
62
  end
63
63
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'bcrypt-ruby'
3
- s.version = '3.1.1'
3
+ s.version = '3.1.2.rc1'
4
4
 
5
5
  s.summary = "OpenBSD's bcrypt() password hashing algorithm."
6
6
  s.description = <<-EOF
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.files = `git ls-files`.split("\n")
13
13
  s.require_path = 'lib'
14
14
 
15
- s.add_development_dependency 'rake-compiler'
15
+ s.add_development_dependency 'rake-compiler', '~> 0.9.0'
16
16
  s.add_development_dependency 'rspec'
17
17
  s.add_development_dependency 'rdoc'
18
18
 
@@ -9,7 +9,13 @@ else
9
9
  require "openssl"
10
10
  end
11
11
 
12
- require 'bcrypt_ext'
12
+ begin
13
+ RUBY_VERSION =~ /(\d+.\d+)/
14
+ require "#{$1}/bcrypt_ext"
15
+ rescue LoadError
16
+ require "bcrypt_ext"
17
+ end
18
+
13
19
  require 'bcrypt/error'
14
20
  require 'bcrypt/engine'
15
21
  require 'bcrypt/password'
metadata CHANGED
@@ -1,32 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcrypt-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
5
- prerelease:
4
+ version: 3.1.2.rc1
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Coda Hale
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-10 00:00:00.000000000 Z
12
+ date: 2013-08-23 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
  none: false
18
18
  requirements:
19
- - - ! '>='
19
+ - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
21
+ version: 0.9.0
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ! '>='
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: '0'
29
+ version: 0.9.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rspec
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -124,16 +124,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  segments:
126
126
  - 0
127
- hash: 295284865
127
+ hash: -3767283421835516157
128
128
  required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
- - - ! '>='
131
+ - - ! '>'
132
132
  - !ruby/object:Gem::Version
133
- version: '0'
134
- segments:
135
- - 0
136
- hash: 295284865
133
+ version: 1.3.1
137
134
  requirements: []
138
135
  rubyforge_project: bcrypt-ruby
139
136
  rubygems_version: 1.8.25