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

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 26 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.rc1)
4
+ bcrypt-ruby (3.1.2)
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)
@@ -26,9 +26,9 @@ GEM
26
26
  PLATFORMS
27
27
  java
28
28
  ruby
29
- x86-mingw32
30
29
 
31
30
  DEPENDENCIES
32
31
  bcrypt-ruby!
33
- rake-compiler
34
-
32
+ rake-compiler (~> 0.9.0)
33
+ rdoc
34
+ rspec
data/README.md CHANGED
Binary file
data/Rakefile CHANGED
@@ -57,12 +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']
61
-
62
- # inject 1.8/1.9 pure-ruby entry point
63
- ext.cross_compiling do |spec|
64
- spec.files += ["lib/#{ext.name}.rb"]
65
- end
60
+ ext.cross_platform = ['x86-mingw32', 'x86-mswin32-60', 'x64-mingw32']
66
61
  end
67
62
  end
68
63
 
@@ -72,4 +67,8 @@ task :benchmark do
72
67
  TEST_PWD = "this is a test"
73
68
  require File.expand_path(File.join(File.dirname(__FILE__), "lib", "bcrypt"))
74
69
  Benchmark.bmbm do |results|
75
- 4.upto(1
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'bcrypt-ruby'
3
- s.version = '3.1.1.rc1'
3
+ s.version = '3.1.2'
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'
Binary file
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcrypt-ruby
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: 6
5
- version: 3.1.1.rc1
4
+ prerelease:
5
+ version: 3.1.2
6
6
  platform: java
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-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler
16
16
  version_requirements: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ~>
19
19
  - !ruby/object:Gem::Version
20
- version: '0'
20
+ version: 0.9.0
21
21
  none: false
22
22
  requirement: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.9.0
27
27
  none: false
28
28
  prerelease: false
29
29
  type: :development
@@ -128,13 +128,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - '>'
131
+ - - '>='
132
132
  - !ruby/object:Gem::Version
133
- version: 1.3.1
133
+ segments:
134
+ - 0
135
+ hash: 2
136
+ version: '0'
134
137
  none: false
135
138
  requirements: []
136
139
  rubyforge_project: bcrypt-ruby
137
- rubygems_version: 1.8.24
140
+ rubygems_version: 1.8.25
138
141
  signing_key:
139
142
  specification_version: 3
140
143
  summary: OpenBSD's bcrypt() password hashing algorithm.