git ssb

0+

dangerousbeans / %aPBe2k3ugtjBr4rrsU1…



Commit 460036059ec11b39706019801d8744daa2998a69

Updated changelog with full details of what's been changed.

Spec coverage now goes to /doc/coverage.
RDocs now go to /doc/rdoc.
Specs now go to /doc/specs.html.
Removed loadpath tinkering from bcrypt.rb.


git-svn-id: http://bcrypt-ruby.rubyforge.org/svn/trunk@20 b1e0f299-433e-4bb3-9895-84128a6cfb6a
codahale committed on 3/8/2007, 4:05:15 AM
Parent: 9c7450a176ba89178fdf1581fd7c98cd693fd993

Files changed

CHANGELOGchanged
Rakefilechanged
lib/bcrypt.rbchanged
CHANGELOGView
@@ -1,6 +1,8 @@
11 1.0.0 Feb 27 2007
2- - Initial release
2 + - Initial release.
33
4-2.0.0
5- - Refactored out BCrypt::Internals into more useful BCrypt::Engine
4 +2.0.0 Mar 07 2007
5 + - Removed BCrypt::Password#exactly_equals -- use BCrypt::Password#eql? instead.
6 + - Added BCrypt::Password#is_password?.
7 + - Refactored out BCrypt::Internals into more useful BCrypt::Engine.
68 - Added validation of secrets -- nil is not healthy.
RakefileView
@@ -22,9 +22,9 @@
2222 "ext/*.bundle",
2323 "ext/*.so"
2424 )
2525 CLOBBER.include(
26- "doc"
26 + "doc/coverage"
2727 )
2828
2929 task :default => [:spec]
3030
@@ -32,21 +32,23 @@
3232 Spec::Rake::SpecTask.new do |t|
3333 t.spec_files = FileList['spec/**/*_spec.rb']
3434 t.spec_opts = ['--color','--backtrace','--diff']
3535 t.rcov = true
36- t.rcov_dir = 'doc/output/coverage'
36 + t.rcov_dir = 'doc/coverage'
3737 t.rcov_opts = ['--exclude', 'spec\/spec,spec\/.*_spec.rb']
3838 end
3939
40-desc "Run all specs and store html output in doc/output/report.html"
41-Spec::Rake::SpecTask.new('spec_html') do |t|
42- t.spec_files = FileList['spec/**/*_spec.rb']
43- t.spec_opts = ['--diff','--format html','--backtrace','--out doc/output/report.html']
40 +namespace :spec do
41 + desc "Run all specs and store html output in doc/specs.html"
42 + Spec::Rake::SpecTask.new('html') do |t|
43 + t.spec_files = FileList['spec/**/*_spec.rb']
44 + t.spec_opts = ['--diff','--format html','--backtrace','--out doc/specs.html']
45 + end
4446 end
4547
4648 desc 'Generate RDoc'
4749 rd = Rake::RDocTask.new do |rdoc|
48- rdoc.rdoc_dir = 'doc/output/rdoc'
50 + rdoc.rdoc_dir = 'doc/rdoc'
4951 rdoc.options << '--title' << 'bcrypt-ruby' << '--line-numbers' << '--inline-source' << '--main' << 'README'
5052 rdoc.template = ENV['TEMPLATE'] if ENV['TEMPLATE']
5153 rdoc.rdoc_files.include('README', 'COPYING', 'CHANGELOG', 'lib/**/*.rb')
5254 end
lib/bcrypt.rbView
@@ -1,13 +1,12 @@
11 # A wrapper for OpenBSD's bcrypt/crypt_blowfish password-hashing algorithm.
22
3-$: << "ext"
4-require "bcrypt_ext"
3 +require "ext/bcrypt_ext"
54 require "openssl"
65
76 # A Ruby library implementing OpenBSD's bcrypt()/crypt_blowfish algorithm for
87 # hashing passwords.
9-module BCrypt
8 +module BCrypt
109 module Errors # :nodoc:
1110 class InvalidSalt < Exception; end # The salt parameter provided to bcrypt() is invalid.
1211 class InvalidHash < Exception; end # The hash parameter provided to bcrypt() is invalid.
1312 class InvalidCost < Exception; end # The cost parameter provided to bcrypt() is invalid.

Built with git-ssb-web