bcrypt-ruby 3.1.2.rc1-java → 3.1.3-java

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -54,6 +54,10 @@
54
54
  3.1.1 Jul 10 2013
55
55
  - Remove support for Ruby 1.8 in compiled win32 binaries
56
56
 
57
- 3.1.2 Aug 23 2013
57
+ 3.1.2 Aug 26 2013
58
58
  - Add support for Ruby 1.8 and 2.0 (in addition to 1.9) in compiled Windows binaries
59
59
  - Add support for 64-bit Windows
60
+
61
+ 3.1.3 Feb 21 2014
62
+ - Add support for Ruby 2.1 in compiled Windows binaries
63
+ - Rename gem from "bcrypt-ruby" to just "bcrypt". [GH #86 by @sferik]
data/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  An easy way to keep your users' passwords secure.
4
4
 
5
- * http://bcrypt-ruby.rubyforge.org/
6
5
  * http://github.com/codahale/bcrypt-ruby/tree/master
7
6
 
8
7
  [![Build Status](https://travis-ci.org/codahale/bcrypt-ruby.png?branch=master)](https://travis-ci.org/codahale/bcrypt-ruby)
@@ -18,21 +17,21 @@ security experts is not a professional response to risk.
18
17
 
19
18
  `bcrypt()` allows you to easily harden your application against these kinds of attacks.
20
19
 
21
- *Note*: JRuby versions of bcrypt-ruby `<= 2.1.3` had a [security
20
+ *Note*: JRuby versions of the bcrypt gem `<= 2.1.3` had a [security
22
21
  vulnerability](http://www.mindrot.org/files/jBCrypt/internat.adv) that
23
22
  was fixed in `>= 2.1.4`. If you used a vulnerable version to hash
24
23
  passwords with international characters in them, you will need to
25
- re-hash those passwords. This vulernability only affected the JRuby gem.
24
+ re-hash those passwords. This vulnerability only affected the JRuby gem.
26
25
 
27
26
  ## How to install bcrypt
28
27
 
29
- gem install bcrypt-ruby
28
+ gem install bcrypt
30
29
 
31
- The bcrypt-ruby gem is available on the following ruby platforms:
30
+ The bcrypt gem is available on the following ruby platforms:
32
31
 
33
32
  * JRuby
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
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
36
35
 
37
36
  ## How to use `bcrypt()` in your Rails application
38
37
 
@@ -1,21 +1,8 @@
1
- # A Ruby library implementing OpenBSD's bcrypt()/crypt_blowfish algorithm for
2
- # hashing passwords.
1
+ # :stopdoc:
2
+ # This dummy class is to keep RDoc and YARD from complaining about an empty
3
+ # lib directory.
3
4
  module BCrypt
5
+ class Dummy
6
+ end
4
7
  end
5
-
6
- if RUBY_PLATFORM == "java"
7
- require 'java'
8
- else
9
- require "openssl"
10
- end
11
-
12
- begin
13
- RUBY_VERSION =~ /(\d+.\d+)/
14
- require "#{$1}/bcrypt_ext"
15
- rescue LoadError
16
- require "bcrypt_ext"
17
- end
18
-
19
- require 'bcrypt/error'
20
- require 'bcrypt/engine'
21
- require 'bcrypt/password'
8
+ # :startdoc:
Binary file
metadata CHANGED
@@ -1,141 +1,125 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: bcrypt-ruby
3
- version: !ruby/object:Gem::Version
4
- prerelease: 6
5
- version: 3.1.2.rc1
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 3.1.3
6
6
  platform: java
7
- authors:
8
- - Coda Hale
9
- autorequire:
7
+ authors:
8
+ - Coda Hale
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-23 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rake-compiler
16
- version_requirements: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - ~>
19
- - !ruby/object:Gem::Version
20
- version: 0.9.0
21
- none: false
22
- requirement: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ~>
25
- - !ruby/object:Gem::Version
26
- version: 0.9.0
27
- none: false
28
- prerelease: false
29
- type: :development
30
- - !ruby/object:Gem::Dependency
31
- name: rspec
32
- version_requirements: !ruby/object:Gem::Requirement
33
- requirements:
34
- - - '>='
35
- - !ruby/object:Gem::Version
36
- version: '0'
37
- none: false
38
- requirement: !ruby/object:Gem::Requirement
39
- requirements:
40
- - - '>='
41
- - !ruby/object:Gem::Version
42
- version: '0'
43
- none: false
44
- prerelease: false
45
- type: :development
46
- - !ruby/object:Gem::Dependency
47
- name: rdoc
48
- version_requirements: !ruby/object:Gem::Requirement
49
- requirements:
50
- - - '>='
51
- - !ruby/object:Gem::Version
52
- version: '0'
53
- none: false
54
- requirement: !ruby/object:Gem::Requirement
55
- requirements:
56
- - - '>='
57
- - !ruby/object:Gem::Version
58
- version: '0'
59
- none: false
60
- prerelease: false
61
- type: :development
62
- description: |2
63
- bcrypt() is a sophisticated and secure hash algorithm designed by The OpenBSD project
64
- for hashing passwords. bcrypt-ruby provides a simple, humane wrapper for safely handling
65
- passwords.
12
+
13
+ date: 2014-02-21 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rake-compiler
17
+ version_requirements: &id001 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: 0.9.2
23
+ requirement: *id001
24
+ prerelease: false
25
+ type: :development
26
+ - !ruby/object:Gem::Dependency
27
+ name: rspec
28
+ version_requirements: &id002 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ requirement: *id002
35
+ prerelease: false
36
+ type: :development
37
+ - !ruby/object:Gem::Dependency
38
+ name: rdoc
39
+ version_requirements: &id003 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ version: "3.12"
45
+ requirement: *id003
46
+ prerelease: false
47
+ type: :development
48
+ - !ruby/object:Gem::Dependency
49
+ name: bcrypt
50
+ version_requirements: &id004 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 3.1.3
56
+ requirement: *id004
57
+ prerelease: false
58
+ type: :runtime
59
+ description: " bcrypt() is a sophisticated and secure hash algorithm designed by The OpenBSD project\n for hashing passwords. The bcrypt Ruby gem provides a simple wrapper for safely handling\n passwords.\n"
66
60
  email: coda.hale@gmail.com
67
61
  executables: []
62
+
68
63
  extensions: []
69
- extra_rdoc_files:
70
- - README.md
71
- - COPYING
72
- - CHANGELOG
73
- - lib/bcrypt.rb
74
- - lib/bcrypt/engine.rb
75
- - lib/bcrypt/error.rb
76
- - lib/bcrypt/password.rb
77
- files:
78
- - .gitignore
79
- - .rspec
80
- - .travis.yml
81
- - CHANGELOG
82
- - COPYING
83
- - Gemfile
84
- - Gemfile.lock
85
- - README.md
86
- - Rakefile
87
- - bcrypt-ruby.gemspec
88
- - ext/jruby/bcrypt_jruby/BCrypt.java
89
- - ext/mri/bcrypt_ext.c
90
- - ext/mri/crypt.c
91
- - ext/mri/crypt.h
92
- - ext/mri/crypt_blowfish.c
93
- - ext/mri/crypt_gensalt.c
94
- - ext/mri/extconf.rb
95
- - ext/mri/ow-crypt.h
96
- - ext/mri/wrapper.c
97
- - lib/bcrypt.rb
98
- - lib/bcrypt/engine.rb
99
- - lib/bcrypt/error.rb
100
- - lib/bcrypt/password.rb
101
- - spec/TestBCrypt.java
102
- - spec/bcrypt/engine_spec.rb
103
- - spec/bcrypt/error_spec.rb
104
- - spec/bcrypt/password_spec.rb
105
- - spec/spec_helper.rb
106
- - lib/bcrypt_ext.jar
107
- homepage: http://bcrypt-ruby.rubyforge.org
108
- licenses:
109
- - MIT
110
- post_install_message:
111
- rdoc_options:
112
- - --title
113
- - bcrypt-ruby
114
- - --line-numbers
115
- - --inline-source
116
- - --main
117
- - README.md
118
- require_paths:
119
- - lib
120
- required_ruby_version: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - '>='
123
- - !ruby/object:Gem::Version
124
- segments:
125
- - 0
126
- hash: 2
127
- version: '0'
64
+
65
+ extra_rdoc_files:
66
+ - README.md
67
+ - COPYING
68
+ - CHANGELOG
69
+ - lib/bcrypt.rb
70
+ files:
71
+ - lib/bcrypt.rb
72
+ - ext/mri/extconf.rb
73
+ - README.md
74
+ - COPYING
75
+ - CHANGELOG
76
+ - lib/bcrypt_ext.jar
77
+ homepage: https://github.com/codahale/bcrypt-ruby
78
+ licenses:
79
+ - MIT
80
+ post_install_message: |+
81
+
82
+ #######################################################
83
+
84
+ The bcrypt-ruby gem has changed it's name to just bcrypt. Instead of
85
+ installing `bcrypt-ruby`, you should install `bcrypt`. Please update your
86
+ dependencies accordingly.
87
+
88
+ #######################################################
89
+
90
+ rdoc_options:
91
+ - --title
92
+ - bcrypt-ruby
93
+ - --line-numbers
94
+ - --inline-source
95
+ - --main
96
+ - README.md
97
+ require_paths:
98
+ - lib
99
+ required_ruby_version: !ruby/object:Gem::Requirement
128
100
  none: false
129
- required_rubygems_version: !ruby/object:Gem::Requirement
130
- requirements:
131
- - - '>'
132
- - !ruby/object:Gem::Version
133
- version: 1.3.1
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ hash: 2
105
+ segments:
106
+ - 0
107
+ version: "0"
108
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
109
  none: false
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ hash: 2
114
+ segments:
115
+ - 0
116
+ version: "0"
135
117
  requirements: []
136
- rubyforge_project: bcrypt-ruby
118
+
119
+ rubyforge_project:
137
120
  rubygems_version: 1.8.25
138
- signing_key:
121
+ signing_key:
139
122
  specification_version: 3
140
123
  summary: OpenBSD's bcrypt() password hashing algorithm.
141
124
  test_files: []
125
+
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- *.o
2
- *.bundle
3
- *.so
4
- *.jar
5
- ext/mri/Makefile
6
- doc
7
- pkg
8
- *.class
9
- tmp/
10
- .DS_Store
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --color
2
- --backtrace
3
- --format documentation
@@ -1,11 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - "1.8.7"
4
- - "1.9.2"
5
- - "1.9.3"
6
- - "2.0.0"
7
- - jruby-18mode
8
- - jruby-19mode
9
- - rbx-18mode
10
- - rbx-19mode
11
- script: bundle exec rake
data/Gemfile DELETED
@@ -1,2 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
@@ -1,35 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- bcrypt-ruby (3.1.2.rc1)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- diff-lcs (1.2.4)
10
- json (1.7.3)
11
- json (1.7.3-java)
12
- rake (10.1.0)
13
- rake-compiler (0.9.1)
14
- rake
15
- rdoc (3.12)
16
- json (~> 1.4)
17
- rspec (2.13.0)
18
- rspec-core (~> 2.13.0)
19
- rspec-expectations (~> 2.13.0)
20
- rspec-mocks (~> 2.13.0)
21
- rspec-core (2.13.1)
22
- rspec-expectations (2.13.0)
23
- diff-lcs (>= 1.1.3, < 2.0)
24
- rspec-mocks (2.13.1)
25
-
26
- PLATFORMS
27
- java
28
- ruby
29
- x86-mingw32
30
-
31
- DEPENDENCIES
32
- bcrypt-ruby!
33
- rake-compiler (~> 0.9.0)
34
- rdoc
35
- rspec
data/Rakefile DELETED
@@ -1,74 +0,0 @@
1
- require 'rspec/core/rake_task'
2
- require 'rubygems/package_task'
3
- require 'rake/extensiontask'
4
- require 'rake/javaextensiontask'
5
- require 'rake/contrib/rubyforgepublisher'
6
- require 'rake/clean'
7
- require 'rdoc/task'
8
- require 'benchmark'
9
-
10
- CLEAN.include(
11
- "ext/mri/*.o",
12
- "ext/mri/*.bundle",
13
- "ext/mri/*.so",
14
- "ext/jruby/bcrypt_jruby/*.class"
15
- )
16
- CLOBBER.include(
17
- "ext/mri/Makefile",
18
- "doc/coverage",
19
- "pkg"
20
- )
21
- GEMSPEC = eval(File.read(File.expand_path("../bcrypt-ruby.gemspec", __FILE__)))
22
-
23
- task :default => [:compile, :spec]
24
-
25
- desc "Run all specs"
26
- RSpec::Core::RakeTask.new do |t|
27
- t.pattern = 'spec/**/*_spec.rb'
28
- t.ruby_opts = '-w'
29
- end
30
-
31
- desc "Run all specs, with coverage testing"
32
- RSpec::Core::RakeTask.new(:rcov) do |t|
33
- t.pattern = 'spec/**/*_spec.rb'
34
- t.rcov = true
35
- t.rcov_path = 'doc/coverage'
36
- t.rcov_opts = ['--exclude', 'rspec,diff-lcs,rcov,_spec,_helper']
37
- end
38
-
39
- desc 'Generate RDoc'
40
- RDoc::Task.new do |rdoc|
41
- rdoc.rdoc_dir = 'doc/rdoc'
42
- rdoc.options += GEMSPEC.rdoc_options
43
- rdoc.template = ENV['TEMPLATE'] if ENV['TEMPLATE']
44
- rdoc.rdoc_files.include(*GEMSPEC.extra_rdoc_files)
45
- end
46
-
47
- Gem::PackageTask.new(GEMSPEC) do |pkg|
48
- pkg.need_zip = true
49
- pkg.need_tar = true
50
- end
51
-
52
- if RUBY_PLATFORM =~ /java/
53
- Rake::JavaExtensionTask.new('bcrypt_ext', GEMSPEC) do |ext|
54
- ext.ext_dir = 'ext/jruby'
55
- end
56
- else
57
- Rake::ExtensionTask.new("bcrypt_ext", GEMSPEC) do |ext|
58
- ext.ext_dir = 'ext/mri'
59
- ext.cross_compile = true
60
- ext.cross_platform = ['x86-mingw32', 'x86-mswin32-60', 'x64-mingw32']
61
- end
62
- end
63
-
64
- desc "Run a set of benchmarks on the compiled extension."
65
- task :benchmark do
66
- TESTS = 100
67
- TEST_PWD = "this is a test"
68
- require File.expand_path(File.join(File.dirname(__FILE__), "lib", "bcrypt"))
69
- Benchmark.bmbm do |results|
70
- 4.upto(10) do |n|
71
- results.report("cost #{n}:") { TESTS.times { BCrypt::Password.create(TEST_PWD, :cost => n) } }
72
- end
73
- end
74
- end